47 lines
1.8 KiB
Plaintext
47 lines
1.8 KiB
Plaintext
<!--pages/article/publish.wxml-->
|
|
<view>
|
|
<view class="enter-sty-left">请选择视频封面</view>
|
|
<uploadImages bindmyevent="myEventListener1" count='1' showUrl="{{showImgUrl}}" uploadUrl="{{uploadImgUrl}}"></uploadImages>
|
|
<input type="text" class="enter-sty" placeholder-class="pla-s" bindinput='getInputTitle' value='{{title}}' placeholder="输入视频标题" />
|
|
<view class="enter-con">
|
|
<textarea placeholder="请输入描述" class="enter-wrap" bindinput='getInputContent' value='{{content}}' placeholder-style="color:#a0a0a0;" />
|
|
</view>
|
|
<view class="img-box">
|
|
<view class="video-content">
|
|
<video wx:if="{{videoUrl}}"
|
|
id="myVideo"
|
|
src="{{videoUrl}}"
|
|
enable-danmu
|
|
danmu-btn
|
|
show-center-play-btn='{{false}}'
|
|
show-play-btn="{{true}}"
|
|
controls
|
|
bindlongpress="bindlongpressimg"
|
|
class="v-sty"
|
|
picture-in-picture-mode="{{['push', 'pop']}}"
|
|
></video>
|
|
<view wx:if="{{!videoUrl}}" class='chooseimg' bindtap='uploadVideo' >
|
|
<view class="weui-uploader__input-box"></view>
|
|
</view>
|
|
</view>
|
|
<view class="tips">长按对应的视频即可删除</view>
|
|
</view>
|
|
|
|
<view class="tab-list">
|
|
<view class="list flex-row" bindtap="typeEvent">
|
|
<view class="flex-col">类型</view>
|
|
<view>
|
|
{{typeName}} <image src="../../images/arrow_right.png" class="arrow"></image>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<button class="pub-btn" style="margin-top:50px" bindtap="submit">发布</button>
|
|
</view>
|
|
<view class="type-wrap" wx:if="{{layerHide}}">
|
|
<view class="list-wrap">
|
|
<view wx:for="{{categoryList}}" wx:key="index" data-item="{{item}}" data-id="{{item.id}}" bindtap="currentTab" class="type-list flex-row {{item.id==categoryId ? 'list-cur' : ''}}">
|
|
<text>{{item.name}}</text>
|
|
<image src="../../images/select.png" class="select"></image>
|
|
</view>
|
|
</view>
|
|
</view> |