From 638deae4b5b115751e6607f5cdc3c8dee293e957 Mon Sep 17 00:00:00 2001
From: odc.xiaohui <xiaohui@Q1>
Date: 星期三, 29 三月 2023 11:26:52 +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