Commit 7df3bc8e92d0ec80eed1c3745af6234ed0cf4a7f
1 parent
29185fe8
1.弹出框的关闭
Showing
2 changed files
with
6 additions
and
4 deletions
pages/user/cardinfo/cardinfo.js
... | ... | @@ -873,7 +873,9 @@ Page({ |
873 | 873 | }); |
874 | 874 | }, |
875 | 875 | //显示弹出框 |
876 | - show_change:function () { this.setData({is_show_change_pop:1}); } | |
876 | + show_change:function () { this.setData({is_show_change_pop:1}); }, | |
877 | + //关闭弹出框 | |
878 | + close_card_change_pop:function () { this.setData({is_show_change_pop:0}); } | |
877 | 879 | |
878 | 880 | |
879 | 881 | ... | ... |
pages/user/cardinfo/cardinfo.wxml
... | ... | @@ -164,8 +164,8 @@ |
164 | 164 | |
165 | 165 | <!-- 购买更换,升级 --> |
166 | 166 | <view class="card_change_pop" wx:if="{{is_show_change_pop==1}}"> |
167 | - <view class="cover-layer" bindtap="close_card_change_pop"></view> | |
168 | - <view class="content flex jc-center ai-center"> | |
167 | + <view class="cover-layer"></view> | |
168 | + <view class="content flex jc-center ai-center" bindtap="close_card_change_pop"> | |
169 | 169 | <view class="card_list"> |
170 | 170 | <image class="hg" src="{{url}}/miniapp/images/plus/plustopimg.png"></image> |
171 | 171 | <view class="list"> |
... | ... | @@ -173,7 +173,7 @@ |
173 | 173 | <view class="flex ai-center"><image class="hg_img" src="{{url}}/miniapp/images/vip_hg0.png"></image> |
174 | 174 | <text class="ellipsis-1 card_name">{{item.CardName}}</text></view> |
175 | 175 | <view class="price_show flex ai-center"> |
176 | - <view style="width: 100%; line-height: 24rpx" data-days="{{item.ExpiryDate}}" bindtap="change_card" data-cid="{{item.CardId}}"> | |
176 | + <view style="width: 100%; line-height: 24rpx" data-days="{{item.ExpiryDate}}" catchtap="change_card" data-cid="{{item.CardId}}"> | |
177 | 177 | <view style="text-align: right" class="fs26">¥<text class="pri fs40">{{item.CardFee}}</text></view> |
178 | 178 | <view style="text-align: center" class="fs30" wx:if="{{is_guoqi}}">立即变更</view> |
179 | 179 | <view style="text-align: center" class="fs30" wx:else>立即升级</view> | ... | ... |