Commit 028f02375d09ffdcaeec59aefe59d05ef726a17b
1 parent
8acd8cd8
积分兑换增加兑换线下领取商品类型~
Showing
1 changed file
with
16 additions
and
4 deletions
src/pages/partyBuildingGoodDetails/partyBuildingGoodDetails.vue
| @@ -361,17 +361,28 @@ export default { | @@ -361,17 +361,28 @@ export default { | ||
| 361 | * 积分值兑换接口 | 361 | * 积分值兑换接口 |
| 362 | */ | 362 | */ |
| 363 | addLuckIntegralOrder (addressId) { | 363 | addLuckIntegralOrder (addressId) { |
| 364 | + | ||
| 365 | + console.log('addLuckIntegralOrder', addressId); | ||
| 366 | + console.log('uid', this.getStore("uid")); | ||
| 367 | + console.log('id', this.$route.query.goodsId); | ||
| 368 | + console.log('addressId', addressId || (this.currentAddress && this.currentAddress.id ? this.currentAddress.id : '')); | ||
| 369 | + | ||
| 370 | + // return false; | ||
| 371 | + | ||
| 372 | + | ||
| 373 | + | ||
| 364 | // 加载中提示 | 374 | // 加载中提示 |
| 365 | Indicator.open("加载中..."); | 375 | Indicator.open("加载中..."); |
| 376 | + | ||
| 366 | // 获取证书请求接口 | 377 | // 获取证书请求接口 |
| 367 | this.http("/Api/" + this.getApiVersion().LuckDraw + "/addLuckIntegralOrder", { | 378 | this.http("/Api/" + this.getApiVersion().LuckDraw + "/addLuckIntegralOrder", { |
| 368 | uid: this.getStore("uid"), | 379 | uid: this.getStore("uid"), |
| 369 | id: this.$route.query.goodsId, // 商品ID | 380 | id: this.$route.query.goodsId, // 商品ID |
| 370 | num: 1, // 数量 | 381 | num: 1, // 数量 |
| 371 | - addressId: this.currentAddress.id || "" // 实物商品ID | 382 | + addressId: addressId || (this.currentAddress && this.currentAddress.id ? this.currentAddress.id : '') // 当前地址id |
| 372 | }, this.addLuckIntegralOrderCallback, { | 383 | }, this.addLuckIntegralOrderCallback, { |
| 373 | - method: "POST" | ||
| 374 | - }); | 384 | + method: "POST" |
| 385 | + }); | ||
| 375 | }, | 386 | }, |
| 376 | 387 | ||
| 377 | /** | 388 | /** |
| @@ -403,7 +414,8 @@ export default { | @@ -403,7 +414,8 @@ export default { | ||
| 403 | // 显示查看地址弹框 | 414 | // 显示查看地址弹框 |
| 404 | let options = { | 415 | let options = { |
| 405 | title: "兑换成功", | 416 | title: "兑换成功", |
| 406 | - message: "预计3-5个工作日发货,在活动页面的《兑换记录》里可以查看物流", | 417 | + // message: "预计3-5个工作日发货,在活动页面的《兑换记录》里可以查看物流", |
| 418 | + message: "", | ||
| 407 | messageAlign: "center", | 419 | messageAlign: "center", |
| 408 | confirmButtonText: "我知道了", | 420 | confirmButtonText: "我知道了", |
| 409 | confirmButtonCallback: "" | 421 | confirmButtonCallback: "" |