From 781bb8845eab5b456ac32da7350014c8aa2bea27 Mon Sep 17 00:00:00 2001
From: ZF sun <34314687@qq.com>
Date: Wed, 31 Dec 2025 14:12:08 +0800
Subject: [PATCH] =?UTF-8?q?chore(=E4=BC=9A=E5=91=98=E4=B8=AD=E5=BF=83):=20?=
=?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=B4=A6=E5=8F=B7=E6=93=8D=E4=BD=9C=E3=80=82?=
=?UTF-8?q?=E6=B3=A8=E9=94=80=E5=8F=8A=E9=80=80=E5=87=BA=E7=99=BB=E5=BD=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
lang/en-us/member/index.js | 20 ++++++---
lang/zh-cn/member/index.js | 30 ++++++++-----
pages_tool/member/index.vue | 87 +++++++++++++++++++++++++++++++++++--
3 files changed, 116 insertions(+), 21 deletions(-)
diff --git a/lang/en-us/member/index.js b/lang/en-us/member/index.js
index 0901ab0..65bf59f 100644
--- a/lang/en-us/member/index.js
+++ b/lang/en-us/member/index.js
@@ -39,10 +39,18 @@ export const lang = {
myRebate: 'Group Rebate',
myHongbao: 'My Red Envelopes',
myBlindBox: 'My Blind Boxes',
-
- waitpay:'Waitpay',
- waitsend:'Waitsend',
- waitconfirm:'Waitconfirm',
- activist:'Activist',
- completed:'Completed',
+
+ waitpay: 'Waitpay',
+ waitsend: 'Waitsend',
+ waitconfirm: 'Waitconfirm',
+ activist: 'Activist',
+ completed: 'Completed',
+
+ // 账户操作
+ logout: 'Logout',
+ cancellation: 'Account Cancellation',
+
+ // 协议
+ privacyPolicy: 'Privacy Policy',
+ registrationAgreement: 'Registration Agreement',
}
diff --git a/lang/zh-cn/member/index.js b/lang/zh-cn/member/index.js
index abd77ba..224aa45 100644
--- a/lang/zh-cn/member/index.js
+++ b/lang/zh-cn/member/index.js
@@ -31,13 +31,13 @@ export const lang = {
verification: '核销台',
message: '我的消息',
exchangeOrder: '积分兑换',
-
- waitpay:'待付款',
- waitsend:'待发货',
- waitconfirm:'待收货',
- activist:'售后',
- completed:'已完成',
-
+
+ waitpay: '待付款',
+ waitsend: '待发货',
+ waitconfirm: '待收货',
+ activist: '售后',
+ completed: '已完成',
+
// 推广中心
balance: '余额',
point: '积分',
@@ -46,9 +46,15 @@ export const lang = {
myPresale: '我的预售',
myGiftcard: '我的礼品卡',
myDivideticket: '我的瓜分券',
- myRebate:'拼团返利',
- myHongbao:'我的红包列表',
- myBlindBox:'我的盲盒',
-
-
+ myRebate: '拼团返利',
+ myHongbao: '我的红包列表',
+ myBlindBox: '我的盲盒',
+
+ // 账户操作
+ logout: '退出登录',
+ cancellation: '账号注销',
+
+ // 协议
+ privacyPolicy: '隐私协议',
+ registrationAgreement: '注册协议',
}
diff --git a/pages_tool/member/index.vue b/pages_tool/member/index.vue
index 3a99b48..48dafd5 100644
--- a/pages_tool/member/index.vue
+++ b/pages_tool/member/index.vue
@@ -19,9 +19,15 @@
+ {{ $lang('privacyPolicy')}}
+ {{ $lang('registrationAgreement')}}
+
+
+
+
+ {{ $lang('logout')}}
+ {{ $lang('cancellation')}}
+
{
+ if (res.confirm) {
+ this.$store.commit('setToken', '');
+ this.$store.commit('setMemberInfo', '');
+ this.$store.dispatch('emptyCart');
+ uni.removeStorageSync('authInfo');
+ this.$util.redirectTo('/pages/member/index');
+ }
+ }
+ });
+ },
+
+ // 账号注销
+ cancellation() {
+ uni.showModal({
+ title: '风险提示',
+ content: '确定要注销当前账号吗?',
+ confirmColor: '#000000',
+ success: res => {
+ if (res.confirm) {
+ this.$api.sendRequest({
+ url: '/membercancel/api/membercancel/apply',
+ success: rres => {
+ if (rres.code >= 0) {
+ this.$store.commit('setToken', '');
+ this.$store.commit('setMemberInfo', '');
+ this.$store.dispatch('emptyCart');
+ uni.removeStorageSync('authInfo');
+ this.$util.redirectTo('/pages/member/index');
+ } else {
+ this.$util.showToast({
+ title: rres.message
+ });
+ }
+ }
+ });
+ }
+ }
+ });
}
}
@@ -101,6 +153,35 @@ export default {
color: #F4391c
}
}
+
+.action-buttons {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ margin: 20rpx 30rpx 40rpx;
+ gap: 20rpx;
+}
+
+.action-btn {
+ width: 100%;
+ height: 80rpx;
+ line-height: 80rpx;
+ text-align: center;
+ border-radius: 40rpx;
+ font-size: 32rpx;
+ font-weight: 500;
+}
+
+.logout-btn {
+ background-color: #fff;
+ color: #333;
+ border: 1rpx solid #ddd;
+}
+
+.cancel-btn {
+ background-color: #F4391c;
+ color: #fff;
+}