|
@@ -2,25 +2,28 @@
|
|
<div class="usremei-container">
|
|
<div class="usremei-container">
|
|
<!-- 第一个白色背景板块 -->
|
|
<!-- 第一个白色背景板块 -->
|
|
<div class="profile-card">
|
|
<div class="profile-card">
|
|
- <div class="avatar-section">
|
|
|
|
- <img src="@/assets/logo.png" class="avatar" alt="用户头像" />
|
|
|
|
- </div>
|
|
|
|
|
|
+
|
|
<div class="info-row">
|
|
<div class="info-row">
|
|
- <span class="name">{{ userInfo.nickname }}</span>
|
|
|
|
- <img src="@/assets/sign.png" class="sign-icon" alt="签到" @click="goToSignin" />
|
|
|
|
|
|
+ <div class="avatar-section">
|
|
|
|
+ <img src="@/assets/avart.png" class="avatar" alt="用户头像" />
|
|
|
|
+
|
|
|
|
+ <div style="display: flex; flex-direction: column; align-items: flex-start;margin-left: 10px;color: #fff;">
|
|
|
|
+ <span class="name">{{ userInfo.nickname }}</span>
|
|
|
|
+ <span class="value">{{ userInfo.mobile }}</span>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
- <div class="info-row">
|
|
|
|
- <span class="label">手机号码</span>
|
|
|
|
- <span class="value">{{ userInfo.mobile }}</span>
|
|
|
|
|
|
+ <div @click="goToSignin" style="color: #000;font-size: 14px;background-color: #fff;padding: 5px 15px;font-weight: bold;">
|
|
|
|
+ 签到<br/>有奖
|
|
</div>
|
|
</div>
|
|
- <div class="info-row">
|
|
|
|
|
|
+ </div>
|
|
|
|
+ <!-- <div class="info-row">
|
|
<span class="label">邀请码</span>
|
|
<span class="label">邀请码</span>
|
|
<span class="value">{{ userInfo.salt }}</span>
|
|
<span class="value">{{ userInfo.salt }}</span>
|
|
- </div>
|
|
|
|
|
|
+ </div> -->
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- 第二个银行卡板块 -->
|
|
<!-- 第二个银行卡板块 -->
|
|
- <div class="bank-card">
|
|
|
|
|
|
+ <!-- <div class="bank-card">
|
|
<div class="bank-content">
|
|
<div class="bank-content">
|
|
<img src="@/assets/bank.png" class="bank-logo" alt="银行logo" />
|
|
<img src="@/assets/bank.png" class="bank-logo" alt="银行logo" />
|
|
<div class="bank-text">
|
|
<div class="bank-text">
|
|
@@ -32,59 +35,50 @@
|
|
<button class="action-btn button-click-effect" @click="goToFinancial">提升到账额度</button>
|
|
<button class="action-btn button-click-effect" @click="goToFinancial">提升到账额度</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
|
|
+ </div> -->
|
|
|
|
|
|
<!-- 收益板块组 -->
|
|
<!-- 收益板块组 -->
|
|
<div class="profit-section">
|
|
<div class="profit-section">
|
|
- <!-- 第一行 -->
|
|
|
|
<div class="profit-block">
|
|
<div class="profit-block">
|
|
<div class="profit-left">
|
|
<div class="profit-left">
|
|
<div class="profit-header">
|
|
<div class="profit-header">
|
|
- <span>每日分红</span>
|
|
|
|
- <button class="profit-btn button-click-effect" @click="$router.push('/mention?type=3')">提现</button>
|
|
|
|
|
|
+ <span>红旗资产</span>
|
|
|
|
+ <button class="profit-btn button-click-effect" @click="handleRedFlagWithdraw">提现</button>
|
|
</div>
|
|
</div>
|
|
<div class="profit-amount">¥{{ userInfo.dayred }}</div>
|
|
<div class="profit-amount">¥{{ userInfo.dayred }}</div>
|
|
</div>
|
|
</div>
|
|
<div class="profit-right">
|
|
<div class="profit-right">
|
|
<div class="profit-header">
|
|
<div class="profit-header">
|
|
- <span>万泰股权</span>
|
|
|
|
- <button class="profit-btn button-click-effect" @click="handleCashOut">套现</button>
|
|
|
|
|
|
+ <span>退休补贴</span>
|
|
|
|
+ <button class="profit-btn button-click-effect" @click="handleRetirementWithdraw">提现</button>
|
|
</div>
|
|
</div>
|
|
<div class="profit-amount">¥{{ userInfo.guquan }}</div>
|
|
<div class="profit-amount">¥{{ userInfo.guquan }}</div>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
-
|
|
|
|
- <!-- 第二行 -->
|
|
|
|
- <div class="profit-block">
|
|
|
|
<div class="profit-left">
|
|
<div class="profit-left">
|
|
<div class="profit-header">
|
|
<div class="profit-header">
|
|
- <span>财政补贴</span>
|
|
|
|
- <button class="profit-btn button-click-effect" @click="$router.push('/mention?type=1')">提现</button>
|
|
|
|
|
|
+ <span>党员薪资</span>
|
|
|
|
+ <button class="profit-btn button-click-effect" @click="handlePartySalaryWithdraw">提现</button>
|
|
</div>
|
|
</div>
|
|
<div class="profit-amount">¥{{ userInfo.coins }}</div>
|
|
<div class="profit-amount">¥{{ userInfo.coins }}</div>
|
|
</div>
|
|
</div>
|
|
<div class="profit-right">
|
|
<div class="profit-right">
|
|
<div class="profit-header">
|
|
<div class="profit-header">
|
|
- <span>养老金</span>
|
|
|
|
- <button class="profit-btn button-click-effect" @click="handlePensionWithdraw">提现</button>
|
|
|
|
|
|
+ <span>每日现金</span>
|
|
|
|
+ <button class="profit-btn button-click-effect" @click="handleDailyCashWithdraw">提现</button>
|
|
</div>
|
|
</div>
|
|
<div class="profit-amount">¥{{ userInfo.xianjin }}</div>
|
|
<div class="profit-amount">¥{{ userInfo.xianjin }}</div>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
-
|
|
|
|
- <!-- 第三行 -->
|
|
|
|
- <div class="profit-block">
|
|
|
|
<div class="profit-left">
|
|
<div class="profit-left">
|
|
<div class="profit-header">
|
|
<div class="profit-header">
|
|
- <span>万泰红利</span>
|
|
|
|
- <button class="profit-btn button-click-effect" @click="$router.push('/mention?type=2')">提现</button>
|
|
|
|
|
|
+ <span>医疗补贴</span>
|
|
|
|
+ <button class="profit-btn button-click-effect" @click="handleMedicalWithdraw">提现</button>
|
|
</div>
|
|
</div>
|
|
<div class="profit-amount">¥{{ userInfo.money }}</div>
|
|
<div class="profit-amount">¥{{ userInfo.money }}</div>
|
|
</div>
|
|
</div>
|
|
<div class="profit-right">
|
|
<div class="profit-right">
|
|
<div class="profit-header">
|
|
<div class="profit-header">
|
|
- <span>养生币</span>
|
|
|
|
- <button class="profit-btn button-click-effect">抢福</button>
|
|
|
|
|
|
+ <span>原始股权</span>
|
|
|
|
+ <button class="profit-btn button-click-effect" @click="handleOriginalSharesWithdraw">提现</button>
|
|
</div>
|
|
</div>
|
|
<div class="profit-amount">¥{{ userInfo.score }}</div>
|
|
<div class="profit-amount">¥{{ userInfo.score }}</div>
|
|
</div>
|
|
</div>
|
|
@@ -94,44 +88,45 @@
|
|
<!-- 应用中心板块 -->
|
|
<!-- 应用中心板块 -->
|
|
<div class="app-center">
|
|
<div class="app-center">
|
|
<div class="section-title">
|
|
<div class="section-title">
|
|
- <div class="title-line"></div>
|
|
|
|
- <span>应用中心</span>
|
|
|
|
|
|
+ <span>常用工具</span>
|
|
</div>
|
|
</div>
|
|
<div class="function-grid">
|
|
<div class="function-grid">
|
|
<div class="function-item button-click-effect" @click="$router.push('/user-center')">
|
|
<div class="function-item button-click-effect" @click="$router.push('/user-center')">
|
|
- <img src="@/assets/221.png" alt="实名认证" />
|
|
|
|
- <span>实名认证</span>
|
|
|
|
|
|
+ <span>实名<br/>认证</span>
|
|
</div>
|
|
</div>
|
|
<div class="function-item button-click-effect" @click="$router.push('/bank-card')">
|
|
<div class="function-item button-click-effect" @click="$router.push('/bank-card')">
|
|
- <img src="@/assets/222.png" alt="银行卡绑定" />
|
|
|
|
- <span>银行卡绑定</span>
|
|
|
|
|
|
+ <span>银行卡<br/>绑定</span>
|
|
</div>
|
|
</div>
|
|
<div class="function-item button-click-effect" @click="$router.push('/member')">
|
|
<div class="function-item button-click-effect" @click="$router.push('/member')">
|
|
- <img src="@/assets/223.png" alt="我的团队" />
|
|
|
|
- <span>我的团队</span>
|
|
|
|
|
|
+ <span>我的<br/>团队</span>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="function-item button-click-effect" @click="$router.push('/order-list')">
|
|
|
|
+ <span>提现<br/>记录</span>
|
|
</div>
|
|
</div>
|
|
<div class="function-item button-click-effect" @click="$router.push('/asset-center')">
|
|
<div class="function-item button-click-effect" @click="$router.push('/asset-center')">
|
|
- <img src="@/assets/224.png" alt="资金明细" />
|
|
|
|
- <span>资金明细</span>
|
|
|
|
|
|
+ <span>资金<br/>明细</span>
|
|
</div>
|
|
</div>
|
|
- <div class="function-item button-click-effect" @click="$router.push('/order-list')">
|
|
|
|
- <img src="@/assets/225.png" alt="提现记录" />
|
|
|
|
- <span>提现记录</span>
|
|
|
|
|
|
+ <div class="function-item button-click-effect" @click="$router.push('/asset-center')">
|
|
|
|
+ <span>股权<br/>管理</span>
|
|
</div>
|
|
</div>
|
|
- <div class="function-item button-click-effect" @click="$router.push('/lever-list')">
|
|
|
|
- <img src="@/assets/226.png" alt="礼品福利" />
|
|
|
|
- <span>礼品福利</span>
|
|
|
|
|
|
+ <div class="function-item button-click-effect" @click="$router.push('/retirement-subsidy')">
|
|
|
|
+ <span>退休<br/>补贴</span>
|
|
</div>
|
|
</div>
|
|
- <div class="function-item button-click-effect" @click="toAppDownload">
|
|
|
|
- <img src="@/assets/227.png" alt="APP下载" />
|
|
|
|
- <span>APP下载</span>
|
|
|
|
|
|
+ <div class="function-item button-click-effect" @click="$router.push('/asset-center')">
|
|
|
|
+ <span>订单<br/>管理</span>
|
|
|
|
+ </div>
|
|
|
|
+ <!-- <div class="function-item button-click-effect" @click="$router.push('/lever-list')">
|
|
|
|
+ <span>礼品<br/>福利</span>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div class="function-item button-click-effect" @click="toAppDownload">
|
|
|
|
+ <span>APP<br/>下载</span>
|
|
|
|
+ </div> -->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- 退出登录按钮 -->
|
|
<!-- 退出登录按钮 -->
|
|
<div class="logout-wrapper">
|
|
<div class="logout-wrapper">
|
|
- <button class="logout-btn button-click-effect" @click="handleLogout">退出登录</button>
|
|
|
|
|
|
+ <button class="logout-btn button-click-effect" @click="handleLogout">安全退出</button>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- 自定义确认框 -->
|
|
<!-- 自定义确认框 -->
|
|
@@ -221,7 +216,41 @@ export default {
|
|
} finally {
|
|
} finally {
|
|
this.showConfirm = false;
|
|
this.showConfirm = false;
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ // 红旗资产提现
|
|
|
|
+ handleRedFlagWithdraw() {
|
|
|
|
+ alert('等待开启');
|
|
|
|
+ },
|
|
|
|
+ // 退休补贴提现
|
|
|
|
+ handleRetirementWithdraw() {
|
|
|
|
+ alert('中央资金筹备中');
|
|
|
|
+ },
|
|
|
|
+ // 党员薪资提现
|
|
|
|
+ handlePartySalaryWithdraw() {
|
|
|
|
+ const minAmount = 60000; // 6万起提
|
|
|
|
+ if (parseFloat(this.userInfo.coins) < minAmount) {
|
|
|
|
+ alert('余额不足,最低提现金额为6万元');
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ this.$router.push('/mention?type=1');
|
|
|
|
+ },
|
|
|
|
+ // 每日现金提现
|
|
|
|
+ handleDailyCashWithdraw() {
|
|
|
|
+ const minAmount = 20; // 20元起提
|
|
|
|
+ if (parseFloat(this.userInfo.xianjin) < minAmount) {
|
|
|
|
+ alert('余额不足,满20元可提现');
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ this.$router.push('/mention?type=3');
|
|
|
|
+ },
|
|
|
|
+ // 医疗补贴提现
|
|
|
|
+ handleMedicalWithdraw() {
|
|
|
|
+ alert('中央资金筹备中');
|
|
|
|
+ },
|
|
|
|
+ // 原始股权提现
|
|
|
|
+ handleOriginalSharesWithdraw() {
|
|
|
|
+ alert('等待开启');
|
|
|
|
+ },
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
@@ -241,27 +270,23 @@ export default {
|
|
}
|
|
}
|
|
|
|
|
|
.profile-card {
|
|
.profile-card {
|
|
- background: #fff;
|
|
|
|
- border-radius: 12px;
|
|
|
|
- padding: 20px;
|
|
|
|
margin-bottom: 20px;
|
|
margin-bottom: 20px;
|
|
position: relative;
|
|
position: relative;
|
|
- padding-top: 60px;
|
|
|
|
}
|
|
}
|
|
|
|
|
|
.avatar-section {
|
|
.avatar-section {
|
|
- position: absolute;
|
|
|
|
- top: -40px; /* 让头像向上偏移,实现半超出效果 */
|
|
|
|
- left: 20px; /* 左侧距离 */
|
|
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ justify-content: space-between;
|
|
|
|
+ /* position: absolute;
|
|
|
|
+ top: -40px;
|
|
|
|
+ left: 20px; */
|
|
}
|
|
}
|
|
|
|
|
|
.avatar {
|
|
.avatar {
|
|
- width: 80px;
|
|
|
|
- height: 80px;
|
|
|
|
- border-radius: 50%;
|
|
|
|
|
|
+ width: 50px;
|
|
|
|
+ height: 50px;
|
|
object-fit: cover;
|
|
object-fit: cover;
|
|
- border: 2px solid #fff; /* 添加白色边框使头像更突出 */
|
|
|
|
- box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* 添加阴影效果 */
|
|
|
|
}
|
|
}
|
|
|
|
|
|
.info-row {
|
|
.info-row {
|
|
@@ -287,7 +312,8 @@ export default {
|
|
}
|
|
}
|
|
|
|
|
|
.value {
|
|
.value {
|
|
- color: #333;
|
|
|
|
|
|
+ color: #fff;
|
|
|
|
+ margin-top: 5px;
|
|
}
|
|
}
|
|
|
|
|
|
.bank-card {
|
|
.bank-card {
|
|
@@ -362,7 +388,7 @@ export default {
|
|
}
|
|
}
|
|
|
|
|
|
.profit-btn {
|
|
.profit-btn {
|
|
- background-color: #fb3f6c;
|
|
|
|
|
|
+ background-color: #ea0a1c;
|
|
color: #fff;
|
|
color: #fff;
|
|
border: none;
|
|
border: none;
|
|
border-radius: 4px;
|
|
border-radius: 4px;
|
|
@@ -385,6 +411,12 @@ export default {
|
|
gap: 8px;
|
|
gap: 8px;
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
transition: all 0.2s;
|
|
|
|
+ background-color: #fff;
|
|
|
|
+ padding: 5px ;
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: center;
|
|
|
|
+ align-items: center;
|
|
|
|
+ font-weight: bold;
|
|
}
|
|
}
|
|
|
|
|
|
.function-item:active {
|
|
.function-item:active {
|
|
@@ -471,41 +503,29 @@ export default {
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
gap: 15px;
|
|
margin-top: 15px;
|
|
margin-top: 15px;
|
|
- margin-bottom: 15px; /* 底部添加间距 */
|
|
|
|
|
|
+ margin-bottom: 15px;
|
|
}
|
|
}
|
|
|
|
|
|
.profit-block {
|
|
.profit-block {
|
|
- display: flex;
|
|
|
|
- gap: 15px;
|
|
|
|
- background: url('../assets/neibg.png');
|
|
|
|
- background-size: cover;
|
|
|
|
|
|
+ display: grid;
|
|
|
|
+ grid-template-columns: repeat(2, 1fr);
|
|
|
|
+ gap: 10px;
|
|
|
|
+ padding: 10px;
|
|
|
|
+ background: #fff0e1;
|
|
border-radius: 12px;
|
|
border-radius: 12px;
|
|
- padding: 6px;
|
|
|
|
}
|
|
}
|
|
|
|
|
|
.profit-left, .profit-right {
|
|
.profit-left, .profit-right {
|
|
- flex: 1;
|
|
|
|
padding: 10px;
|
|
padding: 10px;
|
|
- position: relative; /* 为分隔线定位做准备 */
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-/* 添加分隔线 */
|
|
|
|
-.profit-block:not(:first-child) .profit-left::after {
|
|
|
|
- content: '';
|
|
|
|
- position: absolute;
|
|
|
|
- right: -7.5px; /* 居中放置,gap的一半 */
|
|
|
|
- top: 50%;
|
|
|
|
- transform: translateY(-50%);
|
|
|
|
- width: 1px;
|
|
|
|
- height: 70%;
|
|
|
|
- background-color: #85370d;
|
|
|
|
|
|
+ background: #fff0e1;
|
|
|
|
+ border-radius: 8px;
|
|
}
|
|
}
|
|
|
|
|
|
.profit-header {
|
|
.profit-header {
|
|
display: flex;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
align-items: center;
|
|
- /* margin-bottom: 10px; */
|
|
|
|
|
|
+ margin-bottom: 8px;
|
|
}
|
|
}
|
|
|
|
|
|
.profit-header span {
|
|
.profit-header span {
|
|
@@ -522,9 +542,8 @@ export default {
|
|
/* 移动端适配 */
|
|
/* 移动端适配 */
|
|
@media screen and (max-width: 375px) {
|
|
@media screen and (max-width: 375px) {
|
|
.profit-block {
|
|
.profit-block {
|
|
- flex-direction: column;
|
|
|
|
- gap: 10px;
|
|
|
|
- padding: 6px;
|
|
|
|
|
|
+ gap: 8px;
|
|
|
|
+ padding: 8px;
|
|
}
|
|
}
|
|
|
|
|
|
.profit-left, .profit-right {
|
|
.profit-left, .profit-right {
|
|
@@ -537,9 +556,7 @@ export default {
|
|
}
|
|
}
|
|
|
|
|
|
.app-center {
|
|
.app-center {
|
|
- background: #fff;
|
|
|
|
border-radius: 12px;
|
|
border-radius: 12px;
|
|
- padding: 20px;
|
|
|
|
margin-top: 15px;
|
|
margin-top: 15px;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -548,6 +565,7 @@ export default {
|
|
align-items: center;
|
|
align-items: center;
|
|
gap: 10px;
|
|
gap: 10px;
|
|
margin-bottom: 20px;
|
|
margin-bottom: 20px;
|
|
|
|
+ color: #fff;
|
|
}
|
|
}
|
|
|
|
|
|
.title-line {
|
|
.title-line {
|
|
@@ -559,7 +577,7 @@ export default {
|
|
.section-title span {
|
|
.section-title span {
|
|
font-size: 16px;
|
|
font-size: 16px;
|
|
font-weight: bold;
|
|
font-weight: bold;
|
|
- color: #333;
|
|
|
|
|
|
+ color: #fff;
|
|
}
|
|
}
|
|
|
|
|
|
.function-grid {
|
|
.function-grid {
|
|
@@ -604,19 +622,23 @@ export default {
|
|
margin-top: 30px;
|
|
margin-top: 30px;
|
|
margin-bottom: 20px;
|
|
margin-bottom: 20px;
|
|
padding: 0 20px;
|
|
padding: 0 20px;
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: center;
|
|
|
|
+ align-items: center;
|
|
}
|
|
}
|
|
|
|
|
|
.logout-btn {
|
|
.logout-btn {
|
|
- width: 100%;
|
|
|
|
- background-color: #fb3f6c;
|
|
|
|
- color: #fff;
|
|
|
|
|
|
+ width: 60%;
|
|
|
|
+ background-color: #fff;
|
|
|
|
+ color: #000;
|
|
border: none;
|
|
border: none;
|
|
- border-radius: 6px;
|
|
|
|
|
|
+ border-radius: 20px;
|
|
padding: 12px 0;
|
|
padding: 12px 0;
|
|
font-size: 16px;
|
|
font-size: 16px;
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
position: relative;
|
|
position: relative;
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
.logout-btn:active {
|
|
.logout-btn:active {
|
|
@@ -713,7 +735,7 @@ export default {
|
|
}
|
|
}
|
|
|
|
|
|
.confirm-btn.confirm {
|
|
.confirm-btn.confirm {
|
|
- color: #fb3f6c;
|
|
|
|
|
|
+ color: #cf0101;
|
|
font-weight: bold;
|
|
font-weight: bold;
|
|
}
|
|
}
|
|
|
|
|