diff --git a/ext.json b/ext.json index 3fc9a5c..f7945cf 100644 --- a/ext.json +++ b/ext.json @@ -17,7 +17,7 @@ }, "version": "release" }, - "mchId": "1539123951", + "mchId": "1695209702", "imgProxy": [ { "newUrl": "https://c.malls.iformall.com/img", @@ -34,11 +34,12 @@ ], "configUrl": "https://c.malls.iformall.com/C/api", "ifStoreApp": "0", + "businessSwitch": "1", "ifHaveWebSocket": "0", "ifHaveCarModular": "1" }, - "name": "欢乐城万象金街", - "weappId": "wxde54451891094c16", + "name": "欢乐城", + "weappId": "wx8e5cab05e850bc91", "appVersion": "C.5.1.1" }, "debug": false, @@ -84,21 +85,20 @@ "navigationBarBackgroundColor": "#FFFFFF" }, "plugins": { + "auto-points-plugin": { + "version": "1.3.0", + "provider": "wxfab2bf944bfc4da6" + }, "live-player-plugin": { "version": "1.2.5", "provider": "wx2b03c6e691cd7370" } }, - "extAppid": "wxde54451891094c16", + "extAppid": "wx8e5cab05e850bc91", "extEnable": true, - "permission": {}, "directCommit": false, "networkTimeout": { "request": 30000, "downloadFile": 10000 - }, - "requiredPrivateInfos": [ - "chooseLocation", - "getLocation" - ] + } } \ No newline at end of file diff --git a/index/user.js b/index/user.js index 0725f72..89a163f 100644 --- a/index/user.js +++ b/index/user.js @@ -452,6 +452,46 @@ Page({ } }, + goCanelAccount() { + const that = this + wx.showModal({ + title: '提示', + content: '注销后请重新进入小程序', + success(res) { + if (res.confirm) { + console.log('用户点击确定') + that.goCancelUser() + } else if (res.cancel) { + console.log('用户点击取消') + } + } + }) + }, + + goCancelUser() { + Http.get({ + url: "/user/cancelUser" + }).then(res => { + if (res.code == 200) { + wx.showToast({ + title: "注销成功", + icon: 'success', + duration: 1500, + }) + + wx.exitMiniProgram() + + } + }).catch(err => { + console.log(err); + wx.showToast({ + title: err.message || "注销失败", + icon: 'none', + duration: 1500, + }) + }) + }, + handleAgreePrivacyAuthorization() { console.log('Privacy Agreed!'); this.setData({ diff --git a/index/user.wxml b/index/user.wxml index f14a923..1a1ab19 100644 --- a/index/user.wxml +++ b/index/user.wxml @@ -44,10 +44,11 @@ - + {{curPhone}} - [微信授权手机号] + [微信授权手机号] + [注销] [微信一键登录] diff --git a/pages/theme/index1/index.js b/pages/theme/index1/index.js index 993cafd..fbb4463 100644 --- a/pages/theme/index1/index.js +++ b/pages/theme/index1/index.js @@ -764,7 +764,7 @@ Page({ marketName: app.globalData.marketName, activeColor: app.globalData.mouldType == 1 ? "#E9D0AA" : bgColor.colorFirst.main.activeColor }) - // this.uesrInfo() + this.uesrInfo() if (businessSwitch) { let openId = wx.getStorageSync("openId") let member_status = 0