Commit 028f02375d09ffdcaeec59aefe59d05ef726a17b

Authored by 王强
1 parent 8acd8cd8

积分兑换增加兑换线下领取商品类型~

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