12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- <template>
- <view>
- <uni-card>
- <!-- <uni-list-item title="操作手册" showExtraIcon="true" :extra-icon="list" showArrow
- to="/pages/my/updatePwd" /> -->
- <uni-list-item title="活体激活" showExtraIcon="true" :extra-icon="cameraExtraIcon" showArrow to="/pages/living/check" />
- <uni-list-item title="修改密码" showExtraIcon="true" :extra-icon="extraIcon" showArrow
- to="/pages/my/updatePwd" />
- <view @click="goOut">
- <uni-list-item title="退出登录" showExtraIcon="true" :extra-icon="goOutExtraIcon" showArrow />
- </view>
- </uni-card>
- </view>
- </template>
- <script>
- import {} from '@/common/auth.js'
- import {
- UpdatePwd,
- unbind,
- logout
- } from '@/api/my.js'
- export default {
- data() {
- return {
- list: {
- color: '#4a4a4a',
- size: '18',
- type: 'list'
- },
- cameraExtraIcon: {
- color: '#4a4a4a',
- size: '18',
- type: 'camera-filled'
- },
- extraIcon: {
- color: '#4a4a4a',
- size: '18',
- type: 'gear-filled'
- },
- goOutExtraIcon: {
- color: '#4a4a4a',
- size: '18',
- type: 'close'
- }
- }
- },
- methods: {
- goOut() {
- uni.showModal({
- title: '提示',
- content: '是否退出登录',
- cancelText: '取消',
- confirmText: '确定',
- success: function(res) {
- if (res.confirm) {
- uni.showLoading({
- title: '正在退出中...'
- })
- unbind().then(res => {
- logout().then(resp => {
- uni.clearStorageSync()
- uni.hideLoading()
- uni.showToast({
- icon: 'none',
- title: '退出成功'
- })
- setTimeout(function() {
- uni.reLaunch({
- url: '/pages/login/index'
- })
- }, 1000)
- })
- })
- }
- }
- })
- }
- }
- }
- </script>
- <style>
- </style>
|