feat: 调整样式
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
// pages/profile/index.js
|
||||
import request from '../../utils/request';
|
||||
import { calculateDaysSince } from '../../utils/dateUtil';
|
||||
|
||||
const app = getApp();
|
||||
|
||||
@@ -78,7 +79,9 @@ Page({
|
||||
userLevelTag: levelTag,
|
||||
|
||||
// EXP / Sunlight
|
||||
userExp: res.currentSunlight || 0
|
||||
userExp: res.currentSunlight || 0,
|
||||
userSunlight: res.currentSunlight || 0,
|
||||
joinedDays: calculateDaysSince(res.createdAt)
|
||||
});
|
||||
|
||||
// Update global cache
|
||||
@@ -111,6 +114,10 @@ Page({
|
||||
},
|
||||
|
||||
// ======== Menu Actions ========
|
||||
goToExchange() {
|
||||
wx.navigateTo({ url: '/pages/profile/exchange/index' });
|
||||
},
|
||||
|
||||
goToIdentifyHistory() {
|
||||
wx.navigateTo({ url: '/pages/profile/identify-history/index' });
|
||||
},
|
||||
@@ -129,7 +136,7 @@ Page({
|
||||
},
|
||||
|
||||
goToAbout() {
|
||||
this.setData({ view: 'about' });
|
||||
wx.navigateTo({ url: '/pages/profile/about/index' });
|
||||
},
|
||||
|
||||
openDoc(e) {
|
||||
|
||||
Reference in New Issue
Block a user