<cu-custom isBack="{{true}}">
    <view slot="content">店铺信息修改</view>
</cu-custom>
<scroll-view class="margin-bottom-xxl padding-bottom-xxl ">
    <form>
        <!-- 店铺名称 -->
        <view class="cu-form-group margin-top-xs text-left">
            <view class="title">
                <text class="text-gray">店铺名称</text><text class="iconfont icon-star-red margin-left-xs"></text>
            </view>
            <input placeholder="请输入店铺名称" bindinput="inputWatch" data-model="{{shopName}}"
                model:value="{{shopName}}"></input>
        </view>
        <!-- 店铺地址 -->
        <view class="cu-form-group">
            <view class="title">
                <text class="text-gray">店铺地址</text><text class="iconfont icon-star-red margin-left-xs"></text>
            </view>
            <input placeholder="请输入店铺地址" bindinput="inputWatch" data-model="shopAddress"
                model:value="{{shopAddress}}"></input>
        </view>
        <!-- 行业 -->
        <view class="cu-form-group">
            <view class="title">
                <text decode="{{true}}" class="text-gray">行&ensp;&ensp;&ensp;&ensp;业</text><text
                    class="iconfont icon-star-red margin-left-xs"></text>
            </view>
            <view class="content text-cut" bindtap="showChooseTrade">
                {{selTradeNames}}
            </view>
            <text class="cuIcon-right text-gray"></text>
        </view>
        <!-- 开业时间 -->
        <view class="cu-form-group">
            <view class="title">
                <text class="text-gray">开业日期</text><text class="iconfont icon-star-red margin-left-xs"></text>
            </view>
            <picker mode="date" value="{{date}}" start="{{startDate}}" end="{{endDate}}" bindchange="DateChange">
                <view class="picker">
                    {{date}}
                </view>
            </picker>
        </view>
        <!-- 是否开业 -->
        <view class="cu-form-group">
            <view class="title">
                <text class="text-gray">是否开业</text><text class="iconfont icon-star-red margin-left-xs"></text>
            </view>
            <switch class="blue sm" checked="{{isBusiness}}" bindchange="checkIsBusiness"></switch>
        </view>
        <!-- 店铺营业执照  -->
        <!-- <view class="cu-bar bg-white margin-top">
            <view class="action">
                <icon class="iconfont icon-star-red"></icon>店铺营业执照
            </view>
            <view class="action">
                {{shopLicensePhotos.length}}/1
            </view>
        </view>
        <view class="cu-form-group">
            <view class="grid col-3 grid-square flex-sub">
                <view class="bg-img" wx:for="{{shopLicensePhotos}}" wx:key="index" bindtap="ViewLicImg"
                    data-url="{{shopLicensePhotos[index].path}}">
                    <image src='{{shopLicensePhotos[index].path}}' mode='aspectFill'></image>
                    <view class="cu-tag bg-red" catchtap="DelLicenseP" data-index="{{index}}">
                        <text class="cuIcon-close"></text>
                    </view>
                </view>
                <view class="solids" bindtap="ChooseLicenseP" wx:if="{{shopLicensePhotos.length<1}}">
                    <text class="cuIcon-cameraadd"></text>
                </view>
            </view>
        </view> -->
        <!-- 店铺Logo -->
        <view class="cu-bar bg-white margin-top-xs">
            <view class="action">
                <text class="text-gray">店铺Logo</text><text class="iconfont icon-star-red margin-left-xs"></text>
            </view>
            <view class="action">
                {{shopLogoPhotos.length}}/1
            </view>
        </view>
        <view class="cu-form-group">
            <view class="grid col-3 grid-square flex-sub">
                <view class="bg-img" wx:for="{{shopLogoPhotos}}" wx:key="index" bindtap="ViewLogoImg"
                    data-url="{{shopLogoPhotos[index].path}}">
                    <image src='{{shopLogoPhotos[index].path}}' mode='aspectFill'></image>
                    <view class="cu-tag bg-red" catchtap="DelLogoP" data-index="{{index}}">
                        <text class="cuIcon-close"></text>
                    </view>
                </view>
                <view class="solids" bindtap="ChooseLogoP" wx:if="{{shopLogoPhotos.length<1}}">
                    <text class="cuIcon-cameraadd"></text>
                </view>
            </view>
        </view>
        <view class="cu-bar bg-white margin-top">
            <view class="action">
                <text class="text-gray">宣传视频</text>
            </view>
            <view class="action">
                {{shopVideos.length}}/1
            </view>
        </view>
        <view class="cu-form-group">
            <view class="grid col-3 grid-square flex-sub">
                <view class="bg-img" wx:for="{{shopVideos}}" wx:key="index" bindtap="viewVideo"
                    data-url="{{shopVideos[index].videoUrl}}">
                    <image src='{{shopVideos[index].path}}' mode='aspectFill'></image>
                    <view class="cu-tag bg-red" catchtap="delVideo" data-index="{{index}}">
                        <text class="cuIcon-close"></text>
                    </view>
                </view>
                <view class="solids" bindtap="chooseVideo" wx:if="{{shopVideos.length<1}}">
                    <text class="cuIcon-cameraadd"></text>
                </view>
            </view>
        </view>
        <!-- 店铺简介 -->
        <view class="cu-bar bg-white margin-top-xs">
            <view class="action">
                <text class="text-gray">店铺简介</text>
            </view>
        </view>
        <view class="bg-white">
            <view class="cu-form-group">
                <textarea class="border-line padding-left-xs padding-right-xs margin-left-xs margin-right-xs"
                    maxlength="-1" bindinput="textareaBInput" placeholder="请输入店铺简介"
                    model:value="{{textareaBValue}}"></textarea>
            </view>
        </view>
        <!-- 店铺模板 -->
        <view class="cu-bar bg-white margin-top-xs">
            <view class="action">
                <text class="text-gray">展示样式</text><text class="iconfont icon-star-red margin-left-xs"></text>
            </view>
        </view>
        <view class="bg-white">
            <radio-group bindchange="choosetemplate">
                <view class="grid col-2 text-center padding-xs">
                    <view class="solid">
                        <radio class="blue radio" value="1" checked="{{selTemplateId=='1'}}"></radio>样式一
                        <image src="/images/templete_1.png" style="margin-top:10rpx;width:200rpx;height:210rpx"></image>
                    </view>
                    <view class="solid">
                        <radio class="blue radio" value="2" checked="{{selTemplateId=='2'}}"></radio>样式二
                        <image src="/images/templete_2.png" style="margin-top:10rpx;width:200rpx;height:210rpx"></image>
                    </view>
                    <view class="solid">
                        <radio class="blue radio" value="3" checked="{{selTemplateId=='3'}}"></radio>样式三
                        <image src="/images/templete_3.png" style="margin-top:10rpx;width:200rpx;height:210rpx"></image>
                    </view>
                    <view class="solid">
                        <radio class="blue radio" value="4" checked="{{selTemplateId=='4'}}"></radio>样式四
                        <image src="/images/templete_4.png" style="margin-top:10rpx;width:200rpx;height:210rpx"></image>
                    </view>

                </view>
            </radio-group>
        </view>
    </form>
</scroll-view>
<view class="padding-xs foot bg-white">
    <button class="cu-btn bg-blue" style="width:100%" bindtap="doUpdateShop">保存</button>
</view>