功能:更新消息中心和 YumiNail 模块
This commit is contained in:
@@ -1,7 +1,28 @@
|
||||
const auth = require('../../utils/auth')
|
||||
|
||||
Page({
|
||||
data: {
|
||||
navTitle: '游客模式'
|
||||
},
|
||||
|
||||
onLoad() {
|
||||
this.syncNavTitle()
|
||||
wx.switchTab({
|
||||
url: '/pages/home/index'
|
||||
})
|
||||
},
|
||||
|
||||
onShow() {
|
||||
this.syncNavTitle()
|
||||
},
|
||||
|
||||
syncNavTitle() {
|
||||
const userInfo = auth.getStoredUserInfo()
|
||||
const navTitle = userInfo && String(userInfo.shopName || '').trim()
|
||||
? String(userInfo.shopName).trim()
|
||||
: '游客模式'
|
||||
this.setData({
|
||||
navTitle
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<navigation-bar title="Yumi Nail" back="{{false}}" color="#2d2430" background="#fff7f8"></navigation-bar>
|
||||
<navigation-bar title="{{navTitle}}" showBack="{{false}}" color="#2d2430" background="#fff7f8"></navigation-bar>
|
||||
<view class="redirect-page">
|
||||
<view class="redirect-card">
|
||||
<view class="redirect-title">正在进入首页</view>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
page {
|
||||
height: 100vh;
|
||||
min-height: 100vh;
|
||||
background: #fff7f8;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user