Edit.html 15.9 KB
<%include '../../common/views/__ui/header'%>
<%include '../../common/views/__partail/ListHeader'%>

<form id="storeForm" role="form" class="form-horizontal form-bordered" method="post" action="<%action%>">
    <input type="hidden" id="shopsId" value="<%data.shopsId%>">
    <input type="hidden" id="shopsAddressInfoData" value="<%data.shopsAddressInfo%>">
    <div class="contentpanel">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title"><%editTitle%></h3>
            </div>
            <div class="panel-body">
                <div class="row">
                    <div class="form-group">
                        <div class="col-sm-1 control-label">
                            <label>店铺名称:<span class="red">*</span></label>
                        </div>
                        <div class="col-sm-9">
                            <input form="storeForm" name="shopName" id="shopName" type="text" class="form-control"
                                   value="<%data.shopName%>" placeholder="店铺名称" required>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-1 control-label">
                            <label>店铺类型:<span class="red">*</span></label>
                        </div>
                        <div class="col-sm-9">
                            <select name="shopNature" id="shopNature" value='<%data.shopNature%>' required
                                    class="form-control">
                                <option value="-1">店铺类型</option>
                                <option value="1">旗舰店</option>
                                <option value="2">专卖店</option>
                                <option value="3">分销店</option>
                                <option value="4">专营店</option>
                                <option value="5">有货国际</option>
                                <option value="6">一件代发</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group" id="unionTypeDiv">
                        <div class="col-sm-1 control-label">
                            <label>渠道号:<span class="red">*</span></label>
                        </div>
                        <div class="col-sm-9">
                            <input id="unionType" form="storeForm" class="form-control" value="<%data.unionType%>" type="text" placeholder="渠道号"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-1 control-label">
                            <label>店铺域名:<span class="red">*</span></label>
                        </div>
                        <div class="col-sm-6">
                            <div class="input-group">
                                <input type="text" form="storeForm" name="shopDomain" id="shopDomain"
                                       class="form-control" value="<%data.shopDomain%>" placeholder="店铺域名"
                                       aria-describedby="basic-addon2" required>
                                <span class="input-group-addon" id="basic-addon2">.yohobuy.com</span>
                            </div>
                            <p style="margin-top: 10px"><span class="red">注:1. 1-32个字符;2. 只能填英文、数字和破折号-,不区分大小写,不能以破折号开头或者结尾</span></p>
                        </div>
                    </div>
                    <div class="form-group" id="blkShop">
                        <div class="col-sm-1 control-label">
                            <label>是否BLK店铺:<span class="red">*</span></label>
                        </div>
                        <div class="col-sm-8">
                            <label class="radio-inline">
                                <input type="radio" name="appType" value="1"/></label>
                            <label class="radio-inline">
                                <input checked type="radio" name="appType" value="0"/></label>
                            <span class="red" style="margin-left: 10px;">注:BLK店铺,店铺内商品默认全部为BLK商品,创建商品时会自动加上BLK标识</span>
                        </div>
                        <input type="hidden" id="appType" value="<%data.appType%>" for="radio" placeholder="BLK标识">
                    </div>
                    <div class="form-group" id="shopsAddressInfo">
                        <div class="col-sm-1 control-label">
                            <label>店铺地址:<span class="red">*</span></label>
                        </div>
                            <div class="col-sm-2">
                                <select name="province" id="province"
                                        class="form-control">
                                    <option value="-1">请选择省/直辖市</option>
                                </select>
                            </div>
                            <div class="col-sm-2">
                                <select name="city" id="city" 
                                        class="form-control">
                                    <option value="-1">请选择市</option>
                                </select>
                            </div>
                            <div class="col-sm-2">
                                <select name="county" id="county" 
                                        class="form-control">
                                    <option value="-1">请选择区/县</option>
                                </select>
                            </div>
                            <div class="col-sm-2">
                                <select name="street" id="street" 
                                        class="form-control">
                                    <option value="-1">请选择街道</option>
                                </select>
                            </div>
                        <div class="col-sm-8" style="margin-top: 10px">
                            <div class="input-group">
                                <input style="width: 350px;" type="text" name="detailAdd" id="detailAdd"
                                       class="form-control" placeholder="详细地址"
                                       aria-describedby="basic-addon2">
                            </div>
                            <p style="margin-top: 10px"><span class="red">注:店铺地址为店铺最新可联系到的地址</span></p>
                        </div>
                    </div>
                    <div class="form-group" id="customerTelFormGroup">
                        <div class="col-sm-1 control-label">
                            <label>店铺客服电话:<span class="red">*</span></label>
                        </div>
                        <div class="col-sm-8">
                            <div class="input-group">
                                <input type="text" form="storeForm" name="customerTel" id="customerTel"
                                       class="form-control" value="<%data.customerTel%>" placeholder="客服电话"
                                       aria-describedby="basic-addon2">
                            </div>
                            <p style="margin-top: 10px"><span class="red">注:请输入手机号或固定电话号码,固定电话格式为“区号-号码-分机”,支持400或800电话</span></p>
                        </div>
                    </div>
                    <div class="form-group" id="zfbAccountFormGroup">
                        <div class="col-sm-1 control-label">
                            <label>支付宝账号:<span class="red">*</span></label>
                        </div>
                        <div class="col-sm-8">
                            <div class="input-group">
                                <input type="text" form="storeForm" name="zfbAccount" id="zfbAccount"
                                       class="form-control" value="<%data.zfbAccount%>" placeholder="支付宝账号"
                                       aria-describedby="basic-addon2">
                            </div>
                            <p style="margin-top: 10px"><span class="red">注:支付宝账号用于提现,支持邮箱和手机格式</span></p>
                        </div>
                    </div>
                    <div class="form-group" id="zfbAccountNameFormGroup">
                        <div class="col-sm-1 control-label">
                            <label>支付宝账号名称:<span class="red">*</span></label>
                        </div>
                        <div class="col-sm-8">
                            <div class="input-group">
                                <input type="text" form="storeForm" name="zfbAccountName" id="zfbAccountName"
                                       class="form-control" value="<%data.zfbAccountName%>" placeholder="支付宝账号名称"
                                       aria-describedby="basic-addon2">
                            </div>
                            <p style="margin-top: 10px"><span class="red">注:支付宝账号名称用于提现,将校验支付宝账号姓名一致性</span></p>
                        </div>
                    </div>
                    <div class="form-group" id="checkTelFormGroup">
                        <div class="col-sm-1 control-label">
                            <label>联系方式:<span class="red">*</span></label>
                        </div>
                        <div class="col-sm-8">
                            <div class="input-group">
                                <input type="text" form="storeForm" name="checkTel" id="checkTel"
                                       class="form-control" value="<%data.checkTel%>" placeholder="联系方式"
                                       aria-describedby="basic-addon2">
                            </div>
                            <p style="margin-top: 10px"><span class="red">注:请输入手机号,用于接收提现验证码</span></p>
                        </div>
                    </div>
                    <div class="form-group" id="other">
                        <div class="col-sm-1 control-label">
                            <label>其他平台网址:</label>
                        </div>
                        <div class="col-sm-9">
                            <div id="otherUrl-list" class="input-group Add col-sm-6 col-sm-6" style="float: left;"></div>
                            <button type="button" data-type="1" class="btn btn-info urlAdd" style="margin-left: 8px;">新增
                            </button>
                        </div>
                        <input id="otherUrl" type="hidden" value="<%data.otherUrl%>">
                    </div>
                    <div class="form-group" id="addShop">
                        <div class="col-sm-1 control-label">
                            <label>代表实体店:</label>
                        </div>
                        <div class="col-sm-9">
                            <div id="shopAddress-list" class="input-group Add col-sm-6" style="float: left;"></div>
                            <button type="button" data-type="2" class="btn btn-info urlAdd" style="margin-left: 8px;">新增
                            </button>
                        </div>
                        <input id="shopAddress" type="hidden" value="<%data.shopAddress%>">
                    </div>
                    <div class="form-group">
                        <div class="col-sm-1 control-label">
                            <label>店铺Logo:</label>
                        </div>
                        <div class="col-sm-8">
                            <input type="file" id="shopLogo" name="shopLogo" value="<%data.shopLogo%>" size="500">
                            <p><span class="red" style="position: absolute; bottom: 0">尺寸:320*160,JPG格式,小于500k,<a target="_blank" href="http://img11.static.yhbimg.com/article/2020/01/13/10/01993e7a9f9492c7271797c049dc8a9ba0.png"></a>图片规范</span></p>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-1 control-label">
                            <label>店铺简介:</label>
                        </div>
                        <div class="col-sm-9">
                            <script id="edit-shop-intro" type="text/plain" style="width:100%;height:500px;"></script>
                            <input id="shopIntro" type="hidden" placeholder="店铺简介" value="<%data.shopIntro%>">
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-1 control-label">
                            <label>店铺模式:
                                <span class="red">*</span>
                            </label>
                        </div>
                        <div class="col-sm-9">
                            <select name="shopsType" id="shopsType" value='<%data.shopsType%>' class="form-control"
                                    required>
                                <option value="-1">店铺模式</option>
                                <option value="1">单品店</option>
                                <option value="2">多品店</option>
                            </select>
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-sm-1 control-label">
                            <label>关联品牌:<span class="red">*</span></label>
                        </div>
                        <div class="col-sm-9">
                            <button type="button" class="btn btn-info" id="modalId">添加供应商</button>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-8 col-sm-offset-1">
                            <div id="updateBrand"></div>
                        </div>
                        <input type="hidden" id="shopRelationList" value="<%data.shopRelationList%>"/>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-1 control-label">
                            <label>营业执照:</label>
                        </div>
                        <div class="col-sm-9">
                            <script id="edit-business-license" type="text/plain" style="width:100%;height:500px;"></script>
                            <input id="businessLicense" type="hidden" placeholder="营业执照" value="<%data.businessLicense%>">
                        </div>
                    </div>
                    <div style="text-align: center">
                        <button type="button" data-oncheck='1' class="check delay-btn btn btn-success">提交</button>
                        <!--<button type="button" data-oncheck='2' class="check delay-btn btn btn-info btn-cun">暂存</button>-->
                        <button onclick="history.go(-1);" type="button" class="btn btn-danger">取消</button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</form>

<script type="text/template" id="template">
    <div class="rows">
        <div class="form-group">
            <select name="brandname" id="brandname" style="width: 280px" tabindex="-1" class="select2-offscreen">
                <option value="-1">选择品牌</option>
            </select>
        </div>
        <div class="form-group" style="height: 400px">
            <div id="baseTable"></div>
        </div>
    </div>
</script>
<script src="//cdn.yoho.cn/platform/gs/region/regions.js"></script>

<%include '../../common/views/__ui/footer'%>