<!-- packageE/others/application_market/change_site/change_site.wxml -->
<view class="content">
    <van-form>
        <van-field bind:input="company"  wx:if="{{isNew}}" value="{{form.name}}" name="公司/个人名称" label="公司/个人名称" placeholder="请填写公司/个人名称" />
        <van-field bind:input="domain" value="{{form.domain}}" name="域名" label="域名" placeholder="请填写域名" />
        <view class="tips p">已部署的当前商城系统域名，如：{{domain}}</view>
        <view class="tips red p">注：您只能绑定一个站点，请勿绑定他人站点！</view>
        <van-field value="{{form.tel}}" bind:input="tel" name="手机号" label="手机号" placeholder="请填写手机号" />
        <van-field value="{{form.code}}" bind:input="auth" center clearable label="短信验证码" placeholder="请输入短信验证码">
            <van-button slot="button" size="small" round plain type="info" catchtap="sureIdentify" wx:if="{{count<= 0}}">
                获取验证码
            </van-button>
            <van-button slot="button" size="small" round plain type="info" disabled wx:if="{{count> 0}}">
                {{count}}秒后重新获取
            </van-button>
        </van-field>
    </van-form>
    <view class="btn" catchtap="toSave">{{isNew ? '创建站点' : '保存'}}</view>
    <view class="blue-txt p" catchtap="changeNew">{{isNew ? '绑定已有站点' : '创建新的站点'}}</view>
</view>