Commit 4e33f1753dbb4b517372d5fd8b7e5be937e8fcd2

Authored by WXD-SEASON\season
2 parents 7be94812 65202ce0

Merge branch 'dev' of http://git.vipzhuang.cn/wxd/MShopWeApp into test

packageE/pages/user/monthgiftbag/giftpacklist/giftpacklist.js
@@ -75,7 +75,7 @@ Page({ @@ -75,7 +75,7 @@ Page({
75 canvasHidden:true, 75 canvasHidden:true,
76 is_receive:1, //是否已经领取 76 is_receive:1, //是否已经领取
77 screenWidth: 0, 77 screenWidth: 0,
78 - 78 + islogin:false,
79 }, 79 },
80 onLoad: function (options) { 80 onLoad: function (options) {
81 81
@@ -683,13 +683,13 @@ Page({ @@ -683,13 +683,13 @@ Page({
683 683
684 getGift(){ 684 getGift(){
685 var that=this; 685 var that=this;
686 - 686 + if (that.data.islogin) {
  687 + return
  688 + }
  689 + that.setData({
  690 + islogin:true
  691 + })
687 var json = { 692 var json = {
688 - // "actId": '', //活动Id  
689 - // "actType": '', //活动类型 1:新人礼、2:评价有礼、3:节日营销、4:生日营销  
690 - // "buyType":""+that.data.buyType, //1=积分兑换 2=余额购买  
691 - // "giftBagId": id, //每月礼包主表id  
692 - // "buyFrom": 2,  
693 "id":that.data.record_list_id,// "记录Id", 693 "id":that.data.record_list_id,// "记录Id",
694 "storeId": that.data.getStorageID, //商家Id 694 "storeId": that.data.getStorageID, //商家Id
695 "userId": that.data.getUserID, //用户ID 695 "userId": that.data.getUserID, //用户ID
@@ -716,6 +716,9 @@ Page({ @@ -716,6 +716,9 @@ Page({
716 that.setData({submit:0}) 716 that.setData({submit:0})
717 getApp().my_warnning(res.data.msg, 0, that); 717 getApp().my_warnning(res.data.msg, 0, that);
718 } 718 }
  719 + that.setData({
  720 + islogin:false
  721 + })
719 }, 722 },
720 function (res) { 723 function (res) {
721 that.setData({submit:0}) 724 that.setData({submit:0})
packageE/pages/user/monthgiftbag/giftpacklist/giftpacklist.wxml
@@ -176,7 +176,7 @@ @@ -176,7 +176,7 @@
176 <text class="data-v-3a5b7e36">已领取</text> 176 <text class="data-v-3a5b7e36">已领取</text>
177 </view> 177 </view>
178 <view class="foot_button_intalge data-v-3a5b7e36 " wx:else bindtap="getGift" data-id="{{lbId}}"> 178 <view class="foot_button_intalge data-v-3a5b7e36 " wx:else bindtap="getGift" data-id="{{lbId}}">
179 - <text class="data-v-3a5b7e36">领取</text> 179 + <text class="data-v-3a5b7e36">立即领取</text>
180 </view> 180 </view>
181 </block> 181 </block>
182 </view> 182 </view>