1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- // pages/set/set.js
- const app = getApp()
- Page({
- /**
- * 页面的初始数据
- */
- data: {
- bindPhone: ''
- },
- /**
- * 生命周期函数--监听页面加载
- */
- onLoad(options) {
- this.setData({
- bindPhone: app.globalData.userInfo.phoneNumber
- })
- },
- /**
- * 联系我们
- */
- handleLinkus() {
- wx.showModal({
- content: '感谢您选择ITT,如你有疑问,欢迎您拨打打电话:400-,我们的客服人员在早上9点到晚上18点都会在线为您服务',
- confirmColor: '#333',
- showCancel: false
- })
- },
- handleLogout () {
- wx.showModal({
- content: '确认退出吗?',
- confirmColor: '#333',
- cancelColor: '#666',
- success (res) {
- if (res.confirm) {
- wx.exitMiniProgram({
- success () {
- wx.clearStorageSync()
- app.globalData.accessToken = ''
- app.globalData.userInfo.login = false
- app.globalData.userInfo.userName = ''
- app.globalData.userInfo.phoneNumber = ''
- app.globalData.userInfo.headImg = ''
- }
- })
- }
- }
- })
- }
- })
|