初始化

This commit is contained in:
zhu
2026-03-27 13:29:41 +08:00
commit ee03132cee
112 changed files with 6417 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
Page({
data: {
key: "is_first",
loading: true,
},
onLoad(options) {
this.init()
},
init() {
let state = wx.getStorageSync(this.data.key);
if (state) {
wx.redirectTo({
url: "/pages/joinFlow/access/index",
})
} else {
this.setData({
loading: false
})
}
},
handNext() {
wx.setStorageSync(this.data.key, true)
wx.redirectTo({
url: "/pages/home/index",
})
}
})

View File

@@ -0,0 +1,4 @@
{
"usingComponents": {},
"navigationStyle": "custom"
}

View File

@@ -0,0 +1,38 @@
.page {
background-image: linear-gradient(135deg, rgba(0, 33, 33, 1), rgba(0, 106, 106, 1), );
position: relative;
height: 100vh;
}
.j-1 {
color: white;
position: absolute;
margin: auto;
height: min-content;
inset: 0;
text-align: center;
.text-1 {
font-size: 60rpx;
font-weight: 700;
margin-bottom: 40rpx;
}
.text-2 {
line-height: 50rpx;
color: rgba(255, 255, 255, 0.8);
}
}
.footer {
position: absolute;
left: 40rpx;
right: 40rpx;
bottom: 60rpx;
.btn {
width: 100% !important;
padding: 30rpx 0;
color: rgba(0, 106, 106, 1);
}
}

View File

@@ -0,0 +1,13 @@
<view wx:if="{{!loading}}" class="page">
<view class="j-1">
<view class="text-1">欢迎使用术极守护</view>
<view class="text-2">您的贴身康复管家</view>
<view class="text-2">为您的术后康复之路保驾护航</view>
</view>
<view class="footer">
<button class="btn"
bind:tap="handNext"> 下一步</button>
</view>
</view>