<!--pages/mine/shop/mineshop.wxml-->
<cu-custom  isBack="{{true}}">
    <view slot="content">店铺认证</view>
</cu-custom>
<scroll-view>
    <view class="cu-bar bg-white margin-top">
        <view class="action">
            店铺营业执照<text class="iconfont icon-star-red margin-left-xs"></text>
        </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>
    <!-- 企业信息输入框 只有在上传了营业执照照片才会显示   -->
    <view wx:if="{{shopLicensePhotos.length>0}}" style="margin-bottom:100rpx;">
        <!-- 企业名称 -->
        <view class="cu-form-group margin-top-ls text-left">
            <view class="title">
                名称<text class="iconfont icon-star-red margin-left-xs"></text>
            </view>
            <input placeholder="请输入企业名称" bindinput="inputWatch" data-model="certificationName"
                model:value="{{certificationName}}"></input>
        </view>

        <view class="cu-form-group margin-top-ls text-left">
            <view class="title">
                类型<text class="iconfont icon-star-red margin-left-xs"></text>
            </view>
            <input placeholder="请输入企业类型" bindinput="inputWatch" data-model="certificationType"
                model:value="{{certificationType}}"></input>
        </view>
        <view class="cu-form-group margin-top-ls text-left">
            <view class="title">
                证书编号<text class="iconfont icon-star-red margin-left-xs"></text>
            </view>
            <input placeholder="请输入证书编号" bindinput="inputWatch" data-model="certificationNumber"
                model:value="{{certificationNumber}}"></input>
        </view>
        <view class="cu-form-group margin-top-ls text-left">
            <view class="title">
                统一信用代码<text class="iconfont icon-star-red margin-left-xs"></text>
            </view>
            <input placeholder="请输入企业名称" bindinput="inputWatch" data-model="certificationId"
                model:value="{{certificationId}}"></input>
        </view>
        <view class="cu-form-group margin-top-ls text-left">
            <view class="title">
                企业组成形式<text class="iconfont icon-star-red margin-left-xs"></text>
            </view>
            <input placeholder="请输入企业组成形式" bindinput="inputWatch" data-model="certificationComposition"
                model:value="{{certificationComposition}}"></input>
        </view>
        <view class="cu-form-group margin-top-ls text-left">
            <view class="title">
                法定代表人<text class="iconfont icon-star-red margin-left-xs"></text>
            </view>
            <input placeholder="请输入法定代表人" bindinput="inputWatch" data-model="certificationLegalPerson"
                model:value="{{certificationLegalPerson}}"></input>
        </view>
        <view class="cu-bar bg-white margin-top-ls">
            <view class="action">
                经营范围<text class="iconfont icon-star-red margin-left-xs"></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="textAreaInput" placeholder="请输入经营范围" data-model="certificationBusiness"
                    model:value="{{certificationBusiness}}"></textarea>
            </view>
        </view>
        <view class="cu-form-group margin-top-ls text-left">
            <view class="title">
                注册资本<text class="iconfont icon-star-red margin-left-xs"></text>
            </view>
            <input placeholder="请输入注册资本" bindinput="inputWatch" data-model="certificationCapital"
                model:value="{{certificationCapital}}"></input>
        </view>
        <view class="cu-form-group margin-top-ls text-left">
            <view class="title">
                成立日期<text class="iconfont icon-star-red margin-left-xs"></text>
            </view>
            <input placeholder="请输入成立日期" bindinput="inputWatch" data-model="certificationFoundTime"
                model:value="{{certificationFoundTime}}"></input>
        </view>
        <view class="cu-form-group margin-top-ls text-left">
            <view class="title">
                营业期限<text class="iconfont icon-star-red margin-left-xs"></text>
            </view>
            <input placeholder="请输入营业期限" bindinput="inputWatch" data-model="certificationLicenseTerm"
                model:value="{{certificationLicenseTerm}}"></input>
        </view>
        <view class="cu-bar bg-white margin-top-ls">
            <view class="action">
                企业地址<text class="iconfont icon-star-red margin-left-xs"></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="textAreaInput" placeholder="请输入企业地址" data-model="certificationAddress"
                    model:value="{{certificationAddress}}"></textarea>
            </view>
        </view>
        <view class="cu-form-group margin-top-ls text-left">
            <view class="title">
                登记机关<text class="iconfont icon-star-red margin-left-xs"></text>
            </view>
            <input placeholder="请输入登记机关" bindinput="inputWatch" data-model="certificationAuthority"
                model:value="{{certificationAuthority}}"></input>
        </view>
    </view>
</scroll-view>

<view class="padding-xs foot bg-white">
    <button class="cu-btn bg-gradual-blue" style="width:100%" bindtap="authShop">立即认证</button>
</view>