mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2026-02-06 00:49:48 +08:00
【调整】重写拼团前端列表,拼团详情,拼团首页组件,拼团海报等数据获取规则,减少不必要的数据查询,增加redis缓存,提升访问速度,调整拼团海报为新海报模式。
【优化】优化分享识别跳转页面【jump】代码。
This commit is contained in:
@@ -74,6 +74,7 @@
|
||||
cols: [
|
||||
[
|
||||
{ type: 'checkbox' },
|
||||
{ field: 'id', title: '拼团序列', width: 70, sort: false },
|
||||
{ field: 'goodsId', title: '商品序列', width: 70, sort: false },
|
||||
{
|
||||
field: 'name', title: '活动名称', sort: false, templet: function (data) {
|
||||
@@ -130,19 +131,19 @@
|
||||
console.log(obj);
|
||||
if (obj.checked) {
|
||||
if (obj.type == 'one') {
|
||||
ids[obj.data.goodsId] = obj.data;
|
||||
ids[obj.data.id] = obj.data;
|
||||
} else {
|
||||
for (var i = 0; i < table_data.length; i++) {
|
||||
ids[table_data[i].goodsId] = table_data[i];
|
||||
ids[table_data[i].id] = table_data[i];
|
||||
}
|
||||
}
|
||||
//the_val[obj.data.id] = obj.data;
|
||||
} else {
|
||||
if (obj.type == 'one') {
|
||||
delete ids[obj.data.goodsId];
|
||||
delete ids[obj.data.id];
|
||||
} else {
|
||||
for (var i = 0; i < table_data.length; i++) {
|
||||
delete ids[table_data[i].goodsId];
|
||||
delete ids[table_data[i].id];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user