From 495b46ec8b063307ad1e5390630a01aec4bf296f Mon Sep 17 00:00:00 2001 From: Zuncle <34310384@qq.com> Date: Tue, 24 Mar 2026 17:11:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=85=81=E8=AE=B8=E6=9C=AA=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E7=94=A8=E6=88=B7=E6=B5=8F=E8=A7=88=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E5=92=8C=E5=95=86=E5=9F=8E=EF=BC=8C=E8=A7=A3=E5=86=B3=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E5=AE=A1=E6=A0=B8=E6=8B=92=E7=BB=9D=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除首页和商城页的强制登录拦截,商城API改用公开请求, 用户可先浏览再自行选择登录。 --- api/appUser.js | 4 ++-- pages/cabinet/index.vue | 2 +- pages/index/index.vue | 4 ---- pages/shop/index.vue | 23 ++++++++--------------- 4 files changed, 11 insertions(+), 22 deletions(-) diff --git a/api/appUser.js b/api/appUser.js index 84f0262..a68d21c 100755 --- a/api/appUser.js +++ b/api/appUser.js @@ -251,12 +251,12 @@ export function getStoreItems(kind = 'product', page = 1, page_size = 20, filter if (filters.category_id !== undefined && filters.category_id !== null && filters.category_id > 0) { data.category_id = filters.category_id } - return authRequest({ url: '/api/app/store/items', method: 'GET', data }) + return request({ url: '/api/app/store/items', method: 'GET', data }) } export function getProductCategories() { - return authRequest({ url: '/api/app/product_categories', method: 'GET' }) + return request({ url: '/api/app/product_categories', method: 'GET' }) } export function getTasks(page = 1, page_size = 20) { diff --git a/pages/cabinet/index.vue b/pages/cabinet/index.vue index de49fc5..4675af7 100755 --- a/pages/cabinet/index.vue +++ b/pages/cabinet/index.vue @@ -256,7 +256,7 @@ import { onShow, onReachBottom, onShareAppMessage, onPullDownRefresh } from '@dc import { getInventory, getProductDetail, redeemInventory, requestShipping, cancelShipping, listAddresses, getShipments, createAddressShare, createShippingFeeOrder } from '@/api/appUser' import { getSynthesisRecipes, doSynthesis } from '@/api/synthesis.js' import { vibrateShort } from '@/utils/vibrate.js' -import { checkPhoneBound, checkPhoneBoundSync } from '@/utils/checkPhone.js' +import { checkPhoneBoundSync } from '@/utils/checkPhone.js' import { executePaymentFlow } from '@/utils/payment.js' // #ifdef MP-TOUTIAO import customTabBarToutiao from '@/components/app-tab-bar-toutiao.vue' diff --git a/pages/index/index.vue b/pages/index/index.vue index 83345a2..818f82b 100755 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -144,7 +144,6 @@