zouyanyan 3 weeks ago
parent 733d5b0ef3
commit eb97161832

@ -2,8 +2,8 @@
"name" : "瑜伽汇",
"appid" : "__UNI__B6E0086",
"description" : "瑜伽汇",
"versionName" : "1.0.3",
"versionCode" : 103,
"versionName" : "1.0.4",
"versionCode" : 104,
"transformPx" : false,
"app-plus" : {
"flexible" : true,

@ -249,12 +249,14 @@
this.userid = user.userid? user.userid:'';
this.phone = user.userphone;
if(!this.shopid){
uni.showModal({
title: '提示',
content: '请选择门店信息!',
showCancel: false,
confirmText: '确定'
});
if(this.userid){
uni.showModal({
title: '提示',
content: '请选择门店信息!',
showCancel: false,
confirmText: '确定'
});
}
}
//

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

@ -164,12 +164,12 @@
<view class="title">{{servers[15].name}}</view>
</view>
<!-- 账户注销 -->
<view v-if="userid" class="product-item" @click="gotoServe(98)">
<!-- <view v-if="userid" class="product-item" @click="gotoServe(98)">
<view class="image-wrapper">
<image class="imgicon" :src="servers[16].img" mode="aspectFill" lazy-load></image>
</view>
<view class="title">{{servers[16].name}}</view>
</view>
</view> -->
</scroll-view>
</view>

Loading…
Cancel
Save