Commit 631100f8 by luyt

feat:调整线索无数据列表

1 parent 1c6c6811
......@@ -220,7 +220,7 @@ Component({
let { code, data } = await pageApi(params);
if (code == 0) {
let arr = data.list.map((item) => {
if (item.visitList.length > 5) {
if (item.visitList && item.visitList.length > 5) {
item.getMoreFlag = true;
}
return item;
......@@ -334,9 +334,9 @@ Component({
// wx.$router.go('apply',1235)
},
getMore(e) {
console.log("显示更多数据");
// console.log("显示更多数据");
let index = e.currentTarget.dataset.outidx;
console.log("index: ", index);
// console.log("index: ", index);
let completeStatus = `clueList[${index}].getMoreFlag`;
this.setData({
[completeStatus]: !this.data.clueList[index].getMoreFlag,
......
......@@ -402,7 +402,7 @@ Page({
title: tipObj.title,
duration: 1000,
compelete: function () {
console.log("toast框隐藏之后,会调用该函数");
// console.log("toast框隐藏之后,会调用该函数");
//例如:跳转页面wx.navigateTo({ url: 'xxx' });
},
});
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!