Files
huangjingfen/pro_v3.5.1_副本/view/uniapp/pages/index/components/news.vue
apple 434aa8c69d feat(fsgx): 完成全部24项开发任务 Phase1-7
Phase1 后端核心:
- 新增 fsgx_v1.sql 迁移脚本(is_queue_goods/frozen_points/available_points/no_assess)
- SystemConfigServices 返佣设置扩展(周期人数/分档比例/范围/时机)
- StoreOrderCreateServices 周期循环佣金计算
- StoreOrderTakeServices 佣金发放后同步冻结积分
- StoreProductServices/StoreProduct 保存 is_queue_goods

Phase2 后端接口:
- GET /api/hjf/brokerage/progress 佣金周期进度
- GET /api/hjf/assets/overview 资产总览
- HjfPointsServices 每日 frozen_points 0.4‰ 释放定时任务
- PUT /adminapi/hjf/member/{uid}/no_assess 不考核接口
- GET /adminapi/hjf/points/release_log 积分日志接口

Phase3 前端清理:
- hjfCustom.js 路由精简(仅保留 points/log)
- hjfQueue.js/hjfMember.js API 清理/重定向至 CRMEB 原生接口
- pages.json 公排→推荐佣金/佣金记录/佣金规则

Phase4-5 前端改造:
- queue/status.vue 推荐佣金进度页整体重写
- 商品详情/订单确认/支付结果页文案与逻辑改造
- 个人中心/资产页/引导页/规则页文案改造
- HjfQueueProgress/HjfRefundNotice/HjfAssetCard 组件改造
- 推广中心嵌入佣金进度摘要
- hjfMockData.js 全量更新(公排字段→佣金字段)

Phase6 Admin 增强:
- 用户列表新增 frozen_points/available_points 列及不考核操作按钮
- hjfPoints.js USE_MOCK=false 对接真实积分日志接口

Phase7 配置文档:
- docs/fsgx-phase7-config-checklist.md 后台配置与全链路验收清单

Made-with: Cursor
2026-03-23 22:32:19 +08:00

236 lines
5.7 KiB
Vue

