Commit fbbaf57a by cwq0219

商户管理-渠道

1 parent dbb7d975
......@@ -138,7 +138,9 @@
style="position: absolute; right: 0; top: 5px; font-size: normal;">
<label class="layui-form-label">渠道:</label>
<div class="layui-input-inline">
<select id="channelEl" name="channelId"></select>
<select id="channelEl" name="channelId" lay-verify="channelId">
<option value="">请选择</option>
</select>
</div>
</div>
</div>
......@@ -466,6 +468,11 @@
// console.log(validator.PHONEREG)
// 校验
form.verify({
channelId: function(value) {
if(editLevel == 1 && !value) {
return '必填项不能为空'
}
},
merchantOrgcode: function (value) {
var merchantType = $('#merchantTypeEl option:selected').val()
if (value) {
......@@ -826,6 +833,7 @@
$('#merchantLoginAccountEl').attr('disabled', true)
$('#createMerchantEl').removeClass('show')
$('#createMerchantEl').addClass('hide')
$('#channelEl').attr('required')
// $('#channelEl').attr('disabled', true)
}
} else {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!