|
|
@ -3,6 +3,10 @@ |
|
|
<view class="ambient ambient-a"></view> |
|
|
<view class="ambient ambient-a"></view> |
|
|
<view class="ambient ambient-b"></view> |
|
|
<view class="ambient ambient-b"></view> |
|
|
<view class="top-safe" :style="{ height: menuButtonInfo.top + 'px' }"></view> |
|
|
<view class="top-safe" :style="{ height: menuButtonInfo.top + 'px' }"></view> |
|
|
|
|
|
<view class="home-back" @tap="backHome"> |
|
|
|
|
|
<text class="home-back-icon"> </text> |
|
|
|
|
|
<text>返回首页</text> |
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
<view class="status-head"> |
|
|
<view class="status-head"> |
|
|
<view class="time-row"> |
|
|
<view class="time-row"> |
|
|
@ -164,6 +168,7 @@ |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
menuButtonInfo: { top: 44 }, |
|
|
menuButtonInfo: { top: 44 }, |
|
|
|
|
|
hasShownOnce: false, |
|
|
currentMood: 'quiet', |
|
|
currentMood: 'quiet', |
|
|
currentMode: 'i', |
|
|
currentMode: 'i', |
|
|
chancesLeft: 3, |
|
|
chancesLeft: 3, |
|
|
@ -286,6 +291,11 @@ |
|
|
}, |
|
|
}, |
|
|
onShow() { |
|
|
onShow() { |
|
|
this.startPageTimers() |
|
|
this.startPageTimers() |
|
|
|
|
|
if (this.hasShownOnce) { |
|
|
|
|
|
this.loadHome() |
|
|
|
|
|
} else { |
|
|
|
|
|
this.hasShownOnce = true |
|
|
|
|
|
} |
|
|
uni.authorize({ |
|
|
uni.authorize({ |
|
|
scope: 'scope.record', |
|
|
scope: 'scope.record', |
|
|
success() { |
|
|
success() { |
|
|
@ -590,7 +600,8 @@ |
|
|
goArchive() { uni.navigateTo({ url: '/package1/ieBrowser/universe' }) }, |
|
|
goArchive() { uni.navigateTo({ url: '/package1/ieBrowser/universe' }) }, |
|
|
goFate() { uni.navigateTo({ url: '/package1/ieBrowser/fate' }) }, |
|
|
goFate() { uni.navigateTo({ url: '/package1/ieBrowser/fate' }) }, |
|
|
goMessages() { uni.navigateTo({ url: '/package1/ieBrowser/messages' }) }, |
|
|
goMessages() { uni.navigateTo({ url: '/package1/ieBrowser/messages' }) }, |
|
|
goUniverse() { uni.navigateTo({ url: '/package1/ieBrowser/universe' }) } |
|
|
goUniverse() { uni.navigateTo({ url: '/package1/ieBrowser/universe' }) }, |
|
|
|
|
|
backHome() { uni.switchTab({ url: '/pages/index/index' }) } |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
@ -614,6 +625,37 @@ |
|
|
overflow: hidden; |
|
|
overflow: hidden; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.home-back { |
|
|
|
|
|
position: absolute; |
|
|
|
|
|
left: 30rpx; |
|
|
|
|
|
top: 92rpx; |
|
|
|
|
|
z-index: 12; |
|
|
|
|
|
display: flex; |
|
|
|
|
|
align-items: center; |
|
|
|
|
|
height: 58rpx; |
|
|
|
|
|
padding: 0 22rpx 0 14rpx; |
|
|
|
|
|
border: 1rpx solid rgba(255, 255, 255, .86); |
|
|
|
|
|
border-radius: 999rpx; |
|
|
|
|
|
color: rgba(22, 27, 46, .68); |
|
|
|
|
|
background: rgba(255, 255, 255, .64); |
|
|
|
|
|
backdrop-filter: blur(20rpx); |
|
|
|
|
|
box-shadow: 0 16rpx 42rpx rgba(96, 112, 160, .12), inset 0 1rpx 0 rgba(255,255,255,.92); |
|
|
|
|
|
font-size: 23rpx; |
|
|
|
|
|
font-weight: 800; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.home-back:active { |
|
|
|
|
|
transform: scale(.96); |
|
|
|
|
|
background: rgba(169, 255, 231, .72); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.home-back-icon { |
|
|
|
|
|
margin-right: 4rpx; |
|
|
|
|
|
font-size: 42rpx; |
|
|
|
|
|
line-height: 52rpx; |
|
|
|
|
|
font-weight: 400; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
.ambient { |
|
|
.ambient { |
|
|
position: absolute; |
|
|
position: absolute; |
|
|
border-radius: 50%; |
|
|
border-radius: 50%; |
|
|
|