From d9bb4105ddcf75264812635235875e821f82d8fe Mon Sep 17 00:00:00 2001 From: xingyu Date: Tue, 25 Apr 2023 14:10:17 +0800 Subject: [PATCH] feat: mp comps init --- src/api/mp/account/index.ts | 5 ++ .../mp/components/WxAccountSelect/index.vue | 43 ++++++++++++ src/views/mp/components/WxLocation/index.vue | 65 +++++++++++++++++++ .../mp/components/WxMaterialSelect/index.vue | 1 + .../mp/components/WxMaterialSelect/type.ts | 11 ++++ src/views/mp/components/WxMsg/index.vue | 0 src/views/mp/components/WxMusic/index.vue | 0 src/views/mp/components/WxNews/index.vue | 0 src/views/mp/components/WxReply/index.vue | 0 src/views/mp/components/WxVideoPlay/index.vue | 0 src/views/mp/components/WxVoicePlay/index.vue | 0 src/views/mp/components/index.ts | 3 + src/views/mp/components/index.vue | 3 - 13 files changed, 128 insertions(+), 3 deletions(-) create mode 100644 src/views/mp/components/WxAccountSelect/index.vue create mode 100644 src/views/mp/components/WxLocation/index.vue create mode 100644 src/views/mp/components/WxMaterialSelect/index.vue create mode 100644 src/views/mp/components/WxMaterialSelect/type.ts create mode 100644 src/views/mp/components/WxMsg/index.vue create mode 100644 src/views/mp/components/WxMusic/index.vue create mode 100644 src/views/mp/components/WxNews/index.vue create mode 100644 src/views/mp/components/WxReply/index.vue create mode 100644 src/views/mp/components/WxVideoPlay/index.vue create mode 100644 src/views/mp/components/WxVoicePlay/index.vue create mode 100644 src/views/mp/components/index.ts delete mode 100644 src/views/mp/components/index.vue diff --git a/src/api/mp/account/index.ts b/src/api/mp/account/index.ts index 0ab6c79f..e1d772be 100644 --- a/src/api/mp/account/index.ts +++ b/src/api/mp/account/index.ts @@ -1,5 +1,10 @@ import { defHttp } from '@/utils/http/axios' +export interface AccountVO { + id?: number + name: string +} + // 创建公众号账号 export function createAccount(data) { return defHttp.post({ url: '/mp/account/create', data }) diff --git a/src/views/mp/components/WxAccountSelect/index.vue b/src/views/mp/components/WxAccountSelect/index.vue new file mode 100644 index 00000000..6261b350 --- /dev/null +++ b/src/views/mp/components/WxAccountSelect/index.vue @@ -0,0 +1,43 @@ + + diff --git a/src/views/mp/components/WxLocation/index.vue b/src/views/mp/components/WxLocation/index.vue new file mode 100644 index 00000000..d0ee02be --- /dev/null +++ b/src/views/mp/components/WxLocation/index.vue @@ -0,0 +1,65 @@ +import { Image } from 'ant-design-vue'; + + + diff --git a/src/views/mp/components/WxMaterialSelect/index.vue b/src/views/mp/components/WxMaterialSelect/index.vue new file mode 100644 index 00000000..8453dc6c --- /dev/null +++ b/src/views/mp/components/WxMaterialSelect/index.vue @@ -0,0 +1 @@ + diff --git a/src/views/mp/components/WxMaterialSelect/type.ts b/src/views/mp/components/WxMaterialSelect/type.ts new file mode 100644 index 00000000..d4add1d5 --- /dev/null +++ b/src/views/mp/components/WxMaterialSelect/type.ts @@ -0,0 +1,11 @@ +export enum NewsType { + Draft = '2', + Published = '1' +} + +export enum MaterialType { + Image = 'image', + Voice = 'voice', + Video = 'video', + News = 'news' +} diff --git a/src/views/mp/components/WxMsg/index.vue b/src/views/mp/components/WxMsg/index.vue new file mode 100644 index 00000000..e69de29b diff --git a/src/views/mp/components/WxMusic/index.vue b/src/views/mp/components/WxMusic/index.vue new file mode 100644 index 00000000..e69de29b diff --git a/src/views/mp/components/WxNews/index.vue b/src/views/mp/components/WxNews/index.vue new file mode 100644 index 00000000..e69de29b diff --git a/src/views/mp/components/WxReply/index.vue b/src/views/mp/components/WxReply/index.vue new file mode 100644 index 00000000..e69de29b diff --git a/src/views/mp/components/WxVideoPlay/index.vue b/src/views/mp/components/WxVideoPlay/index.vue new file mode 100644 index 00000000..e69de29b diff --git a/src/views/mp/components/WxVoicePlay/index.vue b/src/views/mp/components/WxVoicePlay/index.vue new file mode 100644 index 00000000..e69de29b diff --git a/src/views/mp/components/index.ts b/src/views/mp/components/index.ts new file mode 100644 index 00000000..4160db6c --- /dev/null +++ b/src/views/mp/components/index.ts @@ -0,0 +1,3 @@ +import wxAccountSelect from './WxAccountSelect/index.vue' + +export { wxAccountSelect } diff --git a/src/views/mp/components/index.vue b/src/views/mp/components/index.vue deleted file mode 100644 index 3b64cfc4..00000000 --- a/src/views/mp/components/index.vue +++ /dev/null @@ -1,3 +0,0 @@ -