123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- <!-- customer-header-view -->
- <template name="customer-header-view">
- <view class="customer-header-view">
- <view>
- <text>{{t}}</text>
- <text>{{s}}</text>
- </view>
- <image src="{{src}}"></image>
- </view>
- </template>
- <!-- bottom-view-botton -->
- <template name="bottom-view-botton">
- <view class="bottom-view{{suffix}}">
- <button form-type="{{formT}}" bindtap="{{action}}" hover-class="none" plain="true" style="border-color: rgba(0, 0, 0, 0)">{{t}}</button>
- </view>
- </template>
- <!-- line -->
- <template name="right-line">
- <view class="right-line">
- <view></view>
- </view>
- </template>
- <template name="both-line">
- <view class="both-line">
- <view></view>
- </view>
- </template>
- <template name="line">
- <view class="line">
- <view></view>
- </view>
- </template>
- <!-- tips-view -->
- <template name="tips-view">
- <view class="tips-view">
- <view>
- <view wx:for="{{t}}" wx:key="">
- <view>
- <image src="../../../../icon/public/tips_view_d.png" mode="aspectFit"></image>
- </view>
- <text>{{item}}</text>
- </view>
- </view>
- </view>
- </template>
- <!-- discount-item -->
- <template name="discount-item">
- <view class="discount-item" bindtap="chooseAction" id="{{id}}">
- <view class="{{(status == 1 && expired == 0) ? 'discount-item-use' : 'discount-item-unuse'}}">
- <view>
- <text>¥</text>
- <text>{{coupon_price}}</text>
- </view>
- <text>{{p}}</text>
- </view>
- <view>
- <text>{{coupon_name}}</text>
- <text>说明:{{coupon_desc}}</text>
- <text>有效期至:{{end}}</text>
- </view>
- <image wx:if="{{type == 'choose'}}" class="discount-choose" src="{{imagePath + tools.getImage(chose, id)}}.png"></image>
- <image wx:elif="{{canUse == '1'}}" class="discount-use" src="{{imagePath + 'cash_coupon_right'}}.png"></image>
- </view>
- </template>
- <wxs module="tools">
- var getImage = function(a,i) {
- return a.indexOf(i) >= 0 ? 'filter_s' : 'filter_n'
- }
- module.exports.getImage = getImage
- </wxs>
|