From 9a3837ce2d128a9f03264f2ce99b8d3584e5520e Mon Sep 17 00:00:00 2001 From: whycq <10027870+whycq@user.noreply.gitee.com> Date: 星期五, 24 十一月 2023 09:29:00 +0800 Subject: [PATCH] # --- pages/business/cstmr/addCsmtr.vue | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/pages/business/cstmr/addCsmtr.vue b/pages/business/cstmr/addCsmtr.vue index 09dcad1..c0ac539 100644 --- a/pages/business/cstmr/addCsmtr.vue +++ b/pages/business/cstmr/addCsmtr.vue @@ -173,7 +173,8 @@ value: 2 }], citysData: [], - citysDataTemp: '' + citysDataTemp: '', + uraddr: 'add' } }, @@ -186,6 +187,12 @@ this.citysData = test.citysData this.autoLoad('cstmrType','') this.autoLoad('user','') + }, + onLoad(option) { + console.log(option); + if(option.type == 1) { + this.uraddr = 'add2' + } }, methods: { cstmrSearch() { @@ -275,7 +282,7 @@ } res.pcd = this.citysDataTemp uni.request({ - url: that.baseUrl + '/cstmr/add/auth', + url: `${that.baseUrl}/cstmr/${that.uraddr}/auth`, header:{ 'token':uni.getStorageSync('token'), 'content-type':'application/x-www-form-urlencoded', -- Gitblit v1.9.1