diff --git a/api/setting/share.js b/api/setting/share.js new file mode 100644 index 0000000..4cc7d1c --- /dev/null +++ b/api/setting/share.js @@ -0,0 +1,17 @@ +import { http } from '../utils/http' + + +/** + * 分享接口 + * @param data + * @returns {*} + */ +export const getUserInfo = (data) => { + return http({ + method: 'POST', + url: '/api/my/share', + data: + data + , + }) +} diff --git a/components/SharePopup.vue b/components/SharePopup.vue new file mode 100644 index 0000000..f335949 --- /dev/null +++ b/components/SharePopup.vue @@ -0,0 +1,190 @@ + + + + + diff --git a/manifest.json b/manifest.json index ee97510..83f218b 100644 --- a/manifest.json +++ b/manifest.json @@ -17,7 +17,8 @@ "delay" : 0 }, "modules" : { - "OAuth" : {} + "OAuth" : {}, + "Share" : {} }, /* 模块配置 */ "distribute" : { @@ -53,6 +54,12 @@ "google" : { "clientid" : "135" } + }, + "share" : { + "weixin" : { + "appid" : "wx6143d111fc5c9ba3", + "UniversalLinks" : "" + } } } }, diff --git a/pages/setting/share.vue b/pages/setting/share.vue index 78bf6f8..b279937 100644 --- a/pages/setting/share.vue +++ b/pages/setting/share.vue @@ -1,111 +1,281 @@ - \ No newline at end of file + diff --git a/static/my/share/KakaoTalk.png b/static/my/share/KakaoTalk.png new file mode 100644 index 0000000..91f9f8f Binary files /dev/null and b/static/my/share/KakaoTalk.png differ diff --git a/static/my/share/Line.png b/static/my/share/Line.png new file mode 100644 index 0000000..e899f1f Binary files /dev/null and b/static/my/share/Line.png differ diff --git a/static/my/share/WeChat.png b/static/my/share/WeChat.png new file mode 100644 index 0000000..27069da Binary files /dev/null and b/static/my/share/WeChat.png differ diff --git a/static/my/share/WhatsApp.png b/static/my/share/WhatsApp.png new file mode 100644 index 0000000..3133f75 Binary files /dev/null and b/static/my/share/WhatsApp.png differ diff --git a/static/my/share/share.png b/static/my/share/share.png new file mode 100644 index 0000000..c947750 Binary files /dev/null and b/static/my/share/share.png differ diff --git a/static/my/share/success.png b/static/my/share/success.png new file mode 100644 index 0000000..aa4754c Binary files /dev/null and b/static/my/share/success.png differ