【修改】 报名成功返回首页

This commit is contained in:
fengachen
2021-12-14 13:35:30 +08:00
parent f0c90cbd89
commit 46b8834c63
3 changed files with 22 additions and 4 deletions
+10 -1
View File
@@ -1,4 +1,5 @@
// pages/signUpSuccess/signUpSuccess.js // pages/signUpSuccess/signUpSuccess.js
import { isLogin } from "../../assets/js/common"
import {appletName} from "../../assets/js/project.config" import {appletName} from "../../assets/js/project.config"
Page({ Page({
@@ -10,7 +11,15 @@ Page({
isAuditBool:false, isAuditBool:false,
appletName:appletName appletName:appletName
}, },
// 我知道了
back(){
// 第一次注册的返回登录页 其他的返回首页
isLogin( () => {
wx.switchTab({
url: '../home/home',
})
})
},
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
+2 -1
View File
@@ -15,7 +15,8 @@
</view> </view>
<view class="exit-wrap"> <view class="exit-wrap">
<view class="exit"> <view class="exit">
<navigator target="miniProgram" open-type="exit">我知道了</navigator> <!-- <navigator target="miniProgram" open-type="exit">我知道了</navigator> -->
<button class="btn" bindtap="back">我知道了</button>
</view> </view>
</view> </view>
</view> </view>
+10 -2
View File
@@ -29,6 +29,11 @@ page{
/* 需要审核的样式 */ /* 需要审核的样式 */
/* 我知道了的样式 */ /* 我知道了的样式 */
.btn {
background-color: #069f99;
color: #fff;
text-align: center;
}
/* .exit-wrap { /* .exit-wrap {
margin-top: 100px; margin-top: 100px;
@@ -38,8 +43,11 @@ page{
margin: 0 auto; margin: 0 auto;
text-align: center; text-align: center;
color: #fff; color: #fff;
width: 100px; width: 200px;
height: 30px; display: flex;
justify-content: center;
align-items: center;
height: auto;
line-height: 30px; line-height: 30px;
border-radius: 4px; border-radius: 4px;
letter-spacing: 2px; letter-spacing: 2px;