From 67c4c40b0d9c5825645f34e6ed3dbd9649f89ba7 Mon Sep 17 00:00:00 2001 From: xiaowen <372193233@qq.com> Date: Wed, 10 Aug 2022 11:21:44 +0800 Subject: [PATCH] cxw-010203 --- pages/detail/index.js | 3 +++ pages/varComm/pages/brand/index.wxml | 40 +++++++++++++++------------- pages/varComm/pages/brand/index.wxss | 4 +-- 3 files changed, 26 insertions(+), 21 deletions(-) diff --git a/pages/detail/index.js b/pages/detail/index.js index 834a37e..bd304db 100644 --- a/pages/detail/index.js +++ b/pages/detail/index.js @@ -39,6 +39,9 @@ Page({ }, onShow() { iPageIndex = 1; + this.setData({ + dataList: [] + }) this.getData().then(() => { this.getLikeData() }) diff --git a/pages/varComm/pages/brand/index.wxml b/pages/varComm/pages/brand/index.wxml index 0e7ab07..3212c5e 100644 --- a/pages/varComm/pages/brand/index.wxml +++ b/pages/varComm/pages/brand/index.wxml @@ -2,37 +2,41 @@ - - - - - 添加品牌一 - - - - × - 删除 + + + + + + 添加品牌一 - - + + + × + 删除 + + + + + {{item.brandname}} - {{item.brandname}} - - + - + + - - + + + {{item2.brandname}} diff --git a/pages/varComm/pages/brand/index.wxss b/pages/varComm/pages/brand/index.wxss index 1072c9e..4ba7a89 100644 --- a/pages/varComm/pages/brand/index.wxss +++ b/pages/varComm/pages/brand/index.wxss @@ -10,11 +10,9 @@ page { } .add1 { - width: 750rpx; - overflow-x: scroll; + width: 100%; white-space: nowrap; } - .add_box1 { display: inline-block; height: 208rpx;