index.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703
  1. <template>
  2. <view class="zxbox">
  3. <view class="zxtop">
  4. <view class="navbox serbox">
  5. <uni-nav-bar color="#ffffff" leftWidth='160rpx' rightWidth="48rpx" :background-color="backgroundColor" :border="false" statusBar='true' fixed="true">
  6. <block slot="left">
  7. <view class="topl flexc">
  8. <image :src="adrimg" ></image>
  9. <view class="over">{{city}}</view>
  10. </view>
  11. </block>
  12. <!-- #ifndef MP-WEIXIN -->
  13. <view class="topc flexc" v-if="checkPermi(['idcard:idcard:list'])">
  14. <image :src="secimg"></image>
  15. <input placeholder="请输入您要找的客户名称" confirm-type="search" v-model="usename" @confirm="getConfirm"/>
  16. </view>
  17. <block slot="right">
  18. <view class="topr flexcc" @click='getScanFn'>
  19. <image :src="codeimg"></image>
  20. </view>
  21. </block>
  22. <!-- #endif -->
  23. </uni-nav-bar>
  24. </view>
  25. <image :src="bgimg" class="bgimg"></image>
  26. <view class="zxmain" :style="'margin-top:-'+martopHeight+'rpx;'">
  27. <!-- #ifdef MP-WEIXIN -->
  28. <view class="serbox plr18 mb12 flexcc">
  29. <view class="topc flexc" v-if="checkPermi(['idcard:idcard:list'])">
  30. <image :src="secimg"></image>
  31. <input placeholder="请输入您要找的客户名称" confirm-type="search" v-model="usename" @confirm="getConfirm"/>
  32. </view>
  33. <view class="topr flexcc" @click='getScanFn'>
  34. <image :src="codeimg"></image>
  35. </view>
  36. </view>
  37. <!-- #endif -->
  38. <view class="banbox mb12" v-if="bannerlist.length">
  39. <banner :bannerlist="bannerlist"></banner>
  40. </view>
  41. <view class="grid" v-if="checkPermi(['system:system:user'])">
  42. <view class="grid-item-box" @click="getBusListFn(2)" v-if="checkPermi(['system:application:list'])">
  43. <view class="img"><image :src="topaimg" class="imga"></image></view>
  44. <view>申报审核</view>
  45. </view>
  46. <view class="grid-item-box" @click="getBusListFn(3)" v-if="checkPermi(['system:application:list'])">
  47. <view class="img"><image :src="topbimg" class="imgb"></image></view>
  48. <view>担保初审</view>
  49. </view>
  50. <view class="grid-item-box" @click="getMoreFn" v-if="checkPermi(['system:hyperlink:list'])">
  51. <view class="img"><image :src="topcimg" class="imgc"></image></view>
  52. <view>外部工具</view>
  53. </view>
  54. <view class="grid-item-box" @click="getBusListFn(5)" v-if="checkPermi(['system:application:list'])">
  55. <view class="img"><image :src="topdimg" class="imgd"></image></view>
  56. <view>尽职调查</view>
  57. </view>
  58. <view class="grid-item-box" @click="getBusListFn(6)" v-if="checkPermi(['system:application:list'])">
  59. <view class="img"><image :src="topeimg" class="imga"></image></view>
  60. <view>评审会</view>
  61. </view>
  62. <view class="grid-item-box" @click="getBusListFn(7)" v-if="checkPermi(['system:application:list'])">
  63. <view class="img"><image :src="topfimg" class="imgc"></image></view>
  64. <view>签署合同</view>
  65. </view>
  66. <view class="grid-item-box" @click="getLedgerFn">
  67. <view class="img"><image :src="topgimg" class="imge"></image></view>
  68. <view>台账表</view>
  69. </view>
  70. <view class="grid-item-box" @click="getFileFn" v-if="checkPermi(['system:application:listOss'])">
  71. <view class="img"><image :src="tophimg" class="imgf"></image></view>
  72. <view>文件管理</view>
  73. </view>
  74. </view>
  75. <!-- v-if="checkPermi(['zxNotice:notice:list'])" -->
  76. <view class="mlrbox">
  77. <view class="mb24">
  78. <h-notice :noticelist="noticelist" :autoplay='autoplay' @getNoticeDet="getNoticeDet"></h-notice>
  79. </view>
  80. <view class="addbox mb26">
  81. <view class="adda bga" v-if="checkPermi(['system:application:add'])&&checkPermi(['system:registered:user'])" @click="getProveFn">
  82. <image :src="haddaimg"></image>
  83. <view class="tit">业务申报</view>
  84. <view class="txt">在线填写</view>
  85. </view>
  86. <view class="adda bgb" @click="getBuszcListFn" v-if="checkPermi(['system:application:list'])&&checkPermi(['system:registered:user'])">
  87. <image :src="haddbimg"></image>
  88. <view class="tit">暂存申报</view>
  89. <view class="txt">继续填报</view>
  90. </view>
  91. <!-- 普通客户 -->
  92. <view class="adda bgc" @click="getBusListFn(0,'my')" v-if="checkPermi(['system:application:list'])&&checkPermi(['system:registered:user'])">
  93. <image :src="haddcimg"></image>
  94. <view class="tit">我的申报</view>
  95. <view class="txt">查看进度</view>
  96. </view>
  97. <view class="adda bgd" @click="getBushszListFn" v-if="checkPermi(['system:application:list'])">
  98. <image :src="hadddimg"></image>
  99. <block v-if="checkPermi(['system:system:user'])">
  100. <view class="tit">回收站</view>
  101. <view class="txt">一键找回</view>
  102. </block>
  103. <block v-else-if="checkPermi(['system:registered:user'])">
  104. <view class="tit">作废申请</view>
  105. <view class="txt">查看详情</view>
  106. </block>
  107. </view>
  108. </view>
  109. <view class="flexcj tabt pb12" v-if="checkPermi(['system:remind:list'])">
  110. <view class="left">待办提醒(<text>{{total}}</text>)</view>
  111. <view class="right flexc" @click="getBusListFn(0)" v-if="checkPermi(['system:application:list'])">更多<image :src="rimg"></image></view>
  112. </view>
  113. </view>
  114. </view>
  115. </view>
  116. <!-- 代办提醒 -->
  117. <view class="hnbox" v-if="checkPermi(['system:remind:list'])">
  118. <view class="hntabs flexc" :class="fixedflag?'tabfix':''" :style="fixedflag?'top:'+nvaHeight+'px;':''">
  119. <block v-for="(ite,idx) in tabList" :key="idx">
  120. <!-- v-if="checkPermi([ite.limit])" -->
  121. <view class="tit" :class="tabval==ite.val?'act':''" @click="getTab(ite.val)">{{ite.tit}}</view>
  122. </block>
  123. </view>
  124. <view style="height:98rpx;" v-if="fixedflag"></view>
  125. <!-- 列表 -->
  126. <view class="mt2 plr12" :style="'min-height: ' + minheight + 'px;'">
  127. <wait-list type='dbtx' :datalist="list" :wtdt="wtdt" @getDetail="getDetail"></wait-list>
  128. <view class="shax" v-if="wtdt&&list&&list.length>0" @click="getMoreDataFn">{{wtdt}}</view>
  129. </view>
  130. </view>
  131. <view class="bgbox" @click="getClose" v-if="mtype" style="z-index: 100;"></view>
  132. <view v-if="mtype" class="morebox">
  133. <view class="molists">
  134. <view v-for="(ite,idx) in linkList" :key="idx" @click="getWebUel(ite.url)">{{ite.name}}</view>
  135. </view>
  136. </view>
  137. <pop-up :type="type" :initFace="initFace" @getFaFn="getFaFn" @getClose="getClose" @getXxwsFn="getXxwsFn"></pop-up>
  138. <footers v-if="isfootflag" :footerindex="footerindex" :isHomeIndex="true"></footers>
  139. </view>
  140. </template>
  141. <script>
  142. import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
  143. import waitList from "@/components/wait/list.vue"
  144. let { calendar } = require("@/components/lunc-calendar/calendar.js");
  145. import {getRemindList,getNoticeList,getbannerList,getEwmList} from "@/api/common.js"
  146. import {getChangeFace} from "@/api/mine/card.js"
  147. import {getDictionaryFn} from "@/api/mine/register.js"
  148. import {getHyperlinkList} from "@/api/mine/work.js"
  149. import popUp from "@/components/popup/popup.vue"
  150. import banner from "@/components/toptab/banner.vue"
  151. import hNotice from '@/components/swiper/notice.vue'
  152. import footers from '@/components/footer/footer.vue'
  153. import self from '@/utils/location.js';
  154. import config from '@/config'
  155. const baseUrl = config.baseUrl
  156. export default {
  157. components:{banner,hNotice,waitList,footers,popUp},
  158. data(){
  159. return{
  160. footerindex:'home',
  161. isfootflag:true,
  162. backgroundColor:'transparent',
  163. bgimg:require("@/static/images/navbg.png"),
  164. adrimg:require("@/static/images/home/adr.png"),
  165. noticeimg:require("@/static/images/home/notice.png"),
  166. secimg:require("@/static/images/home/search.png"),
  167. topaimg:require("@/static/images/home/topa.png"),
  168. topbimg:require("@/static/images/home/topb.png"),
  169. topcimg:require("@/static/images/home/topc.png"),
  170. topdimg:require("@/static/images/home/topd.png"),
  171. topeimg:require("@/static/images/home/tope.png"),
  172. topfimg:require("@/static/images/home/topa.png"),
  173. topgimg:require("@/static/images/home/topg.png"),
  174. tophimg:require("@/static/images/home/toph.png"),
  175. haddaimg:require("@/static/images/home/hadda.png"),
  176. haddbimg:require("@/static/images/home/haddb.png"),
  177. haddcimg:require("@/static/images/home/haddc.png"),
  178. hadddimg:require("@/static/images/home/haddd.png"),
  179. codeimg:require("@/static/images/home/scan.png"),
  180. rimg:require("@/static/images/home/rimg.png"),
  181. noticelist:[],
  182. autoplay:true,
  183. list:[],
  184. pageSize: 10,
  185. pageNum: 1,
  186. reachflag: true,
  187. wtdt:'加载更多',
  188. nvaHeight:44,
  189. minheight:0,
  190. listTop:0,//距离顶部的距离
  191. fixedflag:false,
  192. tabval:0,
  193. total:0,
  194. tabList:[{tit:'全部',val:0},{tit:'申报审核',val:1},{tit:'担保初审',val:2},{tit:'尽职调查',val:3},{tit:'评审会',val:4},{tit:'签署合同',val:5},],
  195. usename:'',
  196. type:'',//zcta 暂存信息
  197. zcid:'',//暂存id
  198. userId:this.$store.state.user.userId,
  199. initFace:'Y',//initFace Y不需要,N需要人脸认证
  200. bannerlist:[],
  201. metaInfo:'',
  202. mtype:false,
  203. martopHeight:270,
  204. city:'',
  205. }
  206. },
  207. onPageScroll(e) {
  208. var scrollTop = Number(e.scrollTop);
  209. var listTop=Number(this.listTop)-Number(this.nvaHeight)
  210. if (scrollTop <=this.nvaHeight) {
  211. const opacity = scrollTop / 100 // 计算透明度值
  212. const color = `rgba(4, 145, 253, ${opacity})`
  213. this.backgroundColor = color // 更新盒子背景颜色
  214. } else {
  215. this.backgroundColor = '#00A9F0'
  216. }
  217. if(scrollTop>listTop){
  218. this.fixedflag=true
  219. }else{
  220. this.fixedflag=false
  221. }
  222. },
  223. onUnload() {
  224. uni.$off('refreshdatalist')
  225. },
  226. onShow() {
  227. if(checkPermi(['system:registered:user'])&&!checkPermi(['system:system:user'])){
  228. this.initFace=this.$store.state.user.initFace;
  229. }
  230. },
  231. onLoad: function() {
  232. uni.$on('refreshdatalist',(e) => {
  233. this.getrefreshData()
  234. })
  235. // this.init()
  236. var that=this;
  237. // #ifndef H5
  238. self.getLocation(function(res){
  239. if(res==-1){
  240. }else{
  241. that.city=res.city;
  242. // that.temperature=res.temperature;
  243. // that.weather=res.weather;
  244. // that.weathericon=res.icon;
  245. }
  246. })
  247. // #endif
  248. if(checkPermi(['system:remind:list'])){
  249. this.getDataFn()
  250. }
  251. if(checkPermi(['system:hyperlink:list'])){
  252. this.getHyperlinkList()
  253. }
  254. this.getNoticeFn()
  255. this.getbannerList()
  256. uni.getSystemInfo({
  257. success: (e) => {
  258. this.nvaHeight = Number(e.statusBarHeight)+44;
  259. this.minheight = e.screenHeight - Number(this.nvaHeight)- 100;
  260. this.martopHeight=450-Number(this.nvaHeight*2)-16
  261. }
  262. })
  263. },
  264. mounted() {
  265. var that=this;
  266. setTimeout(function(){
  267. that.getHeightFn()
  268. },200)
  269. },
  270. // 上拉触底加载更多触发事件
  271. onReachBottom() {
  272. // if (this.reachflag) {
  273. // this.pageNum++
  274. // this.getDataFn()
  275. // }
  276. },
  277. methods:{
  278. checkPermi, checkRole,
  279. getClose(){
  280. this.type='';
  281. this.mtype=false;
  282. this.initFace='Y';
  283. this.$store.dispatch('checkInitFace', this.initFace).then(() => {
  284. })
  285. },
  286. getXxwsFn(){
  287. this.$tab.navigateTo(`/work/pages/prove/index`)
  288. },
  289. getMoreDataFn(){
  290. if (this.reachflag) {
  291. this.pageNum++
  292. this.getDataFn()
  293. }
  294. },
  295. getMoreFn(){
  296. console.log(123)
  297. this.mtype=true;
  298. },
  299. getWebUel(url){
  300. this.mtype=false;
  301. this.$tab.navigateTo("/pages/common/webview/index?url="+url)
  302. },
  303. // 外部链接
  304. getHyperlinkList(){
  305. var params={
  306. type:1
  307. }
  308. getHyperlinkList(params).then(res=>{
  309. if(res.code==200){
  310. this.linkList=res.rows
  311. }
  312. })
  313. },
  314. getFaFn(type,ptype){
  315. if(ptype=='zcta'){
  316. if(type=='new'){
  317. this.$tab.navigateTo("/work/pages/prove/zctype")
  318. }else{
  319. var obj={
  320. type:'edit',
  321. id:this.zcid,
  322. }
  323. this.$tab.navigateTo('/work/pages/business/add?data='+encodeURIComponent(JSON.stringify(obj)))
  324. }
  325. }
  326. this.type='';
  327. },
  328. getFace(){
  329. var that=this;
  330. var resparams={
  331. userId:that.userId,
  332. initFace:'N'
  333. }
  334. getChangeFace(resparams).then(v=>{
  335. if(v.code==200){
  336. that.$store.dispatch('GetInfo').then(vres => {
  337. // 添加企业
  338. // this.$tab.reLaunch('/pages/index/index')
  339. console.log(vres,2)
  340. })
  341. }
  342. })
  343. return
  344. },
  345. getConfirm(){
  346. this.$tab.reLaunch('/pages/custom/index?name='+this.usename)
  347. },
  348. getProveFn(){
  349. if(checkPermi(['system:registered:user'])&&!checkPermi(['system:system:user'])){
  350. this.$store.dispatch('GetInfo').then(vres => {
  351. // 添加企业
  352. this.initFace=this.$store.state.user.initFace;
  353. if(this.initFace=='Y'){
  354. this.$tab.navigateTo("/work/pages/prove/zctype")
  355. }
  356. })
  357. }else{
  358. this.$tab.navigateTo("/work/pages/prove/zctype")
  359. }
  360. },
  361. getBusListFn(type,from){
  362. // this.$tab.navigateTo("/work/pages/business/list?type="+type)
  363. if(from){
  364. this.$tab.navigateTo("/work/pages/business/list?from=my&type=0")
  365. }else{
  366. this.$tab.navigateTo("/work/pages/business/list?type="+type)
  367. }
  368. },
  369. getBuszcListFn(){
  370. this.$tab.navigateTo("/work/pages/business/zclist")
  371. },
  372. getBushszListFn(){
  373. this.$tab.navigateTo("/work/pages/business/hszlist")
  374. },
  375. getDown(e){
  376. uni.showLoading({
  377. title: '加载中'
  378. });
  379. var url=baseUrl+e;
  380. let index1 = e.lastIndexOf("."); // 得到一个索引值
  381. let index2 = e.length;
  382. let type = e.substring(index1, index2);
  383. if ((type.indexOf('jpg') > -1 || type.indexOf('jpeg') > -1 || type.indexOf('png') > -1)) {
  384. uni.previewImage({
  385. current: 0,
  386. urls: [url],
  387. // background: '#ffffff'
  388. });
  389. uni.hideLoading();
  390. } else {
  391. uni.downloadFile({
  392. url: url,//文件的下载路径
  393. success(result) {
  394. uni.hideLoading()
  395. var filePath = result.tempFilePath;
  396. uni.openDocument({
  397. filePath: filePath,
  398. showMenu: true,
  399. success: function (res) {
  400. // console.log('打开文档成功');
  401. }
  402. });
  403. },
  404. fail(res) {uni.hideLoading()}
  405. })
  406. }
  407. },
  408. getScanFn(){
  409. // 扫码识别
  410. var that = this;
  411. uni.scanCode({
  412. onlyFromCamera: true,
  413. autoZoom:false,
  414. scanType: ['qrCode'],
  415. success: function(red) {
  416. let result = red.result;
  417. var a=JSON.parse(result)
  418. // console.log(a)
  419. if (typeof result == 'string') {
  420. try {
  421. //type1,认证,2 文件
  422. if(a.type==1){
  423. that.$tab.navigateTo(`/work/pages/prove/index`)
  424. }else if(a.type==2){
  425. // {"type":"2","loanApplicationNumber":"RZDB202405281425037292766","bigType":"c","fileType":"dbyxh"},
  426. var params={
  427. loanApplicationNumber:a.loanApplicationNumber,
  428. bigType:a.bigType,
  429. type:a.fileType,
  430. }
  431. getEwmList(params).then(res=>{
  432. if(res.code==200){
  433. var data=res.data;
  434. if(data.url){
  435. that.getDown(data.url)
  436. }
  437. }
  438. })
  439. }else{
  440. }
  441. } catch (e) {
  442. uni.navigateBack({
  443. delta: 1
  444. })
  445. uni.showToast({
  446. title: '扫码查询失败,请检查二维码是否正确',
  447. icon: "none"
  448. })
  449. return
  450. }
  451. }
  452. },
  453. fail: function(e) {
  454. if (e && e.errMsg && e.errMsg.indexOf('scanCode:fail cancel') != -1) {
  455. return;
  456. }
  457. uni.showToast({
  458. title: '扫码失败',
  459. icon: "none"
  460. })
  461. },
  462. });
  463. },
  464. getLedgerFn(){
  465. this.$toast('功能正在开发中~')
  466. // this.$tab.navigateTo("/work/pages/file/ledgertable")
  467. },
  468. getFileFn(){
  469. this.$tab.navigateTo("/work/pages/file/list")
  470. },
  471. getNoticeDet(e){
  472. this.$tab.navigateTo("/pages/index/noticedetail?type=xttz&id="+e)
  473. },
  474. getDetail(e){
  475. // this.$tab.navigateTo("/pages/index/noticedetail?type=dbtz&id="+e)
  476. this.$tab.navigateTo("/work/pages/business/details?id="+e)
  477. },
  478. getTab(idx){
  479. this.tabval=idx;
  480. this.getrefreshData()
  481. },
  482. getrefreshData(){
  483. this.pageNum=1;
  484. this.list=[];
  485. this.reachflag=true;
  486. this.getDataFn()
  487. },
  488. getHeightFn(){
  489. let query = uni.createSelectorQuery().in(this);
  490. //需要给黄色区域设置一个id标识,在这里是demo
  491. query.select('.zxtop').boundingClientRect(data => {
  492. // console.log(data)
  493. var top=data.top<0 ? -data.top : data.top;
  494. this.listTop = data.height//赋值,待会要用
  495. if (top <=this.nvaHeight) {
  496. const opacity = top / 100 // 计算透明度值
  497. const color = `rgba(4, 145, 253, ${opacity})`
  498. this.backgroundColor = color // 更新盒子背景颜色
  499. } else {
  500. this.backgroundColor = '#00A9F0'
  501. }
  502. }).exec();
  503. },
  504. init(){
  505. // 记录来源
  506. getDictionaryFn('jluly').then(res=>{
  507. if(res.code==200){
  508. this.adrlist = res.data.map(v => {
  509. return {
  510. dictLabel: v.dictLabel,
  511. dictValue: v.dictValue
  512. }
  513. })
  514. }
  515. })
  516. },
  517. time() {
  518. var date = new Date();
  519. var y = date.getFullYear();
  520. var m = date.getMonth() + 1;
  521. var d = date.getDate();
  522. let lunar = calendar.solar2lunar(y, m, d); //农历
  523. this.lunar=lunar.IMonthCn+lunar.IDayCn;
  524. this.daytime=m+'月'+d+"日";
  525. // var h = date.getHours();
  526. // var min = date.getMinutes();
  527. // var s = date.getSeconds();
  528. // var week = date.getDay(); //获取当前星期X(0-6,0代表星期天)
  529. // var weeks = ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"];
  530. // var yearStr = y + '-' + (m < 10 ? ('0' + m) : m) + '-' + (d < 10 ? ('0' + d) : d)
  531. // var timeStr = (h < 10 ? ('0' + h) : h) + ':' + (min < 10 ? ('0' + min) : min) + ':' + (s < 10 ? (
  532. // '0' + s) : s);
  533. // this.kaTime = yearStr + ' ' + timeStr;
  534. },
  535. getNoticeFn(){
  536. var params={
  537. pageSize:10,
  538. pageNum: 1,
  539. }
  540. getNoticeList(params).then(res=>{
  541. if(res.code==200){
  542. this.noticelist = res.rows;
  543. }else{
  544. this.$toast(res.msg)
  545. }
  546. })
  547. },
  548. getbannerList(){
  549. getbannerList().then(res=>{
  550. if(res.code==200){
  551. var data=res.rows;
  552. var newArr=[];
  553. data.forEach(ite=>{
  554. if(ite.imgUrl){
  555. newArr=newArr.concat(ite.imgUrl.split(','))
  556. }
  557. })
  558. this.bannerlist=newArr;
  559. }
  560. })
  561. },
  562. getDataFn(){
  563. var params={
  564. pageSize:this.pageSize,
  565. pageNum: this.pageNum,
  566. userId:this.userId,
  567. }
  568. if(this.tabval&&this.tabval!=0){
  569. params.remindType=this.tabval
  570. }
  571. getRemindList(params).then(res=>{
  572. if(res.code==200){
  573. this.total=res.total||0
  574. if (res.rows.length < this.pageSize) {
  575. this.reachflag = false
  576. this.wtdt = '到底了~';
  577. } else {
  578. var num = parseInt(res.rows.length) + parseInt(this.pageSize) * parseInt(this.pageNum - 1)
  579. if (num < res.total) {
  580. this.reachflag = true
  581. this.wtdt = '加载更多'
  582. } else {
  583. this.reachflag = false
  584. this.wtdt = '到底了~';
  585. }
  586. }
  587. if (this.pageNum == 1) {
  588. this.list = res.rows;
  589. } else {
  590. this.list = this.list.concat(res.rows)
  591. }
  592. }else{
  593. this.$toast(res.msg)
  594. }
  595. })
  596. },
  597. },
  598. }
  599. </script>
  600. <style>
  601. page{background-color: #FFFFFF;}
  602. </style>
  603. <style lang="scss" scoped>
  604. .navbox /deep/ .uni-navbar__header-container {align-items: center;padding-left: 0;}
  605. .navbox{position: fixed;left: 0;right: 0;top: 0;z-index: 4;
  606. .topl{padding-left: 16rpx;overflow: hidden;
  607. image{width: 30rpx;height: 38rpx;margin-right: 18rpx;flex: 0 0 auto;}
  608. view{font-weight: bold;font-size: 26rpx;color: #FFFFFF;}
  609. }
  610. }
  611. .serbox{
  612. .topc{border-radius: 34rpx;height:68rpx;box-sizing: border-box;padding:0 32rpx 0 32rpx ;position: relative;flex:1;background-color: #FFFFFF;margin-right: 20rpx;
  613. input{font-weight: 500;font-size: 26rpx;color: #222327;}
  614. image{width: 30rpx;height: 30rpx;margin-right: 24rpx;flex: 0 0 auto;}
  615. }
  616. .topr{width: 48rpx;height: 38rpx;position: relative;
  617. image{width: 36rpx;height: 38rpx;margin: 0 auto;}
  618. // .cir{background: #FF4747;font-size: 14rpx;color: #FFFFFF;border-radius: 50%;border: 2rpx solid #FFFFFF;min-width: 20rpx;height: 20rpx;
  619. // position: absolute;right: -5rpx;top: -5rpx;text-align: center;line-height: 16rpx;
  620. // }
  621. // .cir{width: 14rpx;height: 14rpx;background: #DF0024;border-radius: 50%;position: absolute;right: -7rpx;top: -7rpx;}
  622. }
  623. }
  624. .zxbox{
  625. .bgimg{width: 100%;height: 450rpx;}
  626. //margin-top: -270rpx;
  627. .zxmain{
  628. position: relative;
  629. .banbox{width: 678rpx;height: 246rpx;margin: 0 auto;}
  630. .grid{
  631. display: flex;align-items: center;flex-wrap: wrap;
  632. .grid-item-box {display: flex;flex-direction: column;align-items: center;justify-content: center;padding: 24rpx 0 36rpx;width: 25%;box-sizing: border-box;
  633. .img{width: 46rpx;height: 46rpx;display: flex;align-items: center;justify-content: center;margin-bottom: 22rpx;
  634. .imga{width: 46rpx;height: 46rpx;}
  635. .imgb{width: 46rpx;height: 40rpx;}
  636. .imgc{width: 44rpx;height: 46rpx;}
  637. .imgd{width: 40rpx;height: 46rpx;}
  638. .imge{width: 42rpx;height: 46rpx;}
  639. .imgf{width: 44rpx;height: 40rpx;}
  640. }
  641. view{font-weight: bold;font-size: 26rpx;color: #222327;}
  642. }
  643. }
  644. .mlrbox{margin: 8rpx 36rpx 0;}
  645. .addbox{
  646. display: flex;
  647. .adda{width: 154rpx;height: 190rpx;border-radius: 20rpx;box-sizing: border-box;padding: 28rpx 0 0 20rpx;margin-right: 22rpx;
  648. &.bga{background: #FFF6F5;}
  649. &.bgb{background: #F6F8FF;}
  650. &.bgc{background: #FFF6E7;}
  651. &.bgd{background: #EFF9F6;}
  652. &:nth-child(4n){margin-right: 0;}
  653. image{width: 52rpx;height: 52rpx;margin-bottom: 12rpx;}
  654. .tit{font-weight: bold;font-size: 28rpx;color: #222327;margin-bottom: 4rpx;}
  655. .txt{font-size: 22rpx;color: #AAAAAA;}
  656. }
  657. }
  658. .tabt{
  659. .left{font-weight: bold;font-size: 36rpx;color: #222327;
  660. text{color: #FF6969;font-size: 30rpx;}
  661. }
  662. .right{font-size: 26rpx;color: #AAAAAA;
  663. image{width: 12rpx;height: 18rpx;margin-left: 14rpx;}
  664. }
  665. }
  666. }
  667. .hnbox{background-color: #ffffff;padding-bottom: 32rpx;
  668. .hntabs{padding:20rpx 12rpx 20rpx 34rpx;background-color: #ffffff;overflow: auto;
  669. &.tabfix{position: fixed;left: 0;right: 0;z-index: 4;box-shadow: 0rpx 4rpx 12rpx 0rpx rgba(196,191,191,0.22);}
  670. .tit{font-weight: 500;font-size: 26rpx;color: #252736;position: relative;margin-right: 22rpx;height: 58rpx;text-align: center;padding: 0 26rpx;background: #F6F6F6;
  671. border-radius: 30rpx;flex: 0 0 auto;line-height: 58rpx;
  672. &.act{font-weight: 500;color: #FFFFFF;background: #00A9F0;
  673. }
  674. }
  675. }
  676. }
  677. }
  678. .morebox{
  679. position: fixed;left: 0;right: 0;bottom: 0;z-index: 110;
  680. .molists{
  681. view{width: 100%;background: #ffffff;font-weight: 500;font-size: 30rpx;color: #222327;border-bottom: 2rpx solid #E6E6E6;min-height: 100rpx;display: flex;align-items: center;justify-content: center;padding: 10rpx;
  682. box-sizing: border-box;
  683. &.mcoa{color: #00A9F0;}
  684. }
  685. }
  686. }
  687. </style>