zouyanyan 3 weeks ago
parent 733d5b0ef3
commit eb97161832

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

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

@ -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(){
// 退 // 退

@ -164,12 +164,12 @@
<view class="title">{{servers[15].name}}</view> <view class="title">{{servers[15].name}}</view>
</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"> <view class="image-wrapper">
<image class="imgicon" :src="servers[16].img" mode="aspectFill" lazy-load></image> <image class="imgicon" :src="servers[16].img" mode="aspectFill" lazy-load></image>
</view> </view>
<view class="title">{{servers[16].name}}</view> <view class="title">{{servers[16].name}}</view>
</view> </view> -->
</scroll-view> </scroll-view>
</view> </view>

Loading…
Cancel
Save