From 1392c16a129b1698e0c9addc21727761942ae63e Mon Sep 17 00:00:00 2001 From: xpz2018 <107107461@qq.com> Date: Sat, 18 Sep 2021 16:28:47 +0800 Subject: [PATCH] no message --- pages/mall/fragment/index.js | 12 +++--- pages/mall/fragment/index.wxml | 12 +++--- pages/mall/fragment/index.wxss | 9 ++-- pages/moment/moment-item/index.js | 8 +++- pages/moment/moment-item/index.wxml | 64 +++++++++++------------------ pages/moment/moment-item/index.wxss | 5 +++ 6 files changed, 50 insertions(+), 60 deletions(-) diff --git a/pages/mall/fragment/index.js b/pages/mall/fragment/index.js index 1ac971b..a84b79e 100644 --- a/pages/mall/fragment/index.js +++ b/pages/mall/fragment/index.js @@ -77,7 +77,7 @@ Component({ } }, onEvent: function (message) { - console.log('mall>>index>>onEvent', message) + console.log('mall>>fragment>>onEvent', message) if (message.what == 10 && app.globalData.isVIP == 1) { // this.setData({ token: app.globalData.token }) // this.onRefreshList() @@ -91,15 +91,9 @@ Component({ this.fetchAgentList() } }, - chooseCity: function(){ - wx.navigateTo({url: `/pages/home/city-select/index?type=1` }) - }, searchList: function(){ wx.navigateTo({url: `/pages/mall/search-list/index` }) }, - postList: function(){ - util.navigateTo('/pages/article/index/index') - }, postInfo: function(e){ var item = this.data.momentList[e.currentTarget.dataset.index] wx.navigateTo({ url: '/pages/article/detail/index?id=' + item.id }) @@ -113,6 +107,10 @@ Component({ util.navigateTo(`/pages/agent/ability/index`) } else if(e.currentTarget.id == 'moment'){ this.triggerEvent("click", { what: 1 }) + } else if(e.currentTarget.id == 'info'){ + util.navigateTo('/pages/article/index/index') + } else if(e.currentTarget.id == 'city'){ + wx.navigateTo({url: `/pages/home/city-select/index?type=1` }) } }, tapBanner: function(e){ diff --git a/pages/mall/fragment/index.wxml b/pages/mall/fragment/index.wxml index 43aaba9..a8270d8 100644 --- a/pages/mall/fragment/index.wxml +++ b/pages/mall/fragment/index.wxml @@ -3,7 +3,7 @@ - + {{cityName}} @@ -38,7 +38,7 @@ - + 最新资讯 更多 @@ -46,8 +46,8 @@ - - + + @@ -75,8 +75,8 @@ - - + + diff --git a/pages/mall/fragment/index.wxss b/pages/mall/fragment/index.wxss index 9f35377..7e4c267 100644 --- a/pages/mall/fragment/index.wxss +++ b/pages/mall/fragment/index.wxss @@ -9,6 +9,10 @@ padding: 0 24rpx; } +.case3-class { + width: 600rpx; +} + .banner{ border-radius: 16rpx; } @@ -18,11 +22,6 @@ border-radius: 16rpx; } -.item-content { - background: rgba(255, 255, 255, 1); - padding:32rpx -} - .tui-swiper { margin-left: 8rpx; font-size: 26rpx; diff --git a/pages/moment/moment-item/index.js b/pages/moment/moment-item/index.js index a3109ab..a9c4be0 100644 --- a/pages/moment/moment-item/index.js +++ b/pages/moment/moment-item/index.js @@ -12,17 +12,23 @@ Component({ }, data: { unflod: false, - loading: true + itemList: [2] }, methods: { onFlodTap: function(){ this.setData({ unflod: !this.data.unflod }) + if(!this.data.itemList.length){ + + } }, onAttentionChange: function(){ }, lookItem: function(e){ util.navigateTo('/pages/article/detail/index?id=' + this.data.item.id) + }, + agentOrder: function(e){ + } } }) \ No newline at end of file diff --git a/pages/moment/moment-item/index.wxml b/pages/moment/moment-item/index.wxml index f87aa66..0113393 100644 --- a/pages/moment/moment-item/index.wxml +++ b/pages/moment/moment-item/index.wxml @@ -19,49 +19,31 @@ - - - 品类 - - 价格 - (元/吨) - - 涨跌 - - 平均扣点 - (最近7天) - + + - - 东莞金洲 - - 2560 - + + + 品类 + + 价格 + (元/吨) + + 涨跌 + + 平均扣点 + (最近7天) + - +20 - -- - 代卖 - - - - 东莞金洲 - - 2560 - - - +20 - -- - 代卖 - - - - 东莞金洲 - - 2560 - + + 一级纸品 + + 2560 + + + +20 + -- + 代卖 - +20 - -- - 代卖 \ No newline at end of file diff --git a/pages/moment/moment-item/index.wxss b/pages/moment/moment-item/index.wxss index b7c0903..d62ce86 100644 --- a/pages/moment/moment-item/index.wxss +++ b/pages/moment/moment-item/index.wxss @@ -9,4 +9,9 @@ text-align: center; padding-top: 2rpx; margin-top: 4rpx; +} + +.item-content{ + padding:16rpx 24rpx; + border-bottom: 1rpx solid #f3f3f3; } \ No newline at end of file