From 2faa6546a9f9ddb29f81cbc9770fc25b95703695 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期五, 26 七月 2024 17:02:39 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
wechat_staff/pages/sets/index.js | 44 ++++++++++++++++++++++++++++----------------
1 files changed, 28 insertions(+), 16 deletions(-)
diff --git a/wechat_staff/pages/sets/index.js b/wechat_staff/pages/sets/index.js
index d232609..1da5c40 100644
--- a/wechat_staff/pages/sets/index.js
+++ b/wechat_staff/pages/sets/index.js
@@ -1,6 +1,8 @@
// pages/sets/index.js
-import { logout } from '../../api/index'
+import {
+ logout
+} from '../../api/index'
Page({
/**
@@ -17,25 +19,35 @@
},
showLogout() {
- this.setData({show: true})
+ wx.showModal({
+ title: '鎻愮ず',
+ content: '纭閫�鍑虹櫥褰�',
+ success(res) {
+ if (res.confirm) {
+ logout({}).then(res => {
+ wx.setStorageSync('member', null)
+ wx.setStorageSync('token', '')
+ wx.navigateTo({
+ url: '/pages/login/index',
+ })
+ })
+ }
+ }
+ })
+
},
onClose() {
- this.setData({show: false})
- },
- changeDeal(e){
- wx.navigateTo({
- url: '/pages/sets/protocol?type='+e.currentTarget.dataset.index,
+ this.setData({
+ show: false
})
},
- logout(){
- logout({
- }).then(res => {
- wx.setStorageSync('member', null)
- wx.setStorageSync('token', '')
- wx.navigateTo({
- url: '/pages/login/index',
- })
- })
+ changeDeal(e) {
+ wx.navigateTo({
+ url: '/pages/sets/protocol?type=' + e.currentTarget.dataset.index,
+ })
+ },
+ logout() {
+
},
/**
* 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍒濇娓叉煋瀹屾垚
--
Gitblit v1.9.3