【调整】重写拼团前端列表,拼团详情,拼团首页组件,拼团海报等数据获取规则,减少不必要的数据查询,增加redis缓存,提升访问速度,调整拼团海报为新海报模式。

【优化】优化分享识别跳转页面【jump】代码。
This commit is contained in:
大灰灰
2022-10-21 05:41:25 +08:00
parent 91e6cb2432
commit adfbbc783e
21 changed files with 485 additions and 329 deletions

View File

@@ -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];
}
}
}