diff --git a/api/setting/share.js b/api/setting/share.js new file mode 100644 index 0000000..e7806cc --- /dev/null +++ b/api/setting/share.js @@ -0,0 +1,15 @@ +import { http } from '../../utils/http' + + +/** + * 分享接口获取dccode + * @param data + * @returns {*} + */ +export const Share = (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..4fc7447 100644 --- a/pages/setting/share.vue +++ b/pages/setting/share.vue @@ -1,111 +1,299 @@ - \ 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 diff --git a/utils/http.js b/utils/http.js index e2928d3..dcae7e5 100644 --- a/utils/http.js +++ b/utils/http.js @@ -3,7 +3,7 @@ import { useDeviceStore } from "../stores/modules/deviceInfo" import { useLoginStore } from "../stores/modules/login" const baseURL = "https://dbqb.nfdxy.net/testApi" -// const baseURL = "http://192.168.40.8:9000" + const httpInterceptor = { // 拦截前触发 @@ -44,7 +44,8 @@ const httpInterceptor = { //4 添加token,优先用store,没有则回退到body中的token,保持与Apifox一致 const memberStore = useUserStore() const token = memberStore.userInfo?.token || options.data?.token - // const token = 'a72cf584af42525f214670cb47443820' + // const token = '2d0b5654409646713cdd40ec0d0bb56c' + // const token = '1b3a58424c5324e40d4bf4d085e18047' if (token) { options.header.token = token }