From 4a9bdedb74d0202af54555fade72b31abeee246a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B0=E5=B2=A9?= Date: Fri, 5 Sep 2025 17:56:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=92=A4=E5=9B=9Epdf=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/login.js | 30 ----------- src/pages/index/preview.vue | 99 +++++++++++++++++++++---------------- 2 files changed, 57 insertions(+), 72 deletions(-) diff --git a/src/api/login.js b/src/api/login.js index 203be84b..fe1660ef 100644 --- a/src/api/login.js +++ b/src/api/login.js @@ -24,36 +24,6 @@ export const useAccountLoginApp = (data) => request({ }) => { if (rtnCode === '0000') { setToken(body) - // 获取科技鹿 - // queryCurrentValidMascotInfo().then(({body}) => { - // const userInfo = getUserInfo() - // setUserInfo({ - // ...userInfo, - // 'mascotInfo': body - // }) - // const userInfo2 = getUserInfo() - // console.log('设置科技鹿', userInfo2); - // if (body.imgAddr) { - // setTimeout(() => { - // const img = new Image(); // 创建Image对象 - // // 图片加载成功(缓存完成) - // img.onload = () => { - // console.log(`图片缓存成功: ${url}`); - // resolve(img); // 返回加载完成的Image对象 - // }; - - // // 图片加载失败 - // img.onerror = () => { - // console.error(`图片缓存失败: ${url}`); - // reject(new Error(`Failed to load image: ${url}`)); - // }; - - // // 开始加载图片(设置src触发请求,浏览器会自动缓存) - // img.src = url; - // }) - // } - // }) - // const user_data = await queryCurrentUser() const res = await Promise.all([queryCurrentUser(), queryCurrentValidMascotInfo()]) const userInfo = getUserInfo() const mascotInfo = res[1] diff --git a/src/pages/index/preview.vue b/src/pages/index/preview.vue index a7023026..f6e4ec67 100644 --- a/src/pages/index/preview.vue +++ b/src/pages/index/preview.vue @@ -1,19 +1,23 @@ - \ No newline at end of file + .body-title { + height: 90rpx; + text-align: center; + font-size: 33rpx; + padding-top: 10rpx; + line-height: 46rpx; + box-sizing: border-box; + font-weight: 500; + color: #000; + position: fixed; + top: var(--status-bar-height); + left: 0; + width: 100vw; + z-index: 10000; + // margin-bottom: 23rpx; + .arrow-icon { + position: absolute; + left: 21rpx; + top: 5rpx; + color: #000; + padding: 15rpx; + // background-color: red; + } + } +