From a20612f08288aa5ace22d6eb92b57bc66316429e Mon Sep 17 00:00:00 2001 From: Gao xiaosong <704041637@qq.com> Date: Sun, 18 Apr 2021 22:21:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=81=A2=E5=A4=8D=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/shop/GoodsList/index.vue | 221 ++++++--------------------------- 1 file changed, 41 insertions(+), 180 deletions(-) diff --git a/pages/shop/GoodsList/index.vue b/pages/shop/GoodsList/index.vue index d36d4f6..56a4bbe 100644 --- a/pages/shop/GoodsList/index.vue +++ b/pages/shop/GoodsList/index.vue @@ -26,90 +26,41 @@ 新品 - - - - - - - - - - - {{ item.storeName }} - - - ¥{{ item.price }} - ¥{{ item.otPrice }} - - 已售{{ item.sales }}件 - - - - - - - - - - - - - {{ item.storeName }} - - - ¥{{ item.price }} - ¥{{ item.otPrice }} - - 已售{{ item.sales }}件 - - - - - - - - - - - - - - - - - {{ item.storeName }} - - - {{ item.integral }}积分 - - 已售{{ item.sales }}件 - - - - - - - - - - - - - {{ item.storeName }} - - - {{ item.integral }}积分 - - 已售{{ item.sales }}件 - - - - - - - - + + + + + + + {{ item.storeName }} + + ¥ + {{ item.price }} + + + ¥{{ item.otPrice }} + 已售{{ item.sales }}件 + + + + + + + + + + + {{ item.storeName }} + + {{ item.integral }}积分 + + + + 已售{{ item.sales }}件 + + + + @@ -131,7 +82,7 @@ export default { Loading, }, props: {}, - data: function () { + data: function() { // const { s = "", id = 0, title = "" } = this.$yroute.query; const s = '', id = 0, @@ -195,7 +146,7 @@ export default { // } }, }, - mounted: function () { + mounted: function() { const { s = '', id = 0, title = '', isIntegral = false } = this.$yroute.query this.where.keyword = s @@ -287,7 +238,7 @@ export default { that.where.page = that.where.page + 1 }) }, - submitForm: function () { + submitForm: function() { this.$set(this, 'productList', []) this.where.page = 1 this.loadend = false @@ -295,7 +246,7 @@ export default { this.getProductList() }, //点击事件处理 - set_where: function (index) { + set_where: function(index) { let that = this switch (index) { case 0: @@ -328,7 +279,7 @@ export default { that.getProductList() }, //设置where条件 - setWhere: function () { + setWhere: function() { let that = this if (that.price === 0) { that.where.priceOrder = '' @@ -346,7 +297,7 @@ export default { } that.where.news = that.nows ? '1' : '0' }, - switchTap: function () { + switchTap: function() { let that = this that.Switch = !that.Switch }, @@ -358,94 +309,4 @@ export default { border-top: 3px solid #f5f5f5; padding-bottom: 1px; } - -.tui-product-list { - display: flex; - box-sizing: border-box; - margin-top: 1.72*100rpx; -} - -.tui-product-container { - display: flex; - flex-direction: row; - flex-wrap: wrap; - flex:1; - justify-content: space-between; - -} - -.tui-product-container:last-child { - margin-right: 0; -} - -.tui-pro-item { - flex: 0 0 49%; - margin-bottom: 10rpx; - background: #fff; - box-sizing: border-box; - border-radius: 12rpx; - overflow: hidden; - transition: all 0.15s ease-in-out; -} - -.tui-flex-list { - flex:1 1 100%; - display: flex; - margin-bottom: 1rpx !important; -} - -.tui-pro-img { - width: 100%; - display: block; -} - -.tui-proimg-list { - width: 260rpx; - height: 260rpx !important; - flex-shrink: 0; - border-radius: 12rpx; -} - -.tui-pro-content { - display: flex; - flex-direction: column; - justify-content: space-between; - box-sizing: border-box; - padding: 20rpx; -} - -.tui-pro-tit { - color: #2e2e2e; - font-size: 26rpx; - word-break: break-all; - overflow: hidden; - text-overflow: ellipsis; - display: -webkit-box; - -webkit-box-orient: vertical; - -webkit-line-clamp: 2; -} - -.tui-pro-price { - padding-top: 18rpx; -} - -.tui-sale-price { - font-size: 34rpx; - font-weight: 500; - color: #e41f19; -} - -.tui-factory-price { - font-size: 24rpx; - color: #a0a0a0; - text-decoration: line-through; - padding-left: 12rpx; -} - -.tui-pro-pay { - padding-top: 10rpx; - font-size: 24rpx; - color: #656565; -} -/* 商品列表*/