From e6235bd9a27ae82547d107430fddc0834781adec Mon Sep 17 00:00:00 2001
From: sws <1141121512@qq.com>
Date: Thu, 2 Nov 2023 15:26:11 +0800
Subject: [PATCH] =?UTF-8?q?1.=E6=B5=8B=E8=AF=95=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
App.vue | 8 +-
common/css/page.css | 4 +-
components/cart/cart.vue | 5 +-
pages.json | 1 +
pages/goods-category/goods-category.css | 33 ++-
pages/goods-category/goods-category.vue | 16 +-
pages/goods-detail/goods-detail.vue | 77 +++---
pages/goods-search/goods-search.vue | 2 +-
pages/index/index.vue | 17 +-
pages/plugins/activity/detail/detail.css | 13 +-
pages/plugins/activity/detail/detail.vue | 230 +++++++++---------
pages/plugins/blog/index/index.vue | 24 +-
.../member-code/member-code.vue | 2 +-
.../wallet/payment-code/payment-code.vue | 2 +-
14 files changed, 219 insertions(+), 215 deletions(-)
diff --git a/App.vue b/App.vue
index dc722102..99145671 100644
--- a/App.vue
+++ b/App.vue
@@ -71,11 +71,11 @@
// tabbar页面
tabbar_pages: ['/pages/index/index', '/pages/goods-category/goods-category', '/pages/cart/cart', '/pages/user/user'],
// 请求地址
- request_url: 'https://new.shopxo.vip/',
- // request_url: 'http://shopxo.com/',
+ // request_url: 'https://new.shopxo.vip/',
+ request_url: 'http://shopxo.com/',
// 静态资源地址(如系统根目录不在public目录下面请在静态地址后面加public目录、如:https://d1.shopxo.vip/public/)
- static_url: 'https://new.shopxo.vip/',
- // static_url: 'http://shopxo.com/',
+ // static_url: 'https://new.shopxo.vip/',
+ static_url: 'http://shopxo.com/',
// 系统类型(默认default、如额外独立小程序、可与程序分身插件实现不同主体小程序及支付独立)
system_type: 'default',
// 基础信息
diff --git a/common/css/page.css b/common/css/page.css
index 0c3386f6..d5d3ab9f 100644
--- a/common/css/page.css
+++ b/common/css/page.css
@@ -948,12 +948,10 @@ button[disabled].bg-grey {
* 关键字标签展示
*/
.word-list .word-icon {
- height: 36rpx;
- line-height: 36rpx;
border-radius: 4rpx;
border: 2rpx solid #FFCAC0;
color: #FFCAC0;
- padding: 0 16rpx;
+ padding: 0 12rpx;
}
.word-list .word-icon:not(:last-child) {
diff --git a/components/cart/cart.vue b/components/cart/cart.vue
index dc8d741c..4d109c39 100644
--- a/components/cart/cart.vue
+++ b/components/cart/cart.vue
@@ -80,8 +80,7 @@
猜你喜欢
-
-
+
@@ -579,6 +578,7 @@
data_list: temp_list,
data_list_loding_status: temp_list.length == 0 ? 0 : this.data_list_loding_status,
goods_list: new_goods_list,
+ random_value: Math.random(),
});
app.globalData.showToast(type == 'delete' ? '删除成功' : '收藏成功', 'success');
@@ -815,6 +815,7 @@
let new_goods_list = this.goods_list;
for (let i = 0; i < new_goods_list.length; i++) {
let bool = app.globalData.some_arry(cart_list, new_goods_list[i].id, 'goods_id');
+ console.log(bool);
if (bool) {
// 将购物车中相同商品不同规格的商品数量累加
let new_goods_item = this.cart_item_num(cart_list);
diff --git a/pages.json b/pages.json
index 64f5d60f..2284b71c 100644
--- a/pages.json
+++ b/pages.json
@@ -30,6 +30,7 @@
"transparentTitle": "always",
"titlePenetrate": "YES",
"navigationBarTitleText": "",
+ "scrollIndicator": "none", // 该页不显示滚动条
// #endif
"enablePullDownRefresh": false,
// 禁止页面下拉
diff --git a/pages/goods-category/goods-category.css b/pages/goods-category/goods-category.css
index 88b815ee..8749bbad 100644
--- a/pages/goods-category/goods-category.css
+++ b/pages/goods-category/goods-category.css
@@ -113,13 +113,15 @@
.model-one .content-item:nth-child(3n) {
border-right: 0;
-}
-.model-one .content .desc {
- min-height: 52rpx;
- line-height: 26rpx;
-}
-.model-one .content {
- height: 240rpx;
+}
+
+.model-one .content .desc {
+ min-height: 52rpx;
+ line-height: 26rpx;
+}
+
+.model-one .content {
+ height: 240rpx;
}
.one-content image {
@@ -381,11 +383,24 @@
padding-right: 0;
padding-left: 24rpx;
}
+
.cart-content .cart-list .goods-base-content {
min-height: 60rpx;
}
-/* */
+/**
+ * 无数据
+ */
.no-data {
z-index: 101;
-}
\ No newline at end of file
+}
+
+/*
+ * 隐藏滚动条
+ */
+scroll-view ::-webkit-scrollbar {
+ display: none;
+ width: 0;
+ height: 0;
+ color: transparent;
+}
diff --git a/pages/goods-category/goods-category.vue b/pages/goods-category/goods-category.vue
index 0bb5bb17..bf4e3551 100644
--- a/pages/goods-category/goods-category.vue
+++ b/pages/goods-category/goods-category.vue
@@ -406,7 +406,7 @@
data_list_loding_status: 1,
data_list_loding_msg: '',
data_is_loading: 0,
- user: null,
+ user: null,
params: null,
tabbar_params: null,
common_site_type: 0,
@@ -461,12 +461,12 @@
componentUserBase,
componentNavMore,
},
- props: {},
-
- onLoad(params) {
- this.setData({
- params: params
- });
+ props: {},
+
+ onLoad(params) {
+ this.setData({
+ params: params
+ });
},
onShow() {
@@ -1252,6 +1252,6 @@
},
};
-
diff --git a/pages/goods-detail/goods-detail.vue b/pages/goods-detail/goods-detail.vue
index 7d3b9a33..d12b905c 100644
--- a/pages/goods-detail/goods-detail.vue
+++ b/pages/goods-detail/goods-detail.vue
@@ -68,18 +68,12 @@
-
+
- {{ lv.name }}
+ {{
+ lv.name
+ }}
@@ -89,7 +83,7 @@
-
+
{{ show_field_price_text }}
{{ currency_symbol }}{{ goods_spec_base_price }}
@@ -204,11 +198,11 @@
-
- {{ plugins_wholesale_data.title }}
-
+
+ {{ plugins_wholesale_data.title }}
+
- {{ item.msg }}
+ {{ item.msg }}
@@ -217,11 +211,11 @@
-
- 优惠券
-
+
+ 优惠券
+
- {{ item.desc || item.name }}
+ {{ item.desc || item.name }}
@@ -229,10 +223,7 @@
-
+
规格
{{ goods_spec_selected_text }}
@@ -240,12 +231,7 @@
-
+
,
{{ item.value }}
@@ -271,10 +257,9 @@
-
-
- 相关门店
- 更多
+
+ 相关门店
+ 更多
@@ -286,11 +271,12 @@