From dd13f704cd41f0f4d84bb48f5d216112250fe1a3 Mon Sep 17 00:00:00 2001 From: zhaojs <349234519@qq.com> Date: 星期三, 21 六月 2023 15:36:42 +0800 Subject: [PATCH] no message --- uniapp/pages/active/tmsearch.vue | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/uniapp/pages/active/tmsearch.vue b/uniapp/pages/active/tmsearch.vue index 033b1a6..ab12727 100644 --- a/uniapp/pages/active/tmsearch.vue +++ b/uniapp/pages/active/tmsearch.vue @@ -122,7 +122,9 @@ this.$u.api.getTopCalss({ctype:1,parentId:0}).then(e => { console.log(e); if(e.code != 0)return that.$alert(e.msg) + e.data.list.unshift({cid:"-1",cname:"澶╃尗瓒呭競",ctype:"1"}); e.data.list.unshift({cid:"0",cname:"鍏ㄩ儴",ctype:"1"}); + that.navList = e.data.list; that.nowCurrent = that.navList[0].cid that.getData() @@ -132,10 +134,12 @@ getData() { var that = this; var cateid=that.nowCurrent=="0"?"":that.nowCurrent; + var tchaoshi=cateid==-1?1:0; this.$u.api.getTbGoodsList({ cateId: cateid, page: this.pageCurrent, - pageSize: 10 + pageSize: 10, + tchaoshi:tchaoshi }).then(e => { console.log(e); if (e.code != 0) return that.$alert(e.msg) @@ -366,7 +370,7 @@ .goods-items { width: 336rpx; - height: 526rpx; + height: 546rpx; margin-bottom: 20rpx; .items-container { -- Gitblit v1.9.3