<!--pages/microShop_baseinfo/microShop_baseinfo.wxml-->
<view class="baseInfo">
	<view wx:if="{{showBox == 'main'}}">
		<view class="ul nav">
			<view class="li {{showInfo?'active22':''}}" catchtap="changeActive" data-bol="{{true}}">
				基本信息
			</view>
			<view class="li {{!showInfo?'active22':''}}" catchtap="changeActive" data-bol="{{false}}">
				自选商品
			</view>
		</view>
		<view wx:if="{{showInfo}}" class="info">
			<view class="list">
				<van-cell-group>
					<van-cell title="商品管理" is-link bind:click="manageShop" />
				</van-cell-group>
				<van-cell-group>
					<van-cell title="店招背景" is-link bind:click="changeShowBox" data-text="店招背景" />
				</van-cell-group>
			</view>
			<view class="li">
				个性签名
				<van-field type="textarea" value="{{shopModle.signature}}" placeholder="请输入个性签名" border="{{ false }}" bind:blur="signatureinp"
				 maxlength="{{120}}" />
			</view>
			<view class="btn" catchtap="changeActive" data-bol="{{false}}" data-num="1">
				确 定
			</view>
		</view>
		<view wx:else class="selectGoods">
			<view class="content">
				<image src="{{bannerImg}}" mode='widthFix' />
			</view>
			<view class="a" catchtap="gomicroshopaddcategory">
				<view class="add">
					<view class="addlitle">
						<text class="i">+</text>
						<text class="span font">选择 商品</text>
					</view>
				</view>
			</view>
			<view class="p">
				<view class="top">
					{{'店主可以通过选择商品就可以生成'+(shoplang?shoplang:'微店')+'，将'+(shoplang?shoplang:'微店')+'分享给好友，好友通过自己的'+(shoplang?shoplang:'微店')+'链接进入购买商品就可以获得分红啦~'}}
				</view>
				<view class="bottom">
					{{'快去选择您的'+(shoplang?shoplang:'微店')+'商品吧！'}}
				</view>
			</view>
		</view>
	</view>
	<view class="popupInput" wx:elif="{{showBox == 'upLoadBox'}}">
		<view class="m_header">
			<text class="span iconfont icon-left" clatchtap="closePopInput"></text>
			修改{{ changeType }}
		</view>
		<view class="inputBox">
			<view class="photoshow" catchtap="onRead">
				<image class="avatar" src="{{bgImg?bgImg:'https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/mircro_img.png'}}" mode='aspectFill' />
			</view>
		</view>
		<view class="notes">
			<view class="p">请上传不大于2M的jpeg或者png格式的图片。</view>
		</view>
		<view class="bottom-btn">
			<view class="bg-btn" catchtap="onRead">
				更换背景
			</view>
			<view class="button" catchtap="closePopInput">保存</view>
		</view>
	</view>
</view>
