|
@@ -319,6 +319,23 @@
|
319
|
319
|
url: "../mypage/mypage",
|
320
|
320
|
});
|
321
|
321
|
} else if (e.item.text === "退出登录") {
|
|
322
|
+ // 假登录
|
|
323
|
+ uni.showToast({
|
|
324
|
+ title: "退出成功!",
|
|
325
|
+ });
|
|
326
|
+ let ip = uni.getStorageSync("ip"); //记住域名或ip
|
|
327
|
+ let username = uni.getStorageSync("username"); //记住用户名
|
|
328
|
+ let password = uni.getStorageSync("password"); //记住密码
|
|
329
|
+ let clientid = uni.getStorageSync("clientid");
|
|
330
|
+ uni.clearStorageSync();
|
|
331
|
+ uni.setStorageSync("ip", ip); //记住域名或ip
|
|
332
|
+ uni.setStorageSync("username", username); //记住用户名
|
|
333
|
+ uni.setStorageSync("password", password); //记住密码
|
|
334
|
+ uni.setStorageSync("clientid", clientid);
|
|
335
|
+ uni.navigateTo({
|
|
336
|
+ url: "../homePage/homePage",
|
|
337
|
+ });
|
|
338
|
+ // 假登录
|
322
|
339
|
deleteIt("/auth/logout2").then((result) => {
|
323
|
340
|
if (result.status == 200) {
|
324
|
341
|
uni.showToast({
|