| | |
| | | var thatTr = { |
| | | check: false, |
| | | td: [ |
| | | { title: "ID", key: mo[i].id, value: mo[i].id }, |
| | | { title: "推送状态", key: mo[i].isPush, value: mo[i].isPush }, |
| | | { title: "ID", key: mo[i].id, value: mo[i].id },
|
| | | { title: "标题", key: mo[i].title, value: mo[i].title },
|
| | | { title: "内容", key: mo[i].content, value: mo[i].content }, |
| | | { title: "状态", key: mo[i].isPush, value: mo[i].isPush }, |
| | | { title: "预设时间", key: mo[i].controlTime_str, value: mo[i].controlTime_str, "class": "font13 font-gray" }, |
| | | { title: "推送时间", key: mo[i].pushTime, value: mo[i].pushTime, "class": "font13 font-gray" }, |
| | | { title: "手机状态栏标题", key: mo[i].alertTitle, value: mo[i].alertTitle }, |
| | | { title: "手机状态栏内容", key: mo[i].alertContent, value: mo[i].alertContent }, |
| | | { title: "详细标题", key: mo[i].title, value: mo[i].title }, |
| | | { title: "详细内容", key: mo[i].content, value: mo[i].content }, |
| | | { title: "包含商品数", key: mo[i].countGoods, value: mo[i].countGoods }, |
| | | { title: "推送用户", key: mo[i].uid, value: mo[i].uid }, |
| | | { title: "安卓推送版本", key: mo[i].listAndroid, value: "(未返回)", "class": "font-gray" }, |
| | | { title: "IOS推送版本", key: mo[i].listIOS, value: "(未返回)", "class": "font-gray" }, |
| | | { title: "自动推送", key: mo[i].timeTask, value: mo[i].timeTask?"是":"否", "class": mo[i].timeTask?"font-green":"font-red" }, |
| | | { title: "备注", key: mo[i].remark, value: mo[i].remark } |
| | | { title: "IOS推送版本", key: mo[i].listIOS, value: "(未返回)", "class": "font-gray" },
|
| | | { title: "推送用户", key: mo[i].uid, value: mo[i].uid }, |
| | | ], |
| | | }; |
| | | // 状态分析 |
| | | if (thatTr.td[1].key == 1) { thatTr.td[1].value = "已推送"; thatTr.td[1]["class"] = "font-green"; } |
| | | else if (thatTr.td[1].key == 0) { thatTr.td[1].value = "未推送"; thatTr.td[1]["class"] = "font-orange"; } |
| | | else if (thatTr.td[1].key == 2) { thatTr.td[1].value = "推送失败"; thatTr.td[1]["class"] = "font-red"; } |
| | | // 用户分析 |
| | | if (!thatTr.td[9].key || thatTr.td[9].key == 0 || thatTr.td[9].key == "") { thatTr.td[9].value = "不限"; thatTr.td[9]["class"]="font-gray"; } |
| | | if (thatTr.td[3].key == 1) { thatTr.td[3].value = "已推送"; thatTr.td[3]["class"] = "font-green"; } |
| | | else if (thatTr.td[3].key == 0) { thatTr.td[3].value = "未推送"; thatTr.td[3]["class"] = "font-orange"; } |
| | | else if (thatTr.td[3].key == 2) { thatTr.td[3].value = "推送失败"; thatTr.td[3]["class"] = "font-red"; } |
| | | |
| | | // 版本分析 |
| | | if (thatTr.td[10].key) { thatTr.td[10].value = thatTr.td[10].key.join("—"); thatTr.td[10]["class"] = ""; } |
| | | if (thatTr.td[11].key) { thatTr.td[11].value = thatTr.td[11].key.join("—"); thatTr.td[11]["class"] = ""; } |
| | | if (thatTr.td[6].key) { thatTr.td[6].value = thatTr.td[6].key.join("—"); thatTr.td[6]["class"] = ""; } |
| | | if (thatTr.td[7].key) { thatTr.td[7].value = thatTr.td[7].key.join("—"); thatTr.td[7]["class"] = ""; }
|
| | | |
| | | // 用户分析
|
| | | if (!thatTr.td[8].key || thatTr.td[8].key == 0 || thatTr.td[8].key == "") { |
| | | thatTr.td[8].value = "不限"; thatTr.td[8]["class"]="font-gray"; |
| | | }
|
| | | |
| | | // 将当前行放入tr组 |
| | | mo_tr.push(thatTr); |
| | | } |
| | |
| | | // 表格头排 |
| | | adminDom.table.thead({ |
| | | th: [ |
| | | { title: "ID", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "推送状态", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "预设时间", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "推送时间", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "手机状态栏标题", width: "", orderUp: "", orderDown: "", }, |
| | | { title: "手机状态栏内容", width: "", orderUp: "", orderDown: "", }, |
| | | { title: "详细标题", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "详细内容", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "包含商品数", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "推送用户", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "安卓推送版本", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "IOS推送版本", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "自动推送", width: "", orderUp: "", orderDown: "" }, |
| | | |
| | | { title: "备注", width: "", orderUp: "", orderDown: "" }, |
| | | { title: "ID", width: "0.4rem", orderUp: "", orderDown: "" },
|
| | | { title: "标题", width: "0.8rem", orderUp: "", orderDown: "" },
|
| | | { title: "内容", width: "0.8rem", orderUp: "", orderDown: "" }, |
| | | { title: "状态", width: "0.4rem", orderUp: "", orderDown: "" }, |
| | | { title: "预设时间", width: "0.6rem", orderUp: "", orderDown: "" }, |
| | | { title: "推送时间", width: "0.6rem", orderUp: "", orderDown: "" }, |
| | | { title: "安卓推送版本", width: "0.6rem", orderUp: "", orderDown: "" }, |
| | | { title: "IOS推送版本", width: "0.6rem", orderUp: "", orderDown: "" },
|
| | | { title: "推送用户", width: "0.6rem", orderUp: "", orderDown: "" }, |
| | | ] |
| | | }); |
| | | // 工具栏 |
| | |
| | | // 直接跳转到编辑页 |
| | | doui.pageToUrl({ |
| | | type: "replace", |
| | | url: "today_editor.html", |
| | | url: "today_evaluate.html", |
| | | data: { |
| | | type: "new", |
| | | }, |
| | |
| | | // 跳转到编辑页 |
| | | doui.pageToUrl({ |
| | | type: "replace", |
| | | url: "today_editor.html", |
| | | url: "today_evaluate.html", |
| | | data: { |
| | | type: "updata", |
| | | id: item[0].key, |