From f05a26bb7e036c3d09c84e295f1b77fdb8d9ba08 Mon Sep 17 00:00:00 2001
From: odc.xiaohui <xiaohui@Q1>
Date: 星期四, 06 四月 2023 20:46:42 +0800
Subject: [PATCH] 修改定时
---
miniprogram/pages/index/index.ts | 12 +++++-------
1 files changed, 5 insertions(+), 7 deletions(-)
diff --git a/miniprogram/pages/index/index.ts b/miniprogram/pages/index/index.ts
index 0af5646..892f945 100644
--- a/miniprogram/pages/index/index.ts
+++ b/miniprogram/pages/index/index.ts
@@ -41,7 +41,7 @@
if (role == 1) {
wx.redirectTo(
{
- url: '../manager/index'
+ url: '../user/index'
}
)
}
@@ -82,12 +82,11 @@
},
method: "GET",
success:(res)=>{
- console.log(res);
wx.setStorageSync('phone', res.data.msg)
if (res.data.data==2) {
wx.redirectTo(
- {
- url: '../user/pubulicty/index'
+ { url: '../user/index'
+ // url: '../user/pubulicty/index'
// url: '../user/loginInfo/index'
}
)
@@ -99,8 +98,8 @@
)
}else{
wx.redirectTo(
- {
- url: '../manager/index'
+ {url: '../user/index'
+ // url: '../manager/index'
}
)
}
@@ -114,7 +113,6 @@
// },
// method: "GET",
// success: (res) => {
- // console.log(res);
// // 濡傛灉鐢ㄦ埛宸茬粡娉ㄥ唽鐩存帴杩涘叆 鏈敞鍐岃繘鍏ュ浼� role == 0鐢ㄦ埛 1璀﹀憳
// wx.setStorageSync('token', res.data.data.token)
// wx.setStorageSync('role', res.data.data.role)
--
Gitblit v1.8.0