Commit 4505947f1ebdae1cd8f7871d0f87afb501187f5b
1 parent
58eeb2dd
IOS回调转JSon字符串
Showing
2 changed files
with
10 additions
and
2 deletions
src/pages/goodDetails/goodDetails.vue
| ... | ... | @@ -390,7 +390,11 @@ export default { |
| 390 | 390 | * @param {Object} addressInfo [服务器返回数据] |
| 391 | 391 | */ |
| 392 | 392 | appSelectAddressCallback (addressInfo) { |
| 393 | - this.$refs.itemsInfo.getAppAddressInfo(addressInfo); | |
| 393 | + if (this.isAndroid.value) { | |
| 394 | + this.$refs.itemsInfo.getAppAddressInfo(addressInfo); | |
| 395 | + } else { | |
| 396 | + this.$refs.itemsInfo.getAppAddressInfo(JSON.parse(addressInfo)); | |
| 397 | + } | |
| 394 | 398 | }, |
| 395 | 399 | }, |
| 396 | 400 | //请求数据 | ... | ... |
src/pages/pointsExchangeRecords/pointsExchangeRecords.vue
| ... | ... | @@ -224,7 +224,11 @@ export default { |
| 224 | 224 | * @param {Object} addressInfo [服务器返回数据] |
| 225 | 225 | */ |
| 226 | 226 | appSelectAddressCallback (addressInfo) { |
| 227 | - this.$refs.itemsInfo.getAppAddressInfo(addressInfo); | |
| 227 | + if (this.isAndroid.value) { | |
| 228 | + this.$refs.itemsInfo.getAppAddressInfo(addressInfo); | |
| 229 | + } else { | |
| 230 | + this.$refs.itemsInfo.getAppAddressInfo(JSON.parse(addressInfo)); | |
| 231 | + } | |
| 228 | 232 | }, |
| 229 | 233 | }, |
| 230 | 234 | //请求数据 | ... | ... |