Commit fbb3022e2375612484d2d757973e23583eecbe5c
1 parent
6cea6c57
党建积分商城优化
Showing
4 changed files
with
45 additions
and
37 deletions
src/components/addressModal/addressModal.vue
src/pages/addressList/addressList.vue
| ... | ... | @@ -128,9 +128,9 @@ export default { |
| 128 | 128 | * @param {Object} res [扩展参数] |
| 129 | 129 | */ |
| 130 | 130 | getMyAddressCallback (res, ext) { |
| 131 | + Indicator.close(); | |
| 131 | 132 | // 返回处理 |
| 132 | 133 | if (res.code == 200) { |
| 133 | - Indicator.close(); | |
| 134 | 134 | // 解构数据 |
| 135 | 135 | let datas = res.data; |
| 136 | 136 | // 添加加星电话号码 |
| ... | ... | @@ -239,7 +239,8 @@ export default { |
| 239 | 239 | doCreate () { |
| 240 | 240 | // 跳转添加收货地址页面 |
| 241 | 241 | this.$router.push({ |
| 242 | - path: "addressCreate" | |
| 242 | + path: "addressCreate", | |
| 243 | + uid: this.getStore("uid") | |
| 243 | 244 | }) |
| 244 | 245 | }, |
| 245 | 246 | |
| ... | ... | @@ -276,7 +277,8 @@ export default { |
| 276 | 277 | this.$router.push({ |
| 277 | 278 | path: "addressEdit", |
| 278 | 279 | query: { |
| 279 | - id: item.id | |
| 280 | + id: item.id, | |
| 281 | + uid: this.getStore("uid") | |
| 280 | 282 | } |
| 281 | 283 | }) |
| 282 | 284 | }, | ... | ... |
src/pages/partyBuildingGoodDetails/partyBuildingGoodDetails.vue
| ... | ... | @@ -518,17 +518,18 @@ export default { |
| 518 | 518 | if (res.code == 200) { |
| 519 | 519 | // 解构数据 |
| 520 | 520 | let datas = res.data; |
| 521 | - | |
| 522 | - // 设置当前地址对象 | |
| 523 | - this.$set(this, 'currentAddress', datas); | |
| 524 | - | |
| 525 | - // 校验用户登录信息 | |
| 526 | - if (datas.uid === this.getStore("uid")) { | |
| 527 | - // 显示填写地址浮层 | |
| 528 | - this.$refs.addressModal.showLayer(); | |
| 529 | - // 同步当前选中的地址信息 | |
| 530 | - window.localStorage.setItem('currentAddress', JSON.stringify(datas)); | |
| 531 | - } | |
| 521 | + if (datas) { | |
| 522 | + // 设置当前地址对象 | |
| 523 | + this.$set(this, 'currentAddress', datas); | |
| 524 | + | |
| 525 | + // 校验用户登录信息 | |
| 526 | + if (datas.uid === this.getStore("uid")) { | |
| 527 | + // 显示填写地址浮层 | |
| 528 | + this.$refs.addressModal.showLayer(); | |
| 529 | + // 同步当前选中的地址信息 | |
| 530 | + window.localStorage.setItem('currentAddress', JSON.stringify(datas)); | |
| 531 | + } | |
| 532 | + } | |
| 532 | 533 | } |
| 533 | 534 | |
| 534 | 535 | // 设置地址浮层参数 |
| ... | ... | @@ -572,6 +573,8 @@ export default { |
| 572 | 573 | this.$set(this.addressModalOptions, 'cancelButtonCallback', this.$refs.addressModal.hideLayer); |
| 573 | 574 | } |
| 574 | 575 | console.log(this.addressModalOptions); |
| 576 | + // 显示填写地址浮层 | |
| 577 | + this.$refs.addressModal.showLayer(); | |
| 575 | 578 | } |
| 576 | 579 | }); |
| 577 | 580 | }, |
| ... | ... | @@ -585,7 +588,8 @@ export default { |
| 585 | 588 | this.$router.push({ |
| 586 | 589 | path: "/addressList", |
| 587 | 590 | query: { |
| 588 | - mode: 'select_edit' | |
| 591 | + mode: 'select_edit', | |
| 592 | + uid: this.getStore("uid") | |
| 589 | 593 | } |
| 590 | 594 | }); |
| 591 | 595 | } | ... | ... |
src/pages/partyBuildingPointsMall/partyBuildingPointsMall.vue
| ... | ... | @@ -35,7 +35,7 @@ |
| 35 | 35 | </div> |
| 36 | 36 | </div> |
| 37 | 37 | <!--积分赚取 --> |
| 38 | - <div class="earn_points_box"> | |
| 38 | + <!-- <div class="earn_points_box"> | |
| 39 | 39 | <img class="earn_icon" |
| 40 | 40 | src="static/img/points_icon_pice.png" |
| 41 | 41 | alt=""> |
| ... | ... | @@ -44,7 +44,7 @@ |
| 44 | 44 | class="btn">赚积分 <img class="earn_right_back" |
| 45 | 45 | src="static/img/points_icon_white_right.png" |
| 46 | 46 | alt="" /></div> |
| 47 | - </div> | |
| 47 | + </div> --> | |
| 48 | 48 | </div> |
| 49 | 49 | <div class="gift_main_box" |
| 50 | 50 | v-if="phyicalGoods && phyicalGoods.list && phyicalGoods.list.length" |
| ... | ... | @@ -222,7 +222,8 @@ export default { |
| 222 | 222 | this.$router.push({ |
| 223 | 223 | path: "/partyBuildingGoodDetails", |
| 224 | 224 | query: { |
| 225 | - goodsId: item.id | |
| 225 | + goodsId: item.id, | |
| 226 | + uid: this.$route.query.uid | |
| 226 | 227 | } |
| 227 | 228 | }); |
| 228 | 229 | } |
| ... | ... | @@ -231,24 +232,24 @@ export default { |
| 231 | 232 | * 跳转赚取积分页面 |
| 232 | 233 | * @param {Object} item [数据对象] |
| 233 | 234 | */ |
| 234 | - jumpClientIntegralList () { | |
| 235 | - // 判断APP内 | |
| 236 | - if (this.isCNLive.value) { | |
| 237 | - // 校验登录 | |
| 238 | - if (this.$parent.checkLogin()) { | |
| 239 | - // (判断app内是否有该方法) | |
| 240 | - if (window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers.jumpClientIntegralList) { | |
| 241 | - // 跳转到原生的任务列表 | |
| 242 | - window.webkit.messageHandlers.jumpClientIntegralList.postMessage({ body: {} }); | |
| 243 | - } else if (window.obj && window.obj.jumpClientIntegralList) { | |
| 244 | - // 跳转到原生的任务列表 | |
| 245 | - window.obj.jumpClientIntegralList(); | |
| 246 | - } | |
| 247 | - } | |
| 248 | - } else { | |
| 249 | - this.$parent.callApp(); | |
| 250 | - } | |
| 251 | - }, | |
| 235 | + // jumpClientIntegralList () { | |
| 236 | + // // 判断APP内 | |
| 237 | + // if (this.isCNLive.value) { | |
| 238 | + // // 校验登录 | |
| 239 | + // if (this.$parent.checkLogin()) { | |
| 240 | + // // (判断app内是否有该方法) | |
| 241 | + // if (window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers.jumpClientIntegralList) { | |
| 242 | + // // 跳转到原生的任务列表 | |
| 243 | + // window.webkit.messageHandlers.jumpClientIntegralList.postMessage({ body: {} }); | |
| 244 | + // } else if (window.obj && window.obj.jumpClientIntegralList) { | |
| 245 | + // // 跳转到原生的任务列表 | |
| 246 | + // window.obj.jumpClientIntegralList(); | |
| 247 | + // } | |
| 248 | + // } | |
| 249 | + // } else { | |
| 250 | + // this.$parent.callApp(); | |
| 251 | + // } | |
| 252 | + // }, | |
| 252 | 253 | // 积分商场首页 |
| 253 | 254 | /** |
| 254 | 255 | * 获取积分商场首页信息 |
| ... | ... | @@ -356,6 +357,8 @@ export default { |
| 356 | 357 | // 获取积分商城商品信息接口 |
| 357 | 358 | this.integralMallIndex(); |
| 358 | 359 | } |
| 360 | + window.localStorage.removeItem('currentAddress'); | |
| 361 | + window.localStorage.removeItem('addressModalIsShow'); | |
| 359 | 362 | }, |
| 360 | 363 | mounted () { |
| 361 | 364 | // 如果是App外,设置唤起App和微信内分享参数 | ... | ... |