goods-detail.wxml 5.1 KB

1
  1. <view class="app-layout data-v-b8a7823c"><app-layout vue-id="197a4d9e-1" class="data-v-b8a7823c" bind:__l="__l" vue-slots="{{['default']}}"><block wx:if="{{list.length==0}}"><view class="show data-v-b8a7823c"><image src="./../image/add-detail.png" data-event-opts="{{[['tap',[['showMenu',[0]]]]]}}" bindtap="__e" class="data-v-b8a7823c"></image><view class="data-v-b8a7823c">快来添加内容,来介绍你的商品吧!</view></view></block><block wx:else><view class="data-v-b8a7823c"><block wx:for="{{list}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="list-item dir-top-nowrap data-v-b8a7823c"><block wx:if="{{item.type=='line'}}"><image class="line data-v-b8a7823c" src="{{adminImg.line}}"></image></block><block wx:if="{{item.type=='img'&&item.pic_url==''}}"><view class="loading main-center dir-top-nowrap cross-center data-v-b8a7823c"><image class="loading-img data-v-b8a7823c" src="/static/image/loading.gif"></image><view class="loading-text data-v-b8a7823c">图片上传中,请稍后...</view></view></block><block wx:if="{{item.type=='img'&&item.pic_url!=''}}"><image style="{{'height:'+(''+item.height)+';'}}" src="{{item.pic_url}}" data-event-opts="{{[['load',[['imageLoad',[index,'$event']]]]]}}" bindload="__e" class="data-v-b8a7823c"></image></block><block wx:if="{{item.type=='text'}}"><view class="txt data-v-b8a7823c"><text class="data-v-b8a7823c">{{item.text}}</text></view></block><view class="choose dir-right-nowrap data-v-b8a7823c"><view data-event-opts="{{[['tap',[['showMenu',[index]]]]]}}" class="choose-item data-v-b8a7823c" bindtap="__e">插入</view><block wx:if="{{item.type=='text'}}"><view data-event-opts="{{[['tap',[['editText',[index,'$0'],[[['list','',index]]]]]]]}}" class="choose-item data-v-b8a7823c" bindtap="__e">编辑</view></block><block wx:if="{{item.type=='img'}}"><view data-event-opts="{{[['tap',[['toggle',[index]]]]]}}" class="choose-item data-v-b8a7823c" bindtap="__e">替换</view></block><block wx:if="{{index!=list.length-1}}"><view data-event-opts="{{[['tap',[['move',[1,index,'$0'],[[['list','',index]]]]]]]}}" class="choose-item data-v-b8a7823c" bindtap="__e">下移</view></block><block wx:if="{{index!=0}}"><view data-event-opts="{{[['tap',[['move',[2,index,'$0'],[[['list','',index]]]]]]]}}" class="choose-item data-v-b8a7823c" bindtap="__e">上移</view></block><view data-event-opts="{{[['tap',[['toRemove',[index]]]]]}}" class="choose-item data-v-b8a7823c" bindtap="__e">删除</view></view></view></block><view class="{{['data-v-b8a7823c','placeholder',''+(iphone_x?'iphone_x':'')]}}"></view><view class="{{['data-v-b8a7823c','add',''+(iphone_x?'iphone_x':'')]}}"><view data-event-opts="{{[['tap',[['save',['$event']]]]]}}" bindtap="__e" class="data-v-b8a7823c">保存</view></view></view></block><block wx:if="{{textDialog||menu||is_delete}}"><view data-event-opts="{{[['tap',[['showMenu',['$event']]]]]}}" class="dialog data-v-b8a7823c" bindtap="__e"><block wx:if="{{menu}}"><view class="menu data-v-b8a7823c"><view class="menu-list main-center data-v-b8a7823c"><block wx:if="{{!toToggle}}"><view data-event-opts="{{[['tap',[['addLine',['$event']]]]]}}" class="menu-item data-v-b8a7823c" catchtap="__e"><image src="./../image/line.png" class="data-v-b8a7823c"></image><view class="data-v-b8a7823c">分割线</view></view></block><block wx:if="{{!toToggle}}"><view data-event-opts="{{[['tap',[['showText',['$event']]]]]}}" class="menu-item data-v-b8a7823c" catchtap="__e"><image src="./../image/txt.png" class="data-v-b8a7823c"></image><view class="data-v-b8a7823c">文本</view></view></block><view data-event-opts="{{[['tap',[['add',['album']]]]]}}" class="menu-item data-v-b8a7823c" bindtap="__e"><image src="./../image/image.png" class="data-v-b8a7823c"></image><view class="data-v-b8a7823c">图片</view></view><block wx:if="{{toToggle}}"><view class="toggle-placeholder data-v-b8a7823c"></view></block><view data-event-opts="{{[['tap',[['add',['camera']]]]]}}" class="menu-item data-v-b8a7823c" bindtap="__e"><image src="./../image/camera.png" class="data-v-b8a7823c"></image><view class="data-v-b8a7823c">相机</view></view></view><image class="close data-v-b8a7823c" src="/static/image/icon/close.png" data-event-opts="{{[['tap',[['showMenu',['$event']]]]]}}" bindtap="__e"></image></view></block><block wx:if="{{textDialog}}"><view class="textarea data-v-b8a7823c"><textarea focus="{{true}}" maxlength="-1" show-confirm-bar="{{true}}" data-event-opts="{{[['confirm',[['toList',['$event']]]],['input',[['__set_model',['','txt','$event',[]]]]]]}}" value="{{txt}}" bindconfirm="__e" bindinput="__e" class="data-v-b8a7823c"></textarea></view></block><block wx:if="{{is_delete}}"><view class="dialog-item data-v-b8a7823c"><view class="dialog-title data-v-b8a7823c">提示</view><view class="dialog-txt data-v-b8a7823c">是否删除该组件</view><view class="main-center btn-area data-v-b8a7823c"><view data-event-opts="{{[['tap',[['cancel',['$event']]]]]}}" class="submit-btn data-v-b8a7823c" bindtap="__e">取消</view><view class="line data-v-b8a7823c"></view><view data-event-opts="{{[['tap',[['remove',['$event']]]]]}}" class="submit-btn be-submit data-v-b8a7823c" bindtap="__e">确认</view></view></view></block></view></block></app-layout></view>