<!--pages/member/CommodityEditor/CommodityEditor.wxml-->
<view class="goods-edit">
	<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?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">
		<view class="top">
			<view class="span">其他图片：</view>
		</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 edit-c">
		<van-field label="商品现价:" type="number" value="{{cargon_data.price}}" placeholder="请输入商品现价" border="{{ false }}"
		 bind:blur="priceinp" />
		<van-field label="商品原价:" type="number" value="{{cargon_data.market_price}}" placeholder="请输入商品原价" border="{{ false }}"
		 bind:blur="marketpriceinp" />
		<van-field label="商品成本:" type="number" 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 class="section btn">
		<view class="button" catchtap="confirmationEditor">确认发布</view>
	</view>
</view>
<!-- <shopfoot></shopfoot> -->
