<!--packageH/circleCommunity/circlereleaseVideo/circlereleaseVideo.wxml-->


<view class="releaseVideo">
	<view class="content">
		<view class="settitle">
			<van-cell-group>
				<van-field value="{{ title }}" maxlength="{{18}}" placeholder="标题：请输入标题，4-18个字" border="{{ false }}" bind:blur="titleBlur" />
			</van-cell-group>
		</view>
		<view class="releaseContent">
			<!-- <view class="video-wrap" catchtap="onReadVideo">
				<video id="myvideo" src="{{videoUrl}}" wx:if="{{videoUrl}}" controls></video>
				<view class="back_img" wx:if="{{!videoUrl}}">
					<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/agreen_video@2x.png" mode='widthFix' />
				</view>
				<view class="tips" wx:if="{{!videoUrl && limit>0}}">视频时长不应超过<text class="small" style="color:#FFC107;font-size:28rpx;">{{limit}}</text>秒</view>
			</view> -->
			<yz-upVideo bind:beforeUp="beforeUpVideo" bind:successUp="successUpVideo" width="350rpx" height="350rpx" limit="{{limit}}" videoUrl="{{videoUrl}}"></yz-upVideo>
			<yz-uploader bind:beforeUp="beforeUpImg" bind:successUp="successUpImg" fileSrc="{{videoCover}}" bind:delete="deleteImg" customStyle="width:350rpx;height:350rpx;border:none;background: #fafafa;" max_count="{{1}}" isSlot="{{true}}">
				<view class="back_img">
					<image src="../../../image/uppictures.png" mode='widthFix' />
				</view>
				<view class="tips">提示：上传的视频封面图尽量和视频高度一致</view>
			</yz-uploader>
			<!-- <view class="image-wrap" catchtap="onReadimge">
				<view class="img" wx:if="{{videoCover}}">
					<image src="{{videoCover}}" mode='widthFix' />
				</view>
				<view class="back_img" wx:if="{{!videoCover}}">
					<image src="../../../image/uppictures.png" mode='widthFix' />
				</view>
				<view class="tips" wx:if="{{!videoCover}}">提示：上传的视频封面图尽量和视频高度一致</view>
			</view> -->
		</view>
		<view class="changeGoodContent">
			<view class="span changeGoodClass" wx:if="{{chooseGoods}}" catchtap="gotoAdd">更换商品</view>
		</view>
	</view>
	<view class="goood-class" wx:if="{{chooseGoods}}">
		<view class="img">
			<image src="{{chooseGoods.thumb}}" mode='widthFix' />
		</view>
		<view class="right-class">
			<view>{{chooseGoods.title}}</view>
			<view class="price">
				<view class="span now-price">{{language['money']}}{{chooseGoods.price}}</view>
				<view class="span old-price">原价：{{language['money']}}{{chooseGoods.market_price}}</view>
			</view>
		</view>
	</view>
	<view style="height: 90rpx;"></view>
	<view class="bottomBtn">
		<view class="span" catchtap="BtnMethos" wx:if="{{!showUploadBtn&&!uploadIng&&!imguploadIng}}">{{isNeedGoods&&chooseGoods == null?"添加商品":"确认发布"}}
		</view>
		<view class="span" style="background-color: #7d7e80;" wx:if="{{!showUploadBtn&&uploadIng}}">视频上传中...
		</view>
		<view class="span" style="background-color: #7d7e80;" wx:if="{{imguploadIng}}">图片上传中...
		</view>
	</view>
</view>

