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 lines
6.1 KiB

<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="{{[['tap',[['handleSubmit',['$event']]]]]}}" class="cu-btn bg-red lg" bindtap="__e"><text class="wlIcon-fabu margin-right-sm"></text>{{'发布'+(params.type==='want'?'种草':'短视频')+''}}</button></view></view><view class="wanlfind-add-container__modal"><view data-event-opts="{{[['tap',[['handleHideModal',['$event']]]]]}}" class="{{['cu-modal','bottom-modal',modalName=='goods'?'show':'']}}" bindtap="__e"><view data-event-opts="{{[['tap',[['',['$event']]]]]}}" class="cu-dialog bg-bgcolor" catchtap="__e"><view class="wanl-modal"><view class="head padding-bj"><view class="content"><view class="text-lg">购买过的商品</view></view><view data-event-opts="{{[['tap',[['handleHideModal',['$event']]]]]}}" class="close wlIcon-31guanbi" bindtap="__e"></view></view><scroll-view class="scroll-y" scroll-y="{{true}}" data-event-opts="{{[['scrolltoupper',[['handleUpper',['$event']]]]]}}" bindscrolltoupper="__e"><block wx:if="{{$root.g9}}"><wanl-empty vue-id="9cb7a2d2-1" text="还没有购买过任何商品" bind:__l="__l"></wanl-empty></block><block wx:if="{{$root.g10>0}}"><view><block wx:for="{{$root.l2}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['handleChoose',[index]]]]]}}" class="item bg-white padding-bj margin-bottom-bj radius-bock" bindtap="__e"><image class="radius margin-right-bj" src="{{item.g11}}" mode="aspectFill"></image><view class="details margin-right-bj"><view class="text-cut-2 text-sm"><text>{{item.$orig.title}}</text></view><view class="text-orange"><text class="text-price">{{item.$orig.price}}</text></view></view><view class="flex align-center text-xxl"><block wx:if="{{item.$orig.choose}}"><text class="wlIcon-xuanze-danxuan text-red"></text></block><block wx:else><text class="wlIcon-xuanze text-gray"></text></block></view></view></block></view></block><uni-load-more vue-id="9cb7a2d2-2" status="{{status}}" content-text="{{contentText}}" bind:__l="__l"></uni-load-more></scroll-view><view class="foot padding-lr-bj"><button data-event-opts="{{[['tap',[['handleHideModal',['$event']]]]]}}" class="cu-btn bg-red text-bold complete" bindtap="__e">完成</button></view></view></view></view></view></view>