49 lines
1.4 KiB
Vue
49 lines
1.4 KiB
Vue
<template>
|
|
<view class="page-wrapper">
|
|
<JCell title="安全设置" :mT="20" @tap="jumpPage('safeSetUp')" />
|
|
<JCell title="账号设置" :mT="20" @tap="jumpPage('accountSetUp')" />
|
|
<JCell v-if="ak.ent.has('ENT_MCH_CONFIG_EDIT')" title="系统设置" @tap="jumpPage('systemSetUp')" />
|
|
<button hover-class="touch-hover" class="login-out flex-center u-m-t-30" @tap="logout">退出登录</button>
|
|
</view>
|
|
|
|
<!-- 通用提示 -->
|
|
<JeepayPopupConfirm ref="jeepayPopupConfirm" />
|
|
</template>
|
|
|
|
<script setup>
|
|
import { ref, reactive } from 'vue'
|
|
import go from '@/commons/utils/go.js'
|
|
import infoBox from '@/commons/utils/infoBox.js'
|
|
import storageManage from '@/commons/utils/storageManage.js'
|
|
import ak from '@/commons/utils/ak.js'
|
|
// #ifdef MP-WEIXIN
|
|
// 控制 音乐播放 和暂停
|
|
import { startOrEndMusice } from "@/commons/utils/pushmsg/wxTextToSpeach.js"
|
|
// #endif
|
|
const jeepayPopupConfirm = ref()
|
|
|
|
function logout() {
|
|
|
|
jeepayPopupConfirm.value.open('确认退出?').then(() => {
|
|
storageManage.cleanByLogout()
|
|
// #ifdef MP-WEIXIN
|
|
startOrEndMusice(false)
|
|
// #endif
|
|
go.to('PAGES_LOGIN', {}, go.GO_TYPE_RELAUNCH)
|
|
})
|
|
}
|
|
|
|
const jumpPage = (url) => uni.navigateTo({ url: `/pages/userSetUp/${url}` })
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.login-out {
|
|
margin-top: 20rpx;
|
|
height: 120rpx;
|
|
background-color: #fff;
|
|
font-size: 32rpx;
|
|
font-weight: 400;
|
|
color: #ff5b4c;
|
|
}
|
|
</style>
|