<!-- pages/member/CommodityRelease/CommodityRelease.wxml -->
<view class="goods-release">
		<view class="section edit-a">
				<van-field label="商品名称:" value="{{cargon_data.title}}" placeholder="请输入商品名称" border="{{ false }}" bind:blur="titleinp" />
				<van-field label="商品单位:" value="{{cargon_data.sku}}" placeholder="请输入商品单位" border="{{ false }}" bind:blur="skuinp" />
		</view>
		<view class="section commodity">
				<view class="span">商品分类：</view>
				<view class="span block">
						<view class="button" catchtap="seleRegional">
								<picker mode="multiSelector" bindcolumnchange="commodityBtn" value="{{multiIndex}}" range="{{objectMultiArray}}" range-key="name" bindchange="commodityconfirm">
										<view class="picker">{{regional}}</view>
								</picker>
						</view>
				</view>
		</view>
		<view class="section edit-b">
				<view class="top">
						<view class="span">商品图片：</view>
				</view>
				<view class="bottom">
						<view class="photoshow" catchtap="onRead">
								<image src="{{imageUrl?imageUrl:'https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/up_icon.png'}}" mode='widthFix' />
						</view>
				</view>
		</view>
		<view class="section otherphoto" wx:if="{{isType}}">
				<view class="top">
						<view class="span">商品详情：</view>
				</view>
				<view class="areaConten" wx:if="{{isType && store == 'supplier'}}">
					<textarea value="{{shopText}}" class="shopArea" placeholder="请输入商品详情文字" bindinput="areaInp"></textarea>
				</view>
				<view class="imgflex">
						<block wx:for-item="val" wx:for="{{fileList2}}" wx:key="index">
								<view class="photobox">
										<image src="{{val.url}}" mode='widthFix' />
										<view class="i" data-index="{{index}}" catchtap="removeImg"></view>
								</view>
						</block>
						<view class="photoshow" catchtap="onRead_1">
								<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/up_icon.png" mode='widthFix' />
						</view>
				</view>
		</view>
		<!-- <view class="section otherphoto" wx:if="{{isType && store == 'supplier'}}">
			<view class="top">
				<view class="span">商品详情文字：</view>
			</view>
			<view class="areaConten">
				<textarea value="{{shopText}}" class="shopArea" placeholder="请输入商品详情文字" bindinput="areaInp"></textarea>
			</view>
		</view> -->
		<view class="section otherphoto">
				<view class="top">
						<view class="span">其他图片（非必填）：</view>
				</view>
				<view class="imgflex">
						<block wx:for-item="val" wx:for="{{fileList3}}" wx:key="index">
								<view class="photobox">
										<image src="{{val.url}}" mode='widthFix' />
										<view class="i" data-index="{{index}}" catchtap="removeImg_1"></view>
								</view>
						</block>
						<view class="photoshow" catchtap="onRead_2">
								<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/up_icon.png" mode='widthFix' />
						</view>
				</view>
		</view>
		<view class="section edit-c">
				<van-field label="商品现价:" type="digit" value="{{cargon_data.price}}" placeholder="请输入商品现价" border="{{ false }}" bind:blur="priceinp" />
				<van-field label="商品原价:" type="digit" value="{{cargon_data.market_price}}" placeholder="请输入商品原价" border="{{ false }}" bind:blur="marketpriceinp" />
				<van-field label="商品成本:" type="digit" value="{{cargon_data.cost_price}}" placeholder="请输入商品成本" border="{{ false }}" bind:blur="costPriceinp" />
		</view>
		<view class="section edit-d">
				<van-field label="商品库存:" type="number" value="{{cargon_data.stock}}" placeholder="请输入商品库存" border="{{ false }}" bind:blur="stockinp" />
		</view>
</view>