update: 新增回到首页按钮
This commit is contained in:
@@ -88,6 +88,10 @@ const handleLoginSuccess = async () => {
|
||||
await bindOrg();
|
||||
};
|
||||
|
||||
const goHome = () => {
|
||||
uni.reLaunch({ url: "/pages/index" });
|
||||
};
|
||||
|
||||
onLoad((options) => {
|
||||
try {
|
||||
const value = decodeURIComponent(String(options?.scene || ""));
|
||||
@@ -160,6 +164,11 @@ onLoad((options) => {
|
||||
温馨提示:离开门店时候记得在Pad退出登录哦!
|
||||
</text>
|
||||
</view>
|
||||
<view class="success-action">
|
||||
<SButton width="600rpx" :rounded="22" :onClick="goHome">
|
||||
<text>回到首页</text>
|
||||
</SButton>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view v-else-if="status === 'failed'" class="state message-state">
|
||||
@@ -275,6 +284,10 @@ onLoad((options) => {
|
||||
line-height: 40rpx;
|
||||
}
|
||||
|
||||
.success-action {
|
||||
margin-top: 64rpx;
|
||||
}
|
||||
|
||||
.state-title {
|
||||
font-size: 38rpx;
|
||||
font-weight: 600;
|
||||
|
||||
Reference in New Issue
Block a user