|  |  |  | 
|---|
|  |  |  | order_pendding_num: 0, | 
|---|
|  |  |  |  | 
|---|
|  |  |  | }; | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | // #ifndef PUB_CUSTOMER | 
|---|
|  |  |  | onShareAppMessage() { | 
|---|
|  |  |  | let that = this; | 
|---|
|  |  |  | var name = that.currentInfo.customerDTO&¤tInfo.customerDTO.name || that.currentInfo.supplierDTO&¤tInfo.supplierDTO.name || that.currentInfo.partnerDTO&¤tInfo.partnerDTO.name || '' | 
|---|
|  |  |  | var url = | 
|---|
|  |  |  | `/pages/login/supplier-login?shareId=${this.currentInfo&&this.currentInfo.id||''}&shareName=${name||''}`; //你的转发页面路径拼接参数 | 
|---|
|  |  |  | return { | 
|---|
|  |  |  | title: "花满芫", | 
|---|
|  |  |  | path: url, | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | onShareTimeline() { | 
|---|
|  |  |  | let that = this; | 
|---|
|  |  |  | var name = that.currentInfo.customerDTO&¤tInfo.customerDTO.name || that.currentInfo.supplierDTO&¤tInfo.supplierDTO.name || that.currentInfo.partnerDTO&¤tInfo.partnerDTO.name || '' | 
|---|
|  |  |  | var url = | 
|---|
|  |  |  | `/pages/login/supplier-login?shareId=${this.currentInfo&&this.currentInfo.id||''}&shareName=${name||''}`; //你的转发页面路径拼接参数 | 
|---|
|  |  |  | return { | 
|---|
|  |  |  | title: "花满芫", | 
|---|
|  |  |  | path: url, | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | // #endif | 
|---|
|  |  |  | // #ifdef PUB_CUSTOMER | 
|---|
|  |  |  | onShareAppMessage() { | 
|---|
|  |  |  | let that = this; | 
|---|
|  |  |  | var name = that.currentInfo.customerDTO&¤tInfo.customerDTO.name || that.currentInfo.supplierDTO&¤tInfo.supplierDTO.name || that.currentInfo.partnerDTO&¤tInfo.partnerDTO.name || '' | 
|---|
|  |  |  | var url = | 
|---|
|  |  |  | `/pages/home/home?shareId=${this.currentInfo&&this.currentInfo.id||''}&shareName=${name||''}`; //你的转发页面路径拼接参数 | 
|---|
|  |  |  | return { | 
|---|
|  |  |  | title: "花满芫", | 
|---|
|  |  |  | path: url, | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | onShareTimeline() { | 
|---|
|  |  |  | let that = this; | 
|---|
|  |  |  | var name = that.currentInfo.customerDTO&¤tInfo.customerDTO.name || that.currentInfo.supplierDTO&¤tInfo.supplierDTO.name || that.currentInfo.partnerDTO&¤tInfo.partnerDTO.name || '' | 
|---|
|  |  |  | var url = | 
|---|
|  |  |  | `/pages/home/home?shareId=${this.currentInfo&&this.currentInfo.id||''}&shareName=${name||''}`; //你的转发页面路径拼接参数 | 
|---|
|  |  |  | return { | 
|---|
|  |  |  | title: "花满芫", | 
|---|
|  |  |  | path: url, | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | // #ifndef PUB_CUSTOMER | 
|---|
|  |  |  | onShareAppMessage() { | 
|---|
|  |  |  | let that = this; | 
|---|
|  |  |  | var name = that.currentInfo.customerDTO && currentInfo.customerDTO.name || that.currentInfo.supplierDTO && | 
|---|
|  |  |  | currentInfo.supplierDTO.name || that.currentInfo.partnerDTO && currentInfo.partnerDTO.name || '' | 
|---|
|  |  |  | var url = | 
|---|
|  |  |  | `/pages/login/supplier-login?shareId=${this.currentInfo&&this.currentInfo.id||''}&shareName=${name||''}`; //你的转发页面路径拼接参数 | 
|---|
|  |  |  | return { | 
|---|
|  |  |  | title: "花满芫", | 
|---|
|  |  |  | path: url, | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | onShareTimeline() { | 
|---|
|  |  |  | let that = this; | 
|---|
|  |  |  | var name = that.currentInfo.customerDTO && currentInfo.customerDTO.name || that.currentInfo.supplierDTO && | 
|---|
|  |  |  | currentInfo.supplierDTO.name || that.currentInfo.partnerDTO && currentInfo.partnerDTO.name || '' | 
|---|
|  |  |  | var url = | 
|---|
|  |  |  | `/pages/login/supplier-login?shareId=${this.currentInfo&&this.currentInfo.id||''}&shareName=${name||''}`; //你的转发页面路径拼接参数 | 
|---|
|  |  |  | return { | 
|---|
|  |  |  | title: "花满芫", | 
|---|
|  |  |  | path: url, | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | // #endif | 
|---|
|  |  |  | // #ifdef PUB_CUSTOMER | 
|---|
|  |  |  | onShareAppMessage() { | 
|---|
|  |  |  | let that = this; | 
|---|
|  |  |  | var name = that.currentInfo.customerDTO && currentInfo.customerDTO.name || that.currentInfo.supplierDTO && | 
|---|
|  |  |  | currentInfo.supplierDTO.name || that.currentInfo.partnerDTO && currentInfo.partnerDTO.name || '' | 
|---|
|  |  |  | var url = | 
|---|
|  |  |  | `/pages/home/home?shareId=${this.currentInfo&&this.currentInfo.id||''}&shareName=${name||''}`; //你的转发页面路径拼接参数 | 
|---|
|  |  |  | return { | 
|---|
|  |  |  | title: "花满芫", | 
|---|
|  |  |  | path: url, | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | onShareTimeline() { | 
|---|
|  |  |  | let that = this; | 
|---|
|  |  |  | var name = that.currentInfo.customerDTO && currentInfo.customerDTO.name || that.currentInfo.supplierDTO && | 
|---|
|  |  |  | currentInfo.supplierDTO.name || that.currentInfo.partnerDTO && currentInfo.partnerDTO.name || '' | 
|---|
|  |  |  | var url = | 
|---|
|  |  |  | `/pages/home/home?shareId=${this.currentInfo&&this.currentInfo.id||''}&shareName=${name||''}`; //你的转发页面路径拼接参数 | 
|---|
|  |  |  | return { | 
|---|
|  |  |  | title: "花满芫", | 
|---|
|  |  |  | path: url, | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | // #endif | 
|---|
|  |  |  | onShow() { | 
|---|
|  |  |  | this.getTj() | 
|---|
|  |  |  | 
|---|
|  |  |  | uni.scanCode({ | 
|---|
|  |  |  | success: async function(res) { | 
|---|
|  |  |  | console.log('条码内容:' + res.result); | 
|---|
|  |  |  | if (!res.result) { | 
|---|
|  |  |  | that.$message.showToast('未识别出合伙人信息,如果是微信小程序二维码,请微信扫码打开') | 
|---|
|  |  |  | return | 
|---|
|  |  |  | } | 
|---|
|  |  |  | var dto = undefined | 
|---|
|  |  |  | try { | 
|---|
|  |  |  | if (res.result && (res.result.startsWith('https://')||res.result.startsWith('http://')) && res.result.indexOf( | 
|---|
|  |  |  | if (res.result && (res.result.startsWith('https://') || res.result.startsWith( | 
|---|
|  |  |  | 'http://')) && res.result.indexOf( | 
|---|
|  |  |  | 'partnerUserId') >= 0) { | 
|---|
|  |  |  | var arr = res.result.split("?")[1].split("&") | 
|---|
|  |  |  | var arr = res.result.split("?")[1].split("&") | 
|---|
|  |  |  | dto = {} | 
|---|
|  |  |  | for (var item of arr) { | 
|---|
|  |  |  | var tarr = item.split("=") | 
|---|
|  |  |  | var tarr = item.split("=") | 
|---|
|  |  |  | // console.log('tarr',tarr) | 
|---|
|  |  |  | if (tarr[1]) { | 
|---|
|  |  |  | dto[tarr[0]] = tarr[1] | 
|---|
|  |  |  | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | that.$message.showToast('二维码格式不正确扫码失败') | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } catch (e) { | 
|---|
|  |  |  | console.log('e',e) | 
|---|
|  |  |  | } catch (e) { | 
|---|
|  |  |  | console.log('e', e) | 
|---|
|  |  |  | that.$message.showToast('二维码扫码错误') | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|