统一甲屿云命名体系

This commit is contained in:
2026-06-29 23:26:43 +08:00
parent 48c47fe3ff
commit bc8a7d8d4c
1268 changed files with 3477 additions and 3511 deletions
+60
View File
@@ -0,0 +1,60 @@
/**
* Purpose: auth supports index.js by holding or executing the auth page or API role.
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
*/
const auth = require('../../utils/auth')
/**
* index page logic.
* Call guide: page data drives the WXML template, and each method is called by user events or lifecycle callbacks.
*/
Page({
/**
* Purpose: data supports index.js by holding or executing the data page or API role.
* Usage: import, call, read, or update this page-data from the owning page/module while preserving the surrounding loading and permission flow.
*/
data: {
/**
* Purpose: navTitle supports index.js by holding or executing the nav title page or API role.
* Usage: import, call, read, or update this page-data-field from the owning page/module while preserving the surrounding loading and permission flow.
*/
navTitle: '游客模式'
},
/**
* `onLoad` page method. Use this from WXML event bindings or lifecycle hooks.
* Call guide: read or update page data with `this.setData(...)` inside the method when state changes.
*/
onLoad() {
this.syncNavTitle()
wx.switchTab({
/**
* Purpose: url supports index.js by holding or executing the url page or API role.
* Usage: import, call, read, or update this page-data-field from the owning page/module while preserving the surrounding loading and permission flow.
*/
url: '/pages/home/index'
})
},
/**
* `onShow` page method. Use this from WXML event bindings or lifecycle hooks.
* Call guide: read or update page data with `this.setData(...)` inside the method when state changes.
*/
onShow() {
this.syncNavTitle()
},
/**
* `syncNavTitle` page method. Use this from WXML event bindings or lifecycle hooks.
* Call guide: read or update page data with `this.setData(...)` inside the method when state changes.
*/
syncNavTitle() {
const userInfo = auth.getStoredUserInfo()
const navTitle = userInfo && String(userInfo.shopName || '').trim()
? String(userInfo.shopName).trim()
: '游客模式'
this.setData({
navTitle
})
}
})
+5
View File
@@ -0,0 +1,5 @@
{
"usingComponents": {
"navigation-bar": "/components/navigation-bar/navigation-bar"
}
}
+7
View File
@@ -0,0 +1,7 @@
<navigation-bar title="{{navTitle}}" showBack="{{false}}" color="{{navThemeColor || '#4A443F'}}" background="{{navThemeBackground || '#FDFBF9'}}"></navigation-bar>
<view class="redirect-page">
<view class="redirect-card">
<view class="redirect-title">正在进入首页</view>
<view class="redirect-desc">即将进入首页</view>
</view>
</view>
+33
View File
@@ -0,0 +1,33 @@
page {
min-height: 100vh;
background: var(--theme-page-bg);
}
.redirect-page {
min-height: calc(100vh - 88rpx);
display: flex;
align-items: center;
justify-content: center;
padding: 32rpx;
}
.redirect-card {
width: 100%;
padding: 40rpx 32rpx;
border-radius: 28rpx;
background: #ffffff;
box-shadow: 0 18rpx 50rpx rgba(122, 67, 88, 0.08);
}
.redirect-title {
font-size: 34rpx;
font-weight: 700;
color: var(--text-primary);
}
.redirect-desc {
margin-top: 18rpx;
font-size: 24rpx;
line-height: 1.7;
color: var(--text-secondary);
}