| 1 |
- <view class="app-content _div data-v-277780fa"><form data-event-opts="{{[['submit',[['formSubmit',['$event']]]]]}}" bindsubmit="__e" class="data-v-277780fa"><view class="module-com input-line-wrap _div data-v-277780fa"><tui-list-cell class="line-cell data-v-277780fa" vue-id="c7779c3a-1" hover="{{false}}" bind:__l="__l" vue-slots="{{['default']}}"><view class="tui-title required _div data-v-277780fa">广告图名称</view><input class="tui-input data-v-277780fa" placeholder-class="phcolor" name="adName" placeholder="请输入名称" maxlength="50" type="text" data-event-opts="{{[['input',[['__set_model',['$0','adName','$event',[]],['form']]]]]}}" value="{{form.adName}}" bindinput="__e"/></tui-list-cell><tui-list-cell class="line-cell between switch data-v-277780fa" vue-id="c7779c3a-2" padding="14upx 30upx" hover="{{false}}" bind:__l="__l" vue-slots="{{['default']}}"><view class="tui-title _div data-v-277780fa">永久有效</view><view class="_div data-v-277780fa"><switch checked="{{form.isPerpetual?true:false}}" data-event-opts="{{[['change',[['switchChangePerpetual',['$event']]]]]}}" bindchange="__e" class="data-v-277780fa"></switch></view></tui-list-cell><block wx:if="{{!form.isPerpetual}}"><view class="_div data-v-277780fa"><tui-list-cell class="line-cell data-v-277780fa" vue-id="c7779c3a-3" arrow="{{true}}" bind:__l="__l" vue-slots="{{['default']}}"><view class="tui-title required _div data-v-277780fa">开始时间</view><picker class="tui-input data-v-277780fa" mode="date" value="{{form.startTime}}" data-event-opts="{{[['change',[['startTimeFn',['$event']]]]]}}" bindchange="__e"><input name="startTime" type="text" hidden="{{true}}" data-event-opts="{{[['input',[['__set_model',['$0','startTime','$event',[]],['form']]]]]}}" value="{{form.startTime}}" bindinput="__e" class="data-v-277780fa"/><block wx:if="{{form.startTime}}"><view class="_div data-v-277780fa">{{form.startTime}}</view></block><block wx:else><view class="tui-placeholder _div data-v-277780fa">请选择</view></block></picker></tui-list-cell><tui-list-cell class="line-cell data-v-277780fa" vue-id="c7779c3a-4" arrow="{{true}}" bind:__l="__l" vue-slots="{{['default']}}"><view class="tui-title required _div data-v-277780fa">到期时间</view><picker class="tui-input data-v-277780fa" mode="date" value="{{form.endTime}}" data-event-opts="{{[['change',[['endTimeFn',['$event']]]]]}}" bindchange="__e"><input name="endTime" type="text" hidden="{{true}}" data-event-opts="{{[['input',[['__set_model',['$0','endTime','$event',[]],['form']]]]]}}" value="{{form.endTime}}" bindinput="__e" class="data-v-277780fa"/><block wx:if="{{form.endTime}}"><view class="_div data-v-277780fa">{{form.endTime}}</view></block><block wx:else><view class="tui-placeholder _div data-v-277780fa">请选择</view></block></picker></tui-list-cell></view></block><tui-list-cell class="line-cell between switch data-v-277780fa" vue-id="c7779c3a-5" padding="14upx 30upx" hover="{{false}}" bind:__l="__l" vue-slots="{{['default']}}"><view class="tui-title _div data-v-277780fa">启用状态</view><view class="_div data-v-277780fa"><switch checked="{{form.status==1?true:false}}" data-event-opts="{{[['change',[['switchChangeFn',['$event']]]]]}}" bindchange="__e" class="data-v-277780fa"></switch></view></tui-list-cell></view><view class="module-com input-line-wrap _div data-v-277780fa"><tui-list-cell class="line-img-wrap data-v-277780fa" vue-id="c7779c3a-6" hover="{{false}}" bind:__l="__l" vue-slots="{{['default']}}"><view class="app-img-upload _div data-v-277780fa"><view class="_div data-v-277780fa"><label class="ad-name required _span data-v-277780fa">广告图片</label><label class="app-color-3 app-size-24 _span data-v-277780fa">只能上传jpg/png格式</label></view><view class="line-img _div data-v-277780fa"><input name="adImgStr" type="text" hidden="{{true}}" value="{{adImgStr}}" class="data-v-277780fa"/><app-uploader vue-id="{{('c7779c3a-7')+','+('c7779c3a-6')}}" multiple="{{false}}" imgList="{{form.adImg}}" data-ref="appUploader" data-event-opts="{{[['^updateImgList',[['__set_sync',['$0','adImg','$event'],['form']]]],['^updateImgList',[['__set_sync',['$0','adImg','$event'],['form']]]]]}}" bind:updateImgList="__e" class="data-v-277780fa vue-ref" bind:__l="__l"></app-uploader></view></view></tui-list-cell></view><view class="module-com input-line-wrap _div data-v-277780fa"><tui-list-cell class="line-cell data-v-277780fa" vue-id="c7779c3a-8" hover="{{false}}" bind:__l="__l" vue-slots="{{['default']}}"><view class="tui-title required _div data-v-277780fa">链接方式</view><radio-group data-event-opts="{{[['change',[['radioChange',['$event']]]]]}}" class="tui-input flex-center-between data-v-277780fa" bindchange="__e"><label class="list data-v-277780fa" for="customLink"><radio id="customLink" value="0" checked="{{form.style==0}}" class="data-v-277780fa"></radio><label class="checkbox-text _span data-v-277780fa">自定义链接</label></label><label class="list data-v-277780fa" for="goodsLink"><radio id="goodsLink" value="1" checked="{{form.style==1}}" class="data-v-277780fa"></radio><label class="checkbox-text _span data-v-277780fa">链接指定商品</label></label></radio-group></tui-list-cell><block wx:if="{{form.style==0}}"><block class="data-v-277780fa"><tui-list-cell class="line-cell data-v-277780fa" vue-id="c7779c3a-9" hover="{{false}}" bind:__l="__l" vue-slots="{{['default']}}"><textarea class="tui-textarea data-v-277780fa" placeholder-class="phcolor" placeholder="请填写链接,留空点图片不跳转" auto-height="{{true}}" data-event-opts="{{[['input',[['__set_model',['$0','url','$event',[]],['form']]]]]}}" value="{{form.url}}" bindinput="__e"></textarea></tui-list-cell></block></block><block wx:else><block class="data-v-277780fa"><tui-list-cell class="goods-blo data-v-277780fa" vue-id="c7779c3a-10" hover="{{false}}" bind:__l="__l" vue-slots="{{['default']}}"><block wx:if="{{!$root.g0}}"><view class="goods-list-wrap _div data-v-277780fa"><view class="goods-list _div data-v-277780fa"><view class="list-img _div data-v-277780fa"><image src="{{goodsData.smallImgList[0]}}" alt="商品图片" mode="center" class="_img data-v-277780fa"></image></view><view class="list-right _div data-v-277780fa"><view class="_div data-v-277780fa">{{goodsData.goodsName}}</view><view class="app-price _div data-v-277780fa">{{"¥"+goodsData.price}}</view></view></view></view></block><view data-event-opts="{{[['tap',[['selGoodsFn',['$event']]]]]}}" class="admin-button-com blue _div data-v-277780fa" bindtap="__e">选择商品</view></tui-list-cell></block></block></view><view class="confirm-btn _div data-v-277780fa"><button class="admin-button-com big blue data-v-277780fa" formType="submit">确认</button></view></form></view>
|