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
146 lines
2.8 KiB
Vue
146 lines
2.8 KiB
Vue
<template>
|
|
<!-- 属性规格放大图轮播 -->
|
|
<view class="previewImg" v-if="showBox" @touchmove.stop.prevent>
|
|
<view class="mask" @click="close">
|
|
<swiper @change="changeSwiper" class="mask-swiper" :current="currentIndex" :circular="circular" :duration="duration">
|
|
<swiper-item v-for="(src, i) in list" :key="i" class="flex flex-column justify-center align-center">
|
|
<image class="mask-swiper-img" :src="src.image" mode="widthFix" />
|
|
<view class="mask_sku">
|
|
<text class="sku_name">{{src.suk}}</text>
|
|
<text class="sku_price fs-36 fw-600"><text v-if="src.integral">{{src.integral}} 积分 +</text> <text class="money-fix"></text>{{price || src.price}} 元</text>
|
|
</view>
|
|
</swiper-item>
|
|
</swiper>
|
|
</view>
|
|
<view class="pagebox" v-if="list.length>0">{{ Number(currentIndex) + 1 }} / {{ list.length }}</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'cus-previewImg',
|
|
props: {
|
|
list: {
|
|
type: Array,
|
|
required: true,
|
|
default: () => {
|
|
return [];
|
|
}
|
|
},
|
|
price:{
|
|
type: [String, Number],
|
|
default: ''
|
|
},
|
|
circular: {
|
|
type: Boolean,
|
|
default: true
|
|
},
|
|
duration: {
|
|
type: Number,
|
|
default: 500
|
|
}
|
|
},
|
|
data() {
|
|
return {
|
|
currentIndex: 0,
|
|
showBox: false
|
|
};
|
|
},
|
|
methods: {
|
|
// 左右切换
|
|
changeSwiper(e) {
|
|
this.currentIndex = e.target.current;
|
|
this.$emit('changeSwitch',e.target.current)
|
|
},
|
|
open(current) {
|
|
if (!current || !this.list.length) return;
|
|
this.currentIndex = this.list.map((item)=>item.suk).indexOf(current);
|
|
this.showBox = true;
|
|
},
|
|
close() {
|
|
this.showBox = false;
|
|
}
|
|
// shareFriend(){
|
|
// this.$emit('shareFriend')
|
|
// }
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
@mixin full {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.previewImg {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
z-index: 4100;
|
|
@include full;
|
|
.mask {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
background-color: #000;
|
|
opacity: 1;
|
|
z-index: 8;
|
|
@include full;
|
|
&-swiper {
|
|
@include full;
|
|
&-img {
|
|
width: 100%;
|
|
}
|
|
}
|
|
}
|
|
.pagebox{
|
|
position: absolute;
|
|
width: 100%;
|
|
top: 164rpx;
|
|
z-index: 300;
|
|
color: #fff;
|
|
text-align: center;
|
|
}
|
|
}
|
|
.mask_sku{
|
|
color: #fff;
|
|
max-width: 80%;
|
|
z-index: 300;
|
|
text-align: center;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
margin-top: 30rpx;
|
|
.sku_name{
|
|
font-size: 12px;
|
|
border: 1px solid #fff;
|
|
padding: 10rpx 30rpx 10rpx;
|
|
border-radius: 40px;
|
|
box-sizing: border-box;
|
|
}
|
|
.sku_price{
|
|
padding-top: 10px;
|
|
}
|
|
.money-fix{
|
|
font-size: 20rpx;
|
|
font-weight: normal;
|
|
padding-right: 4rpx;
|
|
}
|
|
}
|
|
.font12{
|
|
font-size: 24rpx;
|
|
}
|
|
.share_btn{
|
|
position: absolute;
|
|
top:70rpx;
|
|
right:50rpx;
|
|
font-size: 40rpx;
|
|
color:#fff;
|
|
z-index: 300;
|
|
}
|
|
.flex-column{flex-direction: column;}
|
|
.justify-center {justify-content: center;}
|
|
.align-center {align-items: center;}
|
|
</style>
|