From 657933fe16f6c4ede1508386d1ee5c87f4170ee2 Mon Sep 17 00:00:00 2001
From: ISFP_T <68358856@qq.com>
Date: Thu, 2 Apr 2026 11:10:23 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
env/.env.development | 4 +-
src/manifest.json | 4 +-
src/pages-login/pages/sign-up/index.vue | 728 ++++++++++++------------
src/pages-store/pages/store/index.vue | 34 +-
4 files changed, 395 insertions(+), 375 deletions(-)
diff --git a/env/.env.development b/env/.env.development
index b5a93a5..4c97902 100644
--- a/env/.env.development
+++ b/env/.env.development
@@ -4,7 +4,7 @@ NODE_ENV=development
VITE_DELETE_CONSOLE=false
#本地环境
-VITE_SERVER_BASEURL=https://howhowfresh.com/prod-api
-#VITE_SERVER_BASEURL=http://192.168.5.200:8080
+#VITE_SERVER_BASEURL=https://howhowfresh.com/prod-api
+VITE_SERVER_BASEURL=http://192.168.5.23:8080
#VITE_SERVER_BASEURL=http://192.168.0.148:8888
#VITE_SERVER_BASEURL=http://liuyao.nat100.top/meiguowaimai
\ No newline at end of file
diff --git a/src/manifest.json b/src/manifest.json
index 13de78c..0db648e 100644
--- a/src/manifest.json
+++ b/src/manifest.json
@@ -2,8 +2,8 @@
"name" : "CHEFLINK delivery",
"appid" : "__UNI__06509BE",
"description" : "",
- "versionName" : "1.0.29",
- "versionCode" : 129,
+ "versionName" : "2.0.1",
+ "versionCode" : 201,
"transformPx" : false,
/* 5+App特有相关 */
"app-plus" : {
diff --git a/src/pages-login/pages/sign-up/index.vue b/src/pages-login/pages/sign-up/index.vue
index 978b9f2..9545ecb 100644
--- a/src/pages-login/pages/sign-up/index.vue
+++ b/src/pages-login/pages/sign-up/index.vue
@@ -1,92 +1,91 @@
+
+
+
+
+
+
+ {{ t('pages-login.sign-up.title') }}
+
+
+
+
+ {{ t("common.email") }}
+
+
+
+
+
+
+
+ {{
+ t("pages-login.sign-up.confirm-email")
+ }}
+
+
+
+
+
+
+
+
+ {{ t("pages-login.sign-up.password") }}
+
+
+
+
+
+
+
+ {{ t("pages-login.sign-up.confirm-password") }}
+
+
+
+
+
+
+
+ {{ t("pages-login.sign-up.first-name") }}
+
+
+
+
+
+
+
+ {{ t("pages-login.sign-up.last-name") }}
+
+
+
+
+
+
+
+ {{
+ t("pages-login.sign-up.phone-number")
+ }}
+
+
+
+
+
+
+
+
+
+
+
+ {{ t('pages-login.sign-up.title') }}
+
+
+
+
+
+
+
+
+ {{ t('pages-login.continuing-agree') }}
+
+ {{ t('agreement.user-terms-conditions') }}、
+
+
+ {{ t('agreement.privacy-policy') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ :deep(.uni-picker-view-indicator) {
+ height: 94rpx !important;
+ }
+
+
\ No newline at end of file
diff --git a/src/pages-store/pages/store/index.vue b/src/pages-store/pages/store/index.vue
index 81e76e1..d6e4489 100644
--- a/src/pages-store/pages/store/index.vue
+++ b/src/pages-store/pages/store/index.vue
@@ -165,6 +165,20 @@ function getStoreDetail() {
]
}
+ // 用详情中的首屏菜品初始化列表,并让下一次触底从第 2 页开始,避免仍请求第 1 页导致与详情数据重复
+ const firstRecords = res.data?.dishPage?.records
+ if (firstRecords && firstRecords.length > 0) {
+ dishListByQuery.value = [...firstRecords]
+ const gotFullPage = firstRecords.length >= pageSize.value
+ hasMore.value = gotFullPage
+ pageNum.value = gotFullPage ? 2 : 1
+ } else if (tabs.value.length > 0) {
+ dishListByQuery.value = []
+ hasMore.value = true
+ pageNum.value = 1
+ nextTick(() => loadDishList(false))
+ }
+
// 商户的经纬度存在,并且用户的经纬度也存在
if(res.data.latitude && res.data.longitude && userStore.userLocation.latitude && userStore.userLocation.longitude) {
let distance = getDistanceInMiles(res.data.latitude, res.data.longitude, userStore.userLocation.latitude, userStore.userLocation.longitude)
@@ -309,15 +323,8 @@ const hasMore = ref(true);
const isLoadingMore = ref(false);
const dishListByQuery = ref([]);
-// 计算当前显示的商品列表
-const currentDishList = computed(() => {
- if(tabs.value[activeTab.value].key==''&&pageNum.value===1){
- return storeDetail.value?.dishPage?.records
- }
- console.log(tabs.value[activeTab.value].key=='');
- // 使用 dishListByQuery 作为数据源
- return dishListByQuery.value || []
-})
+// 计算当前显示的商品列表(统一走 dishListByQuery,避免「全部」首屏用详情、加载更多再拼第 1 页造成重复)
+const currentDishList = computed(() => dishListByQuery.value || [])
// 加载菜品列表
async function loadDishList(isLoadMore = false) {
@@ -352,11 +359,10 @@ async function loadDishList(isLoadMore = false) {
if (res.data && res.data.rows) {
if (isLoadMore) {
- // 加载更多,追加数据
- dishListByQuery.value = [
- ...dishListByQuery.value,
- ...res.data.rows
- ];
+ // 加载更多:按 id 去重,防止接口分页重叠或重复请求时的重复项
+ const existingIds = new Set(dishListByQuery.value.map((r: any) => r.id))
+ const nextRows = res.data.rows.filter((r: any) => r != null && !existingIds.has(r.id))
+ dishListByQuery.value = [...dishListByQuery.value, ...nextRows]
} else {
// 首次加载或刷新
dishListByQuery.value = res.data.rows;