From 78abbed3048989654f235014159648459655d0de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=A8=E6=A0=88=E5=B0=8F=E5=AD=A6=E7=94=9F?= <1518079521@qq.com> Date: Sat, 1 Jul 2023 16:22:24 +0800 Subject: [PATCH] update uni-app --- uni-app/App.vue | 6 +- uni-app/api/system.ts | 7 ++ uni-app/components/diy/article/index.vue | 11 ++- uni-app/components/diy/graphic-nav/index.vue | 51 ++++++---- uni-app/components/diy/group/index.vue | 24 +++-- uni-app/components/diy/horz-blank/index.vue | 11 ++- uni-app/components/diy/image-ads/index.vue | 9 +- uni-app/components/diy/member-info/index.vue | 11 ++- uni-app/components/diy/text/index.vue | 11 ++- uni-app/components/fixed/demo-index/index.vue | 39 ++++++++ uni-app/components/fixed/group/index.vue | 12 +-- uni-app/hooks/useSubscribeMessage.ts | 30 ++++++ uni-app/locale/language.ts | 5 - uni-app/manifest.json | 4 +- uni-app/pages.json | 96 ++----------------- uni-app/pages/index/diy.vue | 63 +++++------- uni-app/pages/index/index.vue | 67 ++++++------- uni-app/pages/member/index.vue | 63 +++++------- uni-app/stores/member.ts | 2 + uni-app/utils/common.ts | 33 ++----- uni-app/utils/interceptor.ts | 22 ++--- uni-app/utils/request.ts | 6 +- 22 files changed, 286 insertions(+), 297 deletions(-) create mode 100644 uni-app/components/fixed/demo-index/index.vue create mode 100644 uni-app/hooks/useSubscribeMessage.ts diff --git a/uni-app/App.vue b/uni-app/App.vue index 02476b35b..158f461e9 100644 --- a/uni-app/App.vue +++ b/uni-app/App.vue @@ -71,4 +71,8 @@ }) - \ No newline at end of file + \ No newline at end of file diff --git a/uni-app/api/system.ts b/uni-app/api/system.ts index d9c3ec938..7a6b626a5 100644 --- a/uni-app/api/system.ts +++ b/uni-app/api/system.ts @@ -75,4 +75,11 @@ export function fetchBase64Image(data : AnyObject) { */ export function getSiteInfo() { return request.get('site') +} + +/** + * 获取微信小程序订阅消息模板id + */ +export function getWeappTemplateId(keys: string) { + return request.get('weapp/subscribemsg', { keys }) } \ No newline at end of file diff --git a/uni-app/components/diy/article/index.vue b/uni-app/components/diy/article/index.vue index 344f329cd..0d81abc72 100644 --- a/uni-app/components/diy/article/index.vue +++ b/uni-app/components/diy/article/index.vue @@ -21,12 +21,12 @@ \ No newline at end of file diff --git a/uni-app/components/diy/image-ads/index.vue b/uni-app/components/diy/image-ads/index.vue index d5ceaaf6a..aa0f2aa6f 100644 --- a/uni-app/components/diy/image-ads/index.vue +++ b/uni-app/components/diy/image-ads/index.vue @@ -27,7 +27,7 @@ import { img } from '@/utils/common'; import useDiyStore from '@/stores/diy'; - const props = defineProps(['component', 'index']); + const props = defineProps(['component', 'index', 'pullDownRefresh']); const diyStore = useDiyStore(); @@ -54,6 +54,13 @@ return style; }) + watch( + () => props.pullDownRefresh, + (newValue, oldValue) => { + // 处理下拉刷新业务 + } + ) + const imgHeight = computed(() => { return (diyComponent.value.imageHeight * 2) + 'rpx'; }) diff --git a/uni-app/components/diy/member-info/index.vue b/uni-app/components/diy/member-info/index.vue index d58fb7bda..1b6818e68 100644 --- a/uni-app/components/diy/member-info/index.vue +++ b/uni-app/components/diy/member-info/index.vue @@ -64,7 +64,7 @@ \ No newline at end of file diff --git a/uni-app/components/fixed/group/index.vue b/uni-app/components/fixed/group/index.vue index 2c8aff94a..6792d3ee5 100644 --- a/uni-app/components/fixed/group/index.vue +++ b/uni-app/components/fixed/group/index.vue @@ -1,14 +1,14 @@