1 line
19 KiB
Plaintext
1 line
19 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":["createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,0F;AACAA,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC6FltB,uE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wSAEA,EACA,gCADA,EAEA,IAFA,kBAEA,CACA,SACA,aADA,EAEA,0CAFA,EAGA,8CAHA,EAIA,kCAJA,EAKA,WACA,2BADA,EAEA,yBAFA,EAGA,2BAHA,CALA,EAUA,WACA,gDADA,EAEA,+CAFA,EAGA,iDAHA,CAVA,EAeA,YACA,0DADA,EAEA,wDAFA,EAGA,yDAHA,EAIA,wDAJA,EAKA,6DALA,EAMA,yDANA,EAOA,6DAPA,CAfA,EAwBA,eAxBA,EAwBA;AACA,kBAzBA,EAyBA;AACA,qCA1BA,EA2BA,iCA3BA,EA4BA,aA5BA,EA4BA;AACA,mBA7BA,EA6BA;AACA,qBA9BA,EA8BA;AACA,kBA/BA,EA+BA;AACA,mBAhCA,EAiCA,WAjCA,GAmCA,CAtCA,EAuCA,+BACA;AACA,kCACA,6BACA,CA3CA,EA4CA,MA5CA,oBA4CA,CACA,+BADA,CACA;AACA,qBACA,CA/CA,EAgDA,MAhDA,oBAgDA,kBACA,iDACA,6CACA,4CACA,kCAJA,CAIA;AACA,0CACA,qCACA,yDACA,uCACA,yBACA,CAHA,EAGA,IAHA,GAIA,CACA,eAZA,CAaA;AACA,8CACA,8CACA,wBACA,iBACA,yBADA,IAGA,CAJA,EAIA,IAJA,EAKA,CArBA,CAsBA;AACA;AACA,GAxEA,EAyEA,WACA,QADA,oBACA,CADA,EACA,CACA,gCACA,CAHA,EAIA,OAJA,qBAIA;AACA,iEACA;AACA,4BACA,gEACA,mBACA,mCACA,CAHA,EAGA,KAHA,CAGA,mBAHA,EAIA,CACA,CARA,EAQA,mBARA,EASA,CAdA,EAeA,SAfA,uBAeA,mBACA,oDACA;AACA,oDACA,2BACA,wCAFA,CAEA;AACA,qDAHA,CAGA;AACA,8DAJA,CAIA;AACA,6DALA,CAKA;AACA,gDANA,CAMA;AACA,gDAPA,CAOA;AACA,oDARA,CAQA;AACA,8CATA,CASA;AACA,mDACA,CACA,CAdA,EAcA,mBAdA,EAeA,CA/BA,EAgCA,UAhCA,sBAgCA,KAhCA,EAgCA;AACA;AACA,sBACA,uEACA,iEACA,6DACA,+DACA,+DACA,2DACA,mDACA;AACA,mBADA;;AAGA,KA7CA;AA8CA,eA9CA,uBA8CA,KA9CA,EA8CA;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,eALA,EAKA,mBALA;AAMA,aAbA;;AAeA,gBA3BA;;AA6BA,KA7EA;AA8EA,aA9EA,qBA8EA,KA9EA,EA8EA;AACA;AACA;AACA;AACA;AACA,oDADA;;AAGA;AACA;AACA;AACA;AACA;AACA,4CADA;;AAGA,gBAZA;;AAcA,KA9FA;AA+FA,gBA/FA,0BA+FA;AACA;AACA;AACA,4CADA;;AAGA,KApGA,EAzEA,E","file":"pages/tabbar/my/my.js","sourcesContent":["import 'uni-pages';\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 || headImg\" 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\">\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<image @tap=\"goNodifyData\" class=\"mar-z20\" src=\"/static/public/nextM.png\" style=\"width: 35rpx;height: 35rpx;z-index: 1;\" mode=\"aspectFill\"></image>\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<!-- 员工功能 -->\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 class=\"width100 radius20 mar-sx20\" src=\"/static/public/banner.png\" 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\r\n\t\t\r\n\t\t\r\n\t\t\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<empower :vision=\"vision\" @cancleEv=\"cancleEv\"></empower>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\timport {base64ToPath} from '@/jsFile/base64-src.js';\r\n\timport empower from '@/components/empower.vue';\r\n\texport default {\r\n\t\tcomponents:{empower},\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\tpublicColor:uni.getStorageSync('publicColor'),\r\n\t\t\t\theadImg:'/static/public/logo.png',\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:[\r\n\t\t\t\t\t{src:'/static/public/keh.png',title:'客户列表'},\r\n\t\t\t\t\t{src:'/static/public/zu.png',title:'用户足迹'},\r\n\t\t\t\t\t{src:'/static/public/scan.png',title:'扫码签到'},\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}\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\tconsole.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},\r\n\t\tonLoad() {\r\n\t\t\tthis.titleList = uni.getStorageSync('footTitle')\r\n\t\t\tthis.imgList = uni.getStorageSync('footimg')\r\n\t\t\tuni.setStorageSync('footimg',this.imgList)\r\n\t\t\tuni.removeStorageSync('shareAll')//清空分享中心里的统计信息\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.checkGM()\r\n\t\t\t// if(uni.getStorageSync('headImg')=='') this.vision = true\r\n\t\t\tif(uni.getStorageSync('headImg')=='') {\r\n\t\t\t\tthis.$toolAll.tools.showToast('您当前是游客,请授权登录')\r\n\t\t\t\tsetTimeout(()=>{\r\n\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\turl:'/pages/login/login'\r\n\t\t\t\t\t})\r\n\t\t\t\t},1500) \r\n\t\t\t}\r\n\t\t\t// const eventChannel = this.getOpenerEventChannel()\r\n\t\t\t// console.log(eventChannel);\r\n\t\t},\r\n\t\tmethods: {\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\tuni.setStorageSync('shareAll',res.data)\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\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.$toolAll.tools.showToast(res.msg)\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":""} |