Commit d7621ce3 by cwq0219

商户管理

1 parent c229837b
...@@ -295,8 +295,8 @@ ...@@ -295,8 +295,8 @@
</div> </div>
</div> </div>
<div class="layui-form-item" style="text-align: center;"> <div class="layui-form-item" style="text-align: center;">
<button class="layui-btn" lay-submit lay-filter="handleFirstSubmit">下一步</button> <button id="firstBtn" class="layui-btn" lay-submit lay-filter="handleFirstSubmit">下一步</button>
<button class="layui-btn" data-type="handleCancel">取消</button> <button class="layui-btn" data-type="handleFirstCancel">取消</button>
</div> </div>
</form> </form>
</div> </div>
...@@ -531,10 +531,6 @@ ...@@ -531,10 +531,6 @@
getById() getById()
}) })
} }
} else {
// layer.msg('操作成功', {
// icon: 1
// })
} }
}) })
return false return false
...@@ -624,8 +620,14 @@ ...@@ -624,8 +620,14 @@
subParent.append(child2) subParent.append(child2)
parent.append(subParent) parent.append(subParent)
}, },
handleFirstCancel() {
console.log('??????????')
go('merchant', 'index')
return false
},
handleCancel() { handleCancel() {
go('merchant', 'index') go('merchant', 'index')
return false
} }
} }
...@@ -705,7 +707,9 @@ ...@@ -705,7 +707,9 @@
getAccountType() getAccountType()
} else { } else {
merchantId = qs('id') merchantId = qs('id')
$('#preStep').remove()
if (editLevel == 3) { if (editLevel == 3) {
$('#firstBtn').text('确定')
$('#accountLevelEl').attr('disabled', true) $('#accountLevelEl').attr('disabled', true)
} else { } else {
getBusiScope() getBusiScope()
...@@ -797,6 +801,9 @@ ...@@ -797,6 +801,9 @@
getMerchantApi(merchantId, function (res) { getMerchantApi(merchantId, function (res) {
form.val('merchantForm', res.data) form.val('merchantForm', res.data)
merchantForm = res.data merchantForm = res.data
if(merchantForm.status != 1) {
$('#draft').remove()
}
console.log(merchantForm) console.log(merchantForm)
getBusiScope() getBusiScope()
getCarBrandTree() getCarBrandTree()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!