|
|
|
@ -40,12 +40,12 @@
|
|
|
|
<uni-icons type="right" size="18" color="#777777"></uni-icons>
|
|
|
|
<uni-icons type="right" size="18" color="#777777"></uni-icons>
|
|
|
|
</view> -->
|
|
|
|
</view> -->
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <view class="cells" @tap="gotout()">-->
|
|
|
|
<view class="cells" @tap="gotout()">
|
|
|
|
<!-- <view class="title">-->
|
|
|
|
<view class="title">
|
|
|
|
<!-- <image class="timg" src="../../static/image/zx.png"></image>账号注销-->
|
|
|
|
<image class="timg" src="../../static/image/zx.png"></image>账号注销
|
|
|
|
<!-- </view>-->
|
|
|
|
</view>
|
|
|
|
<!-- <uni-icons type="right" size="18" color="#777777"></uni-icons>-->
|
|
|
|
<uni-icons type="right" size="18" color="#777777"></uni-icons>
|
|
|
|
<!-- </view> -->
|
|
|
|
</view>
|
|
|
|
<view class="cells">
|
|
|
|
<view class="cells">
|
|
|
|
<view class="title"><image class="timg" src="../../static/image/bb.png"></image>关于我们</view>
|
|
|
|
<view class="title"><image class="timg" src="../../static/image/bb.png"></image>关于我们</view>
|
|
|
|
<view class="version">版本号 {{versionIn}}</view>
|
|
|
|
<view class="version">版本号 {{versionIn}}</view>
|
|
|
|
@ -176,33 +176,31 @@
|
|
|
|
uni.showLoading({
|
|
|
|
uni.showLoading({
|
|
|
|
title: '账号注销中...'
|
|
|
|
title: '账号注销中...'
|
|
|
|
});
|
|
|
|
});
|
|
|
|
const {data: res} = await uni.$http.post('/Appiso/delBuyerById', {id:this.userid});
|
|
|
|
const {data: res} = await uni.$http.get('/api/cancel');
|
|
|
|
if(res=='1'){
|
|
|
|
console.log("账号注销返回",res)
|
|
|
|
console.log('账号已注销!')
|
|
|
|
if (res&&res.success) {
|
|
|
|
uni.showToast({
|
|
|
|
// 清除缓存
|
|
|
|
title: '账号已注销!',
|
|
|
|
myCache('token','');
|
|
|
|
icon: 'success',
|
|
|
|
myCache('user','');
|
|
|
|
duration: 2000
|
|
|
|
myCache('userInfo','');
|
|
|
|
});
|
|
|
|
|
|
|
|
// 清除登录缓存
|
|
|
|
|
|
|
|
myCache('phone','');
|
|
|
|
myCache('phone','');
|
|
|
|
myCache('openId','');
|
|
|
|
myCache('openId','');
|
|
|
|
myCache('userid','');
|
|
|
|
myCache('userid','');
|
|
|
|
myCache('userInfo','');
|
|
|
|
// 门店信息退出
|
|
|
|
myCache('alipayuserInfo','');
|
|
|
|
myCache('shop','');
|
|
|
|
myCache("signtype",'11');
|
|
|
|
myCache('myshop','');
|
|
|
|
setTimeout(() => {
|
|
|
|
myCache('myshopid','');
|
|
|
|
// 跳转 我的
|
|
|
|
myCache('shoplist','');
|
|
|
|
uni.switchTab({
|
|
|
|
|
|
|
|
url: '/pages/user/user'
|
|
|
|
// app清除角标的数量
|
|
|
|
});
|
|
|
|
//#ifdef APP-PLUS
|
|
|
|
}, 2000);
|
|
|
|
plus.runtime.setBadgeNumber(-1);
|
|
|
|
}
|
|
|
|
//#endif
|
|
|
|
else if(res=='2'){
|
|
|
|
|
|
|
|
console.log('账号不可注销!')
|
|
|
|
|
|
|
|
uni.showModal({
|
|
|
|
uni.showModal({
|
|
|
|
title: '提示',
|
|
|
|
title: '提示',
|
|
|
|
content: '当前账号还有订单未完成,账号不可注销!请处理后操作!',
|
|
|
|
content: '账号已注销!',
|
|
|
|
|
|
|
|
cancelText: '取消',
|
|
|
|
confirmText: '确定',
|
|
|
|
confirmText: '确定',
|
|
|
|
success: ress => {
|
|
|
|
success: ress => {
|
|
|
|
if (ress.confirm) {
|
|
|
|
if (ress.confirm) {
|
|
|
|
@ -211,12 +209,18 @@
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else{
|
|
|
|
else{
|
|
|
|
uni.showToast({
|
|
|
|
uni.showModal({
|
|
|
|
title: '账号注销失败!请联系客服后再重试!',
|
|
|
|
title: '提示',
|
|
|
|
icon: 'error',
|
|
|
|
content: '账号注销失败!请稍后再试!',
|
|
|
|
duration: 2000
|
|
|
|
cancelText: '取消',
|
|
|
|
})
|
|
|
|
confirmText: '确定',
|
|
|
|
|
|
|
|
success: ress => {
|
|
|
|
|
|
|
|
if (ress.confirm) {
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
loginout(){
|
|
|
|
loginout(){
|
|
|
|
// 退出登录
|
|
|
|
// 退出登录
|
|
|
|
|