103 lines
3.1 KiB
Vue
103 lines
3.1 KiB
Vue
<template>
|
|
<view class="">
|
|
<view class="flex justify-between padding bg-white solid-bottom" @click="goNav('/me/setting/bind')">
|
|
<view>修改手机号</view>
|
|
<view><u-icon name="arrow-right"></u-icon></view>
|
|
</view>
|
|
<view class="flex justify-between padding bg-white solid-bottom"
|
|
@click="goNav('/me/feedbackIndex/feedbackIndex')">
|
|
<view>帮助中心</view>
|
|
<view><u-icon name="arrow-right"></u-icon></view>
|
|
</view>
|
|
<view class="flex justify-between padding bg-white solid-bottom" @click="goNav('/me/feedback/index')">
|
|
<view>意见反馈</view>
|
|
<view><u-icon name="arrow-right"></u-icon></view>
|
|
</view>
|
|
<view class="flex justify-between padding bg-white solid-bottom" @click="goNav('/me/setting/xieyi')">
|
|
<view>用户协议</view>
|
|
<view><u-icon name="arrow-right"></u-icon></view>
|
|
</view>
|
|
<view class="flex justify-between padding bg-white solid-bottom" @click="goNav('/me/setting/mimi')">
|
|
<view>隐私协议</view>
|
|
<view><u-icon name="arrow-right"></u-icon></view>
|
|
</view>
|
|
<view class="flex justify-between padding bg-white solid-bottom" @click="goNav('/me/setting/logOff')">
|
|
<view>注销账号</view>
|
|
<view><u-icon name="arrow-right"></u-icon></view>
|
|
</view>
|
|
<view class="flex justify-between padding bg-white solid-bottom" @click="loginOut">
|
|
<view>退出登录</view>
|
|
<view><u-icon name="arrow-right"></u-icon></view>
|
|
</view>
|
|
<view class="version" style="position: absolute;bottom: 50rpx;left: 0;right: 0;margin: auto;text-align: center;color: #666;">{{ version }}版本</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
version: null,
|
|
}
|
|
},
|
|
onLoad() {
|
|
const systemInfo = uni.getSystemInfoSync();
|
|
//#ifdef APP-PLUS
|
|
this.version = systemInfo.appWgtVersion;
|
|
//#endif
|
|
// #ifdef H5
|
|
this.version = systemInfo.appVersion;
|
|
// #endif
|
|
console.log(this.version,'版本号');
|
|
// plus.runtime.getProperty(plus.runtime.appid, widgetInfo => {
|
|
// console.log(widgetInfo)
|
|
// this.version = widgetInfo.version
|
|
// })
|
|
},
|
|
methods: {
|
|
goNav(e) {
|
|
uni.navigateTo({
|
|
url: e
|
|
})
|
|
},
|
|
// 退出登录
|
|
loginOut() {
|
|
uni.showModal({
|
|
title: '退出提醒',
|
|
content: '确定要退出登录么',
|
|
confirmColor: '#ff7581',
|
|
success: e => {
|
|
if (e.confirm) {
|
|
this.avatar = '/static/images/logo.png';
|
|
this.userName = '';
|
|
// this.isLogin = false
|
|
// 清除本地数据
|
|
uni.removeStorageSync('token')
|
|
uni.removeStorageSync('userName')
|
|
uni.removeStorageSync('avatar')
|
|
uni.removeStorageSync('phone')
|
|
uni.removeStorageSync('invitationCode')
|
|
uni.removeStorageSync('sex')
|
|
uni.removeStorageSync('userId')
|
|
uni.removeStorageSync('openId')
|
|
uni.removeStorageSync('zhiFuBao')
|
|
uni.removeStorageSync('zhiFuBaoName')
|
|
uni.removeStorageSync('isVIP')
|
|
uni.showToast({
|
|
icon: 'none',
|
|
title: '退出登录成功'
|
|
})
|
|
setTimeout(function() {
|
|
uni.navigateBack()
|
|
}, 1500)
|
|
}
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
</style> |