liukangdong
2024-07-19 1b897c74e44d185669d87abd4c3a29c90d6fe225
wechat_staff/pages/sets/index.js
@@ -1,4 +1,6 @@
// pages/sets/index.js
import { logout } from '../../api/index'
Page({
  /**
@@ -20,12 +22,21 @@
  onClose() {
    this.setData({show: false})
  },
  changeDeal(){
  changeDeal(e){
    wx.navigateTo({
      url: '/pages/sets/protocol',
      url: '/pages/sets/protocol?type='+e.currentTarget.dataset.index,
    })
  },
  logout(){
    logout({
    }).then(res => {
      wx.setStorageSync('member', null)
      wx.setStorageSync('token', '')
      wx.navigateTo({
        url: '/pages/login/index',
      })
    })
  },
  /**
   * 生命周期函数--监听页面初次渲染完成
   */