addItem.wxml 2.4 KB
<view><u-navbar vue-id="285622d8-1" title="话题详情" autoBack="{{true}}" placeholder="{{true}}" bind:__l="__l"></u-navbar><u-divider vue-id="285622d8-2" bind:__l="__l"></u-divider><view class="mainBox"><u--input bind:input="__e" vue-id="285622d8-3" placeholder="请输入标题" border="bottom" clearable="{{true}}" value="{{titleValue}}" data-event-opts="{{[['^input',[['__set_model',['','titleValue','$event',[]]]]]]}}" bind:__l="__l"></u--input></view><view class="mainBox"><view class="stateBox flexA"><view data-event-opts="{{[['tap',[['toggeleHandler',[0]]]]]}}" class="{{['item','flexC',isImg&&'Z']}}" bindtap="__e">图片</view><view data-event-opts="{{[['tap',[['toggeleHandler',[1]]]]]}}" class="{{['item','flexC',!isImg&&'Z']}}" bindtap="__e">视频</view></view><u--textarea bind:input="__e" vue-id="285622d8-4" placeholder="请输入内容" value="{{value1}}" data-event-opts="{{[['^input',[['__set_model',['','value1','$event',[]]]]]]}}" bind:__l="__l"></u--textarea><view class="uploadImage flexA"><block wx:for="{{viList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="aa"><view data-event-opts="{{[['tap',[['delHandler',[index]]]]]}}" class="del" bindtap="__e">×</view><block wx:if="{{item.type==='v'}}"><image class="typeBox" src="/static/player.png" mode="scaleToFill"></image></block><image class="sty" src="{{item.image}}" mode="scaleToFill" data-event-opts="{{[['tap',[['previewImageHandler',['$0'],[[['viList','',index,'type']]]]]]]}}" bindtap="__e"></image></view></block><block wx:if="{{status=='video'&&!viList.length||status=='image'&&viList.length<9}}"><view data-event-opts="{{[['tap',[['chooseVideoHandler',['video']]]]]}}" class="flexC btnBox" bindtap="__e"><u-icon vue-id="285622d8-5" name="camera-fill" bind:__l="__l"></u-icon></view></block></view><u-divider vue-id="285622d8-6" bind:__l="__l"></u-divider><view class="cateBox flexA"><view class="cateText">话题分类:</view><block wx:for="{{cateList}}" wx:for-item="item" wx:for-index="index"><view data-event-opts="{{[['tap',[['toggleTypeHandler',['$0',index],[[['cateList','',index,'id']]]]]]]}}" class="{{['typeBox1','flexC',curType==index&&'ZZ']}}" bindtap="__e">{{''+item.type_name+''}}</view></block></view></view><view class="bottomBtn"><view data-event-opts="{{[['tap',[['getAddItem',['$event']]]]]}}" class="flexC" bindtap="__e">发表</view></view><view class="whiteBox"></view><view style="height:130rpx;"></view></view>