From f68f67f34857085d627cc2acdcfe714eb8bbdcb5 Mon Sep 17 00:00:00 2001
From: 安瑾然 <m17681517455@outlook.com>
Date: 星期四, 23 三月 2023 13:58:11 +0800
Subject: [PATCH] 图片预览
---
miniprogram/pages/index/index.ts | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/miniprogram/pages/index/index.ts b/miniprogram/pages/index/index.ts
index 543c0a6..6a8219e 100644
--- a/miniprogram/pages/index/index.ts
+++ b/miniprogram/pages/index/index.ts
@@ -82,16 +82,15 @@
},
method: "GET",
success:(res)=>{
- console.log(res);
wx.setStorageSync('phone', res.data.msg)
- if (res.data.data==0) {
+ if (res.data.data==2) {
wx.redirectTo(
{
url: '../user/pubulicty/index'
// url: '../user/loginInfo/index'
}
)
- }else if(res.data.data==1){
+ }else if(res.data.data==0){
wx.redirectTo(
{
url: '../user/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