From 1084b42d8b8e99f4607fc5fbea3c36be819b5715 Mon Sep 17 00:00:00 2001 From: gongfuxiang Date: Fri, 27 May 2022 22:24:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=95=86=E5=93=81=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E7=BB=84=E4=BB=B6=E3=80=81=E5=A4=9A=E5=95=86=E6=88=B7?= =?UTF-8?q?=E9=A6=96=E9=A1=B5=E6=95=B0=E6=8D=AE=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 2 +- common/css/page.css | 39 ++++++ common/css/plugins.css | 56 ++------ components/activity-list/activity-list.vue | 111 ++-------------- components/goods-list/goods-list.vue | 144 +++++++++++++++++++++ manifest.json | 13 +- pages/plugins/shop/detail/detail.vue | 92 ++++--------- 7 files changed, 231 insertions(+), 226 deletions(-) create mode 100644 components/goods-list/goods-list.vue diff --git a/App.vue b/App.vue index 6e716d8d..5b3bb3bf 100644 --- a/App.vue +++ b/App.vue @@ -45,7 +45,7 @@ "/pages/user/user" ], // 请求地址 - request_url: 'https://d1.shopxo.vip/', + request_url: 'http://shopxo.com/', // 静态资源地址(如系统根目录不在public目录下面请在静态地址后面加public目录、如:https://d1.shopxo.vip/public/) static_url: 'https://d1.shopxo.vip/', // 系统类型(默认default、如额外独立小程序、可与程序分身插件实现不同主体小程序及支付独立) diff --git a/common/css/page.css b/common/css/page.css index 396865af..ff05aa06 100644 --- a/common/css/page.css +++ b/common/css/page.css @@ -785,4 +785,43 @@ button[disabled].bg-gray { */ .last-next-data navigator { width: calc(100% - 120rpx); +} + +/** + * 商品列表 - 列表 + */ +.goods-data-list .goods-img { + width: 190rpx !important; + height: 190rpx !important; +} +.goods-data-list .base { + width: calc(100% - 220rpx); +} +/* + * 商品列表 - 滚动 + */ +.goods-data-rolling-list swiper { + height: 390rpx !important; +} +.goods-data-rolling-list .item .goods-img { + height: 240rpx !important; +} +/** + * 商品列表 - 九方格 + */ +.goods-data-grid-list .item { + width: calc(50% - 10rpx); + float: left; + padding-bottom: 10rpx; + margin-bottom: 20rpx; +} +.goods-data-grid-list .item:nth-of-type(2n + 1) { + margin-right: 10rpx; +} +.goods-data-grid-list .item:nth-of-type(2n) { + margin-left: 10rpx; +} +.goods-data-grid-list .item .goods-img { + width: 100%; + height: 380rpx !important; } \ No newline at end of file diff --git a/common/css/plugins.css b/common/css/plugins.css index 575bb6eb..58e2e3f5 100644 --- a/common/css/plugins.css +++ b/common/css/plugins.css @@ -126,14 +126,17 @@ .plugins-label-bottom-right { right: 0; } -.plugins-activity-rolling-list .plugins-label-bottom-left, -.plugins-activity-rolling-list .plugins-label-bottom-center, -.plugins-activity-rolling-list .plugins-label-bottom-right { - bottom: calc(100% - 240rpx); +/** + * 商品列表标签处理 + */ +.goods-data-rolling-list .plugins-label-bottom-left, +.goods-data-rolling-list .plugins-label-bottom-center, +.goods-data-rolling-list .plugins-label-bottom-right { + bottom: calc(100% - 240rpx) !; } -.plugins-activity-list .plugins-label-bottom-left, -.plugins-activity-list .plugins-label-bottom-center, -.plugins-activity-list .plugins-label-bottom-right { +.goods-data-list .plugins-label-bottom-left, +.goods-data-list .plugins-label-bottom-center, +.goods-data-list .plugins-label-bottom-right { bottom: 0; } @@ -192,45 +195,6 @@ height: 230rpx !important; } -/** - * 活动配置 - 列表 - */ -.plugins-activity-list .activity-img { - width: 190rpx !important; - height: 190rpx !important; -} -.plugins-activity-list .base { - width: calc(100% - 220rpx); -} -/* - * 活动配置 - 滚动 - */ -.plugins-activity-rolling-list swiper { - height: 390rpx !important; -} -.plugins-activity-rolling-list .item .activity-img { - height: 240rpx !important; -} -/** - * 活动配置 - 九方格 - */ -.plugins-activity-grid-list .item { - width: calc(50% - 10rpx); - float: left; - padding-bottom: 10rpx; - margin-bottom: 20rpx; -} -.plugins-activity-grid-list .item:nth-of-type(2n + 1) { - margin-right: 10rpx; -} -.plugins-activity-grid-list .item:nth-of-type(2n) { - margin-left: 10rpx; -} -.plugins-activity-grid-list .item .activity-img { - width: 100%; - height: 380rpx !important; -} - /** * 门店 - 数据列表 */ diff --git a/components/activity-list/activity-list.vue b/components/activity-list/activity-list.vue index c6c15eed..71c9993d 100644 --- a/components/activity-list/activity-list.vue +++ b/components/activity-list/activity-list.vue @@ -3,113 +3,23 @@ - - {{floor.title}} - {{floor.vice_title}} - 更多 - - - - - - {{kv}} - - - - - - - - - - - - - {{item.title}} - {{item.simple_desc}} - {{propCurrencySymbol}}{{item.min_price}} - - - - - - - {{lv.name}} - - - - - - - - - - - - - - - - {{item.title}} - {{propCurrencySymbol}}{{item.min_price}} - - - - - - - {{lv.name}} - - - - - - - - - - - - - - - - - - - {{item.title}} - {{propCurrencySymbol}}{{item.min_price}} - - - - - - - {{lv.name}} - - - - - - - - - - - - + \ No newline at end of file diff --git a/manifest.json b/manifest.json index 35797ab9..f5749bb1 100644 --- a/manifest.json +++ b/manifest.json @@ -61,14 +61,13 @@ "desc" : "你的位置将用于小程序中相应业务位置服务使用" } }, - "plugins" : { - // // 直播(需要开通权限 https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/liveplayer/live-player-plugin.html) - // "live-player-plugin" : { - // "version" : "1.3.0", - // "provider" : "wx2b03c6e691cd7370" - // } - } + "plugins" : {} }, + // // 直播(需要开通权限 https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/liveplayer/live-player-plugin.html) + // "live-player-plugin" : { + // "version" : "1.3.0", + // "provider" : "wx2b03c6e691cd7370" + // } "mp-alipay" : { "usingComponents" : true, "appid" : "2021001173639600" diff --git a/pages/plugins/shop/detail/detail.vue b/pages/plugins/shop/detail/detail.vue index bb40fca6..c4102074 100644 --- a/pages/plugins/shop/detail/detail.vue +++ b/pages/plugins/shop/detail/detail.vue @@ -1,11 +1,11 @@