Commit ad3a4ddf by 赵雅纹

address

parent 59bcb85a
...@@ -22,7 +22,9 @@ wxService.page({ ...@@ -22,7 +22,9 @@ wxService.page({
userId:'', userId:'',
name:'', name:'',
phone:'', phone:'',
fullArea:'', province:'',
city: '',
district: '',
address:'', address:'',
type:1 type:1
}, },
...@@ -86,12 +88,14 @@ wxService.page({ ...@@ -86,12 +88,14 @@ wxService.page({
userId: data.userId, userId: data.userId,
name: data.name, name: data.name,
phone: data.phone, phone: data.phone,
fullArea: data.fullArea, province: data.province,
city: data.city,
district: data.district,
address: data.address, address: data.address,
type: data.type type: data.type
}, },
isSelect: data.type, isSelect: data.type,
cityView: data.fullArea cityView: data.province + ' ' + data.city + ' ' + data.district
}) })
wxService.getC1().then((c1) => { wxService.getC1().then((c1) => {
return wxService.Promise.all([wxService.Promise.resolve(c1), wxService.getC2ByC1('北京'), wxService.getC3ByC2('北京北京市')]) return wxService.Promise.all([wxService.Promise.resolve(c1), wxService.getC2ByC1('北京'), wxService.getC3ByC2('北京北京市')])
...@@ -115,10 +119,15 @@ wxService.page({ ...@@ -115,10 +119,15 @@ wxService.page({
console.log(citys) console.log(citys)
if (citys) { if (citys) {
const cityView = [citys[0][multiIndex[0]], citys[1][multiIndex[1]], citys[2][multiIndex[2]]].join(' ') const cityView = [citys[0][multiIndex[0]], citys[1][multiIndex[1]], citys[2][multiIndex[2]]].join(' ')
this.setData({ this.setData({
multiIndex, multiIndex,
cityView cityView,
'params.province': citys[0][multiIndex[0]],
'params.city': citys[1][multiIndex[1]],
'params.district': citys[2][multiIndex[2]]
}) })
} }
}, },
...@@ -202,7 +211,9 @@ wxService.page({ ...@@ -202,7 +211,9 @@ wxService.page({
userId: memberId, userId: memberId,
name: e.detail.value.name, name: e.detail.value.name,
phone: e.detail.value.phone, phone: e.detail.value.phone,
fullArea: this.data.cityView, province: this.data.params.province,
city: this.data.params.city,
district: this.data.params.district,
address: e.detail.value.address, address: e.detail.value.address,
type: this.data.isSelect ? 1 : 0 type: this.data.isSelect ? 1 : 0
} }
......
...@@ -89,7 +89,8 @@ class Http { ...@@ -89,7 +89,8 @@ class Http {
method: 'GET', method: 'GET',
header: { header: {
'buyer-token': this.getToken(), 'buyer-token': this.getToken(),
'TENTACLE_CONTENT': this.getTentacle() // 'TENTACLE_CONTENT': this.getTentacle(),
'TENTACLE_CONTENT': '{"id":"621346354647797760","tentacleType":3,"tentacleId":"611969009872691200","contentType":1}'
}, },
data: parmas data: parmas
}) })
...@@ -99,7 +100,9 @@ class Http { ...@@ -99,7 +100,9 @@ class Http {
method: 'GET', method: 'GET',
header: { header: {
'tunnel-token': 'aa8a1bfb7f6c5031d172d94b6574293ef954a6f2d4e16657da008e0cc15588feD', 'tunnel-token': 'aa8a1bfb7f6c5031d172d94b6574293ef954a6f2d4e16657da008e0cc15588feD',
'TENTACLE_CONTENT': this.getTentacle() // 'TENTACLE_CONTENT': this.getTentacle(),
'TENTACLE_CONTENT': '{"id":"621346354647797760","tentacleType":3,"tentacleId":"611969009872691200","contentType":1}'
}, },
data: parmas data: parmas
}) })
...@@ -117,7 +120,8 @@ class Http { ...@@ -117,7 +120,8 @@ class Http {
method: 'POST', method: 'POST',
header: { header: {
'buyer-token': this.getToken(), 'buyer-token': this.getToken(),
'TENTACLE_CONTENT': this.getTentacle() // 'TENTACLE_CONTENT': this.getTentacle()
'TENTACLE_CONTENT': '{"id":"621346354647797760","tentacleType":3,"tentacleId":"611969009872691200","contentType":1}'
}, },
data: parmas, data: parmas,
channel: channel channel: channel
...@@ -128,7 +132,8 @@ class Http { ...@@ -128,7 +132,8 @@ class Http {
method: 'POST', method: 'POST',
header: { header: {
'tunnel-token': 'aa8a1bfb7f6c5031d172d94b6574293ef954a6f2d4e16657da008e0cc15588feD', 'tunnel-token': 'aa8a1bfb7f6c5031d172d94b6574293ef954a6f2d4e16657da008e0cc15588feD',
'TENTACLE_CONTENT': this.getTentacle() // 'TENTACLE_CONTENT': this.getTentacle()
'TENTACLE_CONTENT': '{"id":"621346354647797760","tentacleType":3,"tentacleId":"611969009872691200","contentType":1}'
}, },
data: parmas, data: parmas,
channel: channel channel: channel
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment