Commit 4fcb9f9b6d43871c9a176ccafdd9b180977be3f2

Authored by yvan.ni
1 parent 47c9ca1b

预存remark的显示

pages/user/deposit/prepaid/fil.wxs 0 → 100644
  1 +function set_word(word){
  2 + if(!word) return '';
  3 + if(word.indexOf('复核')!==-1) return '';
  4 + return word;
  5 +}
  6 +
  7 +module.exports = {
  8 + set_word: set_word
  9 +}
0 \ No newline at end of file 10 \ No newline at end of file
pages/user/deposit/prepaid/prepaid.wxml
  1 +<wxs src="fil.wxs" module="fil"></wxs>
1 <block wx:for="{{perpaid}}" wx:for-index="idx" wx:for-item="perpaid"> 2 <block wx:for="{{perpaid}}" wx:for-index="idx" wx:for-item="perpaid">
2 <view class="coupon-container" wx:if="{{perpaid.NewSum>0 || perpaid.NewSum=='' }}"> 3 <view class="coupon-container" wx:if="{{perpaid.NewSum>0 || perpaid.NewSum=='' }}">
3 <image wx:if="{{idx % 4 == 0}}" class="picture" src="{{iurl+'miniapp/images/usermoney/green.png'}}"></image> 4 <image wx:if="{{idx % 4 == 0}}" class="picture" src="{{iurl+'miniapp/images/usermoney/green.png'}}"></image>
@@ -12,8 +13,8 @@ @@ -12,8 +13,8 @@
12 </view> 13 </view>
13 <view wx:if="{{perpaid.ItemType==2}}" catchtap="go_detail" data-id="{{perpaid.Id}}">充值送大礼 ></view> 14 <view wx:if="{{perpaid.ItemType==2}}" catchtap="go_detail" data-id="{{perpaid.Id}}">充值送大礼 ></view>
14 </view> 15 </view>
15 - <view class="right">备注:  
16 - <view class="">{{perpaid.ItemName}}</view> 16 + <view class="right">备注:
  17 + <view class="">{{fil.set_word(perpaid.Remark)}}</view>
17 <view class="ljcz" bindtap="submit" data-name="{{perpaid.BeginSum}}" data-item_type="{{perpaid.ItemType}}" 18 <view class="ljcz" bindtap="submit" data-name="{{perpaid.BeginSum}}" data-item_type="{{perpaid.ItemType}}"
18 data-advance="{{perpaid.Id}}" data-money="{{perpaid.NewSum}}">立即充值</view> 19 data-advance="{{perpaid.Id}}" data-money="{{perpaid.NewSum}}">立即充值</view>
19 </view> 20 </view>