index.vue 24 KB

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