From 9c509c6f159e14908b94a4b62341904cab1e9719 Mon Sep 17 00:00:00 2001 From: yunlongn Date: Wed, 26 Nov 2025 14:36:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E4=BB=98=E5=AE=9D=E5=B0=8F=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manifest.json | 4 +- mini.project.json | 9 + pages.json | 10 +- .../goods/components/detail/detail-navbar.vue | 5 +- pages/goods/components/list/list-navbar.vue | 5 +- pages/goods/index.vue | 2 +- .../components/s-auth-modal/s-auth-modal.vue | 20 +- sheep/components/s-layout/s-layout.vue | 5 + sheep/components/s-menu-grid/s-menu-grid.vue | 4 +- sheep/components/s-tabbar/s-tabbar.vue | 2 +- sheep/platform/index.js | 17 ++ sheep/platform/provider/alipay/index.js | 6 + sheep/platform/provider/alipay/miniProgram.js | 217 ++++++++++++++++++ sheep/platform/provider/wechat/index.js | 6 +- sheep/ui/su-inner-navbar/su-inner-navbar.vue | 8 +- sheep/ui/su-tabbar-item/su-tabbar-item.vue | 2 +- 16 files changed, 305 insertions(+), 17 deletions(-) create mode 100644 mini.project.json create mode 100644 sheep/platform/provider/alipay/index.js create mode 100644 sheep/platform/provider/alipay/miniProgram.js diff --git a/manifest.json b/manifest.json index 5f119db7..ecda35f5 100644 --- a/manifest.json +++ b/manifest.json @@ -185,7 +185,9 @@ "requiredPrivateInfos": ["chooseAddress"] }, "mp-alipay": { - "usingComponents": true + "usingComponents": true, + "styleIsolation": "shared", + "mergeVirtualHostAttributes": true }, "mp-baidu": { "usingComponents": true diff --git a/mini.project.json b/mini.project.json new file mode 100644 index 00000000..1e6d60a2 --- /dev/null +++ b/mini.project.json @@ -0,0 +1,9 @@ +{ + "format": 2, + "compileOptions": { + "component2": true, + "enableNodeModuleBabelTransform": true, + "transpile": {}, + "globalObjectMode": "enable" + } +} \ No newline at end of file diff --git a/pages.json b/pages.json index e75ba5a6..36a4a00f 100644 --- a/pages.json +++ b/pages.json @@ -675,7 +675,15 @@ "navigationBarTitleText": "芋道商城", "navigationBarBackgroundColor": "#FFFFFF", "backgroundColor": "#FFFFFF", - "navigationStyle": "custom" + "navigationStyle": "custom", + "mp-alipay": { + "titleImage": "", + "gestureBack": "YES", + "allowsBounceVertical": "NO", + "transparentTitle": "always", + "navigationStyle": "custom", + "titlePenetrate": "YES" + } }, "tabBar": { "list": [{ diff --git a/pages/goods/components/detail/detail-navbar.vue b/pages/goods/components/detail/detail-navbar.vue index d454ec0f..b414ba77 100644 --- a/pages/goods/components/detail/detail-navbar.vue +++ b/pages/goods/components/detail/detail-navbar.vue @@ -3,7 +3,10 @@ diff --git a/pages/goods/components/list/list-navbar.vue b/pages/goods/components/list/list-navbar.vue index c21e6793..626b7e2e 100644 --- a/pages/goods/components/list/list-navbar.vue +++ b/pages/goods/components/list/list-navbar.vue @@ -11,7 +11,10 @@ > diff --git a/pages/goods/index.vue b/pages/goods/index.vue index 901c8919..e08ce65c 100644 --- a/pages/goods/index.vue +++ b/pages/goods/index.vue @@ -245,7 +245,7 @@ isDay: true, }; const isLogin = computed(() => sheep.$store('user').isLogin); - const state = reactive({ + let state = reactive({ goodsId: 0, skeletonLoading: true, // SPU 加载中 goodsInfo: {}, // SPU 信息 diff --git a/sheep/components/s-auth-modal/s-auth-modal.vue b/sheep/components/s-auth-modal/s-auth-modal.vue index 2b396893..ee74f323 100644 --- a/sheep/components/s-auth-modal/s-auth-modal.vue +++ b/sheep/components/s-auth-modal/s-auth-modal.vue @@ -72,6 +72,18 @@ :src="sheep.$url.static('/static/img/shop/platform/apple.png')" /> + + + @@ -85,7 +97,7 @@ - - + - - + diff --git a/sheep/components/s-layout/s-layout.vue b/sheep/components/s-layout/s-layout.vue index df15c317..78e46569 100644 --- a/sheep/components/s-layout/s-layout.vue +++ b/sheep/components/s-layout/s-layout.vue @@ -214,6 +214,11 @@ // 组件中使用 onMounted 监听页面加载,不是页面组件不使用 onShow onMounted(()=>{ + // #ifdef MP-ALIPAY + uni.setNavigationBarTitle({ + title: "", + }); + // #endif if (!isEmpty(shareInfo.value)) { sheep.$platform.share.updateShareInfo(shareInfo.value); } diff --git a/sheep/components/s-menu-grid/s-menu-grid.vue b/sheep/components/s-menu-grid/s-menu-grid.vue index d05a49d4..8edf6a38 100644 --- a/sheep/components/s-menu-grid/s-menu-grid.vue +++ b/sheep/components/s-menu-grid/s-menu-grid.vue @@ -2,8 +2,8 @@