Commit 5454532f17b24c2435500dd2c54c6c6e201eb907
1 parent
a674fcbf
预存的bug优化
Showing
4 changed files
with
20 additions
and
2 deletions
packageD/pages/user/deposit/prepaid/prepaid.js
| ... | ... | @@ -13,7 +13,8 @@ Page({ |
| 13 | 13 | iurl: o.imghost, |
| 14 | 14 | showModal: false, //弹框控制器 |
| 15 | 15 | perpaid: [], //数据, |
| 16 | - paying:0 | |
| 16 | + paying:0, | |
| 17 | + is_get:0 | |
| 17 | 18 | }, |
| 18 | 19 | onLoad:function (){ |
| 19 | 20 | //定义第一次进入 |
| ... | ... | @@ -50,6 +51,9 @@ Page({ |
| 50 | 51 | }, |
| 51 | 52 | /*预存款的劵*/ |
| 52 | 53 | async yuck() { |
| 54 | + | |
| 55 | + | |
| 56 | + wx.showLoading(); | |
| 53 | 57 | var user_id = getApp().globalData.user_id; |
| 54 | 58 | var store_id = os.stoid; |
| 55 | 59 | console.log(user_id, "有进来吗银行卡", store_id ); |
| ... | ... | @@ -68,6 +72,9 @@ Page({ |
| 68 | 72 | e.setData({ |
| 69 | 73 | perpaid: perpaids,is_get:1 |
| 70 | 74 | }); |
| 75 | + | |
| 76 | + wx.hideLoading(); | |
| 77 | + | |
| 71 | 78 | }) |
| 72 | 79 | |
| 73 | 80 | }, | ... | ... |
packageD/pages/user/deposit/prepaid/prepaid.json
packageD/pages/user/deposit/prepaid/prepaid.wxml
| ... | ... | @@ -38,6 +38,11 @@ |
| 38 | 38 | |
| 39 | 39 | </block> |
| 40 | 40 | |
| 41 | + | |
| 42 | +<view wx:if="{{perpaid.length==0 && is_get}}" style="text-align: center;"> | |
| 43 | + <nodata title="暂无充值活动" nodataContainer="nodata"></nodata> | |
| 44 | +</view> | |
| 45 | + | |
| 41 | 46 | <view class="mask" catchtouchmove="preventTouchMove" wx:if="{{showModal}}"></view> |
| 42 | 47 | <view class="big-rim modalDlg" wx:if="{{showModal}}"> |
| 43 | 48 | <view class="gb-rim" bindtap="shut"> | ... | ... |