From 6b309ed870e326c11d662e3401f6b2294738122d Mon Sep 17 00:00:00 2001 From: "DESKTOP-8UQ1PPR\\09158" Date: Thu, 26 Oct 2023 18:36:45 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A0=81=E4=B8=B2=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/index.js | 8 ++++ src/views/Home/index.vue | 87 +++++++++++++++++++++------------------- 2 files changed, 54 insertions(+), 41 deletions(-) diff --git a/src/api/index.js b/src/api/index.js index 6433591..e952d78 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -18,6 +18,9 @@ export const setUserLevel = async (level) => export const setUserTpl = async (tpl) => ajax(`/user/setUserTpl`, { tpl }, "POST"); +export const toggleSendWithAD = async (type) => + ajax(`/user/toggleSendWithAD`, { type }, "POST"); + export const register = async (userInfo) => ajax(`/auth/register`, userInfo, "POST"); @@ -58,3 +61,8 @@ export const getAuthList = async () => //廣告 export const getMovie = async () => ajax(`/ads/getMovie`); + +export const getMarquee = async () => + ajax(`/ads/getMarquee`); + + diff --git a/src/views/Home/index.vue b/src/views/Home/index.vue index 65f6be3..96b3fe8 100644 --- a/src/views/Home/index.vue +++ b/src/views/Home/index.vue @@ -1,21 +1,19 @@ @@ -232,7 +230,13 @@ const handleLogout = () => {
歡迎來到會員中心
- 測試文字測試文字測試文字測試文字測試文字測試文字 + + + + {{item.ad_title}} + + +
@@ -406,7 +410,7 @@ const handleLogout = () => { 發送名片帶廣告
- +
@@ -424,17 +428,17 @@ const handleLogout = () => {
-
- - +
+ +
- +
-
測試文字測試文字測試文字
-
測試文字測試文字測試文字測試文字測試文字測試文字測試文字測試文字測試文字測試文字測試文字測試文字測試文字
-
前往連結
+
{{adData.data.ad_title}}
+
{{adData.data.ad_desc}}
+ 前往連結
@@ -473,6 +477,7 @@ const handleLogout = () => { } .bottom{ position: relative; + width:100%; flex: 0 0 auto; padding: 15px; .title{