Browse Source

注销二次确认

master
jiazhipeng 1 year ago
parent
commit
f545755e67
  1. 2
      app.js
  2. 11
      pages/index/index.wxml
  3. 44
      pages/user/logout/index.js
  4. 9
      pages/user/logout/index.wxml

2
app.js

@ -21,7 +21,7 @@ App({
unique_key: "wechatxcx"
}).then(res => {
let data = JSON.parse(res.data);
data.isTest = data.isTest? true : false;
data.isTest = data.isTest155? true : false;
this.globalData.configJson = data
}).then(() => {
// 获取ui配置文件

11
pages/index/index.wxml

@ -568,16 +568,7 @@
<view class="dot{{smBannerIndex==index?' active':''}}" wx:for="{{xiaobanner}}" wx:key="this"></view>
</view>
</view>
<!-- 2024年 夏季改UI新增景区舒适度和实时路况 -->
<view style="display: flex;">
<view bindtap="gotoUrl" data-event="comfort_click" data-title="景区舒适度" data-url="https://m.cloud.sz-trip.com/aiPlay" class="jqssd">
<!-- <view bindtap="gotoUrl" data-event="comfort_click" data-title="景区舒适度" data-url="https://wlsjzx.zdhxwl.cn/kt_h5/index.html#/morecopy" class="jqssd"> -->
<image src="{{indexSeason.ai}}" mode=""/>
</view>
<view bindtap="gotoUrls" data-event="xlqc" class="sslk">
<image src="{{indexSeason.avoid}}" mode=""/>
</view>
</view>
<view class="sale-road-boxes" style="margin-top:0">
<image mode="heightFix" style="height:86rpx" src="{{indexSeason.wlcx}}"></image>

44
pages/user/logout/index.js

@ -12,10 +12,10 @@ Page({
},
gotoLogoutNotice(){
app.globalData.weburl = "https://m.cloud.sz-trip.com/LogoutNoticeApp"
wx.navigateTo({
url: '/pages/pbService/web/index'
url: "/pages/pbService/web/index?weburl="+encodeURIComponent('https://m.cloud.sz-trip.com/LogoutNotice'),
})
},
changeCheck() {
@ -35,21 +35,35 @@ Page({
})
return;
}
common.user_post('uservice/user/user_logout', { protocol: that.data.protocol ? 1 : 0 }).then(res => {
if (res) {
wx.showToast({
title: res.msg,
icon: 'none'
})
if (res.code === 1) {
setTimeout(() => {
wx.switchTab({
url: '/pages/user/user',
})
}, 400)
wx.showModal({
title: '提示',
content: '是否确认注销账号?',
success (res) {
if (res.confirm) {
common.user_post('uservice/user/user_logout', { protocol: that.data.protocol ? 1 : 0 }).then(res => {
if (res) {
wx.showToast({
title: res.msg,
icon: 'none'
})
if (res.code === 1) {
setTimeout(() => {
wx.switchTab({
url: '/pages/user/user',
})
}, 400)
}
}
})
}
}
}
})
},
/**

9
pages/user/logout/index.wxml

@ -9,6 +9,15 @@
<view class="content">
<view>2.账号无未完成订单</view>
<view>账号无未核销、未支付、待退款等状态的订单。</view>
</view>
<view class="content">
<view>3.上述账号留存的信息、权益将被清空且无法找回</view>
<view>· 银行卡的快捷支付(含卡通)服务</view>
<view>· 使用各产品/服务时留存的其他信息</view>
<view>· 身份信息,如个人资料、实名认证信息等账号资产及权益,如各产品/服务的会员及权益、优惠券等</view>
<view>· 业务订单及交易记录,请确保所有交易已完结且无纠纷账号注销后的因历史交易可能产生的资金退回等权益视作自动放弃</view>
</view>
<view class="notice-msg">
<checkbox-group bindchange="changeCheck">

Loading…
Cancel
Save