index.vue 24 KB

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