| | |
| | | console.error('error', e)
|
| | | }
|
| | | }
|
| | | console.log('options query111', querydto)
|
| | | try { |
| | | if (!querydto.partnerUserId) { |
| | | if (options.query && options.query.scene) { |
| | | //说明是特殊小程序二维码扫码跳转的 |
| | | var keyvalues = decodeURIComponent(options.query.scene).split("&") |
| | | for (var item of keyvalues) { |
| | | var tarr = item.split("=") |
| | | querydto[tarr[0]] = tarr[1] |
| | | } |
| | | } |
| | | } |
| | | |
| | | } catch (e) { |
| | | console.error('error2', e) |
| | | }
|
| | |
|
| | |
|
| | | console.log('options query111', options, querydto)
|
| | | // this.optionsStr = JSON.stringify(options) || ''
|
| | | if (querydto.partnerUserId) {
|
| | | //通过接口获取名称,兼容,url上不能放中文的情况
|
| | |
| | | // uni.navigateTo({
|
| | | // url: `/sub_pages/customer/customer-info/customer-info?source=step&partnerUserId=${querydto.partnerUserId}&partnerUserName=${querydto.partnerUserName}`
|
| | | // }) |
| | | if (!querydto.partnerUserName) { |
| | | tmp.$message.showLoading() |
| | | const resname = await tmp.$http.request('get', '/api/customer/partner/name', { |
| | | params: { |
| | | id: querydto.partnerUserId |
| | | } |
| | | }) |
| | | tmp.$message.hideLoading() |
| | | if (resname.code == 0) { |
| | | querydto.partnerUserName = resname.data || '' |
| | | } |
| | | |
| | | }
|
| | | uni.navigateTo({ |
| | | url: `/pages/login/supplier-reg?partnerUserId=${querydto.partnerUserId}&partnerUserName=${querydto.partnerUserName}` |
| | | })
|