You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

67 lines
2.4 KiB

<view class="container">
<view class="other">
<view class="other-top">
<image src="../../../images/left.png"></image>
优惠券信息
</view>
</view>
<view class="circle">
<view class="formlist">
<text>面额</text>
<input type="text" placeholder="请输入面额" bindinput="couponPriceInput" />
</view>
<view class="formlist">
<text>使用条件</text>
<input type="text" placeholder="用券最低面额" bindinput="couponLimitInput" />
</view>
<view class="formlist">
<text>库存</text>
<input type="text" placeholder="可被领取的总券数" bindinput="couponTotalInput" />
</view>
<view class="formlist">
<text>每人限领</text>
<input type="text" placeholder="每人限领取数量" bindinput="personLimitInput" />
</view>
<view class="list">
<view class="title">有效时间</view>
<view class="time">
<picker mode="date" value="{{startTime}}" start="2021-01-01" end="2099-09-01" bindchange="bindstartTimeChange">
<view class="picker">
{{startTime}}
</view>
</picker>
<picker mode="date" value="{{endTime}}" start="2021-09-01" end="2099-09-01" bindchange="bindendTimeChange">
<view class="picker">
{{endTime}}
</view>
</picker>
</view>
</view>
<view class="formlist">
<text>类型</text>
<picker bindchange="radioChange" value="{{indexed}}" range-key="name" range="{{type}}" data-id='{{type[indexed].value}}'>
<view class="picker">
{{type[indexed].name}}
</view>
</picker>
</view>
<view class="formlist" hidden="{{club}}">
<text>选择俱乐部</text>
<picker bindchange="bindPickerChange" value="{{index}}" range-key="clubName" range="{{array}}" data-id='{{array[index].clubId}}'>
<view class="picker">
{{array[index].clubName}}
</view>
</picker>
</view>
<view class="formlist" hidden="{{active}}">
<text>选择活动</text>
<picker bindchange="activePickerChange" value="{{indexs}}" range-key="clubName" range="{{arrays}}" data-id='{{arrays[indexs].activityId}}'>
<view class="picker">
{{arrays[indexs].activityName}}
</view>
</picker>
</view>
</view>
<view class="bottom" bindtap="toadd">添加现金券</view>
</view>