<!--packageE/groupCode/groupCodeCreate/groupCodeCreate.wxml-->

<view class="code">
	<view class="codeList">
		<view class="left">活码名称</view>
		<view class="right">
			<input placeholder="输入活码名称" placeholder-class="riginp" bindinput="name" value="{{info.code_name}}"></input>
		</view>
	</view>
	<view class="codeList">
		<view class="left">引导语</view>
		<view class="right">
			<input placeholder="引导用户扫码进群" placeholder-class="riginp" bindinput="guide" value="{{info.code_guide}}"></input>
		</view>
	</view>
	<view class="codeList">
		<view class="left">客服二维码</view>
		<view class="right" style="display:flex;justify-conten:flex-end;flex:0;">
			<view class="imgBox" catchtap="onRead">
				<van-icon name='plus' size="40px" color="#999999" wx:if="{{!imageUrl}}"></van-icon>
				<image src="{{imageUrl}}" mode="aspectFill" wx:else></image>
			</view>
		</view>
	</view>
	<view class="codeList">
		<view class="left">客服引导语</view>
		<view class="right">
			<input placeholder="引导用户添加客服微信" placeholder-class="riginp" bindinput="service_guide" value="{{info.customer_service_guide}}"></input>
		</view>
	</view>

	<view class="codeList" wx:if="{{auth_recommend == '1'}}">
		<view class="left">推荐</view>
		<view class="right">
			<switch checked="{{info.recommend == '1'?true:false}}" bindchange="change1"></switch>
		</view>
	</view>
	<view class="smlist">
		<view class="left">说明</view>
		<view class="right">
			<switch checked="{{info.explain}}" bindchange="change"></switch>
		</view>
	</view>
	<view wx:if="{{info.explain}}" style="margin-left: 37rpx;padding-right: 48rpx;padding-bottom:51rpx;border-bottom: 1rpx solid #f0f0f0;margin-bottom:26rpx;">
		<textarea placeholder="请输入说明事项请输入说明事项请输入说明事项" placeholder-class='riginp' bindinput="explaincon" value="{{info.explain_content}}"></textarea>
	</view>
	<view class="qunCode">
		<view class="imgBox" catchtap="onRead_2" style="margin: 0 30rpx 20rpx 0;">
			<van-icon name='plus' size="40px" color="#999999"></van-icon>
			<text>添加群二维码</text>
		</view>
		<!--  -->
		<block wx:for="{{code_data}}" wx:key="index">
			<view class="dibox">
				<view class="imgBox">
					<view class="close" catchtap="delImg" data-ind="{{index}}">
						<icon class="iconfont icon-guanbi"></icon>
					</view>
					<image src="{{item.code_url}}" mode="aspectFill"></image>
				</view>
				<view style="display:flex;align-items: center;margin-top:10rpx">
					<input class="upper" type="number" bindinput="upperLimit" data-ind='{{index}}' placeholder="扫码上限" value="{{item.upper_limit}}"></input><text>人</text>
				</view>

			</view>

		</block>

	</view>
</view>
<view class="btn" catchtap="save">保存</view>