提交对首页跳转登录页的问题

This commit is contained in:
2024-08-02 16:41:52 +08:00
parent 01e3d60b6c
commit 6f253ba5b9
7 changed files with 30 additions and 88 deletions

View File

@@ -1,66 +0,0 @@
// pages/editInvoice/index.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})

View File

@@ -1,2 +0,0 @@
<!--pages/editInvoice/index.wxml-->
<text>pages/editInvoice/index.wxml</text>

View File

@@ -32,10 +32,9 @@ Page({
// })
// return
// }
wx.switchTab({
url: '/pages/home/index',
wx.redirectTo({
url: '/pages/login/index',
})
},
async getPrivacy() {
const { code, message, data } = await getPrivaciList()
@@ -81,6 +80,7 @@ Page({
},
getPhoneNumber(e) {
const { errno, code: phoneCode } = e.detail;
console.log('e', e)
switch(errno) {
case 103:
alertInfo("已拒绝");