2025-11-20 23:28:28 +08:00
|
|
|
<template>
|
|
|
|
|
<view class="content">
|
|
|
|
|
<TopSafe></TopSafe>
|
|
|
|
|
<Header title="设置" />
|
|
|
|
|
<view class="setting-view">
|
|
|
|
|
<view class="item-list mt-24">
|
2026-09-02 09:14:01 +08:00
|
|
|
<view class="flex-r-lr item-box" @click="onHead(index)" v-for="(item, index) in headList" :key="index"
|
|
|
|
|
:style="{ borderWidth: index == headList.length - 1 ? '0' : '2rpx' }">
|
|
|
|
|
<view class="flex-r">
|
|
|
|
|
<text class="text-gray text-32">{{ item.text }}</text>
|
2025-11-20 23:28:28 +08:00
|
|
|
<view class="yi-view" v-if="item.type == 'text1' && item.she">
|
2026-09-02 09:14:01 +08:00
|
|
|
<text class="text-zi text-24">{{ item.she }}</text>
|
2025-11-20 23:28:28 +08:00
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="flex-r-e" style="align-items: center;">
|
2026-09-02 09:14:01 +08:00
|
|
|
<text class="text-zu text-32" v-if="item.type == 'text'">{{ item.value }}</text>
|
|
|
|
|
|
|
|
|
|
<text class="text-fu text-32" v-if="item.type == 'text1'">{{ item.value }}</text>
|
2025-11-20 23:28:28 +08:00
|
|
|
<u-icon size="16" name="arrow-right" color="#666" style="margin-left:12rpx"></u-icon>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<up-toast ref="uToastRef"></up-toast>
|
2026-09-02 09:14:01 +08:00
|
|
|
<qiaobao-assistant page-key="pages/rwa_package/accountSafe/accountSafe" title="账户设置" />
|
|
|
|
|
</view>
|
2025-11-20 23:28:28 +08:00
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import { getUserInfo } from '@/api/auth.js';
|
|
|
|
|
import Header from '@/components/common/header.vue';
|
|
|
|
|
import TopSafe from '@/components/common/top-safe.nvue'
|
|
|
|
|
import MyBtn from '@/components/common/my-btn.vue'
|
|
|
|
|
import func from '@/utils/func.js';
|
|
|
|
|
|
|
|
|
|
export default {
|
2026-09-02 09:14:01 +08:00
|
|
|
components: { Header, TopSafe, MyBtn },
|
2025-11-20 23:28:28 +08:00
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
type: false,
|
|
|
|
|
userInfo: null,
|
2026-09-02 09:14:01 +08:00
|
|
|
headList: [
|
|
|
|
|
{ text: '注册手机号', type: 'text', value: '' },
|
|
|
|
|
{ text: '交易密码设置', type: 'text1', she: '', value: '设置密码' },
|
|
|
|
|
{ text: '登录密码设置', type: 'text1', she: '', value: '设置密码' },
|
|
|
|
|
{ text: '注销账号', type: 'text', value: '' },
|
2025-11-20 23:28:28 +08:00
|
|
|
],
|
2026-09-02 09:14:01 +08:00
|
|
|
bottomList: [
|
|
|
|
|
{ text: '账号与安全' },
|
|
|
|
|
{ text: '我的合同' },
|
|
|
|
|
{ text: '用户协议' },
|
|
|
|
|
{ text: '隐私协议' },
|
|
|
|
|
{ text: '售后保障协议' },
|
|
|
|
|
{ text: '关于我们' },
|
2025-11-20 23:28:28 +08:00
|
|
|
]
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
onShow() {
|
|
|
|
|
},
|
|
|
|
|
onLoad() {
|
|
|
|
|
this.init();
|
|
|
|
|
// this.userinfo();
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
init() {
|
|
|
|
|
this.userinfo()
|
|
|
|
|
},
|
2026-09-02 09:14:01 +08:00
|
|
|
onHead(index) {
|
|
|
|
|
if (index == 1) {
|
2025-11-20 23:28:28 +08:00
|
|
|
uni.navigateTo({
|
2026-09-02 09:14:01 +08:00
|
|
|
url: `/pages/rwa_package/forgotPass/forgotPass?type=1`
|
2025-11-20 23:28:28 +08:00
|
|
|
})
|
2026-09-02 09:14:01 +08:00
|
|
|
} else if (index == 2) {
|
2025-11-20 23:28:28 +08:00
|
|
|
uni.navigateTo({
|
2026-09-02 09:14:01 +08:00
|
|
|
url: `/pages/rwa_package/forgotPass/forgotPass?type=2`
|
2025-11-20 23:28:28 +08:00
|
|
|
})
|
2026-09-02 09:14:01 +08:00
|
|
|
} else if (index == 3) {
|
2025-11-20 23:28:28 +08:00
|
|
|
uni.navigateTo({
|
2026-09-02 09:14:01 +08:00
|
|
|
url: `/pages/rwa_package/accountOut/accountOut`
|
2025-11-20 23:28:28 +08:00
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
userinfo() {
|
|
|
|
|
getUserInfo().then(res => {
|
|
|
|
|
if (res.bizcode == 100) {
|
|
|
|
|
this.userInfo = res.data;
|
|
|
|
|
this.headList[0].value = this.userInfo.mobile;
|
2026-09-02 09:14:01 +08:00
|
|
|
this.headList[0].value = this.headList[0].value.replace(this.headList[0].value.substring(3, 7), '****')
|
|
|
|
|
if (res.data.tradePassword) {
|
2025-11-20 23:28:28 +08:00
|
|
|
this.headList[1].she = '已设置';
|
|
|
|
|
this.headList[1].value = '修改密码';
|
2026-09-02 09:14:01 +08:00
|
|
|
} else {
|
2025-11-20 23:28:28 +08:00
|
|
|
this.headList[1].value = '设置密码';
|
|
|
|
|
}
|
2026-09-02 09:14:01 +08:00
|
|
|
if (res.data.password) {
|
2025-11-20 23:28:28 +08:00
|
|
|
this.headList[2].she = '已设置';
|
|
|
|
|
this.headList[2].value = '修改密码';
|
2026-09-02 09:14:01 +08:00
|
|
|
} else {
|
2025-11-20 23:28:28 +08:00
|
|
|
this.headList[2].value = '设置密码';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
2026-09-02 09:14:01 +08:00
|
|
|
.yi-view {
|
|
|
|
|
width: 104rpx;
|
|
|
|
|
height: 44rpx;
|
|
|
|
|
display: flex;
|
|
|
|
|
background: rgba(122, 53, 246, 0.1);
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
border-radius: 8rpx;
|
|
|
|
|
margin-left: 12rpx;
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-20 23:28:28 +08:00
|
|
|
.setting-view {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: calc(100% - 88rpx - var(--status-bar-height));
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
align-items: center;
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
padding: 0 32rpx;
|
|
|
|
|
box-sizing: border-box;
|
2026-09-02 09:14:01 +08:00
|
|
|
|
|
|
|
|
.item-list {
|
|
|
|
|
width: 100%;
|
2025-11-20 23:28:28 +08:00
|
|
|
border-radius: 16rpx;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
background-color: #fff;
|
2026-09-02 09:14:01 +08:00
|
|
|
|
|
|
|
|
.item-box {
|
|
|
|
|
min-height: 108rpx;
|
2025-11-20 23:28:28 +08:00
|
|
|
padding: 0 32rpx;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
align-items: center;
|
2026-09-02 09:14:01 +08:00
|
|
|
border-bottom: solid #EAEAEA;
|
|
|
|
|
|
|
|
|
|
.ava-img {
|
|
|
|
|
width: 60rpx;
|
|
|
|
|
height: 60rpx;
|
2025-11-20 23:28:28 +08:00
|
|
|
border-radius: 30rpx;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|