Commit 74a757cf by mushishixian

修复js接受参数问题

parent 159fddde
......@@ -44,8 +44,11 @@
//点击校验按钮
$('#check_apply_supplier_share').click(function () {
let supplierName = $('#supplier_name').val();
let url = '/api/supplier_share_apply/CheckApplySupplierShare?supplier_name=' + supplierName;
let res = ajax(url);
let url = '/api/supplier_share_apply/CheckApplySupplierShare';
let data = {
supplier_name: supplierName
}
let res = ajax(url,data);
if (res.err_code === 0) {
layer.msg(res.err_msg, {icon: 6});
//设置对应的supplier_id,后端暂时放到res.count这个字段吧...
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment