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.

1 line
6.1 KiB

4 months ago
<view class="wanlfind-add-container"><view class="edgeInsetTop"></view><view class="wanlfind-add-container__main"><block wx:if="{{params.type==='want'}}"><view class="want"><view class="padding-bj flex justify-between align-center"><view class="text-30">上传图片</view></view><view class="grid col-4 grid-square flex-sub padding-lr-bj"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block wx:if="{{item.g0>0}}"><view><view data-event-opts="{{[['tap',[['handlePreview',[index]]]]]}}" class="item" bindtap="__e"><image src="{{item.g1}}" mode="widthFix"></image></view><view data-event-opts="{{[['tap',[['handleDelImage',[index]]]]]}}" class="tag" bindtap="__e"><text class="wlIcon-31guanbi text-white"></text></view></view></block></block><block wx:if="{{$root.g2<9}}"><view data-event-opts="{{[['tap',[['handleImage']]]]}}" bindtap="__e"><view class="item"><view class="text-lg text-gray"><text class="wlIcon-tianjia"></text><block wx:if="{{$root.g3===0}}"><view class="margin-top-xs text-sm">添加图片</view></block><block wx:else><view class="margin-top-xs text-sm">继续添加</view></block></view></view></view></block></view><view class="padding-bj flex justify-between align-center"><view class="text-30"><text class="wlIcon-xiugaioryijian margin-right-xs text-bold"></text>种草内容</view></view><view class="padding-bj bg-gray margin-lr-bj radius-bock"><editor id="editor" placeholder="编辑种草文案~" data-event-opts="{{[['ready',[['onEditorReady',['$event']]]],['input',[['onEditorInput',['$event']]]]]}}" bindready="__e" bindinput="__e"></editor></view></view></block><block wx:if="{{params.type==='video'}}"><view class="video"><view class="padding-bj flex"><view class="upload margin-right-bj flex align-center justify-center radius-bock bg-gray"><block wx:if="{{video.tempFilePath}}"><view data-event-opts="{{[['tap',[['handleVideo',['$event']]]]]}}" bindtap="__e"><video class="radius-bock" controls="{{false}}" show-center-play-btn="{{false}}" src="{{video.tempFilePath}}" object-fit="cover"></video></view></block><block wx:else><block><block wx:if="{{video.progress===0&&video.progress!==100}}"><view data-event-opts="{{[['tap',[['handleVideo',['$event']]]]]}}" class="text-lg text-gray text-center" bindtap="__e"><text class="wlIcon-tianjia"></text><view class="margin-top-xs text-sm">添加视频</view></view></block></block></block><block wx:if="{{video.progress>0&&video.progress!==100}}"><view class="loading flex align-center justify-center"><view class="text-xxl text-gray text-center"><text class="wlIcon-jiazai wlIconfont-spin"></text><view class="margin-top-xs text-min">{{''+$root.g4+"/"+$root.g5+''}}</view></view></view></block></view><editor id="editor" placeholder="给视频添加标题,提升曝光率获取更多赞赏~" data-event-opts="{{[['ready',[['onEditorReady',['$event']]]],['input',[['onEditorInput',['$event']]]]]}}" bindready="__e" bindinput="__e"></editor></view></view></block><view class="solid-top"><view data-event-opts="{{[['tap',[['handleGoods']]]]}}" class="padding-bj flex justify-between align-center" bindtap="__e"><view class="text-30"><text class="wlIcon-goods margin-right-xs text-bold"></text>选择商品</view><view class="text-30"><text class="wlIcon-fanhui2"></text></view></view><view class="grid col-4 grid-square flex-sub padding-lr-bj"><block wx:if="{{$root.g6===0}}"><view data-event-opts="{{[['tap',[['handleGoods']]]]}}" bindtap="__e"><view class="item"><view class="text-lg text-gray"><text class="wlIcon-tianjia"></text><view class="margin-top-xs text-sm">添加商品</view></view></view></view></block><block wx:for="{{$root.l1}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block wx:if="{{$root.g7>0}}"><view data-event-opts="{{[['tap',[['handleGoods']]]]}}" bindtap="__e"><view class="item"><image src="{{item.g8}}" mode="widthFix"></image></view></view></block></block></view></view></view><view class="safeAreaBottom"></view><view class="wanlfind-add-container__foot"><view class="cu-bar tabbar foot flex flex-direction"><button data-event-opts="