yuminge-app/yun-min-program-plugin-master/packageH/toker/tokerSetMeal/tokerSetMeal.wxml

74 lines
2.9 KiB
Plaintext

<!--packageH/toker/tokerSetMeal/tokerSetMeal.wxml-->
<van-tabs active="{{ active }}" nav-class="vanNav" bind:change="changeTags" title-active-color="#f15353">
<van-tab title="一次性消费"></van-tab>
<van-tab title="多次消费"></van-tab>
</van-tabs>
<view style="width: 100%; height: 33.92rpx"></view>
<!-- 单次使用 -->
<view class="onece" wx:if="{{active == 0 && info.member_once}}">
<view style="background-color: #ffffff; border-radius: 15.04rpx">
<view class="oneceList" wx:for="{{info.member_once}}" wx:key="index">
<view class="img">
<image src="{{item.full_img_url}}" ></image>
</view>
<view class="rightBox">
<view class="title">{{item.name}}</view>
<view class="bottom">
<view class="bLeft">
<view class="num">
数量:<text>{{ item.quantity }}</text>
</view>
<view class="status">{{info.once_write_off == 0?'未使用':'已使用'}}</view>
</view>
<view class="bRightImg" wx:if="{{info.once_write_off == 1}}">
<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/tokerExchange@3x.png"></image>
</view>
</view>
</view>
</view>
</view>
<view style="font-size: 24rpx; color: #666666; textAlign: left; marginTop: 37.12rpx" wx:if="{{info.once_write_off == 1 && info.use_time}}">
使用时间:{{info.use_time}}
</view>
</view>
<!-- 多次使用 -->
<view class="is_two" wx:if="{{active == 1}}">
<view class="wirbox" wx:for="{{info.member_many}}" wx:key="index"
style="marginBottom: 20.16rpx; background: #ffffff">
<view class="oneceList" style="background: #fff; borderradius: 15.04rpx">
<view class="img">
<image src="{{item.full_img_url}}"></image>
</view>
<view class="rightBox">
<view class="title">{{item.name}}</view>
<view class="bottom">
<view class="bLeft">
<view class="num">
数量:<text>{{ item.quantity }}</text>
</view>
<view class="status" wx:if="{{item.rest_num>0}}">未使用{{item.rest_num}}</view>
<view class="status" wx:if="{{item.write_off_num>0}}" bindtap="setOperationBoxIndex" data-index="{{index}}">
已使用{{item.write_off_num}}
<text class="iconfont icon-member-top" wx:if="{{operationBoxIndex != index}}"></text>
<text class="iconfont icon-member-bottom" wx:if="{{operationBoxIndex==index}}"></text>
</view>
</view>
<view class="bRightImg" wx:if="{{item.rest_num == 0}}">
<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/tokerExchange@3x.png"></image>
</view>
<text class="twoTips" wx:if="{{item.rest_num > 0 && item.single_consumption}}">一次使用{{ item.single_consumption }}张以上</text>
</view>
</view>
</view>
<view class="conceal" wx:if="{{operationBoxIndex==index}}">
<view class="hoursUse" wx:for="{{item.use_time}}" wx:key="index">使用时间:{{ item }}</view>
</view>
</view>
</view>
<view style="height:96rpx;width:100%;"></view>