Commit 4e33f1753dbb4b517372d5fd8b7e5be937e8fcd2
Merge branch 'dev' of http://git.vipzhuang.cn/wxd/MShopWeApp into test
Showing
2 changed files
with
11 additions
and
8 deletions
packageE/pages/user/monthgiftbag/giftpacklist/giftpacklist.js
| ... | ... | @@ -75,7 +75,7 @@ Page({ |
| 75 | 75 | canvasHidden:true, |
| 76 | 76 | is_receive:1, //是否已经领取 |
| 77 | 77 | screenWidth: 0, |
| 78 | - | |
| 78 | + islogin:false, | |
| 79 | 79 | }, |
| 80 | 80 | onLoad: function (options) { |
| 81 | 81 | |
| ... | ... | @@ -683,13 +683,13 @@ Page({ |
| 683 | 683 | |
| 684 | 684 | getGift(){ |
| 685 | 685 | var that=this; |
| 686 | - | |
| 686 | + if (that.data.islogin) { | |
| 687 | + return | |
| 688 | + } | |
| 689 | + that.setData({ | |
| 690 | + islogin:true | |
| 691 | + }) | |
| 687 | 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 | 693 | "id":that.data.record_list_id,// "记录Id", |
| 694 | 694 | "storeId": that.data.getStorageID, //商家Id |
| 695 | 695 | "userId": that.data.getUserID, //用户ID |
| ... | ... | @@ -716,6 +716,9 @@ Page({ |
| 716 | 716 | that.setData({submit:0}) |
| 717 | 717 | getApp().my_warnning(res.data.msg, 0, that); |
| 718 | 718 | } |
| 719 | + that.setData({ | |
| 720 | + islogin:false | |
| 721 | + }) | |
| 719 | 722 | }, |
| 720 | 723 | function (res) { |
| 721 | 724 | that.setData({submit:0}) | ... | ... |
packageE/pages/user/monthgiftbag/giftpacklist/giftpacklist.wxml
| ... | ... | @@ -176,7 +176,7 @@ |
| 176 | 176 | <text class="data-v-3a5b7e36">已领取</text> |
| 177 | 177 | </view> |
| 178 | 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 | 180 | </view> |
| 181 | 181 | </block> |
| 182 | 182 | </view> | ... | ... |