feat: 黄精粉前端功能集成 + 个人中心/资产/公排页面优化 + 去除admin copyright

主要改动:
- 个人中心: 去除HjfMemberBadge徽章, 会员等级改显示vip_name,
  "我的资产"/"公排查询"导航项改为与member-points一致风格
- 我的资产页面: 去除HjfMemberBadge, 美化卡片圆角和阴影
- 公排查询页面: 美化顶部渐变和订单卡片样式
- Admin登录页和后台布局: 彻底删除footer copyright信息
- 新增黄精粉业务页面/组件/API/Mock数据(Phase 1)
- 新增PHP环境配置文档和启动脚本

Made-with: Cursor
This commit is contained in:
apple
2026-03-13 00:49:22 +08:00
parent 21f9cc2c0a
commit f6227c0253
70 changed files with 23359 additions and 1176 deletions

View File

@@ -32,24 +32,28 @@
class='recharge'>储值</view>
<!-- #endif -->
</view>
<view class='cumulative acea-row row-middle'>
<!-- #ifdef APP-PLUS || H5 -->
<view class='item'>
<view>累计储值()</view>
<view class='money'>{{userInfo.recharge || 0}}</view>
</view>
<!-- #endif -->
<!-- #ifdef MP -->
<view class='item' v-if="recharge_switch">
<view>累计储值()</view>
<view class='money'>{{userInfo.recharge || 0}}</view>
</view>
<!-- #endif -->
<view class='item'>
<view>累计消费()</view>
<view class='money'>{{userInfo.orderStatusSum || 0}}</view>
</view>
<view class='cumulative acea-row row-middle'>
<!-- #ifdef APP-PLUS || H5 -->
<view class='item'>
<view>累计储值()</view>
<view class='money'>{{userInfo.recharge || 0}}</view>
</view>
<!-- #endif -->
<!-- #ifdef MP -->
<view class='item' v-if="recharge_switch">
<view>累计储值()</view>
<view class='money'>{{userInfo.recharge || 0}}</view>
</view>
<!-- #endif -->
<view class='item'>
<view>累计消费()</view>
<view class='money'>{{userInfo.orderStatusSum || 0}}</view>
</view>
<view class='item'>
<view>公排退款()</view>
<view class='money'>{{queueRefundedTotal}}</view>
</view>
</view>
<view class="pictrue">
<image :src="imgHost+'/statics/images/users/pig.png'"></image>
</view>
@@ -129,6 +133,7 @@
import {
mapGetters
} from "vuex";
import { getQueueStatus } from '@/api/hjfQueue.js';
import recommend from '@/components/recommend/index';
import colors from "@/mixins/color";
import {
@@ -148,6 +153,12 @@
userInfo: {
now_money: 0,
},
/**
* 公排累计退款金额(元)
* 由 getQueueStatus() 返回的 myOrders 中 status===1 的订单金额累加而来
* @type {number}
*/
queueRefundedTotal: 0,
hostProduct: [],
isClose: false,
recharge_switch: 0,
@@ -167,6 +178,7 @@
if (newV) {
this.getUserInfo();
this.get_activity();
this.getQueueRefundedTotal();
}
},
deep: true
@@ -179,6 +191,7 @@
if (this.isLogin) {
this.getUserInfo();
this.get_activity();
this.getQueueRefundedTotal();
} else {
toLogin()
}
@@ -222,6 +235,23 @@
that.$set(that, "activity", res.data);
})
},
/**
* 获取公排累计退款金额
* 调用 getQueueStatus(),将 myOrders 中 status===1已退款的订单金额累加
* 结果保存到 queueRefundedTotal保留两位小数单位
* @see docs/frontend-new-pages-spec.md 6.1.4
* @returns {void}
*/
getQueueRefundedTotal: function() {
let that = this;
getQueueStatus().then(res => {
const orders = (res.data && res.data.myOrders) || [];
const total = orders
.filter(order => order.status === 1)
.reduce((sum, order) => sum + Number(order.amount || 0), 0);
that.queueRefundedTotal = total.toFixed(2);
});
},
/**
* 获取我的推荐
*/