<template>
<!-- 新闻播报 -->
<view :style="[newsStyle]" v-if="!dataConfig.isHide">
<view class="news" v-if="dataConfig.styleConfig.tabVal" :style="[newsWrapperStyle]">
<view class="acea-row row-between-wrapper news-top">
<view v-if="dataConfig.titleConfig.tabVal" :style="[titleStyle]">{{ dataConfig.titleTxtConfig.value }}</view>
<image v-else :src="dataConfig.imgConfig.url" mode="aspectFit" class="image"></image>
<view v-if="!dataConfig.buttonConfig.tabVal" class="more"
@click="moreTab(linkConfig)" :style="[moreStyle]">更多<text
class="iconfont icon-ic_rightarrow"></text></view>
</view>
<view class="news-bottom">
<view v-for="(item, index) in newsList" :key="index"
class="acea-row row-middle item" :style="[itemStyle]"
@tap="moreTab(item.chiild[1].val)">
<view class="number">{{ index + 1 }}</view>
<view class="text">{{ item.chiild[0].val }}</view>
</view>
</view>
</view>
<view class="news-scroll acea-row row-middle" :style="[newsWrapperStyle]" v-else>
<view class="news-left">
<view class="text" v-if="dataConfig.titleConfig.tabVal" :style="[leftStyle]">{{ dataConfig.titleTxtConfig.value }}</view>
<image class="image" :src="dataConfig.imgConfig.url" mode="aspectFit" v-else></image>
</view>
<view class="news-center" :style="[itemStyle]">
<view v-if="dataConfig.rollConfig.tabVal" @tap="moreTab(newsList[0].chiild[1].val)">
<uniNoticeBar class="w-full" scrollable single showGetMore background-color="transparent" :color="dataConfig.newsColor.color[0].item" :speed="50"
:text="newsList[0].chiild[0].val"></uniNoticeBar>
</view>
<swiper v-else class="swiper" :indicator-dots="indicatorDots" :autoplay="autoplay" interval="2500" :duration="duration" vertical="true" circular="true">
<swiper-item v-for="(item,index) in newsList" :key="index">
<view @tap="moreTab(item.chiild[1].val)">{{ item.chiild[0].val }}</view>
</swiper-item>
</swiper>
</view>
<view v-if="!dataConfig.buttonConfig.tabVal" class="iconfont icon-ic_rightarrow" :style="[moreStyle]"></view>
</view>
</view>
</template>
<script>
import uniNoticeBar from '@/components/uniNoticeBar/uni-notice-bar.vue';
export default {
components: {
uniNoticeBar
},
name: 'news',
props: {
dataConfig: {
type: Object,
default: () => {}
},
},
data() {
return {
indicatorDots: false,
autoplay: true,
duration: 500,
};
},
computed: {
newsStyle() {
return {
padding: `${this.dataConfig.topConfig.val * 2}rpx ${this.dataConfig.prConfig.val * 2}rpx ${this.dataConfig.bottomConfig.val * 2}rpx`,
marginTop: `${this.dataConfig.mbConfig.val * 2}rpx`,
background: this.dataConfig.bottomBgColor.color[0].item,
};
},
newsWrapperStyle() {
let borderRadius = `${this.dataConfig.fillet.val * 2}rpx`;
if (this.dataConfig.fillet.type) {
borderRadius =
`${this.dataConfig.fillet.valList[0].val * 2}rpx ${this.dataConfig.fillet.valList[1].val * 2}rpx ${this.dataConfig.fillet.valList[3].val * 2}rpx ${this.dataConfig.fillet.valList[2].val * 2}rpx`;
}
return {
borderRadius,
background: `linear-gradient(90deg, ${this.dataConfig.moduleColor.color[0].item} 0%, ${this.dataConfig.moduleColor.color[1].item} 100%)`,
};
},
moreStyle() {
return {
color: this.dataConfig.bntColor.color[0].item,
};
},
titleStyle() {
return {
color: this.dataConfig.titleColor.color[0].item,
};
},
leftStyle(){
return {
background: this.dataConfig.toneConfig.tabVal ? `linear-gradient(90deg, ${this.dataConfig.titleBgColor.color[0].item} 0%, ${this.dataConfig.titleBgColor.color[1].item} 100%)` : 'var(--view-theme)',
color: this.dataConfig.toneConfig.tabVal ? this.dataConfig.titleColor.color[0].item : '#ffffff'
}
},
itemStyle() {
return {
color: this.dataConfig.newsColor.color[0].item,
};
},
linkConfig(){
return this.dataConfig.linkConfig.value ? this.dataConfig.linkConfig.value : '/pages/extension/news_list/index'
},
newsList(){
return this.dataConfig.listConfig.list.filter(item=> item.show);
},
},
methods: {
moreTab(url) {
this.$util.JumpPath(url);
}
}
}
</script>
<style lang="scss">
.news-scroll {
height: 88rpx;
padding: 0 20rpx;
background: #FFFFFF;
}
.news-left {
margin-right: 16rpx;
.text {
height: 40rpx;
padding: 0 12rpx;
border-radius: 8rpx;
// background: #FCEAE9;
font-weight: 500;
font-size: 26rpx;
line-height: 40rpx;
// color: #E93323;
}
.image {
display: block;
width: 48rpx;
height: 48rpx;
}
}
.news-scroll .news-center {
flex: 1;
min-width: 0;
height: 36rpx;
font-size: 26rpx;
line-height: 36rpx;
color: #333333;
}
.news-scroll .swiper {
height: 36rpx;
}
.news-scroll .iconfont {
margin-left: 16rpx;
font-size: 24rpx;
}
.news {
padding: 32rpx 24rpx;
background: #FFFFFF;
}
.news-top {
font-weight: 500;
font-size: 32rpx;
line-height: 36rpx;
color: #333333;
.image {
display: block;
width: 140rpx;
height: 36rpx;
}
.more {
font-weight: 400;
font-size: 24rpx;
color: #999999;
}
.iconfont {
font-size: 24rpx;
}
}
.news-bottom {
margin-top: 32rpx;
.item {
font-size: 28rpx;
line-height: 40rpx;
color: #282828;
+.item {
margin-top: 24rpx;
}
&:nth-child(1) {
.number {
color: #E93323;
}
}
&:nth-child(2) {
.number {
color: #FF7300;
}
}
&:nth-child(3) {
.number {
color: #FFC300;
}
}
}
.number {
width: 30rpx;
font-family: SemiBold;
font-size: 30rpx;
color: #999999;
}
.text {
flex: 1;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
</style>