1 line
23 KiB
Plaintext
1 line
23 KiB
Plaintext
{"version":3,"sources":["uni-app:///main.js","webpack:///D:/chenq/chen/hengmei/hengmei/pages/tabbar/my/my.vue?4030","webpack:///D:/chenq/chen/hengmei/hengmei/pages/tabbar/my/my.vue?c6a6","webpack:///D:/chenq/chen/hengmei/hengmei/pages/tabbar/my/my.vue?5e7b","webpack:///D:/chenq/chen/hengmei/hengmei/pages/tabbar/my/my.vue?e076","uni-app:///pages/tabbar/my/my.vue"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,0F,6FAFmBA,EAAE,CAACC,iCAAH,GAAuCC,mBAAvC;AAGnBC,UAAU,CAACC,WAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAA+G;AAC/G;AACsD;AACL;;;AAGjD;AACsL;AACtL,gBAAgB,uLAAU;AAC1B,EAAE,wEAAM;AACR,EAAE,6EAAM;AACR,EAAE,sFAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,iFAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACtBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACjBA;AAAA;AAAA;AAAA;AAA8rB,CAAgB,8pBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC4FltB;AACA,sE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eACA,EACA,IADA,kBACA,CACA,SACA,aADA,EAEA,0CAFA,EAGA,WACA,2BADA,EAEA,yBAFA,EAGA,2BAHA,CAHA,EAQA,YARA,EAQA;AACA,qBACA,uEADA,EAEA,kEAFA,EAGA,+DAHA,CATA,EAcA,YACA,0DADA,EAEA,wDAFA,EAGA,yDAHA,EAIA,wDAJA,EAKA,6DALA,EAMA,yDANA,EAOA,6DAPA,CAdA,EAuBA,eAvBA,EAuBA;AACA,kBAxBA,EAwBA;AACA,qCAzBA,EA0BA,iCA1BA,EA2BA,aA3BA,EA2BA;AACA,mBA5BA,EA4BA;AACA,qBA7BA,EA6BA;AACA,kBA9BA,EA8BA;AACA,mBA/BA,EAgCA,WAhCA,EAiCA,aAjCA,EAkCA,cAlCA,EAmCA,YAnCA,EAoCA,UApCA,EAqCA,YArCA,GAuCA,CAzCA,EA0CA,+BACA;AACA,kCAFA,CAGA;AACA,GA9CA,EA+CA,MA/CA,oBA+CA,kBACA,+BADA,CACA;AACA,qBACA,kCAHA,CAGA;AACA,yEACA;AACA,0BACA,2BACA;AACA,sDACA,wBACA,eACA,oCADA,EAEA,4CAFA,GAIA,yBACA,0BACA,6BACA,CACA,6BACA,0BACA,6BACA,CACA,4BACA,0BACA,6BACA,CACA,yBACA,0BACA,6BACA,CACA,uBACA,0BACA,6BACA,CACA,CA1BA,EA2BA,iDACA,6CACA,kDACA,8CACA,CACA,CACA,CACA,CAvCA,EAuCA,mBAvCA,EAwCA,CA3FA,EA4FA,MA5FA,oBA4FA,mBACA,sCACA,qCACA,yDACA,uCACA,0BACA,CAHA,EAGA,IAHA,GAIA,CACA,gBACA,eACA,CAtGA,EAuGA;AACA,UADA,oBACA;AACA;AACA,0BADA;;AAGA,KALA;AAMA,YANA,sBAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAnBA;AAoBA,KA3BA;AA4BA,YA5BA,oBA4BA,CA5BA,EA4BA;AACA;AACA,KA9BA;AA+BA,WA/BA,qBA+BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAHA,EAGA,KAHA,CAGA,mBAHA;AAIA;AACA,OARA,EAQA,mBARA;AASA,KAzCA;AA0CA,aA1CA,uBA0CA;AACA;AACA;AACA;AACA;AACA,kDAFA,CAEA;AACA,qDAHA,CAGA;AACA,8DAJA,CAIA;AACA,6DALA,CAKA;AACA,gDANA,CAMA;AACA,gDAPA,CAOA;AACA,oDARA,CAQA;AACA,8CATA,CASA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAJA,MAIA;AACA;AACA,OAxBA,EAwBA,mBAxBA;AAyBA,KApEA;AAqEA,cArEA,sBAqEA,KArEA,EAqEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBADA;;AAGA,KAnFA;AAoFA,eApFA,uBAoFA,KApFA,EAoFA;AACA;AACA;AACA;AACA;AACA,oDADA;;AAGA;AACA;AACA;AACA,sDADA;;AAGA;AACA;AACA;AACA,+CADA,EACA;AACA,uCAFA,EAEA;AACA,iCAHA,EAGA;AACA,gCAJA,EAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAFA,EAEA,IAFA;AAGA;AACA,eARA,EAQA,mBARA;AASA,aAhBA;;AAkBA,gBA9BA;;AAgCA,KAtHA;AAuHA,aAvHA,qBAuHA,KAvHA,EAuHA;AACA;AACA;AACA;AACA;AACA,oDADA;;AAGA;AACA;AACA;AACA;AACA;AACA,4CADA;;AAGA,gBAZA;;AAcA,KAvIA;AAwIA,gBAxIA,0BAwIA;AACA;AACA;AACA,4CADA;;AAGA,KA7IA,EAvGA,E","file":"pages/tabbar/my/my.js","sourcesContent":["import 'uni-pages';wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/tabbar/my/my.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./my.vue?vue&type=template&id=19e17412&\"\nvar renderjs\nimport script from \"./my.vue?vue&type=script&lang=js&\"\nexport * from \"./my.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/tabbar/my/my.vue\"\nexport default component.exports","export * from \"-!../../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./my.vue?vue&type=template&id=19e17412&\"","var components\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n if (!_vm._isMounted) {\n _vm.e0 = function($event) {\n _vm.isQrcode = true\n }\n\n _vm.e1 = function($event) {\n _vm.isQrcode = false\n }\n }\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./my.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./my.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view>\r\n\t\t<!-- 状态栏 -->\r\n\t\t<navigator open-type=\"navigateBack\"/>\r\n\t\t<status-nav :backgroudColor=\"publicColor\" :tabcolor=\"publicColor\" :statusTitle=\"true\" :statusBack=\"false\"></status-nav>\r\n\t\t<view class=\"mar-zy32 posir pad-x260\" :style=\"{paddingTop:statusHNH+'px'}\">\r\n\t\t\t<view class=\"bacf radius20 posir gao\" style=\"box-shadow: 0px 16rpx 30rpx rgba(141, 141, 141, 0.26);\">\r\n\t\t\t\t<view class=\"posia\" :style=\"{top:`-${gaoh*0.4}px`,height:gaoh+'px',background:publicColor}\" style=\"left: -32rpx;right: -32rpx;z-index: -1;\"></view>\r\n\t\t\t\t<view class=\"disjbac\">\r\n\t\t\t\t\t<view class=\"disac\">\r\n\t\t\t\t\t\t<!-- 头像 -->\r\n\t\t\t\t\t\t<image class=\"mar-sx30\" :src=\"userInfo.headimgurl || ''\" style=\"width:120rpx;height: 120rpx;border-radius: 100%;margin-left: 15rpx;z-index: 1;\" mode=\"aspectFill\"></image>\r\n\t\t\t\t\t\t<view class=\"mar-z30\">\r\n\t\t\t\t\t\t\t<!-- 昵称 -->\r\n\t\t\t\t\t\t\t<view class=\"fon36 bold\">{{userInfo.nickname || ''}}</view>\r\n\t\t\t\t\t\t\t<view class=\"disac mar-s10\" v-if=\"userInfo.mobile!==''\">\r\n\t\t\t\t\t\t\t\t<image src=\"/static/public/phone.png\" style=\"width: 14rpx;height: 20rpx;\" mode=\"\"></image>\r\n\t\t\t\t\t\t\t\t<!-- 手机号 -->\r\n\t\t\t\t\t\t\t\t<view class=\"fon24 col3 mar-z10\">{{userInfo.mobile}}</view>\r\n\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t</view> \r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"mar-y25 disac\">\r\n\t\t\t\t\t\t<!-- 二维码 -->\r\n\t\t\t\t\t\t<image @tap=\"isQrcode=true\" src=\"/static/public/eqr.png\" style=\"width: 43rpx;height: 43rpx;z-index: 1;\" mode=\"\"></image>\r\n\t\t\t\t\t\t<!-- 前进键 -->\r\n\t\t\t\t\t\t<view @tap=\"goNodifyData\" style=\"width: 50rpx;position: relative;z-index: 1;justify-content: flex-end;\" class=\"disac\">\r\n\t\t\t\t\t\t\t<image class=\"\" src=\"/static/public/nextM.png\" style=\"width: 35rpx;height: 35rpx;z-index: 1;\" mode=\"aspectFill\"></image>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"disja posir\" style=\"z-index: 1;\">\r\n\t\t\t\t\t<view @tap=\"choosesjf(indext)\" class=\"disac fc flexs\" style=\"width: 33%;\" v-for=\"(itemt,indext) in tongList\" :key=\"indext\">\r\n\t\t\t\t\t\t<view class=\"fon28 bold mar-sx20 clips1\">{{itemt.num}}<text v-if=\"indext==2\">人</text></view>\r\n\t\t\t\t\t\t<view class=\"fon28 mar-x25\">{{itemt.title}}</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<image class=\"posia\" style=\"top: 0;left: 0;right: 0;bottom: 0;width: 100%;height: 100%;z-index: 0;\" src=\"/static/public/mybt.png\" mode=\"\"></image>\r\n\t\t\t</view>\r\n\t\t\t<!-- 员工功能 v-if=\"userInfo.is_staff && yuanList.length!=0\" -->\r\n\t\t\t<view v-if=\"userInfo.is_staff==1\" class=\"bacf radius20 mar-s20 pad20\">\r\n\t\t\t\t<view class=\"mar-x30 fon28 bold col3\">员工功能</view>\r\n\t\t\t\t<view class=\"disac yuan-box\">\r\n\t\t\t\t\t<view @tap=\"chooseYitem(indexy)\" style=\"width: 33%;display: flex;justify-content: center;align-items: center;position: relative;\" v-for=\"(itemy,indexy) in yuanList\" :key=\"indexy\">\r\n\t\t\t\t\t\t<view class=\"disac fc\">\r\n\t\t\t\t\t\t\t<image :src=\"itemy.src\" style=\"width: 54rpx;height: 54rpx;\" mode=\"aspectFill\"></image>\r\n\t\t\t\t\t\t\t<view class=\"fon28 mar-s20 mar-x10\">{{itemy.title}}</view>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t<view v-if=\"indexy<(yuanList.length-1)\" style=\"height: 58rpx;border: 2rpx solid #E6E6E6;position: absolute;right: 0;\"></view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<!-- 广告 -->\r\n\t\t\t<image @tap=\"goPage\" class=\"width100 radius20 mar-sx20\" :src=\"guangImg\" style=\"height: 160rpx;\" mode=\"aspectFill\"></image>\r\n\t\t\t<!-- 功能列表 -->\r\n\t\t\t<view class=\"bacf radius20 pad-zy30\">\r\n\t\t\t\t<view @tap=\"chooseItem(indexl)\" class=\"disjbac pad-sx30 borbot\" v-for=\"(iteml,indexl) in toolsList\" :key=\"indexl\">\r\n\t\t\t\t\t<view class=\"icon-box disac\">\r\n\t\t\t\t\t\t<image class=\"mar-y20\" :src=\"iteml.src\" mode=\"\"></image>\r\n\t\t\t\t\t\t<view class=\"fon26\">{{iteml.title}}</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"disac\">\r\n\t\t\t\t\t\t<view v-if=\"iteml.num!='' && iteml.num!=0\" style=\"width: 40rpx;height: 40rpx;border-radius: 100%;background-color: #F96969;font-size: 18rpx;text-align: center;line-height: 40rpx;color: #FFFFFF;\">{{iteml.num}}</view>\t\r\n\t\t\t\t\t\t<image class=\"mar-z10\" src=\"/static/public/nexth.png\" style=\"width: 18rpx;height: 18rpx;\" mode=\"\"></image>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t\r\n\t\t<!-- 我的二维码弹框 -->\r\n\t\t<view v-if=\"isQrcode\" class=\"posAll disjcac\">\r\n\t\t\t<view>\r\n\t\t\t\t<view class=\"bacf radius20\" style=\"margin: 0 130rpx;\">\r\n\t\t\t\t\t<view class=\"fon28 col3 tc pad-s40\">我的二维码</view>\r\n\t\t\t\t\t<image :src=\"myqr\" style=\"width: 325rpx;height: 325rpx;margin: 30rpx 86rpx 68rpx 86rpx;\" mode=\"aspectFill\"></image>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"disjcac\">\r\n\t\t\t\t\t<image @tap=\"isQrcode=false\" class=\"mar-s50\" src=\"/static/public/qrcodec.png\" style=\"width: 96rpx;height: 96rpx;border-radius: 100%;\" mode=\"aspectFill\"></image>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<!-- 底部tab -->\r\n\t\t<foot-tab :titleList=\"titleList\" :imgList=\"imgList\" :newcurrent='4'></foot-tab>\r\n\t\t<!-- 用户信息授权,手机号授权 -->\r\n\t\t<auth-userInfo-mobileInfo></auth-userInfo-mobileInfo>\r\n\t\t<view v-if=\"isQian\" style=\"position: fixed;top: 50%;left: 50%;transform: translate(-50%,-50%);\">\r\n\t\t\t<view style=\"padding: 20rpx 40rpx;background-color: rgba(0,0,0,.6);color: #FFFFFF;border-radius: 6rpx;\">签到成功</view>\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\timport {base64ToPath} from '@/jsFile/base64-src.js';\r\n\timport {checkBanner} from '@/jsFile/publicAPI.js';\r\n\texport default {\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tvision:false,\r\n\t\t\t\tstatusHNH:uni.getStorageSync('statusHNH'),\r\n\t\t\t\ttongList:[\r\n\t\t\t\t\t{num:'0',title:'文章收藏'},\r\n\t\t\t\t\t{num:'0',title:'积分'},\r\n\t\t\t\t\t{num:'0',title:'我的分享'}\r\n\t\t\t\t],\r\n\t\t\t\tyuanList:[],\t//'customer-list','footmarks','scan'\r\n\t\t\t\tzanCyuanList:[\r\n\t\t\t\t\t{src:'/static/public/keh.png',title:'客户列表',rule:'customer-list'},\r\n\t\t\t\t\t{src:'/static/public/zu.png',title:'用户足迹',rule:'footmarks'},\r\n\t\t\t\t\t{src:'/static/public/scan.png',title:'扫码签到',rule:'scan'},\r\n\t\t\t\t],\r\n\t\t\t\ttoolsList:[\r\n\t\t\t\t\t{src:'/static/public/zyuy.png',title:'自助预约',num:''},\r\n\t\t\t\t\t{src:'/static/public/hb.png',title:'个人海报',num:''},\r\n\t\t\t\t\t{src:'/static/public/wsc.png',title:'文章收藏',num:''},\r\n\t\t\t\t\t{src:'/static/public/fx.png',title:'分享中心',num:''},\r\n\t\t\t\t\t{src:'/static/public/message.png',title:'消息通知',num:''},\r\n\t\t\t\t\t{src:'/static/public/ts.png',title:'投诉与建议',num:''},\r\n\t\t\t\t\t{src:'/static/public/aboutus.png',title:'关于我们',num:''},\r\n\t\t\t\t],\r\n\t\t\t\tisQrcode:false,//是否显示我的二维码\r\n\t\t\t\tuserInfo:{},//用户信息\r\n\t\t\t\tgaoh:uni.getStorageSync('gao'),\r\n\t\t\t\tmyqr:'/static/public/qrcode.png',\r\n\t\t\t\tis_worker:'',//是否为职工账号,0否(客户), 1是\r\n\t\t\t\tis_doctor:'',//是否为医生,0否,1是\r\n\t\t\t\tis_servicer:'',//是否为客服,0否,1是\r\n\t\t\t\tis_staff:'',//是否为普通员工,0否,1是\r\n\t\t\t\ttitleList:[],\r\n\t\t\t\timgList:[],\r\n\t\t\t\tisQian:false,\r\n\t\t\t\tbannerList:[],\r\n\t\t\t\tguangImg:'',\r\n\t\t\t\tisAuth:'',\r\n\t\t\t\tguanggao:''\r\n\t\t\t}\r\n\t\t},\r\n\t\tonUnload: function() {\r\n\t\t\t//相当于监听返回按钮\r\n\t\t\tlet pages = getCurrentPages();\r\n\t\t\t// console.log('pages:',pages);\r\n\t\t},\r\n\t\tonShow() {\r\n\t\t\tuni.removeStorageSync('uinfo')//清空用户缓存信息\r\n\t\t\tthis.checkInfo()\r\n\t\t\tuni.removeStorageSync('shareAll')//清空分享中心里的统计信息\r\n\t\t\tthis.$requst.post('index/mini-program-setting').then(res=>{\r\n\t\t\t\t// log('数据:',res);\r\n\t\t\t\tif(res.code==0){\r\n\t\t\t\t\tif(res.data.length!=0){\r\n\t\t\t\t\t\tif(res.data.footBar.length!=0){//底部导航\r\n\t\t\t\t\t\t\tres.data.footBar.forEach(item=>{\r\n\t\t\t\t\t\t\t\tlet newName = item.name\r\n\t\t\t\t\t\t\t\tlet newObj = {\r\n\t\t\t\t\t\t\t\t\ticonPath:this.$http + item.icon[0],\r\n\t\t\t\t\t\t\t\t\tselectedIconPath:this.$http + item.icon[1],\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(item.key==\"home\"){\r\n\t\t\t\t\t\t\t\t\tthis.imgList[0] = newObj\r\n\t\t\t\t\t\t\t\t\tthis.titleList[0] = newName\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(item.key==\"category\"){\r\n\t\t\t\t\t\t\t\t\tthis.imgList[1] = newObj\r\n\t\t\t\t\t\t\t\t\tthis.titleList[1] = newName\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(item.key==\"service\"){\r\n\t\t\t\t\t\t\t\t\tthis.imgList[2] = newObj\r\n\t\t\t\t\t\t\t\t\tthis.titleList[2] = newName\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(item.key==\"shop\"){\r\n\t\t\t\t\t\t\t\t\tthis.imgList[3] = newObj\r\n\t\t\t\t\t\t\t\t\tthis.titleList[3] = newName\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(item.key==\"my\"){\r\n\t\t\t\t\t\t\t\t\tthis.imgList[4] = newObj\r\n\t\t\t\t\t\t\t\t\tthis.titleList[4] = newName\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\tuni.setStorageSync('footTitle',this.titleList)\r\n\t\t\t\t\t\t\tuni.setStorageSync('footimg',this.imgList)\r\n\t\t\t\t\t\t\tthis.titleList = uni.getStorageSync('footTitle')\r\n\t\t\t\t\t\t\tthis.imgList = uni.getStorageSync('footimg')\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},error=>{})\r\n\t\t},\r\n\t\tonLoad() {\r\n\t\t\tif(uni.getStorageSync('gao')==''){\r\n\t\t\t\tconst query = wx.createSelectorQuery()\r\n\t\t\t\tquery.select('.gao').boundingClientRect((rect) => {\r\n\t\t\t\t\tuni.setStorageSync('gao',rect.height)\r\n\t\t\t\t\tthis.gaoh = rect.height\r\n\t\t\t\t}).exec()\r\n\t\t\t}\r\n\t\t\tthis.checkSwi()\r\n\t\t\tthis.checkGM()\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\tgoPage(){\r\n\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\turl:this.guanggao\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tcheckSwi(){\r\n\t\t\t\tcheckBanner({position:'personal-center-banner'}).then(res=>{\r\n\t\t\t\t\t// console.log('res',res);\r\n\t\t\t\t\tif(res.code==0){\r\n\t\t\t\t\t\tif(res.data.length!=0){\r\n\t\t\t\t\t\t\tthis.guangImg = this.$http + res.data[0].src\r\n\t\t\t\t\t\t\tthis.guanggao = res.data[0].url\r\n\t\t\t\t\t\t\t// res.data.forEach(item=>{\r\n\t\t\t\t\t\t\t// \tlet isVideo = false\r\n\t\t\t\t\t\t\t// \tif(item.type!='img') isVideo = true\r\n\t\t\t\t\t\t\t// \tlet banObj = {\r\n\t\t\t\t\t\t\t// \t\timgSrc:this.$http + item.src,\r\n\t\t\t\t\t\t\t// \t\turl:item.url,\r\n\t\t\t\t\t\t\t// \t\tisVideo:isVideo,\r\n\t\t\t\t\t\t\t// \t\tposter:this.$http + item.src,\r\n\t\t\t\t\t\t\t// \t}\r\n\t\t\t\t\t\t\t// \tthis.bannerList.push(banObj)\r\n\t\t\t\t\t\t\t// })\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tcancleEv(e){\r\n\t\t\t\tif(e==0) this.vision = false\r\n\t\t\t},\r\n\t\t\tcheckGM(){//查询个人二维码事件\r\n\t\t\t\tthis.$requst.post('user/personal-qr').then(res=>{\r\n\t\t\t\t\t// console.log('个人二维码:',res);\r\n\t\t\t\t\tif(res.code==0){\r\n\t\t\t\t\t\tbase64ToPath(res.data.qr).then(path => {\r\n\t\t\t\t\t\t\tthis.myqr = path\r\n\t\t\t\t\t\t\tuni.setStorageSync('imgSrc',path)\r\n\t\t\t\t\t\t}).catch(error => {})\r\n\t\t\t\t\t}\r\n\t\t\t\t},error=>{})\r\n\t\t\t},\r\n\t\t\tcheckInfo(){\r\n\t\t\t\tthis.$requst.post('user/info').then(res=>{\r\n\t\t\t\t\t// console.log('用户信息:',res);\r\n\t\t\t\t\tif(res.code==0 && res.data.length!=0) {\r\n\t\t\t\t\t\tthis.userInfo = res.data;\r\n\t\t\t\t\t\tthis.tongList[1].num = res.data.score//个人积分\r\n\t\t\t\t\t\tthis.tongList[0].num = res.data.collects//收藏总数\r\n\t\t\t\t\t\tthis.tongList[2].num = res.data.share_users.total//分享人总数\r\n\t\t\t\t\t\tthis.toolsList[4].num = res.data.unread_messages//分享人总数\r\n\t\t\t\t\t\tthis.is_worker = res.data.is_worker//是否为职工账号,0否(客户), 1是\r\n\t\t\t\t\t\tthis.is_doctor = res.data.is_doctor//是否为医生,0否,1是\r\n\t\t\t\t\t\tthis.is_servicer = res.data.is_servicer//是否为客服,0否,1是\r\n\t\t\t\t\t\tthis.is_staff = res.data.is_staff//是否为普通员工,0否,1是\r\n\t\t\t\t\t\tif(res.data.is_staff==1){\r\n\t\t\t\t\t\t\tif(this.toolsList.length!=8){\r\n\t\t\t\t\t\t\t\tthis.toolsList.push({src:'/static/public/aboutus.png',title:'客服二维码',num:''})\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tuni.setStorageSync('shareAll',res.data)\r\n\t\t\t\t\t\tif(res.data.rules.length!=0){\r\n\t\t\t\t\t\t\tlet result = this.zanCyuanList.filter(item => res.data.rules.some(itemt => itemt===item.rule))\r\n\t\t\t\t\t\t\tthis.yuanList = result\r\n\t\t\t\t\t\t\tuni.setStorageSync('rules',res.data.rules)\r\n\t\t\t\t\t\t} else this.yuanList = []\r\n\t\t\t\t\t}\r\n\t\t\t\t},error=>{})\r\n\t\t\t},\r\n\t\t\tchooseItem(index){//列表事件\r\n\t\t\t\t// console.log('当前选项:',this.toolsList[index].title);\r\n\t\t\t\tlet newUrl = ''\r\n\t\t\t\tif(index==0) newUrl = '/pagesA/makeAnPppointment/makeAnPppointment'\r\n\t\t\t\tif(index==1) newUrl = '/pagesB/personalPoster/personalPoster'\r\n\t\t\t\tif(index==2) newUrl = '/pagesB/myCollection/myCollection'\r\n\t\t\t\tif(index==3) newUrl = '/pagesB/sharingCenter/sharingCenter'\r\n\t\t\t\tif(index==4) newUrl = '/pagesB/messagecenter/messagecenter'\r\n\t\t\t\tif(index==5) newUrl = '/pagesA/suggestions/suggestions'\r\n\t\t\t\tif(index==6) newUrl = '/pagesB/aboutUs/aboutUs'\r\n\t\t\t\tif(index==7) newUrl = '/pagesB/customer/customer'\r\n\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\turl:newUrl\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tchooseYitem(index){//员工功能事件\r\n\t\t\t\t// console.log('当前选项:',this.yuanList[index].title);\r\n\t\t\t\tswitch (index){\r\n\t\t\t\t\tcase 0:\r\n\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\turl:'/pagesB/customerList/customerList'\r\n\t\t\t\t\t})\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 1:\r\n\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\turl:'/pagesB/userFootprint/userFootprint'\r\n\t\t\t\t\t})\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 2:\r\n\t\t\t\t\twx.scanCode({ // 微信扫码 调起客户端扫码界面进行扫码\r\n\t\t\t\t\t\tcomplete: (res) => {}, //接口调用结束的回调函数(调用成功、失败都会执行)\r\n\t\t\t\t\t\tfail: (res) => {}, //接口调用失败的回调函数\r\n\t\t\t\t\t\tonlyFromCamera: false, //是否只能从相机扫码,不允许从相册选择图片,这里是只允许相机扫码\r\n\t\t\t\t\t\tscanType: ['qrCode'], // scanType:扫码类型 : 二维码\r\n\t\t\t\t\t\tsuccess: (rt) => { // 接口调用成功的回调函数\r\n\t\t\t\t\t\t\tlet uc = JSON.parse(rt.result).user_coding\r\n\t\t\t\t\t\t\tthis.$requst.post('user/sign-in',{user_coding:uc}).then(res=>{\r\n\t\t\t\t\t\t\t\t// console.log('执行扫码事件:',res);\r\n\t\t\t\t\t\t\t\tif(res.code==0){\r\n\t\t\t\t\t\t\t\t\tthis.isQian = true\r\n\t\t\t\t\t\t\t\t\tsetTimeout(()=>{\r\n\t\t\t\t\t\t\t\t\t\tthis.isQian = false\r\n\t\t\t\t\t\t\t\t\t},2000)\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t},error=>{})\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t})\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tchoosesjf(index){//文章收藏事件、积分、我的分享\r\n\t\t\t\t// console.log('当前选项:',this.tongList[index].title);\r\n\t\t\t\tswitch (index){\r\n\t\t\t\t\tcase 0:\r\n\t\t\t\t\tuni.navigateTo({//我的收藏\r\n\t\t\t\t\t\turl:'/pagesB/myCollection/myCollection'\r\n\t\t\t\t\t})\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 1:\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 2:\r\n\t\t\t\t\tuni.navigateTo({//客户列表\r\n\t\t\t\t\t\turl:'/pagesB/mysharer/mysharer'\r\n\t\t\t\t\t})\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tgoNodifyData(){//去修改资料页面\r\n\t\t\t\tuni.setStorageSync('uinfo',this.userInfo)\r\n\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\turl:'/pagesA/nodifyData/nodifyData'\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style>\r\n\r\n</style>\r\n"],"sourceRoot":""} |