Commit fbbaf57a by cwq0219

商户管理-渠道

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