Commit 0f1df3e574309b0b2548b72b9bc2b40ecbe48837

Authored by zhiyangdu
1 parent 23e277e4

处理安卓手机多次回选地址订单ID丢死

src/components/addressToast/addressToast.vue
@@ -293,12 +293,26 @@ export default { @@ -293,12 +293,26 @@ export default {
293 // 更改地址 293 // 更改地址
294 changeAddress () { 294 changeAddress () {
295 // 安卓手机两次更改地址goodsId没拿到从 295 // 安卓手机两次更改地址goodsId没拿到从
296 - if (this.isAndroid.value && !this.goodsId) {  
297 - let ext = "&" + window.localStorage.getItem("ext")  
298 - this.goodsId = this.getParameterByName(  
299 - "goodsId",  
300 - ext  
301 - ); 296 + if (this.isAndroid.value) {
  297 + // 处理商品ID问题
  298 + if (!this.goodsId) {
  299 + let ext = "&" + window.localStorage.getItem("ext")
  300 + this.goodsId = this.getParameterByName(
  301 + "goodsId",
  302 + ext
  303 + );
  304 + }
  305 + // 处理商品ID问题
  306 + if (!this.orderId) {
  307 + let ext = "&" + window.localStorage.getItem("ext")
  308 + this.orderId = this.getParameterByName(
  309 + "orderId",
  310 + ext
  311 + );
  312 + }
  313 + // 处理填写地址弹框显示记录
  314 + // let storageExt = "&pointsToast_control=true"
  315 + // window.localStorage.setItem("ext", storageExt)
302 } 316 }
303 // 测试环境 317 // 测试环境
304 window.location.href = 318 window.location.href =