index.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746
  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="getTouBhFn">
  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. {tit:'上会投票',val:11},{tit:'保后信息',val:12},
  219. ],
  220. usename:'',
  221. type:'',//zcta 暂存信息
  222. zcid:'',//暂存id
  223. userId:this.$store.state.user.userId,
  224. initFace:'Y',//initFace Y不需要,N需要人脸认证
  225. bannerlist:[],
  226. metaInfo:'',
  227. mtype:false,
  228. martopHeight:270,
  229. city:'',
  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==11){
  510. this.$tab.navigateTo("/work/pages/business/details?id="+id+'&from=vote')
  511. }else if(remindType==12){
  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.getrefreshData()
  521. },
  522. getrefreshData(){
  523. this.pageNum=1;
  524. this.list=[];
  525. this.reachflag=true;
  526. this.getDataFn()
  527. },
  528. getHeightFn(){
  529. let query = uni.createSelectorQuery().in(this);
  530. //需要给黄色区域设置一个id标识,在这里是demo
  531. query.select('.zxtop').boundingClientRect(data => {
  532. // console.log(data)
  533. var top=data.top<0 ? -data.top : data.top;
  534. this.listTop = data.height//赋值,待会要用
  535. if (top <=this.nvaHeight) {
  536. const opacity = top / 100 // 计算透明度值
  537. const color = `rgba(4, 145, 253, ${opacity})`
  538. this.backgroundColor = color // 更新盒子背景颜色
  539. } else {
  540. this.backgroundColor = '#00A9F0'
  541. }
  542. }).exec();
  543. },
  544. init(){
  545. // 记录来源
  546. getDictionaryFn('jluly').then(res=>{
  547. if(res.code==200){
  548. this.adrlist = res.data.map(v => {
  549. return {
  550. dictLabel: v.dictLabel,
  551. dictValue: v.dictValue
  552. }
  553. })
  554. }
  555. })
  556. },
  557. time() {
  558. var date = new Date();
  559. var y = date.getFullYear();
  560. var m = date.getMonth() + 1;
  561. var d = date.getDate();
  562. let lunar = calendar.solar2lunar(y, m, d); //农历
  563. this.lunar=lunar.IMonthCn+lunar.IDayCn;
  564. this.daytime=m+'月'+d+"日";
  565. // var h = date.getHours();
  566. // var min = date.getMinutes();
  567. // var s = date.getSeconds();
  568. // var week = date.getDay(); //获取当前星期X(0-6,0代表星期天)
  569. // var weeks = ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"];
  570. // var yearStr = y + '-' + (m < 10 ? ('0' + m) : m) + '-' + (d < 10 ? ('0' + d) : d)
  571. // var timeStr = (h < 10 ? ('0' + h) : h) + ':' + (min < 10 ? ('0' + min) : min) + ':' + (s < 10 ? (
  572. // '0' + s) : s);
  573. // this.kaTime = yearStr + ' ' + timeStr;
  574. },
  575. getNoticeFn(){
  576. var params={
  577. pageSize:10,
  578. pageNum: 1,
  579. }
  580. getNoticeList(params).then(res=>{
  581. if(res.code==200){
  582. this.noticelist = res.rows;
  583. }else{
  584. this.$toast(res.msg)
  585. }
  586. })
  587. },
  588. getbannerList(){
  589. getbannerList().then(res=>{
  590. if(res.code==200){
  591. var data=res.rows;
  592. var newArr=[];
  593. data.forEach(ite=>{
  594. if(ite.imgUrl){
  595. newArr=newArr.concat(ite.imgUrl.split(','))
  596. }
  597. })
  598. this.bannerlist=newArr;
  599. }
  600. })
  601. },
  602. getDataFn(){
  603. var params={
  604. pageSize:this.pageSize,
  605. pageNum: this.pageNum,
  606. userId:this.userId,
  607. }
  608. if(this.tabval&&this.tabval!=0){
  609. params.remindType=this.tabval
  610. }
  611. getRemindList(params).then(res=>{
  612. if(res.code==200){
  613. this.total=res.total||0
  614. if (res.rows.length < this.pageSize) {
  615. this.reachflag = false
  616. this.wtdt = '到底了~';
  617. } else {
  618. var num = parseInt(res.rows.length) + parseInt(this.pageSize) * parseInt(this.pageNum - 1)
  619. if (num < res.total) {
  620. this.reachflag = true
  621. this.wtdt = '加载更多'
  622. } else {
  623. this.reachflag = false
  624. this.wtdt = '到底了~';
  625. }
  626. }
  627. if (this.pageNum == 1) {
  628. this.list = res.rows;
  629. } else {
  630. this.list = this.list.concat(res.rows)
  631. }
  632. }else{
  633. this.$toast(res.msg)
  634. }
  635. })
  636. },
  637. },
  638. }
  639. </script>
  640. <style>
  641. page{background-color: #FFFFFF;}
  642. </style>
  643. <style lang="scss" scoped>
  644. .navbox /deep/ .uni-navbar__header-container {align-items: center;padding-left: 0;}
  645. .swiper{height: 324rpx;}
  646. .navbox{position: fixed;left: 0;right: 0;top: 0;z-index: 4;
  647. .topl{padding-left: 16rpx;overflow: hidden;
  648. image{width: 30rpx;height: 38rpx;margin-right: 18rpx;flex: 0 0 auto;}
  649. view{font-weight: bold;font-size: 26rpx;color: #FFFFFF;}
  650. }
  651. }
  652. .serbox{
  653. .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;
  654. input{font-weight: 500;font-size: 26rpx;color: #222327;flex: 1;}
  655. image{width: 30rpx;height: 30rpx;margin-right: 24rpx;flex: 0 0 auto;}
  656. }
  657. .topr{width: 48rpx;height: 38rpx;position: relative;
  658. image{width: 36rpx;height: 38rpx;margin: 0 auto;}
  659. // .cir{background: #FF4747;font-size: 14rpx;color: #FFFFFF;border-radius: 50%;border: 2rpx solid #FFFFFF;min-width: 20rpx;height: 20rpx;
  660. // position: absolute;right: -5rpx;top: -5rpx;text-align: center;line-height: 16rpx;
  661. // }
  662. // .cir{width: 14rpx;height: 14rpx;background: #DF0024;border-radius: 50%;position: absolute;right: -7rpx;top: -7rpx;}
  663. }
  664. }
  665. .zxbox{
  666. .bgimg{width: 100%;height: 450rpx;}
  667. //margin-top: -270rpx;
  668. .zxmain{
  669. position: relative;
  670. .banbox{width: 678rpx;height: 246rpx;margin: 0 auto;}
  671. .grid{
  672. display: flex;align-items: center;flex-wrap: wrap;
  673. .grid-item-box {display: flex;flex-direction: column;align-items: center;justify-content: center;padding: 24rpx 0 36rpx;width: 25%;box-sizing: border-box;
  674. .img{width: 46rpx;height: 46rpx;display: flex;align-items: center;justify-content: center;margin-bottom: 22rpx;
  675. .imga{width: 46rpx;height: 46rpx;}
  676. .imgb{width: 46rpx;height: 40rpx;}
  677. .imgc{width: 44rpx;height: 46rpx;}
  678. .imgd{width: 40rpx;height: 46rpx;}
  679. .imge{width: 42rpx;height: 46rpx;}
  680. .imgf{width: 44rpx;height: 40rpx;}
  681. .imgg{width: 44rpx;height: 44rpx;}
  682. }
  683. view{font-weight: bold;font-size: 26rpx;color: #222327;}
  684. }
  685. }
  686. .mlrbox{margin: 8rpx 36rpx 0;}
  687. .addbox{
  688. display: flex;
  689. .adda{width: 154rpx;height: 190rpx;border-radius: 20rpx;box-sizing: border-box;padding: 28rpx 0 0 20rpx;margin-right: 22rpx;
  690. &.bga{background: #FFF6F5;}
  691. &.bgb{background: #F6F8FF;}
  692. &.bgc{background: #FFF6E7;}
  693. &.bgd{background: #EFF9F6;}
  694. &:nth-child(4n){margin-right: 0;}
  695. image{width: 52rpx;height: 52rpx;margin-bottom: 12rpx;}
  696. .tit{font-weight: bold;font-size: 28rpx;color: #222327;margin-bottom: 4rpx;}
  697. .txt{font-size: 22rpx;color: #AAAAAA;}
  698. }
  699. }
  700. .tabt{
  701. .left{font-weight: bold;font-size: 36rpx;color: #222327;
  702. text{color: #FF6969;font-size: 30rpx;}
  703. }
  704. .right{font-size: 26rpx;color: #AAAAAA;
  705. image{width: 12rpx;height: 18rpx;margin-left: 14rpx;}
  706. }
  707. }
  708. }
  709. .hnbox{background-color: #ffffff;padding-bottom: 32rpx;
  710. .hntabs{padding:20rpx 12rpx 20rpx 34rpx;background-color: #ffffff;overflow: auto;
  711. &.tabfix{position: fixed;left: 0;right: 0;z-index: 4;box-shadow: 0rpx 4rpx 12rpx 0rpx rgba(196,191,191,0.22);}
  712. .tit{font-weight: 500;font-size: 26rpx;color: #252736;position: relative;margin-right: 22rpx;height: 58rpx;text-align: center;padding: 0 26rpx;background: #F6F6F6;
  713. border-radius: 30rpx;flex: 0 0 auto;line-height: 58rpx;
  714. &.act{font-weight: 500;color: #FFFFFF;background: #00A9F0;
  715. }
  716. }
  717. }
  718. }
  719. }
  720. .morebox{
  721. position: fixed;left: 0;right: 0;bottom: 0;z-index: 110;
  722. .molists{
  723. 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;
  724. box-sizing: border-box;
  725. &.mcoa{color: #00A9F0;}
  726. }
  727. }
  728. }
  729. </style>