liukangdong
2024-07-16 a93496ffe02ae8a97ac582a5c0a5d9ac1f7ba10f
wechat_jiaxuan/pages/sets/index.js
@@ -1,4 +1,4 @@
// pages/sets/index.js
import { wxLogOff } from '../../api/index'
Page({
  /**
@@ -20,9 +20,20 @@
  onClose() {
    this.setData({show: false})
  },
  changeDeal(){
  onSubLgout() {
    wxLogOff().then(res => {
      wx.removeStorageSync('token')
      wx.removeStorageSync('member')
      wx.removeStorageSync('code')
      wx.redirectTo({
        url: '/pages/index/index',
      })
    })
  },
  changeDeal(e){
    const { label } = e.currentTarget.dataset
    wx.navigateTo({
      url: '/pages/sets/protocol',
      url: '/pages/sets/protocol?label=' + label,
    })
  },