Commit cf3ed074 by 梁建民

css

parent 90903c17
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
上传商品 上传商品
</div> </div>
<div class="xz fr boxsiz btn btn_border"> <div class="xz fr boxsiz btn btn_border">
下载商品模板 <a href="__PUBLIC__/ic_templet.xls">下载商品模板</a>
</div> </div>
<div class="plsc fr btn btn_green"> <div class="plsc fr btn btn_green">
<span class="icon iconfont iconjuxing16 "></span> <span class="icon iconfont iconjuxing16 "></span>
...@@ -166,7 +166,7 @@ ...@@ -166,7 +166,7 @@
{{# if(item['audit_status'] == 1){ }} {{# if(item['audit_status'] == 1){ }}
<a class="edit fr" href="/uploadsingle?id={{item.goods_id}}">编辑</a> <a class="edit fr" href="/uploadsingle?id={{item.goods_id}}">编辑</a>
{{# } else { }} {{# } else { }}
<a class="edit fr disabled" href="/uploadsingle?id={{item.goods_id}}">编辑</a> <a class="edit fr disabled">编辑</a>
{{# } }} {{# } }}
</div> </div>
{{# }); }} {{# }); }}
......
...@@ -229,6 +229,7 @@ ...@@ -229,6 +229,7 @@
} }
.good_manage_content .good_data .data_list .data_item .edit.disabled { .good_manage_content .good_data .data_list .data_item .edit.disabled {
cursor: not-allowed; cursor: not-allowed;
opacity: 0.5;
} }
.good_manage_content .good_data .data_list .data_item .xj_status { .good_manage_content .good_data .data_list .data_item .xj_status {
color: #686E73; color: #686E73;
...@@ -237,6 +238,7 @@ ...@@ -237,6 +238,7 @@
} }
.good_manage_content .good_data .data_list .data_item .xj_status.disabled { .good_manage_content .good_data .data_list .data_item .xj_status.disabled {
cursor: not-allowed; cursor: not-allowed;
opacity: 0.5;
} }
.good_manage_content .good_data .data_list .data_item .xj_status.fb { .good_manage_content .good_data .data_list .data_item .xj_status.fb {
color: #0D84D1; color: #0D84D1;
......
{"version":3,"sources":["goodmanage.less"],"names":[],"mappings":"AAAA;EACI,eAAA;;AADJ,oBAGI;EACI,eAAA;;AAJR,oBAOI;EACI,sBAAA;EACA,aAAA;EACA,kBAAA;;AAVR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I,WAGI,WAqGQ;IACI,UAAA;;EARR,oBAlGZ,WACI,WAGI,WAyGQ;IACI,UAAA;;EAZR,oBAlGZ,WACI,WAGI,WA6GQ;IACI,aAAA;;;AAnSxB,oBAiLI,WACI,WAGI,WAkHI;EACI,cAAA;EACA,eAAA;;AACA,oBAzHhB,WACI,WAGI,WAkHI,MAGK;EACG,mBAAA;EACA,YAAA;;AA5SxB,oBAiLI,WACI,WAGI,WA2HI;EACI,cAAA;EACA,eAAA;EACA,iBAAA;;AACA,oBAnIhB,WACI,WAGI,WA2HI,WAIK;EACG,mBAAA;EACA,YAAA;;AAEJ,oBAvIhB,WACI,WAGI,WA2HI,WAQK;EACG,cAAA","file":"goodmanage.css"}
\ No newline at end of file \ No newline at end of file
...@@ -298,6 +298,7 @@ ...@@ -298,6 +298,7 @@
cursor: pointer; cursor: pointer;
&.disabled{ &.disabled{
cursor: not-allowed; cursor: not-allowed;
opacity: 0.5;
} }
} }
...@@ -307,6 +308,7 @@ ...@@ -307,6 +308,7 @@
margin-left: 20px; margin-left: 20px;
&.disabled{ &.disabled{
cursor: not-allowed; cursor: not-allowed;
opacity: 0.5;
} }
&.fb { &.fb {
color: #0D84D1; color: #0D84D1;
......
! function () { !function () {
window.GoodManageController = { window.GoodManageController = {
token: Util.getCookie('token') || '', token: Util.getCookie('token') || '',
init: function () { init: function () {
...@@ -9,57 +9,57 @@ ...@@ -9,57 +9,57 @@
}, 1).handleBind(this); }, 1).handleBind(this);
}, },
created: function (opt) { created: function (opt) {
//日期控件初始化 //日期控件初始化
layui.laydate.render({ layui.laydate.render({
elem: '#start_time', elem: '#start_time',
theme: '#0D84D1' theme: '#0D84D1'
}); });
layui.laydate.render({ layui.laydate.render({
elem: '#end_time', elem: '#end_time',
theme: '#0D84D1' theme: '#0D84D1'
}); });
return this; return this;
}, },
mounted: function (opt) { mounted: function (opt) {
//商品数量获取 //商品数量获取
IcController.getData(apis.goodsCount, 'GET', { IcController.getData(apis.goodsCount, 'GET', {
token: opt.token token: opt.token
}, function (res) { }, function (res) {
if (res.errcode === 0) { if (res.errcode === 0) {
var getTpl = countHtml.innerHTML; var getTpl = countHtml.innerHTML;
layui.laytpl(getTpl).render(res.count, function (html) { layui.laytpl(getTpl).render(res.count, function (html) {
$(".good_total").empty().html(html); $(".good_total").empty().html(html);
}); });
} }
}); });
return this; return this;
}, },
render: function (opt, params, curr) { render: function (opt, params, curr) {
//商品列表初始化 //商品列表初始化
IcController.getData(apis.goodsInfo, 'GET', params, function (res) { IcController.getData(apis.goodsInfo, 'GET', params, function (res) {
var getTpl = listHtml.innerHTML; var getTpl = listHtml.innerHTML;
if (res.errcode === 0) { if (res.errcode === 0) {
layui.laytpl(getTpl).render(res.goods_list, function (html) { layui.laytpl(getTpl).render(res.goods_list, function (html) {
$("#listData").empty().html(html); $("#listData").empty().html(html);
layui.laypage.render({ layui.laypage.render({
elem: 'pagination', elem: 'pagination',
theme: '#1080d0', theme: '#1080d0',
...@@ -68,35 +68,35 @@ ...@@ -68,35 +68,35 @@
curr: curr, curr: curr,
layout: ['prev', 'page', 'next', 'refresh'], layout: ['prev', 'page', 'next', 'refresh'],
jump: function (obj, first) { jump: function (obj, first) {
if (!first) { if (!first) {
//分页回调调用 //分页回调调用
var json = { var json = {
p: obj.curr p: obj.curr
} }
var param = $.extend({}, params, json); var param = $.extend({}, params, json);
GoodManageController.render(opt, param, obj.curr); GoodManageController.render(opt, param, obj.curr);
} }
} }
}); });
}); });
} else if (res.errcode === 110001 || res.errcode === 103001) { } else if (res.errcode === 110001 || res.errcode === 103001) {
layui.laytpl(getTpl).render([], function (html) { layui.laytpl(getTpl).render([], function (html) {
$("#listData").empty().html(html); $("#listData").empty().html(html);
}); });
} }
}); });
return this; return this;
}, },
sxj: function (id, type) { sxj: function (id, type) {
//上下架 1上架 2下架 //上下架 1上架 2下架
...@@ -115,59 +115,89 @@ ...@@ -115,59 +115,89 @@
}); });
} else { } else {
layer.msg('操作失败') layer.msg('操作失败')
} }
}) })
}, },
handleBind: function (opt) { handleBind: function (opt) {
//搜索 //搜索
layui.form.on('submit(search)', function (data) { layui.form.on('submit(search)', function (data) {
var param = { var param = {
token: opt.token, token: opt.token,
offset: 10, offset: 10,
p: 1 p: 1
}; };
var params = $.extend({}, data.field, param); var params = $.extend({}, data.field, param);
opt.render(this, params, 1) opt.render(this, params, 1)
}); });
//上架 //上架
$('#listData').on('click', '.fb', function (e) { $('#listData').on('click', '.fb', function (e) {
e.stopPropagation(); e.stopPropagation();
var goodId = $(this).parent('.data_item').attr('goodid'); var goodId = $(this).parent('.data_item').attr('goodid');
if ($(this).hasClass('disabled')) { if ($(this).hasClass('disabled')) {
return
return;
} else { } else {
opt.sxj(goodId, 1)
opt.sxj(goodId, 1);
} }
}); });
//下架 //下架
$('#listData').on('click', '.xj', function (e) { $('#listData').on('click', '.xj', function (e) {
e.stopPropagation(); e.stopPropagation();
var goodId = $(this).parent('.data_item').attr('goodid'); var goodId = $(this).parent('.data_item').attr('goodid');
if ($(this).hasClass('disabled')) { if ($(this).hasClass('disabled')) {
return
return;
} else { } else {
opt.sxj(goodId, 2) opt.sxj(goodId, 2)
} }
}); });
$('.xz').on('click',function(){
window.location.href="http://icsales-files-2019.oss-cn-shenzhen.aliyuncs.com/files/templates/ic_templet.xls"
}) //进入详情
$('#listData').on('click', '.data_item', function (e) { $(document).on('click', '#listData .data_item', function (e) {
e.stopPropagation();
var goodId = $(this).attr('goodid'); var goodId = $(this).attr('goodid');
window.location.href="/gooddetail?id="+goodId
window.location.href = "/gooddetail?id=" + goodId;
});
//阻止默认事件
$(document).on('click','.data_list .disabled',function (e) {
e.stopPropagation();
}); });
return this; return this;
}, },
}, $(function () { }, $(function () {
......
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