From 402eff04e45c126f8ad044be24941e7c0d05a0cf Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com>
Date: Fri, 27 Sep 2024 18:12:10 +0800
Subject: [PATCH 1/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=95=86=E5=93=81?=
=?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=80=BB=E8=BE=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/diy/goods-list.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/components/diy/goods-list.vue b/components/diy/goods-list.vue
index 7ab9c522..892805af 100644
--- a/components/diy/goods-list.vue
+++ b/components/diy/goods-list.vue
@@ -454,7 +454,7 @@
if (goods['user_cart_count'] > 99) {
goods['user_cart_count'] = '99+';
}
- if (this.theme == '5') {
+ if (this.theme != '5') {
new_data[index] = goods;
this.setData({
list: new_data,
From dc296be8170dfe90f2d9c9454c062718a59307f1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com>
Date: Fri, 27 Sep 2024 18:36:12 +0800
Subject: [PATCH 2/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=90=9C=E7=B4=A2?=
=?UTF-8?q?=E7=9A=84=E6=98=BE=E7=A4=BA=E9=80=BB=E8=BE=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/diy/search.vue | 19 ++++++++++++++++---
1 file changed, 16 insertions(+), 3 deletions(-)
diff --git a/components/diy/search.vue b/components/diy/search.vue
index d8241d6a..d9b37d6e 100644
--- a/components/diy/search.vue
+++ b/components/diy/search.vue
@@ -18,7 +18,7 @@
{{ form.tips }}
-
+
{{ form.search_tips }}
@@ -143,16 +143,21 @@
},
search_tap() {
if (this.propIsPageSettings) {
+ this.setData({
+ search_content: '',
+ })
this.$emit('search_tap', true);
} else {
this.setData({
is_click: true,
+ search_content: '',
})
}
},
search_hot_close() {
this.setData({
- is_click: false
+ is_click: false,
+ search_content: '',
})
},
get_search_button() {
@@ -181,14 +186,22 @@
},
url_event() {
if (!isEmpty(this.search_content)) {
+ const content = this.search_content;
+
if (this.propIsPageSettings) {
+ this.setData({
+ search_content: '',
+ })
this.$emit('search_tap', false);
} else {
this.setData({
is_click: false,
+ search_content: '',
})
}
- app.globalData.url_open('/pages/goods-search/goods-search?keywords=' + this.search_content);
+ app.globalData.url_open('/pages/goods-search/goods-search?keywords=' + content);
+ } else {
+ app.globalData.showToast('请输入搜索关键字', 'error');
}
}
},
From 272bd02721e78264087d65fdd3b8517e38f64b67 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com>
Date: Fri, 27 Sep 2024 18:39:58 +0800
Subject: [PATCH 3/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9flex=E6=98=BE=E7=A4=BA?=
=?UTF-8?q?=E9=80=BB=E8=BE=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/cart/cart.vue | 80 +++++++++++-----------
components/magic-list/magic-list.vue | 2 +-
pages/plugins/coin/recharge/recharge.vue | 2 +-
pages/plugins/wallet/recharge/recharge.vue | 2 +-
4 files changed, 43 insertions(+), 43 deletions(-)
diff --git a/components/cart/cart.vue b/components/cart/cart.vue
index fdde3ec4..69830c52 100644
--- a/components/cart/cart.vue
+++ b/components/cart/cart.vue
@@ -203,7 +203,7 @@
-
+
@@ -269,9 +269,9 @@
-
-
-
+
+
+
@@ -409,9 +409,9 @@
// #ifdef H5
window_bottom: '100rpx',
window_top: '100rpx',
- // #endif
- // 底部购买导航样式
- cart_buy_nav_style: '',
+ // #endif
+ // 底部购买导航样式
+ cart_buy_nav_style: '',
footer_seat_style: ''
};
},
@@ -421,11 +421,11 @@
propSourceType: {
type: String,
default: '', // 默认主页面。当传入page时为子页面
- },
- // 来源类型
- propCartNavBottomValue: {
- type: Number,
- default: 0
+ },
+ // 来源类型
+ propCartNavBottomValue: {
+ type: Number,
+ default: 0
}
},
@@ -444,11 +444,11 @@
propCartType(value, old_value) {
// 数据加载
this.init();
- },
- // 底部购买导航距离
- propCartNavBottomValue(value, old_value) {
- // 页面样式处理
- this.page_style_handle();
+ },
+ // 底部购买导航距离
+ propCartNavBottomValue(value, old_value) {
+ // 页面样式处理
+ this.page_style_handle();
}
},
@@ -519,9 +519,9 @@
// 猜你喜欢
this.get_data_list(1);
- }
-
- // 页面样式处理
+ }
+
+ // 页面样式处理
this.page_style_handle();
// 分享菜单处理
@@ -1305,15 +1305,15 @@
no_cart_data_btn_event(e) {
var url = ((this.user || null) == null) ? '/pages/login/login?event_callback=init' : this.home_page_url;
app.globalData.url_open(url);
- },
-
- // 页面样式处理
- page_style_handle() {
- var value = (this.propCartNavBottomValue > 0) ? (parseInt(this.propCartNavBottomValue*2)+20) : 0;
- this.setData({
- cart_buy_nav_style: 'bottom:'+value+'rpx;',
- footer_seat_style: (value > 0) ? 'height:'+value+'rpx;' : '',
- });
+ },
+
+ // 页面样式处理
+ page_style_handle() {
+ var value = (this.propCartNavBottomValue > 0) ? (parseInt(this.propCartNavBottomValue*2)+20) : 0;
+ this.setData({
+ cart_buy_nav_style: 'bottom:'+value+'rpx;',
+ footer_seat_style: (value > 0) ? 'height:'+value+'rpx;' : '',
+ });
}
},
};
@@ -1412,10 +1412,10 @@
position: fixed;
z-index: 1;
left: auto;
- bottom: 20rpx;
- margin-left: 20rpx;
- width: calc(100% - 40rpx);
- max-width: calc(800px - 40rpx);
+ bottom: 20rpx;
+ margin-left: 20rpx;
+ width: calc(100% - 40rpx);
+ max-width: calc(800px - 40rpx);
box-shadow: 0rpx 4rpx 8rpx 0px rgba(0, 0, 0, 0.16);
}
.cart-nav-base {
@@ -1424,13 +1424,13 @@
.cart-nav-submit {
padding: 20rpx 24rpx;
white-space: nowrap;
- }
- .cart-nav-submit .nav-btn {
- font-size: 32rpx;
- padding: 0 32rpx;
- height: 70rpx;
- line-height: 70rpx;
- border-radius: 0;
+ }
+ .cart-nav-submit .nav-btn {
+ font-size: 32rpx;
+ padding: 0 32rpx;
+ height: 70rpx;
+ line-height: 70rpx;
+ border-radius: 0;
}
.cart-buy-nav .price {
width: calc(100% - 170rpx);
diff --git a/components/magic-list/magic-list.vue b/components/magic-list/magic-list.vue
index d3144571..6f8ee36f 100644
--- a/components/magic-list/magic-list.vue
+++ b/components/magic-list/magic-list.vue
@@ -4,7 +4,7 @@
-
+
diff --git a/pages/plugins/coin/recharge/recharge.vue b/pages/plugins/coin/recharge/recharge.vue
index 1124d66b..dd334f23 100644
--- a/pages/plugins/coin/recharge/recharge.vue
+++ b/pages/plugins/coin/recharge/recharge.vue
@@ -51,7 +51,7 @@
{{$t('recharge.recharge.eb6722')}}
-
+
diff --git a/pages/plugins/wallet/recharge/recharge.vue b/pages/plugins/wallet/recharge/recharge.vue
index 9aeffbef..822e5a9a 100644
--- a/pages/plugins/wallet/recharge/recharge.vue
+++ b/pages/plugins/wallet/recharge/recharge.vue
@@ -16,7 +16,7 @@
{{$t('recharge.recharge.60k2v3')}}
-
+
{{ item.tips }}