From f23d550fd3dbb3a5d052dad1e8105b74892cde42 Mon Sep 17 00:00:00 2001
From: 15093570141 <141405260+17521612761@users.noreply.github.com>
Date: Fri, 25 Oct 2024 17:18:09 +0800
Subject: [PATCH] =?UTF-8?q?uniapp=E3=80=90=E4=BC=98=E5=8C=96=E3=80=91:=20?=
=?UTF-8?q?=E9=80=82=E9=85=8D=E6=94=AF=E4=BB=98=E5=AE=9D=E5=92=8Capp?=
=?UTF-8?q?=E7=AB=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../CoreShop/.hbuilderx/launch.json | 4 ++
.../coreshop-button/coreshop-button.vue | 2 +-
.../coreshop-fixed-bottom-button.vue | 10 ++-
.../coreshop-login-modal.vue | 12 +++-
.../CoreShop/core/hooks/systemInfo.ts | 10 ++-
.../CoreShop/pages/classify/classify.scss | 3 +-
.../CoreShop/pages/classify/classify.vue | 32 ++++++----
.../CoreShop/pages/login/login.vue | 2 +-
.../CoreShop/pages/order/submit/submit.scss | 3 +-
.../activity/solitaire/detail/detail.scss | 3 +-
.../pages/subpackage/agency/order/index.scss | 20 ++++--
.../pages/subpackage/agency/order/index.vue | 6 +-
.../pages/subpackage/agency/rank/index.scss | 7 +-
.../pages/subpackage/agency/team/index.scss | 10 ++-
.../distribution/apply/apply-form.vue | 2 +-
.../subpackage/distribution/apply/index.vue | 34 ++--------
.../subpackage/distribution/order/index.scss | 20 ++++--
.../subpackage/distribution/order/index.vue | 7 +-
.../subpackage/distribution/rank/index.scss | 7 +-
.../subpackage/distribution/team/index.scss | 10 ++-
.../member/afterSales/apply/apply.scss | 29 +--------
.../member/afterSales/apply/apply.vue | 3 -
.../member/afterSales/detail/detail.scss | 12 ++--
.../member/afterSales/detail/detail.vue | 8 ++-
.../balance/bank-card/bank-card-form.vue | 6 +-
.../member/balance/recharge/index.scss | 27 ++------
.../subpackage/member/invoice/set/set.scss | 5 +-
.../member/order/detail/detail.scss | 14 ++--
.../subpackage/member/order/detail/detail.vue | 64 ++++++++++---------
.../member/order/evaluate/evaluate.scss | 26 --------
.../member/order/evaluate/evaluate.vue | 7 +-
.../member/order/invoice/invoice.scss | 5 +-
32 files changed, 182 insertions(+), 228 deletions(-)
diff --git a/CoreCms.Net.Uni-App/CoreShop/.hbuilderx/launch.json b/CoreCms.Net.Uni-App/CoreShop/.hbuilderx/launch.json
index 81f13f4f..ee5be774 100644
--- a/CoreCms.Net.Uni-App/CoreShop/.hbuilderx/launch.json
+++ b/CoreCms.Net.Uni-App/CoreShop/.hbuilderx/launch.json
@@ -2,6 +2,10 @@
// launchtype项可配置值为local或remote, local代表前端连本地云函数,remote代表前端连云端云函数
"version": "0.0",
"configurations": [{
+ "app-plus" :
+ {
+ "launchtype" : "local"
+ },
"default" :
{
"launchtype" : "local"
diff --git a/CoreCms.Net.Uni-App/CoreShop/components/coreshop-button/coreshop-button.vue b/CoreCms.Net.Uni-App/CoreShop/components/coreshop-button/coreshop-button.vue
index 371e8807..f92058ca 100644
--- a/CoreCms.Net.Uni-App/CoreShop/components/coreshop-button/coreshop-button.vue
+++ b/CoreCms.Net.Uni-App/CoreShop/components/coreshop-button/coreshop-button.vue
@@ -1,6 +1,6 @@
diff --git a/CoreCms.Net.Uni-App/CoreShop/components/coreshop-fixed-bottom-button/coreshop-fixed-bottom-button.vue b/CoreCms.Net.Uni-App/CoreShop/components/coreshop-fixed-bottom-button/coreshop-fixed-bottom-button.vue
index 5ba46e20..c6bf2355 100644
--- a/CoreCms.Net.Uni-App/CoreShop/components/coreshop-fixed-bottom-button/coreshop-fixed-bottom-button.vue
+++ b/CoreCms.Net.Uni-App/CoreShop/components/coreshop-fixed-bottom-button/coreshop-fixed-bottom-button.vue
@@ -1,6 +1,14 @@
+
+
+
+
+
+
+
+
@@ -25,7 +33,7 @@
justify-content: space-between;
padding-bottom: calc(env(safe-area-inset-bottom) / 2);
- .btn {
+ .btn {
width: calc(100% - 40rpx);
margin: 20rpx;
}
diff --git a/CoreCms.Net.Uni-App/CoreShop/components/coreshop-login-modal/coreshop-login-modal.vue b/CoreCms.Net.Uni-App/CoreShop/components/coreshop-login-modal/coreshop-login-modal.vue
index f881ed4e..0415482c 100644
--- a/CoreCms.Net.Uni-App/CoreShop/components/coreshop-login-modal/coreshop-login-modal.vue
+++ b/CoreCms.Net.Uni-App/CoreShop/components/coreshop-login-modal/coreshop-login-modal.vue
@@ -35,6 +35,8 @@
+
确定授权
-
+
@@ -57,7 +59,7 @@
import { useShopConfigStore, useUserInfoStore } from '@/core/store';
import type { Response } from '@/core/models';
import { Invitecode, UserToken } from '@/core/consts';
- import { queryLoginPhoneNumber, queryLogin, queryAliPayAppAuthTokenBYCode ,queryDecryptPhoneNumberByAli} from '@/core/api';
+ import { queryLoginPhoneNumber, queryLogin, queryAliPayAppAuthTokenBYCode, queryDecryptPhoneNumberByAli } from '@/core/api';
import { loginGetCode, handleShowToast, handleRouteNavigateTo } from '@/core/utils';
/** 获取项目配置 */
@@ -86,7 +88,13 @@
watch(() => props.show, (newVal : boolean) => {
if (newVal) {
+ // #ifdef MP-ALIPAY || MP-WEIXIN
loginPopup.value.open();
+ // #endif
+
+ // #ifndef MP-WEIXIN || MP-ALIPAY
+ handleRouteNavigateTo(`/pages/login/login`)
+ // #endif
} else {
loginPopup.value.close();
}
diff --git a/CoreCms.Net.Uni-App/CoreShop/core/hooks/systemInfo.ts b/CoreCms.Net.Uni-App/CoreShop/core/hooks/systemInfo.ts
index a303386a..bc9c363e 100644
--- a/CoreCms.Net.Uni-App/CoreShop/core/hooks/systemInfo.ts
+++ b/CoreCms.Net.Uni-App/CoreShop/core/hooks/systemInfo.ts
@@ -12,11 +12,15 @@ export const useSystemInfo = () => {
});
- onMounted(async () => {
- const menuButton = uni.getMenuButtonBoundingClientRect();
- const systemInfo = await uni.getSystemInfo();
+ onMounted(() => {
+ const systemInfo = uni.getSystemInfoSync();
state.systemInfo = systemInfo;
+
+ // #ifndef APP
+ const menuButton = uni.getMenuButtonBoundingClientRect();
state.menuButtonHeight = menuButton.height + (menuButton.top - systemInfo.statusBarHeight) * 2;
+ // #endif
+
state.statusBarHeight = systemInfo.statusBarHeight + state.menuButtonHeight;
})
diff --git a/CoreCms.Net.Uni-App/CoreShop/pages/classify/classify.scss b/CoreCms.Net.Uni-App/CoreShop/pages/classify/classify.scss
index f477b891..66002fed 100644
--- a/CoreCms.Net.Uni-App/CoreShop/pages/classify/classify.scss
+++ b/CoreCms.Net.Uni-App/CoreShop/pages/classify/classify.scss
@@ -3,8 +3,7 @@
position: relative;
display: flex;
align-items: center;
- justify-content: space-between;
- max-width: 500rpx;
+ justify-content: space-between;
.page-name {
font-size: 32rpx;
margin-right: 20rpx;
diff --git a/CoreCms.Net.Uni-App/CoreShop/pages/classify/classify.vue b/CoreCms.Net.Uni-App/CoreShop/pages/classify/classify.vue
index 38fb3232..2e85f21e 100644
--- a/CoreCms.Net.Uni-App/CoreShop/pages/classify/classify.vue
+++ b/CoreCms.Net.Uni-App/CoreShop/pages/classify/classify.vue
@@ -5,16 +5,22 @@
-
- 分类
-
-
- 搜索
-
-
-
+
+
+
+
+
+
+ 分类
+
+
+ 搜索
+
+
+
@@ -38,7 +44,7 @@