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

@@ -0,0 +1,147 @@
<template>
<view class="hjf-asset-card">
<view class="card-row">
<view class="card-item">
<view class="label">现金余额(¥)</view>
<view class="value">{{ formattedNowMoney }}</view>
</view>
<view class="card-item">
<view class="label">待释放积分</view>
<view class="value">{{ formattedFrozenPoints }}</view>
</view>
<view class="card-item">
<view class="label">已释放积分</view>
<view class="value">{{ formattedAvailablePoints }}</view>
</view>
</view>
<view v-if="todayRelease != null" class="card-footer">
<view class="footer-text">今日预计释放 {{ formattedTodayRelease }} 积分</view>
</view>
</view>
</template>
<script>
/**
* @file HjfAssetCard.vue
* @description 三栏资产展示卡片(现金余额 / 待释放积分 / 已释放积分),渐变背景。用于资产总览等页面。
* @see docs/frontend-new-pages-spec.md 第 3.2.3 节
* @see pages/users/user_money/index.vue 渐变卡片区域
*/
export default {
name: 'HjfAssetCard',
props: {
/**
* 现金余额(元),字符串便于对接接口返回
* @type {string}
* @default '0.00'
*/
nowMoney: {
type: String,
default: '0.00'
},
/**
* 待释放积分
* @type {number}
* @default 0
*/
frozenPoints: {
type: Number,
default: 0
},
/**
* 已释放积分
* @type {number}
* @default 0
*/
availablePoints: {
type: Number,
default: 0
},
/**
* 今日预计释放积分(不传则不显示底部提示)
* @type {number}
* @default null
*/
todayRelease: {
type: Number,
default: null
}
},
computed: {
/** 格式化后的现金余额,保留两位小数 */
formattedNowMoney() {
const num = parseFloat(this.nowMoney);
return isNaN(num) ? '0.00' : num.toFixed(2);
},
/** 格式化后的待释放积分 */
formattedFrozenPoints() {
return Number(this.frozenPoints).toLocaleString();
},
/** 格式化后的已释放积分 */
formattedAvailablePoints() {
return Number(this.availablePoints).toLocaleString();
},
/** 格式化后的今日预计释放 */
formattedTodayRelease() {
if (this.todayRelease == null) return '';
return Number(this.todayRelease).toLocaleString();
}
}
};
</script>
<style scoped lang="scss">
.hjf-asset-card {
width: 710rpx;
margin: 0 auto;
background: linear-gradient(90deg, var(--view-theme, #e93323) 0%, var(--view-gradient, #f76b1c) 100%);
border-radius: 32rpx;
box-sizing: border-box;
color: rgba(255, 255, 255, 0.95);
font-size: 24rpx;
position: relative;
overflow: hidden;
.card-row {
display: flex;
align-items: flex-start;
justify-content: space-between;
padding: 36rpx 32rpx 32rpx;
}
.card-item {
flex: 1;
min-width: 0;
text-align: center;
padding: 0 8rpx;
.label {
display: block;
font-size: 24rpx;
color: rgba(255, 255, 255, 0.95);
margin-bottom: 12rpx;
}
.value {
font-size: 40rpx;
font-weight: 600;
color: #ffffff;
font-family: 'SemiBold', sans-serif;
}
}
.card-footer {
width: 100%;
padding: 20rpx 32rpx 24rpx;
background: rgba(255, 255, 255, 0.1);
text-align: center;
.footer-text {
font-size: 24rpx;
color: rgba(255, 255, 255, 0.95);
}
}
}
</style>

View File

@@ -0,0 +1,385 @@
<template>
<view v-if="showPanel" class="hjf-demo-container">
<!-- 悬浮按钮 -->
<view v-if="!expanded" class="demo-fab" @tap="togglePanel">
<text class="iconfont icon-shezhi fs-44 text-white"></text>
</view>
<!-- 展开的控制面板 -->
<view v-if="expanded" class="demo-panel">
<view class="panel-header">
<text class="panel-title">演示控制面板</text>
<text class="iconfont icon-ic_close fs-40" @tap="togglePanel"></text>
</view>
<view class="panel-body">
<!-- 场景切换 -->
<view class="section">
<view class="section-title">当前场景{{ scenarioName }}</view>
<view class="scenario-btns">
<view
v-for="s in scenarios"
:key="s.id"
:class="['scenario-btn', currentScenario === s.id ? 'active' : '']"
@tap="switchScenario(s.id)"
>
<text class="scenario-label">{{ s.name }}</text>
<text class="scenario-desc">{{ s.desc }}</text>
</view>
</view>
</view>
<!-- 特殊操作 -->
<view class="section">
<view class="section-title">特殊操作</view>
<view class="action-btns">
<view class="action-btn" @tap="triggerRefundNotice">
<text class="iconfont icon-qianbao fs-36"></text>
<text class="action-label">退款弹窗</text>
</view>
<view class="action-btn" @tap="clearGuideFlag">
<text class="iconfont icon-shuaxin fs-36"></text>
<text class="action-label">重置引导</text>
</view>
</view>
</view>
<!-- 快捷跳转 -->
<view class="section">
<view class="section-title">快捷跳转</view>
<scroll-view scroll-y class="nav-scroll">
<view
v-for="nav in quickNavs"
:key="nav.path"
class="nav-item"
@tap="navigateTo(nav.path)"
>
<text class="nav-label">{{ nav.label }}</text>
<text class="iconfont icon-ic_rightarrow fs-28"></text>
</view>
</scroll-view>
</view>
</view>
</view>
<!-- 遮罩层 -->
<view v-if="expanded" class="demo-mask" @tap="togglePanel"></view>
</view>
</template>
<script>
import { setMockScenario, getCurrentScenario } from '@/utils/hjfMockData.js';
export default {
name: 'HjfDemoPanel',
data() {
return {
showPanel: false,
expanded: false,
currentScenario: 'B',
scenarios: [
{
id: 'A',
name: '场景 A',
desc: '新用户首次体验'
},
{
id: 'B',
name: '场景 B',
desc: '活跃用户等待退款'
},
{
id: 'C',
name: '场景 C',
desc: 'VIP用户刚退款'
}
],
quickNavs: [
{ label: 'P23 新用户引导', path: '/pages/guide/hjf_intro' },
{ label: 'P01 首页', path: '/pages/index/index' },
{ label: 'P04 个人中心', path: '/pages/user/index' },
{ label: 'P12 公排状态', path: '/pages/queue/status' },
{ label: 'P13 公排历史', path: '/pages/queue/history' },
{ label: 'P14 公排规则', path: '/pages/queue/rules' },
{ label: 'P15 我的资产', path: '/pages/assets/index' },
{ label: 'P18 积分明细', path: '/pages/assets/points_detail' },
{ label: 'P16 提现页', path: '/pages/users/user_cash/index' },
{ label: 'P19 推荐收益', path: '/pages/users/user_spread_money/index' }
]
};
},
computed: {
scenarioName() {
const scenario = this.scenarios.find(s => s.id === this.currentScenario);
return scenario ? `${scenario.name} - ${scenario.desc}` : '';
}
},
mounted() {
// 仅在开发环境显示
// #ifdef H5
this.showPanel = process.env.NODE_ENV !== 'production';
// #endif
// #ifndef H5
this.showPanel = true; // 小程序默认显示,用于演示
// #endif
// 获取当前场景
this.currentScenario = getCurrentScenario();
console.log('[HjfDemoPanel] 演示控制面板已加载,当前场景:', this.currentScenario);
},
methods: {
togglePanel() {
this.expanded = !this.expanded;
},
switchScenario(scenarioId) {
if (scenarioId === this.currentScenario) return;
const success = setMockScenario(scenarioId);
if (success) {
this.currentScenario = scenarioId;
uni.showToast({
title: `已切换到场景 ${scenarioId}`,
icon: 'success'
});
// 延迟500ms后刷新当前页面
setTimeout(() => {
const pages = getCurrentPages();
if (pages.length > 0) {
const currentPage = pages[pages.length - 1];
// 触发页面的 onShow 方法刷新数据
if (currentPage.$vm && typeof currentPage.$vm.$options.onShow === 'function') {
currentPage.$vm.$options.onShow.call(currentPage.$vm);
}
}
}, 500);
}
},
triggerRefundNotice() {
uni.showToast({
title: '跳转到公排状态页查看退款弹窗',
icon: 'none',
duration: 2000
});
setTimeout(() => {
uni.navigateTo({
url: '/pages/queue/status?show_refund=1'
});
this.expanded = false;
}, 1500);
},
clearGuideFlag() {
uni.removeStorageSync('hjf_guide_read');
uni.showToast({
title: '引导标记已清除',
icon: 'success'
});
setTimeout(() => {
uni.reLaunch({
url: '/pages/guide/hjf_intro'
});
}, 1000);
},
navigateTo(path) {
this.expanded = false;
// 处理 TabBar 页面
const tabBarPages = ['/pages/index/index', '/pages/user/index'];
if (tabBarPages.includes(path)) {
uni.switchTab({ url: path });
} else {
uni.navigateTo({ url: path });
}
}
}
};
</script>
<style scoped lang="scss">
.hjf-demo-container {
position: fixed;
z-index: 9999;
}
.demo-fab {
position: fixed;
right: 30rpx;
bottom: 200rpx;
width: 100rpx;
height: 100rpx;
border-radius: 50%;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
box-shadow: 0 8rpx 20rpx rgba(102, 126, 234, 0.4);
display: flex;
align-items: center;
justify-content: center;
z-index: 10000;
transition: all 0.3s ease;
}
.demo-fab:active {
transform: scale(0.95);
}
.demo-mask {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
z-index: 9998;
}
.demo-panel {
position: fixed;
right: 30rpx;
bottom: 200rpx;
width: 600rpx;
max-height: 1000rpx;
background: #fff;
border-radius: 24rpx;
box-shadow: 0 20rpx 60rpx rgba(0, 0, 0, 0.3);
z-index: 9999;
overflow: hidden;
animation: slideIn 0.3s ease;
}
@keyframes slideIn {
from {
opacity: 0;
transform: translateY(20rpx);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.panel-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 30rpx 32rpx;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: #fff;
}
.panel-title {
font-size: 32rpx;
font-weight: 600;
}
.panel-body {
max-height: 880rpx;
overflow-y: auto;
padding: 0 0 20rpx 0;
}
.section {
padding: 24rpx 32rpx;
border-bottom: 1px solid #f0f0f0;
}
.section-title {
font-size: 28rpx;
font-weight: 600;
color: #333;
margin-bottom: 20rpx;
}
.scenario-btns {
display: flex;
flex-direction: column;
gap: 16rpx;
}
.scenario-btn {
padding: 24rpx 20rpx;
background: #f5f5f5;
border-radius: 16rpx;
border: 2px solid transparent;
transition: all 0.3s ease;
}
.scenario-btn.active {
background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
border-color: #667eea;
}
.scenario-label {
display: block;
font-size: 28rpx;
font-weight: 600;
color: #333;
margin-bottom: 8rpx;
}
.scenario-desc {
display: block;
font-size: 24rpx;
color: #999;
}
.action-btns {
display: flex;
gap: 16rpx;
}
.action-btn {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 24rpx;
background: #f5f5f5;
border-radius: 16rpx;
transition: all 0.3s ease;
}
.action-btn:active {
background: #e8e8e8;
transform: scale(0.98);
}
.action-label {
font-size: 24rpx;
color: #666;
margin-top: 8rpx;
}
.nav-scroll {
max-height: 400rpx;
}
.nav-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 24rpx 20rpx;
background: #f5f5f5;
border-radius: 12rpx;
margin-bottom: 12rpx;
transition: all 0.3s ease;
}
.nav-item:active {
background: #e8e8e8;
}
.nav-label {
font-size: 26rpx;
color: #333;
}
.text-white {
color: #fff;
}
</style>

View File

@@ -0,0 +1,185 @@
<template>
<view class="hjf-member-badge" :class="sizeClass">
<view class="badge-icon" :style="iconStyle">
<text class="icon-text">{{ levelText }}</text>
</view>
<text class="badge-name">{{ displayName }}</text>
</view>
</template>
<script>
/**
* 会员等级颜色映射0-4 对应文档 3.2.4
* @constant
* @type {Object<number, string>}
*/
const LEVEL_COLORS = {
0: '#999999', // 普通
1: '#CD7F32', // 创客
2: '#C0C0C0', // 云店
3: '#FFD700', // 服务商
4: '#8B5CF6' // 分公司
};
/**
* 等级默认名称level 无 levelName 时回退)
* @constant
* @type {string[]}
*/
const LEVEL_NAMES = ['普通', '创客', '云店', '服务商', '分公司'];
/**
* HjfMemberBadge — 会员等级徽章组件
*
* 展示会员等级图标(圆形数字徽)+ 等级名称,支持三种尺寸与五档等级颜色。
* 参考docs/frontend-new-pages-spec.md 第 3.2.4 节。
*
* @component HjfMemberBadge
* @example
* <HjfMemberBadge :level="2" levelName="云店" size="normal" />
*/
export default {
name: 'HjfMemberBadge',
props: {
/**
* 会员等级数字 (0-4)
* 0: 普通, 1: 创客, 2: 云店, 3: 服务商, 4: 分公司
* @type {number}
* @default 0
*/
level: {
type: Number,
default: 0,
validator(val) {
return val >= 0 && val <= 4;
}
},
/**
* 等级名称展示文案(可选,不传则按 level 回退为默认名称)
* @type {string}
* @default ''
*/
levelName: {
type: String,
default: ''
},
/**
* 尺寸:'small' | 'normal' | 'large'
* @type {'small'|'normal'|'large'}
* @default 'normal'
*/
size: {
type: String,
default: 'normal',
validator(val) {
return ['small', 'normal', 'large'].indexOf(val) !== -1;
}
}
},
computed: {
/** 尺寸类名,用于 .size-small / .size-normal / .size-large */
sizeClass() {
return `size-${this.size}`;
},
/** 当前等级对应的主题色 */
levelColor() {
const key = Math.min(4, Math.max(0, this.level));
return LEVEL_COLORS[key] || LEVEL_COLORS[0];
},
/** 徽章图标内联样式(背景色、边框色) */
iconStyle() {
return {
backgroundColor: this.levelColor,
borderColor: this.levelColor
};
},
/** 最终展示的等级名称(优先 levelName否则 LEVEL_NAMES[level] */
displayName() {
if (this.levelName && this.levelName.trim()) {
return this.levelName.trim();
}
const key = Math.min(4, Math.max(0, this.level));
return LEVEL_NAMES[key] || LEVEL_NAMES[0];
},
/** 徽章内显示的等级数字文案 */
levelText() {
const key = Math.min(4, Math.max(0, this.level));
return String(key);
}
}
};
</script>
<style scoped lang="scss">
.hjf-member-badge {
display: inline-flex;
align-items: center;
flex-wrap: nowrap;
.badge-icon {
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 50%;
border: 2rpx solid;
flex-shrink: 0;
.icon-text {
color: #fff;
font-weight: bold;
text-shadow: 0 1rpx 2rpx rgba(0, 0, 0, 0.2);
}
}
.badge-name {
margin-left: 8rpx;
font-weight: 500;
white-space: nowrap;
}
&.size-small {
.badge-icon {
width: 32rpx;
height: 32rpx;
.icon-text {
font-size: 20rpx;
}
}
.badge-name {
font-size: 22rpx;
}
}
&.size-normal {
.badge-icon {
width: 40rpx;
height: 40rpx;
.icon-text {
font-size: 24rpx;
}
}
.badge-name {
font-size: 26rpx;
}
}
&.size-large {
.badge-icon {
width: 52rpx;
height: 52rpx;
.icon-text {
font-size: 30rpx;
}
}
.badge-name {
font-size: 30rpx;
}
}
}
</style>

View File

@@ -0,0 +1,177 @@
<template>
<view class="hjf-queue-progress">
<!-- 环形进度 -->
<view class="progress-ring-wrap">
<view class="progress-ring" :style="ringStyle">
<view class="progress-ring-inner">
<text class="progress-text">{{ currentCount }}/{{ triggerMultiple }}</text>
</view>
</view>
</view>
<!-- 条形进度 -->
<view class="progress-bar-wrap">
<view class="progress-bar-track">
<view class="progress-bar-fill" :style="barStyle" />
</view>
<view class="progress-label">
<text>当前批次进度</text>
<text class="progress-value">{{ currentCount }}/{{ triggerMultiple }}</text>
</view>
<view v-if="nextRefundNo != null" class="next-refund">
下一退款序号: {{ nextRefundNo }}
</view>
</view>
</view>
</template>
<script>
/**
* @file HjfQueueProgress.vue
* @description 公排批次进度组件:环形/条形进度条展示当前批次进度(如 2/4并显示下一个退款序号。
* @see docs/frontend-new-pages-spec.md 第 2.2.2 节
*/
export default {
name: 'HjfQueueProgress',
props: {
/**
* 当前批次已入队数
* @type {number}
*/
currentCount: {
type: Number,
default: 0
},
/**
* 触发倍数(每多少人触发一批退款,默认 4
* @type {number}
*/
triggerMultiple: {
type: Number,
default: 4
},
/**
* 下一个退款的 queue_no可选有值时显示「下一退款序号」
* @type {number|null}
*/
nextRefundNo: {
type: Number,
default: null
}
},
computed: {
/**
* 进度百分比0100用于条形/环形展示
* @returns {number}
*/
progressPercent() {
const total = this.triggerMultiple;
if (!total || total <= 0) return 0;
const p = Math.min(100, (this.currentCount / total) * 100);
return Math.round(p * 10) / 10;
},
/**
* 环形进度样式conic-gradient 用 progressPercent
* @returns {Object}
*/
ringStyle() {
return {
'--progress-percent': this.progressPercent,
'--progress-color': 'var(--view-theme)'
};
},
/**
* 条形进度填充宽度与主题色
* @returns {Object}
*/
barStyle() {
return {
width: this.progressPercent + '%',
backgroundColor: 'var(--view-theme)'
};
}
}
};
</script>
<style scoped lang="scss">
.hjf-queue-progress {
padding: 24rpx;
}
.progress-ring-wrap {
display: flex;
justify-content: center;
margin-bottom: 32rpx;
}
.progress-ring {
--progress-percent: 0;
--progress-color: var(--view-theme);
width: 160rpx;
height: 160rpx;
border-radius: 50%;
background: conic-gradient(
var(--progress-color) 0deg,
var(--progress-color) calc(var(--progress-percent) * 3.6deg),
#eee calc(var(--progress-percent) * 3.6deg),
#eee 360deg
);
display: flex;
align-items: center;
justify-content: center;
}
.progress-ring-inner {
width: 120rpx;
height: 120rpx;
border-radius: 50%;
background: #fff;
display: flex;
align-items: center;
justify-content: center;
}
.progress-text {
font-size: 28rpx;
font-weight: 600;
color: #333;
}
.progress-bar-wrap {
padding: 0 8rpx;
}
.progress-bar-track {
height: 16rpx;
border-radius: 8rpx;
background: #eee;
overflow: hidden;
}
.progress-bar-fill {
height: 100%;
border-radius: 8rpx;
transition: width 0.25s ease;
}
.progress-label {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 16rpx;
font-size: 24rpx;
color: #666;
}
.progress-value {
font-weight: 600;
color: var(--view-theme);
}
.next-refund {
margin-top: 12rpx;
font-size: 22rpx;
color: #999;
}
</style>

View File

@@ -0,0 +1,221 @@
<template>
<view v-if="visible" class="hjf-refund-notice" @tap.self="handleMaskTap">
<view class="hjf-refund-notice__mask" />
<view class="hjf-refund-notice__box">
<view class="hjf-refund-notice__icon-wrap">
<text class="hjf-refund-notice__icon"></text>
</view>
<view class="hjf-refund-notice__title">恭喜您的公排订单已退款</view>
<view class="hjf-refund-notice__desc">已入账到现金余额</view>
<view class="hjf-refund-notice__amount">
<text class="hjf-refund-notice__amount-label">退款金额</text>
<text class="hjf-refund-notice__amount-value">{{ formattedAmount }}</text>
</view>
<view v-if="orderId" class="hjf-refund-notice__order">
<text class="hjf-refund-notice__order-label">订单号</text>
<text class="hjf-refund-notice__order-value">{{ orderId }}</text>
</view>
<view class="hjf-refund-notice__btn" @tap="handleConfirm">确认</view>
</view>
</view>
</template>
<script>
/**
* @file HjfRefundNotice.vue
* @description 公排退款成功后的弹窗通知,展示退款金额、已入账到现金余额、订单号,确认按钮关闭弹窗。
* @see docs/frontend-new-pages-spec.md 第 2.2.3 节
*/
export default {
name: 'HjfRefundNotice',
props: {
/**
* 是否显示弹窗
* @type {boolean}
* @default false
*/
visible: {
type: Boolean,
default: false
},
/**
* 退款金额(元)
* @type {number}
* @default 0
*/
amount: {
type: Number,
default: 0
},
/**
* 订单号
* @type {string}
* @default ''
*/
orderId: {
type: String,
default: ''
}
},
computed: {
/**
* 格式化后的退款金额格式¥3,600.00(千分位 + 两位小数)
* @returns {string}
*/
formattedAmount() {
const num = Number(this.amount);
if (isNaN(num)) return '¥0.00';
const fixed = num.toFixed(2);
const [intPart, decPart] = fixed.split('.');
const formatted = intPart.replace(/\B(?=(\d{3})+(?!\d))/g, ',');
return `¥${formatted}.${decPart}`;
}
},
methods: {
/**
* 点击确认按钮,关闭弹窗并触发 close 事件
*/
handleConfirm() {
this.$emit('close');
},
/**
* 点击遮罩层,关闭弹窗并触发 close 事件
*/
handleMaskTap() {
this.$emit('close');
}
}
};
</script>
<style scoped lang="scss">
.hjf-refund-notice {
position: fixed;
left: 0;
top: 0;
right: 0;
bottom: 0;
z-index: 999;
display: flex;
align-items: center;
justify-content: center;
padding: 40rpx;
box-sizing: border-box;
}
.hjf-refund-notice__mask {
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
}
.hjf-refund-notice__box {
position: relative;
width: 100%;
max-width: 560rpx;
background: #fff;
border-radius: 24rpx;
padding: 48rpx 40rpx 40rpx;
box-sizing: border-box;
}
.hjf-refund-notice__icon-wrap {
width: 88rpx;
height: 88rpx;
margin: 0 auto 24rpx;
background: var(--view-gradient, linear-gradient(135deg, #52c41a 0%, #73d13d 100%));
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
}
.hjf-refund-notice__icon {
font-size: 48rpx;
color: #fff;
font-weight: bold;
line-height: 1;
}
.hjf-refund-notice__title {
font-size: 36rpx;
font-weight: 600;
color: #333;
text-align: center;
margin-bottom: 12rpx;
}
.hjf-refund-notice__desc {
font-size: 28rpx;
color: #666;
text-align: center;
margin-bottom: 32rpx;
}
.hjf-refund-notice__amount {
background: #f5f5f5;
border-radius: 12rpx;
padding: 24rpx;
margin-bottom: 20rpx;
display: flex;
align-items: center;
justify-content: space-between;
}
.hjf-refund-notice__amount-label {
font-size: 28rpx;
color: #666;
}
.hjf-refund-notice__amount-value {
font-size: 36rpx;
font-weight: 600;
color: #ff4d4f;
}
.hjf-refund-notice__order {
background: #fafafa;
border-radius: 12rpx;
padding: 20rpx 24rpx;
margin-bottom: 40rpx;
display: flex;
align-items: center;
justify-content: space-between;
}
.hjf-refund-notice__order-label {
font-size: 26rpx;
color: #999;
}
.hjf-refund-notice__order-value {
font-size: 26rpx;
color: #666;
max-width: 360rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.hjf-refund-notice__btn {
height: 88rpx;
line-height: 88rpx;
text-align: center;
font-size: 32rpx;
font-weight: 500;
color: #fff;
background: var(--view-gradient, linear-gradient(135deg, #1890ff 0%, #40a9ff 100%));
border-radius: 44rpx;
}
.hjf-refund-notice__btn:active {
opacity: 0.9;
}
</style>

View File

@@ -1,12 +1,13 @@
<template>
<view class="wf-item-page wf-page0">
<view class='pictrue'>
<view class='pictrue' style="position: relative;">
<easy-loadimage
mode="widthFix"
:image-src="item.image"
:borderSrc="item.activity_frame.image"
width="100%"
borderRadius="16rpx 16rpx 0 0"></easy-loadimage>
<view class="queue-badge" v-if="item.is_queue_goods == 1">参与公排</view>
</view>
<view class="info_box">
<view class="w-full line2 fs-28 text--w111-333 lh-40rpx">
@@ -126,4 +127,17 @@
.text-mer{
color: $primary-merchant;
}
.queue-badge {
position: absolute;
top: 12rpx;
right: 12rpx;
padding: 4rpx 14rpx;
border-radius: 20rpx;
font-size: 20rpx;
font-weight: 600;
color: #fff;
background: linear-gradient(135deg, #52c41a, #389e0d);
z-index: 10;
letter-spacing: 2rpx;
}
</style>

View File

@@ -108,9 +108,9 @@
}
},
tabBarData(newVal){
if(newVal){
if (newVal && newVal.effectConfig && newVal.menuList && newVal.menuList.length) {
let configData = newVal;
if(this.isTabBar){
if (this.isTabBar) {
this.newData = configData;
}
this.showTabBar = configData.effectConfig.tabVal;
@@ -120,6 +120,10 @@
uni.showTabBar()
}
this.$emit('newDataStatus', configData.effectConfig.tabVal)
} else {
// 数据无效或为空时显示原生 tabBar
this.showTabBar = false;
uni.showTabBar();
}
}
// 'newData.menuList'(newValue, oldValue) {
@@ -155,7 +159,7 @@
methods: {
navigationInfo() {
//判断渲染来源是一级菜单还是微页面
if(this.isTabBar && this.tabBarData.effectConfig){
if (this.isTabBar && this.tabBarData && this.tabBarData.effectConfig && this.tabBarData.menuList && this.tabBarData.menuList.length) {
let configData = this.tabBarData;
this.newData = configData;
this.showTabBar = configData.effectConfig.tabVal;
@@ -165,8 +169,11 @@
uni.showTabBar()
}
this.$emit('newDataStatus', configData.effectConfig.tabVal)
} else {
// 无自定义底部菜单数据或接口未返回时,显示原生 tabBar
this.showTabBar = false;
uni.showTabBar();
}
},
goRouter(item) {
var pages = getCurrentPages();