add.wxml 2.5 KB

1
  1. <view><view class="from flex justify-center"><view class="from-box flex justify-center"><view class="from-box-c"><u-form class="vue-ref" vue-id="680d0267-1" model="{{form}}" label-position="top" data-ref="uForm" bind:__l="__l" vue-slots="{{['default']}}"><u-form-item vue-id="{{('680d0267-2')+','+('680d0267-1')}}" label="优惠券名称" bind:__l="__l" vue-slots="{{['default']}}"><u-input bind:input="__e" vue-id="{{('680d0267-3')+','+('680d0267-2')}}" placeholder="请输入优惠券名称" value="{{form.couponName}}" data-event-opts="{{[['^input',[['__set_model',['$0','couponName','$event',[]],['form']]]]]}}" bind:__l="__l"></u-input></u-form-item><u-form-item vue-id="{{('680d0267-4')+','+('680d0267-1')}}" label="有效期天数" bind:__l="__l" vue-slots="{{['default']}}"><u-input bind:input="__e" vue-id="{{('680d0267-5')+','+('680d0267-4')}}" type="number" placeholder="请选择有效期天数" value="{{form.endDate}}" data-event-opts="{{[['^input',[['__set_model',['$0','endDate','$event',[]],['form']]]]]}}" bind:__l="__l"></u-input></u-form-item><u-form-item vue-id="{{('680d0267-6')+','+('680d0267-1')}}" label="可使用订单最低金额" bind:__l="__l" vue-slots="{{['default']}}"><u-input bind:input="__e" vue-id="{{('680d0267-7')+','+('680d0267-6')}}" type="number" placeholder="请输入可使用订单最低金额" value="{{form.minMoney}}" data-event-opts="{{[['^input',[['__set_model',['$0','minMoney','$event',[]],['form']]]]]}}" bind:__l="__l"></u-input></u-form-item><u-form-item vue-id="{{('680d0267-8')+','+('680d0267-1')}}" label="优惠券金额" bind:__l="__l" vue-slots="{{['default']}}"><u-input bind:input="__e" vue-id="{{('680d0267-9')+','+('680d0267-8')}}" type="number" placeholder="请输入优惠券金额" value="{{form.money}}" data-event-opts="{{[['^input',[['__set_model',['$0','money','$event',[]],['form']]]]]}}" bind:__l="__l"></u-input></u-form-item><u-form-item vue-id="{{('680d0267-10')+','+('680d0267-1')}}" label="优惠券图片" bind:__l="__l" vue-slots="{{['default']}}"><u-upload class="vue-ref" vue-id="{{('680d0267-11')+','+('680d0267-10')}}" multiple="{{false}}" max-count="1" action="{{action}}" data-ref="uUpload" data-event-opts="{{[['^onRemove',[['onRemove']]],['^onChange',[['onChange']]]]}}" bind:onRemove="__e" bind:onChange="__e" bind:__l="__l"></u-upload></u-form-item></u-form></view></view></view><view class="button flex justify-center align-center"><view data-event-opts="{{[['tap',[['sumbit']]]]}}" class="button-box flex justify-center align-center" bindtap="__e">保存</view></view></view>