2024-04-23 23:01:35 +08:00
|
|
|
<template>
|
2024-06-13 23:15:52 +08:00
|
|
|
<view class="">
|
|
|
|
<!-- 顶部导航栏 -->
|
|
|
|
<up-navbar leftText="" title="" :placeholder="true" :safeAreaInsetTop="true" @leftClick="leftClick"
|
|
|
|
:bgColor="bgColor">
|
|
|
|
<template #center>
|
|
|
|
<div class="navbarcenter"><span class="text1">系统设置</span></div>
|
|
|
|
</template>
|
|
|
|
</up-navbar>
|
|
|
|
</view>
|
|
|
|
<view class="list">
|
|
|
|
<view class="listInfo" @click="checkUpdate1">
|
|
|
|
<view class="text2">检查更新</view>
|
|
|
|
<image :src="right2" style="width: 18rpx; height: 32rpx;"></image>
|
|
|
|
</view>
|
|
|
|
<view class="listInfo" @click="checkUpdate2">
|
|
|
|
<view class="text2">用户协议</view>
|
|
|
|
<image :src="right2" style="width: 18rpx; height: 32rpx;"></image>
|
|
|
|
</view>
|
|
|
|
<view class="listInfo" @click="checkUpdate3">
|
|
|
|
<view class="text2">隐私协议</view>
|
|
|
|
<image :src="right2" style="width: 18rpx; height: 32rpx;"></image>
|
|
|
|
</view>
|
|
|
|
<view class="listInfo" @click="checkUpdate4">
|
|
|
|
<view class="text2">关于我们</view>
|
|
|
|
<image :src="right2" style="width: 18rpx; height: 32rpx;"></image>
|
2024-04-23 23:01:35 +08:00
|
|
|
</view>
|
2024-06-13 23:15:52 +08:00
|
|
|
<view class="listInfo2" @click="checkUpdate5">
|
|
|
|
<view class="text2">账号注销</view>
|
|
|
|
<image :src="right2" style="width: 18rpx; height: 32rpx;"></image>
|
2024-04-23 23:01:35 +08:00
|
|
|
</view>
|
2024-06-13 23:15:52 +08:00
|
|
|
|
2024-06-15 19:05:52 +08:00
|
|
|
<view class="btn" @click="handleLogout">
|
|
|
|
<view class="text3">退出登录</view>
|
|
|
|
</view>
|
2024-04-23 23:01:35 +08:00
|
|
|
</view>
|
2024-06-15 19:05:52 +08:00
|
|
|
|
2024-04-23 23:01:35 +08:00
|
|
|
</template>
|
|
|
|
|
2024-06-13 23:15:52 +08:00
|
|
|
<script setup>
|
2024-06-15 19:05:52 +08:00
|
|
|
import { getAndroidV } from "@/api/system/version"
|
2024-06-13 23:15:52 +08:00
|
|
|
import { useStore } from 'vuex'
|
|
|
|
import { useRouter } from 'vue-router'
|
|
|
|
import { ref, getCurrentInstance } from 'vue';
|
|
|
|
import { getDicts } from "@/api/system/dict/data";
|
|
|
|
import { onShow, onLoad } from '@dcloudio/uni-app'
|
|
|
|
import image from 'uview-plus/libs/config/props/image';
|
|
|
|
const { proxy } = getCurrentInstance();
|
|
|
|
const isOfficial = ref(true)
|
|
|
|
const iconConfig = proxy.iconConfig;
|
|
|
|
const right2 = iconConfig.right2;
|
|
|
|
const bgColor = ref('#ffffff')
|
2024-06-15 19:05:52 +08:00
|
|
|
const version = ref(getApp().globalData.config.appInfo.version)
|
2024-06-13 23:15:52 +08:00
|
|
|
function handleLogout() {
|
|
|
|
proxy.$modal.confirm('确定注销并退出系统吗?').then(() => {
|
|
|
|
proxy.$store.dispatch('LogOut').then(() => {
|
|
|
|
proxy.$tab.reLaunch('/pages/login')
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
const listInfo = (e) => {
|
|
|
|
console.log(e)
|
|
|
|
}
|
|
|
|
const leftClick = () => {
|
|
|
|
proxy.$tab.navigateBack(1)
|
|
|
|
}
|
|
|
|
const checkUpdate1 = () => {
|
2024-06-15 19:05:52 +08:00
|
|
|
proxy.$modal.loading('正在检查更新,请稍候...');
|
|
|
|
getAndroidV().then(e => {
|
|
|
|
proxy.$modal.closeLoading();
|
|
|
|
if (version.value != e.data.versionName) {
|
|
|
|
let info = e.data.versionCode + ":" + e.data.versionName
|
|
|
|
proxy.$modal.confirm('新版本' + info + "已发布,点击确定复制下载链接").then(() => {
|
|
|
|
uni.setClipboardData({
|
|
|
|
data: e.data.downloadUrl,
|
|
|
|
success: function () {
|
|
|
|
proxy.$modal.showToast("复制成功");
|
|
|
|
},
|
|
|
|
fail: function () {
|
|
|
|
proxy.$modal.showToast("复制失败");
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
})
|
|
|
|
|
|
|
|
}else{
|
|
|
|
proxy.$modal.msg("您已经是最新版本啦~")
|
|
|
|
}
|
|
|
|
console.log(e);
|
|
|
|
})
|
2024-06-13 23:15:52 +08:00
|
|
|
console.log("检查更新");
|
|
|
|
}
|
|
|
|
const checkUpdate2 = () => {
|
|
|
|
console.log("用户协议");
|
2024-06-15 19:05:52 +08:00
|
|
|
proxy.$tab.navigateTo(`/pages/common/webview/index?type=` + 2)
|
2024-06-13 23:15:52 +08:00
|
|
|
}
|
|
|
|
const checkUpdate3 = () => {
|
|
|
|
console.log("隐私协议");
|
2024-06-15 19:05:52 +08:00
|
|
|
proxy.$tab.navigateTo(`/pages/common/webview/index?type=` + 1)
|
2024-06-13 23:15:52 +08:00
|
|
|
}
|
|
|
|
const checkUpdate4 = () => {
|
2024-06-15 19:05:52 +08:00
|
|
|
proxy.$modal.showToast("╭(●`∀´●)╯╰(●’◡’●)╮ (●’◡’●)ノ ヾ(*´▽‘*)ノ");
|
2024-06-13 23:15:52 +08:00
|
|
|
console.log("关于我们");
|
|
|
|
}
|
|
|
|
const checkUpdate5 = () => {
|
2024-06-15 19:05:52 +08:00
|
|
|
proxy.$modal.showToast("请慎重确定您的每一个选择,联系我们,并告知您的想法与困境` (ฅ´ω`ฅ)");
|
2024-06-13 23:15:52 +08:00
|
|
|
console.log("账号注销");
|
|
|
|
}
|
2024-04-23 23:01:35 +08:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
2024-06-13 23:15:52 +08:00
|
|
|
page {
|
|
|
|
background-color: #ffffff;
|
|
|
|
}
|
|
|
|
|
|
|
|
.navbarcenter {
|
|
|
|
|
|
|
|
.text1 {
|
|
|
|
font-weight: 600;
|
|
|
|
font-size: 36rpx;
|
|
|
|
color: #000000 !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.list {
|
|
|
|
margin-top: 25rpx;
|
|
|
|
width: 686rpx;
|
|
|
|
height: 800rpx;
|
|
|
|
margin-left: 32rpx;
|
|
|
|
margin-right: 32rpx;
|
|
|
|
|
|
|
|
.listInfo {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: center;
|
|
|
|
height: 80rpx;
|
|
|
|
border-bottom: 2rpx solid #f4f5f6;
|
|
|
|
/* 设置下边框的宽度和颜色 */
|
|
|
|
border-radius: 1rpx 1rpx 0 0;
|
|
|
|
|
|
|
|
/* 可选:设置边框的圆角 */
|
|
|
|
.text2 {
|
|
|
|
font-weight: 400;
|
|
|
|
font-size: 32rpx;
|
|
|
|
color: #000000 !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.line {
|
|
|
|
width: 100%;
|
|
|
|
height: 2rpx;
|
|
|
|
margin: 24rpx 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.listInfo2 {
|
2024-04-23 23:01:35 +08:00
|
|
|
display: flex;
|
2024-06-13 23:15:52 +08:00
|
|
|
justify-content: space-between;
|
2024-04-23 23:01:35 +08:00
|
|
|
align-items: center;
|
2024-06-13 23:15:52 +08:00
|
|
|
height: 80rpx;
|
|
|
|
|
|
|
|
.text2 {
|
|
|
|
font-weight: 400;
|
|
|
|
font-size: 32rpx;
|
|
|
|
color: #000000 !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.line {
|
|
|
|
width: 100%;
|
|
|
|
height: 2rpx;
|
|
|
|
margin: 24rpx 0;
|
|
|
|
}
|
2024-04-23 23:01:35 +08:00
|
|
|
}
|
2024-06-13 23:15:52 +08:00
|
|
|
|
|
|
|
.btn {
|
|
|
|
margin-top: 120rpx;
|
2024-06-15 19:05:52 +08:00
|
|
|
width: 100%;
|
|
|
|
height: 88rpx;
|
|
|
|
text-align: center;
|
|
|
|
border-radius: 44rpx 44rpx 44rpx 44rpx;
|
|
|
|
background: #00ccbe;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
2024-06-13 23:15:52 +08:00
|
|
|
|
2024-06-15 19:05:52 +08:00
|
|
|
.text3 {
|
|
|
|
font-weight: 400;
|
|
|
|
font-size: 32rpx;
|
|
|
|
color: #FFFFFF !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-04-23 23:01:35 +08:00
|
|
|
</style>
|