index.vue 24 KB

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