Commit 6abe0249 by 杨树贤

跳转链接

parent b6ad507d
...@@ -14,6 +14,7 @@ return [ ...@@ -14,6 +14,7 @@ return [
'data' => env('DATA_DOMAIN', 'scm.liexin.net'), 'data' => env('DATA_DOMAIN', 'scm.liexin.net'),
"domain" => env('DOMAIN'), "domain" => env('DOMAIN'),
"FootstoneUrl" => env('FOOTSTONE_URL'),
'webTitle' => env('WEB_NAME', '供应商系统'), 'webTitle' => env('WEB_NAME', '供应商系统'),
'UploadUrl' => env('API_DOMAIN') . '/oss/upload', 'UploadUrl' => env('API_DOMAIN') . '/oss/upload',
......
...@@ -36,7 +36,12 @@ ...@@ -36,7 +36,12 @@
}); });
let cols = [ let cols = [
{type: 'checkbox'}, {type: 'checkbox'},
{field: 'goods_name', title: '型号', align: 'center', width: 200}, {
field: 'goods_name', title: '型号', align: 'center', width: 200, templet: function (data) {
return "<a href='{{config('website.FootstoneUrl')}}/footstone/addsku?sku_id=" + data.goods_id + "' style='color:blue' target='_blank'>"
+ data.goods_name + "</href>"
}
},
{ {
field: 'brand_name', title: '品牌', align: 'center', width: 120 field: 'brand_name', title: '品牌', align: 'center', width: 120
}, },
...@@ -251,7 +256,7 @@ ...@@ -251,7 +256,7 @@
}); });
} }
}); });
}else{ } else {
layer.confirm('确定要下架选中的商品吗', function (index) { layer.confirm('确定要下架选中的商品吗', function (index) {
$.ajax({ $.ajax({
type: 'post', type: 'post',
...@@ -271,7 +276,7 @@ ...@@ -271,7 +276,7 @@
curr: currentPage curr: currentPage
}, },
}); });
}else{ } else {
layer.msg(res.err_msg, {icon: 5}); layer.msg(res.err_msg, {icon: 5});
return false; return false;
} }
......
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