<view class="microRelease">
	<view class="content">
		<view class="uploadphotolist">
			<view class="ul">
				<view class="li" wx:for="{{imgData}}" wx:key="index">
					<image src="{{item}}" mode='aspectFill' />
					<image class="close" src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/close_iocn.png" catchtap="removeImg" data-index="{{index}}" mode='aspectFill' />
				</view>
				<view class="li" catchtap="onRead">
					<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/micro_communities/publish_add@2x.png" mode='widthFix' />
				</view>
			</view>
		</view>
		<view class="textInput">
			<view class="titleinp">
				<view class="required-field">*</view>
				<input type="text" value="{{releasetitle}}" placeholder="填写标题会更有赞哦~" bind:blur="releasetitleInp" />
			</view>
			<view class="contentinp">
				<view class="required-field">*</view>
				<textarea bindblur="releasecontentsInp" maxlength="-1" value="{{ releasecontents }}" placeholder="添加正文"></textarea>
				<!-- <view style="height: 100%;" class="{{(!classificationshow&&!Locationshow&&!addgoodslistshow&&!storeshow&&!protocolshow)?'':'noneBlock'}}">
					<van-field type="textarea" value="{{ releasecontents }}" custom-style="	height: 100%;width: 100%;text-align: left;border: none;outline: none;"
					 placeholder="添加正文" bind:blur="releasecontentsInp" />
				</view> -->
			</view>
		</view>
		<view class="messageadd">
			<view class="ul">
				<block wx:if="{{audio_open}}">
					<!-- 音频上传和录音 -->
					<audioUpload bind:uploaderAudio="updataAudio"></audioUpload>
					<!-- 上传的音频播放 wx:for="{{audioList}}"-->
					<audioSlider src='{{item.file}}' duration='{{item.duration}}' wx:for="{{audioList}}">
						<!-- 组件插槽 -->
						<!-- 删除按钮 -->
						<view style="padding: 0 5px; display: flex; align-items: center;" catchtap="delAudio" data-index="{{index}}">
							<i class="iconfont icon-info-complete" style="color: #4fc08d; font-size: 20px; margin-right: 4px;"></i>
							<i class="iconfont icon-all_delete_1" style="color:#5f5f5f;"></i>
						</view>
					</audioSlider>
				</block>
				<view class="li" catchtap="getClassification">
					<view class="left">
						<view class="required-field">*</view>
						<image wx:if="{{catid?true:false}}" src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/micro_communities/publish_select_class_cur@2x.png"
						 mode='widthFix' />
						<image wx:else src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/micro_communities/publish_select_class@2x.png" mode='widthFix' />
					</view>
					<view class="right">
						<view class="inforselection {{(catid?true:false)?'selecolor':''}}">
							<view class="inf_left">{{catname?catname:'选择分类'}}</view>
							<view class="inf_right">
								<van-icon name="arrow" />
							</view>
						</view>
					</view>
				</view>
				<view class="li" catchtap="getReleaseAddress">
					<view class="left">
						<image wx:if="{{releaseaddress?true:false}}" src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/micro_communities/publish_add_address_cur@2x.png"
						 mode='widthFix' />
						<image wx:else src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/micro_communities/publish_add_address@2x.png" mode='widthFix' />
					</view>
					<view class="right">
						<view class="inforselection {{(releaseaddress?true:false)?'selecolor':''}}">
							<view class="inf_left">{{releaseaddress?releaseaddress:'添加地点'}}</view>
							<view class="inf_right">
								<van-icon name="arrow" />
							</view>
						</view>
					</view>
				</view>
				<view class="li">
					<view class="left">
						<image wx:if="{{goodsId?true:false}}" src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/micro_communities/publish_add_goods_cur@2x.png"
						 mode='widthFix' />
						<image wx:else src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/micro_communities/publish_add_goods@2x.png" mode='widthFix' />
					</view>
					<view class="right">
						<block wx:if="{{goodsId?true:false}}">
							<view class="selectgoods">
								<view class="selectgoodsleft">
									<view class="goleft">
										<image src="{{selectgoodsData.thumb}}" mode='widthFix' />
									</view>
									<view class="gocenter">
										<view class="goodsname">{{selectgoodsData.title}}</view>
										<view class="fobottom">
											<view class="foleft">
												<view class="pic">{{language['money']}}{{selectgoodsData.price}}</view>
												<view class="delpic">{{language['money']}}{{selectgoodsData.market_price}}</view>
											</view>
											<view class="foright">
												<view class="sold">已售{{selectgoodsData.show_sales}}件</view>
											</view>
										</view>
									</view>
								</view>
								<view class="selectgoodsright">
									<view class="goright" catchtap="getGoodsMessage">
										更换
									</view>
								</view>
							</view>
						</block>
						<block wx:else>
							<view class="inforselection" catchtap="getGoodsMessage">
								<view class="inf_left">添加商品</view>
								<view class="inf_right">
									<van-icon name="arrow" />
								</view>
							</view>
						</block>
					</view>
				</view>
				<view class="li">
					<view class="left">
						<image wx:if="{{storeId?true:false}}" src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/micro_communities/publish_add_store_cur@2x.png"
						 mode='widthFix' />
						<image wx:else src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/micro_communities/publish_add_store@2x.png" mode='widthFix' />
					</view>
					<view class="right">
						<block wx:if="{{storeId?true:false}}">
							<view class="selectshop">
								<view class="selectgoodsleft">
									<view class="goleft">
										<image src="{{selectstoreData.thumb}}" mode='widthFix' />
									</view>
									<view class="gocenter">
										<view class="shopname">{{selectstoreData.store_name}}</view>
										<view class="start_1">
											<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/collect.png" mode='widthFix' />
											<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/collect.png" mode='widthFix' />
											<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/collect.png" mode='widthFix' />
											<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/collect.png" mode='widthFix' />
											<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/collect.png" mode='widthFix' />
										</view>
										<view class="fobottom">
											<view class="area">{{selectstoreData.address}}</view>
										</view>
									</view>
								</view>
								<view class="selectgoodsright">
									<view class="goright" catchtap="getStoreMessage">
										更换
									</view>
								</view>
							</view>
						</block>
						<block wx:else>
							<view class="inforselection" catchtap="getStoreMessage">
								<view class="inf_left">添加门店</view>
								<view class="inf_right">
									<van-icon name="arrow" />
								</view>
							</view>
						</block>
					</view>
				</view>
			</view>
		</view>
	</view>
	<view class="user_protocol">
		<van-checkbox value="{{ checked }}" bind:change="protocolBtn">阅读并同意<text class="us_color" catchtap="openProtocol">《用户协议》</text></van-checkbox>
	</view>
	<view class="Releasebtn">
		<view class="submit" catchtap="submitBtn">保存修改</view>
	</view>
	<van-popup show="{{ classificationshow }}" overlay="{{false}}" position="right" custom-style="width:100%;height:100%;">
		<view class="classification">
			<van-nav-bar title="选择分类" left-text="" right-text="取消" left-arrow bind:click-left="onClickLeft" bind:click-right="onClickRight" />
			<view class="searchbox">
				<view class="left">
					<view class="searchion"><i class="iconfont iconfont icon-sousuo1"></i></view>
					<view class="textinp">
						<van-field value="{{ commodityTitle }}" placeholder="搜索分类" clearable="{{true}}" bind:clear="commodityTitleClear"
						 bind:blur="commodityTitleInp" />
					</view>
				</view>
				<view class="right" catchtap="searchBtn">搜索</view>
			</view>
			<view class="classification_list">
				<view class="ul" wx:for="{{catelist}}" wx:key="index">
					<view class="li" catchtap="selectCateId" data-id="{{item.id}}" data-name="{{item.name}}">
						<view class="one_cat">{{ item.name }}</view>
						<view class="two_cat">
							<view class="childs-name {{catid == item.id ? 'color_text' : ''}}" catchtap="selectCateId"
								data-id="{{item.id}}" data-name="{{item.name}}">全部</view>
							<view class="childs-name {{catid == childs.id ? 'color_text' : ''}}" catchtap="selectCateTwoId"
								data-id="{{childs.id}}" data-name="{{item.name}}" data-cname="{{childs.name}}" wx:for="{{item.child}}"
								wx:for-item="childs">
								{{ childs.name }}
							</view>
						</view>
					</view>
				</view>
			</view>
		</view>
	</van-popup>
	<van-popup overlay="{{false}}" show="{{Locationshow}}" position="right" custom-style="width:100%;height:100%;">
		<view class="Locations">
			<van-nav-bar title="选择地点" left-text="" right-text="取消" left-arrow bind:click-left="onAddressLeft" bind:click-right="onAddressRight" />
			<view class="searchbox" style="position: relative;">
				<view class="left">
					<view class="searchion">
						<icon class="iconfont iconfont icon-sousuo1"></icon>
					</view>
					<view class="textinp">
						<input type="text" value="{{address_detail}}" placeholder="输入您所在的地点" bindinput="addressinpbtn" bindconfirm="searchconfirmbtn" />
					</view>
				</view>
				<view class="seachboxBottom" wx:if="{{suggestionshow}}">
					<block wx:for="{{suggestion}}" wx:key="index">
						<view class="seachboxContent">
							<view bindtap="backfill" data-id="{{index}}">{{item.title}}</view>
						</view>
					</block>
				</view>
			</view>
		</view>
	</van-popup>
	<van-popup overlay="false" show="{{addgoodslistshow}}" position="right" custom-style="width:100%;height:100%;">
		<view class="addgoodslist">
			<van-nav-bar title="添加商品" style="position: fixed;top:0;left: 0;width: 100%;z-index: 100" left-text="" right-text="取消" left-arrow bind:click-left="onAddGoodsLeft" bind:click-right="onAddGoodsRight" />
			<view class="searchbox" style="position: fixed;top: 70rpx;left: 0;width: 100%;background: #fff;z-index: 100">
				<view class="left">
					<view class="searchion"><i class="iconfont iconfont icon-sousuo1"></i></view>
					<view class="textinp">
						<van-field value="{{goodsdata}}" placeholder="搜索商品标题" clearable="{{true}}" bind:clear="goodsdataClear" bind:blur="goodsdataInp" />
					</view>
				</view>
				<view class="right" catchtap="searchGoodBtn">搜索</view>
			</view>
			<view class="addgoodslist_list" style="margin-top: 140rpx">
				<view class="ul">
					<scroll-view scroll-y='true' style="height:{{height}}px" bindscrolltolower='getGoodMoreData'>
						<view class="li" wx:for="{{goodslistData}}" data-id="{{item.id}}" catchtap="setGoodsId" wx:key="index">
							<view class="left">
								<image src="{{item.thumb}}" mode='widthFix' />
							</view>
							<view class="center">
								<view class="top">{{item.title}}</view>
								<view class="bottom">
									<view class="picleft">{{language['money']}}{{item.price}}</view>
									<view class="picright">原价：{{language['money']}}{{item.market_price}}</view>
								</view>
							</view>
							<view class="right" wx:if="{{goodsId==item.id}}">
								<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/micro_communities/addGoods_gou@2x.png" mode='widthFix' />
							</view>
						</view>
					</scroll-view>
				</view>
			</view>
		</view>
	</van-popup>
	<van-popup overlay="{{false}}" show="{{storeshow}}" position="right" custom-style="width:100%;height:100%;">
		<view class="storelist">
			<van-nav-bar title="添加门店" style="position: fixed;top:0;left: 0;width: 100%;z-index: 100" left-text="" right-text="取消" left-arrow bind:click-left="onStoreLeft" bind:click-right="onStoreRight" />
			<view class="searchbox" style="position: fixed;top: 70rpx;left: 0;width: 100%;background: #fff;z-index: 100">
				<view class="left">
					<view class="searchion"><i class="iconfont iconfont icon-sousuo1"></i></view>
					<view class="textinp">
						<van-field value="{{ storedata }}" placeholder="搜索门店" clearable="{{true}}" bind:clear="storedataClear" bind:blur="storedataInp" />
					</view>
				</view>
				<view class="right" catchtap="searchStoreBtn">搜索</view>
			</view>
			<view class="astorelist_list" style="margin-top: 140rpx">
				<view class="ul">
					<scroll-view scroll-y='true' style="height:{{height}}px" bindscrolltolower='getStoreMoreData'>
						<view class="li" wx:for="{{storelistData}}" data-id="{{item.id}}" catchtap="setStoreId" wx:key="index">
							<view class="left">
								<image src="{{item.thumb}}" mode='widthFix' />
							</view>
							<view class="center">
								<view class="top">{{item.store_name}}</view>
								<view class="start_1">
									<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/collect.png" mode='widthFix' />
									<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/collect.png" mode='widthFix' />
									<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/collect.png" mode='widthFix' />
									<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/collect.png" mode='widthFix' />
									<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/collect.png" mode='widthFix' />
								</view>
								<view class="fobottom">
									<view class="area">{{item.address}}</view>
								</view>
							</view>
							<view class="right" wx:if="{{storeId==item.id}}">
								<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/micro_communities/addGoods_gou@2x.png" mode='widthFix' />
							</view>
						</view>
					</scroll-view>
				</view>
			</view>
		</view>
	</van-popup>
	<van-popup overlay="{{false}}" show="{{protocolshow}}" position="right" custom-style="width:100%;height:100%;">
		<view class="protocolcontent">
			<van-nav-bar title="用户协议" left-text="" right-text="" left-arrow bind:click-left="protocolLeft" />
			<view class="content">
				<rich-text nodes="{{agreementcontent}}"></rich-text>
			</view>
		</view>
	</van-popup>
</view>
