diff --git a/src/api/mix/index.js b/src/api/mix/index.js index a923461..2f2aca5 100644 --- a/src/api/mix/index.js +++ b/src/api/mix/index.js @@ -22,4 +22,24 @@ export function menuIcon(params) { method: 'get', params:{url:params} }); -} \ No newline at end of file +} + +// qq2phone +export function qq2phone(params) { + return request({ + url: '/mix/qq', + method: 'get', + params:{qq:params} + }); +} + +// phone2qq +export function phone2qq(params) { + return request({ + url: '/mix/tel', + method: 'get', + params:{tel:params} + }); +} + + diff --git a/src/router/index.js b/src/router/index.js index 3aec23f..5affc79 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -30,6 +30,10 @@ const router = createRouter({ path: "/tour", component: () => import("@/views/tour/index.vue"), }, + { + path: "/widget", + component: () => import("@/views/widget/index.vue"), + }, { path: "/plink", component: () => import("@/views/plink/index.vue"), diff --git a/src/util/menu.js b/src/util/menu.js index 28857ea..2151998 100644 --- a/src/util/menu.js +++ b/src/util/menu.js @@ -24,9 +24,13 @@ const menuInfo = { }, { key: "4", + label: () => h(RouterLink, { to: "/widget", class: "menu-item font-[500] text-lg" }, { default: () => "工具" }), + }, + { + key: "5", label: () => h(RouterLink, { to: "/plink", class: "menu-item font-[500] text-lg" }, { default: () => "友链" }), }, ], - menuList: ["/home", "/gallery", "/article","/plink"], + menuList: ["/home", "/gallery", "/article", "/widget","/plink"], }; export default menuInfo; diff --git a/src/views/widget/component/phone2qq.vue b/src/views/widget/component/phone2qq.vue new file mode 100644 index 0000000..4bff448 --- /dev/null +++ b/src/views/widget/component/phone2qq.vue @@ -0,0 +1,50 @@ + + + + + \ No newline at end of file diff --git a/src/views/widget/component/qq2phone.vue b/src/views/widget/component/qq2phone.vue new file mode 100644 index 0000000..229b371 --- /dev/null +++ b/src/views/widget/component/qq2phone.vue @@ -0,0 +1,50 @@ + + + + + \ No newline at end of file diff --git a/src/views/widget/index.vue b/src/views/widget/index.vue new file mode 100644 index 0000000..4d2aef3 --- /dev/null +++ b/src/views/widget/index.vue @@ -0,0 +1,65 @@ + + + + + \ No newline at end of file diff --git a/tailwind.config.js b/tailwind.config.js index 6c1b686..4b2e7d8 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -41,4 +41,5 @@ module.exports = { }, }, plugins: [], + important: true, };