Browse Source

upload

product
HolyKnightIX 1 week ago
parent
commit
a902f67400
4 changed files with 54 additions and 13 deletions
  1. +10
    -10
      ext.json
  2. +40
    -0
      index/user.js
  3. +3
    -2
      index/user.wxml
  4. +1
    -1
      pages/theme/index1/index.js

+ 10
- 10
ext.json View File

@@ -17,7 +17,7 @@
}, },
"version": "release" "version": "release"
}, },
"mchId": "1539123951",
"mchId": "1695209702",
"imgProxy": [ "imgProxy": [
{ {
"newUrl": "https://c.malls.iformall.com/img", "newUrl": "https://c.malls.iformall.com/img",
@@ -34,11 +34,12 @@
], ],
"configUrl": "https://c.malls.iformall.com/C/api", "configUrl": "https://c.malls.iformall.com/C/api",
"ifStoreApp": "0", "ifStoreApp": "0",
"businessSwitch": "1",
"ifHaveWebSocket": "0", "ifHaveWebSocket": "0",
"ifHaveCarModular": "1" "ifHaveCarModular": "1"
}, },
"name": "欢乐城万象金街",
"weappId": "wxde54451891094c16",
"name": "欢乐城",
"weappId": "wx8e5cab05e850bc91",
"appVersion": "C.5.1.1" "appVersion": "C.5.1.1"
}, },
"debug": false, "debug": false,
@@ -84,21 +85,20 @@
"navigationBarBackgroundColor": "#FFFFFF" "navigationBarBackgroundColor": "#FFFFFF"
}, },
"plugins": { "plugins": {
"auto-points-plugin": {
"version": "1.3.0",
"provider": "wxfab2bf944bfc4da6"
},
"live-player-plugin": { "live-player-plugin": {
"version": "1.2.5", "version": "1.2.5",
"provider": "wx2b03c6e691cd7370" "provider": "wx2b03c6e691cd7370"
} }
}, },
"extAppid": "wxde54451891094c16",
"extAppid": "wx8e5cab05e850bc91",
"extEnable": true, "extEnable": true,
"permission": {},
"directCommit": false, "directCommit": false,
"networkTimeout": { "networkTimeout": {
"request": 30000, "request": 30000,
"downloadFile": 10000 "downloadFile": 10000
},
"requiredPrivateInfos": [
"chooseLocation",
"getLocation"
]
}
} }

+ 40
- 0
index/user.js View File

@@ -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() { handleAgreePrivacyAuthorization() {
console.log('Privacy Agreed!'); console.log('Privacy Agreed!');
this.setData({ this.setData({


+ 3
- 2
index/user.wxml View File

@@ -44,10 +44,11 @@
</view> </view>


<!-- --> <!-- -->
<view class="user_phone" wx:if="{{curPhone}}" style="margin-top:20rpx;" bindtap='gotoPhoneInfo'>
<view class="user_phone" wx:if="{{curPhone}}" style="margin-top:20rpx;">
<!-- <text class="my">我的手机号:</text> --> <!-- <text class="my">我的手机号:</text> -->
<text class="chengzhang_h" style="color:#fff">{{curPhone}}</text> <text class="chengzhang_h" style="color:#fff">{{curPhone}}</text>
<text class="view">[微信授权手机号]</text>
<text class="view" style="margin-right: 10rpx;" bindtap='gotoPhoneInfo'>[微信授权手机号]</text>
<text class="view" bindtap='goCanelAccount'>[注销]</text>
</view> </view>
<view class="user_phone" wx:if="{{!curPhone}}" style="margin-top:20rpx;" bindtap='gotoPhoneInfo'> <view class="user_phone" wx:if="{{!curPhone}}" style="margin-top:20rpx;" bindtap='gotoPhoneInfo'>
<text class="view">[微信一键登录]</text> <text class="view">[微信一键登录]</text>


+ 1
- 1
pages/theme/index1/index.js View File

@@ -764,7 +764,7 @@ Page({
marketName: app.globalData.marketName, marketName: app.globalData.marketName,
activeColor: app.globalData.mouldType == 1 ? "#E9D0AA" : bgColor.colorFirst.main.activeColor activeColor: app.globalData.mouldType == 1 ? "#E9D0AA" : bgColor.colorFirst.main.activeColor
}) })
// this.uesrInfo()
this.uesrInfo()
if (businessSwitch) { if (businessSwitch) {
let openId = wx.getStorageSync("openId") let openId = wx.getStorageSync("openId")
let member_status = 0 let member_status = 0


Loading…
Cancel
Save