diff --git a/CoreCms.Net.Uni-App/CoreShop/App.vue b/CoreCms.Net.Uni-App/CoreShop/App.vue index 9ac19309..2b6dd6b9 100644 --- a/CoreCms.Net.Uni-App/CoreShop/App.vue +++ b/CoreCms.Net.Uni-App/CoreShop/App.vue @@ -3,15 +3,18 @@ import { queryShopConfigV2, queryAppVersions } from '@/core/api'; import type { Response, ShopConfigType } from '@/core/models'; import { useShopConfigStore } from '@/core/store'; - + + /** 获取项目配置 */ + const shopConfigStore = useShopConfigStore(); + onShow(() => { console.log('App Show') }) - + onHide(() => { console.log('App Hide') }) - + onLaunch(() => { getShopConfigV2(); /** 版本设置 */ @@ -31,15 +34,11 @@ checkVersion() // #endif }) - - /** 获取项目配置 */ - const shopConfigStore = useShopConfigStore(); - + const getShopConfigV2 = async () => { - const shopConfig : Response = await queryShopConfigV2(); - shopConfigStore.setConfig(shopConfig.data); + shopConfigStore.querySystemConfig(); } - + const autoUpdate = () => { /** 获取小程序更新机制兼容 */ if (wx.canIUse('getUpdateManager')) { 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 f4e5e294..c3dba324 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 @@ -97,7 +97,7 @@ // #endif // #ifdef MP-ALIPAY - const login : Response = await queryAliPayAppAuthTokenBYCode({ code, }); + const login : Response = await queryAliPayAppAuthTokenBYCode({id:code}); // #endif if (login.status) { diff --git a/CoreCms.Net.Uni-App/CoreShop/components/coreshop-navbar/coreshop-navbar.vue b/CoreCms.Net.Uni-App/CoreShop/components/coreshop-navbar/coreshop-navbar.vue index 7b124362..e6da704b 100644 --- a/CoreCms.Net.Uni-App/CoreShop/components/coreshop-navbar/coreshop-navbar.vue +++ b/CoreCms.Net.Uni-App/CoreShop/components/coreshop-navbar/coreshop-navbar.vue @@ -1,5 +1,6 @@