Commit ef652cc82d03a17aa1f8764f307849a3e83f7884
1 parent
d898d51d
实物兑换不做积分消耗提示
Showing
1 changed file
with
21 additions
and
23 deletions
src/pages/goodDetails/goodDetails.vue
| @@ -418,19 +418,27 @@ export default { | @@ -418,19 +418,27 @@ export default { | ||
| 418 | if (this.isCNLive.value) { | 418 | if (this.isCNLive.value) { |
| 419 | // 校验登录 | 419 | // 校验登录 |
| 420 | if (this.$parent.checkLogin()) { | 420 | if (this.$parent.checkLogin()) { |
| 421 | - // 提示用积分兑换兑换 | ||
| 422 | - let options = { | ||
| 423 | - title: "", | ||
| 424 | - message: "确定使用" + this.goodsInfo.num + "积分兑换?", | ||
| 425 | - confirmButtonText: "确定", | ||
| 426 | - confirmButtonCallback: this.addIntegralOrderconfirm, | ||
| 427 | - showCancelButton: true, | ||
| 428 | - cancelButtonText: "取消" | ||
| 429 | - }; | ||
| 430 | - // 调用showModal层参数 | ||
| 431 | - this.$set(this.$parent, "showOptions", options); | ||
| 432 | - // 显示通用浮层 | ||
| 433 | - this.$parent.$refs.showModal.showLayer(); | 421 | + // 实物商品不提示用积分 |
| 422 | + if (this.goodsInfo.shop_type == 1) { | ||
| 423 | + // 判断安卓版本1.7.3.3展示ios1.9.0显示实物弹出底部数量填写 | ||
| 424 | + this.versionJudgment() | ||
| 425 | + // 弹出填写地址 | ||
| 426 | + // this.addAddressCallback() | ||
| 427 | + }else{ | ||
| 428 | + // 虚拟商品提示用积分兑换 | ||
| 429 | + let options = { | ||
| 430 | + title: "", | ||
| 431 | + message: "确定使用" + this.goodsInfo.num + "积分兑换?", | ||
| 432 | + confirmButtonText: "确定", | ||
| 433 | + confirmButtonCallback: this.addIntegralOrderconfirm, | ||
| 434 | + showCancelButton: true, | ||
| 435 | + cancelButtonText: "取消" | ||
| 436 | + }; | ||
| 437 | + // 调用showModal层参数 | ||
| 438 | + this.$set(this.$parent, "showOptions", options); | ||
| 439 | + // 显示通用浮层 | ||
| 440 | + this.$parent.$refs.showModal.showLayer(); | ||
| 441 | + } | ||
| 434 | } | 442 | } |
| 435 | } else { | 443 | } else { |
| 436 | this.$parent.callApp(); | 444 | this.$parent.callApp(); |
| @@ -438,21 +446,11 @@ export default { | @@ -438,21 +446,11 @@ export default { | ||
| 438 | }, | 446 | }, |
| 439 | // 确定兑换回调 | 447 | // 确定兑换回调 |
| 440 | addIntegralOrderconfirm () { | 448 | addIntegralOrderconfirm () { |
| 441 | - /** | ||
| 442 | - * 判断shop_type是否等于1等于1为实物弹出底部商品数量选择,其他商品直接走兑换接口 | ||
| 443 | - */ | ||
| 444 | - if (this.goodsInfo.shop_type == 1) { | ||
| 445 | - // 判断安卓版本1.7.3.3展示ios1.9.0显示实物弹出底部数量填写 | ||
| 446 | - this.versionJudgment() | ||
| 447 | - // 弹出填写地址 | ||
| 448 | - // this.addAddressCallback() | ||
| 449 | - } else { | ||
| 450 | // isExchange为false才可兑换防止连续点击 | 449 | // isExchange为false才可兑换防止连续点击 |
| 451 | if (!this.isExchange) { | 450 | if (!this.isExchange) { |
| 452 | // 兑换 | 451 | // 兑换 |
| 453 | this.addIntegralOrder(); | 452 | this.addIntegralOrder(); |
| 454 | } | 453 | } |
| 455 | - } | ||
| 456 | }, | 454 | }, |
| 457 | /** | 455 | /** |
| 458 | * 分享 | 456 | * 分享 |