diff --git a/api/user.js b/api/user.js index 07dcb0a..ab4ac36 100644 --- a/api/user.js +++ b/api/user.js @@ -534,3 +534,8 @@ export function setDetection() { export function getRechargeApi() { return request.get("recharge/index"); } + + +export function getUserCenterBanner() { + return request.get("userCenterBanner"); +} diff --git a/pages/user/User/index.vue b/pages/user/User/index.vue index e070d98..8793a27 100644 --- a/pages/user/User/index.vue +++ b/pages/user/User/index.vue @@ -236,7 +236,9 @@ - + @@ -265,7 +267,8 @@ import { getUserInfo, getUserLevelInfo, noticeList, - userBindParent + userBindParent, + getUserCenterBanner } from "@/api/user"; import {isWeixin} from "@/utils"; import cookie from "@/utils/store/cookie"; @@ -351,7 +354,8 @@ export default { icon: '/icon/icon-setting.png', allowEnter: true } - ] + ], + bannerHtml: '' }; }, computed: mapGetters(["userInfo"]), @@ -738,6 +742,15 @@ export default { }).finally(() => { }); + // 海报 + getUserCenterBanner().then(res => { + const { success, data } = res + if (success) { + if (data.userCenterBanner) { + this.bannerHtml = `` + } + } + }) }, //升级群主 goUpgradeProtocol: function () { @@ -1109,6 +1122,9 @@ export default { } .my-wrapper { padding: 30upx; + &.wrapper { + padding: 0 0 30rpx 0 !important; + } .my-tool-wrap { padding: 0 24rpx 24upx 24upx; .cont { @@ -1136,5 +1152,8 @@ export default { } } } + .banner-wrap { + padding: 30rpx 0 0 0; + } }