<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-field title-width="2.5em" catchtap='getCategory' is-link wx:if="{{is_show_cate}}" value="{{category_name}}" label="分类"  disabled placeholder="点击选择分类" border="{{ false }}"/>
			</van-cell-group>
		</view>
		<view class="releaseContent">
			<view class="video-wrap">
				<video id="myvideo" src="{{videoUrl}}" wx:if="{{videoUrl}}" controls></video>
				<view class="back_img" wx:if="{{!videoUrl}}" catchtap="onReadVideo">
					<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}}">视频时长不应超过<text class="small" style="color:#FFC107;font-size:28rpx;">{{limit}}</text>秒</view>
				<i catchtap="removeImg" wx:if="{{videoUrl}}" data-tag="video" class="iconfont icon-guanbi deletaIcon"></i>
			</view>
			<view class="image-wrap" catchtap="onReadimge">
				<view class="img" wx:if="{{videoCover}}">
					<image src="{{videoCover}}" mode='aspectFit' />
				</view>
				<view class="back_img" wx:if="{{!videoCover}}">
					<image src="../../../image/uppictures.png" mode='widthFix' />
				</view>
				<view class="tips" wx:if="{{!videoCover}}">提示：上传的视频封面图尽量和视频高度一致</view>
				<i catchtap="removeImg" wx:if="{{videoCover}}" data-tag="img" class="iconfont icon-guanbi deletaIcon"></i>
			</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:elif="{{imguploadIng}}">图片上传中...
		</view>
	</view>

	<van-popup show="{{ showCategory }}" closeable position="bottom" custom-style="height:50%" bind:close="onClose">
		<view class="search-h2">请选择分类</view>
		<van-search
			value="{{ searchWord }}"
			placeholder="请输入分类名"
			use-action-slot
			bind:change="onFilterCategory"
		>
			<view slot="action" bind:tap="onFilterCategory">搜索</view>
		</van-search>

		<van-radio-group value="{{ category_id }}">
			<van-cell-group>
				<van-cell wx:for="{{categoryFilterList}}" title="{{item.name}}" clickable data-name="{{item.name}}" data-id="{{item.id}}" bind:click="onClickCategory">
					<van-radio slot="right-icon" name="{{item.id}}" />
				</van-cell>
			</van-cell-group>
		</van-radio-group>
	</van-popup>
</view>
