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{