From 3184dcd4f186f15e9a05ad19c1423ddfea32f2f2 Mon Sep 17 00:00:00 2001 From: yunlongn Date: Wed, 26 Nov 2025 14:36:16 +0800 Subject: [PATCH 1/5] init master vue cli --- mini.project.json | 9 + pages/goods/index.vue | 2 +- .../components/s-auth-modal/s-auth-modal.vue | 14 +- sheep/components/s-layout/s-layout.vue | 2 + sheep/platform/index.js | 10 + sheep/platform/provider/alipay/index.js | 6 + sheep/platform/provider/alipay/miniProgram.js | 217 ++++++++++++++++++ sheep/platform/provider/wechat/index.js | 6 +- sheep/ui/su-fixed/su-fixed.vue | 7 +- sheep/ui/su-popup/su-popup.vue | 2 +- 10 files changed, 269 insertions(+), 6 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/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/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..d1b73787 100644 --- a/sheep/components/s-auth-modal/s-auth-modal.vue +++ b/sheep/components/s-auth-modal/s-auth-modal.vue @@ -46,6 +46,18 @@ + + + - + + + @@ -97,7 +97,7 @@ - - + - - + @@ -197,7 +197,7 @@ } else { sheep.$helper.toast('请选择是否同意协议'); } - // return; + return; } const loginRes = await sheep.$platform.useProvider(provider).login(); if (loginRes) { diff --git a/sheep/components/s-layout/s-layout.vue b/sheep/components/s-layout/s-layout.vue index e76f675e..78e46569 100644 --- a/sheep/components/s-layout/s-layout.vue +++ b/sheep/components/s-layout/s-layout.vue @@ -17,13 +17,11 @@ /> - - @@ -216,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 @@