正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
| @@ -7,7 +7,7 @@ Page({ | @@ -7,7 +7,7 @@ Page({ | ||
| 7 | * Page initial data | 7 | * Page initial data |
| 8 | */ | 8 | */ |
| 9 | data: { | 9 | data: { |
| 10 | - showModal: true, | 10 | + showModal: false, |
| 11 | inputValue:"", | 11 | inputValue:"", |
| 12 | comlist:"", | 12 | comlist:"", |
| 13 | com_id:"", | 13 | com_id:"", |
| @@ -52,6 +52,7 @@ Page({ | @@ -52,6 +52,7 @@ Page({ | ||
| 52 | if (res && res.data) { | 52 | if (res && res.data) { |
| 53 | console.log("res", res) | 53 | console.log("res", res) |
| 54 | that.setData({ | 54 | that.setData({ |
| 55 | + showModal: res.data.items && res.data.items.length>0?true:false, | ||
| 55 | comlist: res.data.items | 56 | comlist: res.data.items |
| 56 | }) | 57 | }) |
| 57 | } | 58 | } |
请
注册
或
登录
后发表评论