diff --git a/power_leasing/src/api/user.js b/power_leasing/src/api/user.js
index 0b832bc..4a96e82 100644
--- a/power_leasing/src/api/user.js
+++ b/power_leasing/src/api/user.js
@@ -71,6 +71,39 @@ export function updatePassword(data) {
}
+ //注销账户
+export function closeAccount(data) {
+ return request({
+ url: `/lease/auth/closeAccount`,
+ method: 'post',
+ data
+ })
+}
+
+
+ //注销邮箱验证码
+ export function sendCloseAccount(data) {
+ return request({
+ url: `/lease/auth/sendCloseAccount`,
+ method: 'post',
+ data
+ })
+ }
+
+
+ //个人中心修改密码
+ export function updatePasswordInCenter(data) {
+ return request({
+ url: `/lease/auth/updatePasswordInCenter`,
+ method: 'post',
+ data
+ })
+ }
+
+
+
+
+
diff --git a/power_leasing/src/components/header.vue b/power_leasing/src/components/header.vue
index 46c460c..2d1e58c 100644
--- a/power_leasing/src/components/header.vue
+++ b/power_leasing/src/components/header.vue
@@ -9,7 +9,7 @@
:key="nav.path"
:to="nav.path"
class="nav-btn"
- active-class="active"
+ :class="{ active: isNavActive(nav.path) }"
:title="nav.description"
>
{{ nav.icon }}
@@ -30,9 +30,16 @@
-
+
{{ userEmail }}
+
+ 安全设置
+
-
订单号{{ row.orderId || '' }}
-
支付地址{{ row.fromAddress || '' }}
-
收款地址{{ row.toAddress || '' }}
-
交易哈希{{ row.txHash }}
+
+
订单号
+
+ {{ row.orderId || '' }}
+ 复制
+
+
+
+
支付地址
+
+ {{ row.fromAddress || '' }}
+ 复制
+
+
+
+
收款地址
+
+ {{ row.toAddress || '' }}
+ 复制
+
+
+
+
交易哈希
+
+ {{ row.txHash }}
+ 复制
+
+
diff --git a/power_leasing/src/views/account/index.vue b/power_leasing/src/views/account/index.vue
index a4d716b..204a98a 100644
--- a/power_leasing/src/views/account/index.vue
+++ b/power_leasing/src/views/account/index.vue
@@ -16,20 +16,20 @@
@@ -68,7 +68,6 @@ export default {
// { label: '充值记录', to: '/account/rechargeRecord' },
// { label: '提现记录', to: '/account/withdrawalHistory' },
{ label: '资金流水', to: '/account/funds-flow' },
- { label: '安全设置', to: '/account/security-settings' },
],
// 卖家侧导航
sellerLinks: [
@@ -77,7 +76,6 @@ export default {
{ label: '商品列表', to: '/account/products' },
{ label: '已售出订单', to: '/account/seller-orders' },
{ label: '资金流水', to: '/account/seller-funds-flow' },
- { label: '安全设置', to: '/account/security-settings' },
],
}
},
@@ -97,6 +95,14 @@ export default {
displayedLinks() {
return this.activeRole === 'buyer' ? this.buyerLinks : this.sellerLinks
},
+ /**
+ * 判断当前是否在安全设置页面
+ * @returns {boolean}
+ */
+ isSecuritySettingsPage() {
+ const path = (this.$route && this.$route.path) || ''
+ return path === '/account/security-settings'
+ },
},
mounted() {
const getVal = (key) => {
@@ -179,7 +185,10 @@ export default {
'/account/shop-config'
]
// 安全设置页面买家和卖家都可见,不参与分组判断
+ // 在安全设置页面时,清除分组高亮(不设置 activeRole)
if (path === '/account/security-settings') {
+ // 清除分组高亮,让所有分组按钮都不高亮
+ this.activeRole = null
return
}
const shouldBuyer = buyerPrefixes.some(p => path.indexOf(p) === 0)
diff --git a/power_leasing/src/views/account/myShops.vue b/power_leasing/src/views/account/myShops.vue
index 67a3dd8..4b2975c 100644
--- a/power_leasing/src/views/account/myShops.vue
+++ b/power_leasing/src/views/account/myShops.vue
@@ -229,12 +229,25 @@
-
+
+
+
+
+
+
+
+
+
{{ getButtonText }}
@@ -28,6 +28,56 @@
+
+
+
+
+
+
+
+
+
修改密码
+
定期修改密码可以提高账户安全性,建议使用强密码并定期更换。
+
+
+
+
+ 修改
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
注销账号
+
注销账号将永久删除您的账户和所有相关数据,此操作不可恢复,请谨慎操作。
+
+
+
+
+ 注销
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ changePasswordCountdown > 0 ? `${changePasswordCountdown}秒后重试` : '获取验证码' }}
+
+
+
+
+
+
+
+
+
+ 密码需包含大小写字母、数字和特殊字符,长度8-32位
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ deleteAccountCountdown > 0 ? `${deleteAccountCountdown}秒后重试` : '获取验证码' }}
+
+
+
+
+
+
+
+
+
+