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
This commit is contained in:
179
pro_v3.5.1_副本/view/uniapp/components/couponWindow/index.vue
Normal file
179
pro_v3.5.1_副本/view/uniapp/components/couponWindow/index.vue
Normal file
@@ -0,0 +1,179 @@
|
||||
<template>
|
||||
<view>
|
||||
<!-- 优惠券弹窗 -->
|
||||
<view class="coupon-window relative" :class="{ on: window}">
|
||||
<view class="box-1 cover relative" :style="[box1]">
|
||||
<view class="box-2 bg--w111-fff relative px-32">
|
||||
<view class="box-ht cover abs-lt" :style="[boxHt]"></view>
|
||||
<view class="flex-center mt-26 fs-36 lh-60rpx fw-500 relative z-20">
|
||||
恭喜获得<text class="red">{{couponList.length}}张</text>优惠券
|
||||
</view>
|
||||
<view class="box-item mt-16 flex-between-center relative z-20"
|
||||
v-for="(item,index) in couponList" :key="index"
|
||||
:style="[boxItem]">
|
||||
<baseMoney
|
||||
:money="item.coupon_price"
|
||||
symbolSize="32"
|
||||
integerSize="52"
|
||||
decimalSize="32"
|
||||
color="#e93323"
|
||||
isCoupon
|
||||
v-if="item.coupon_type==1"></baseMoney>
|
||||
<view v-else class="font-color SemiBold fs-42 SemiBold">{{parseFloat(item.coupon_price)/10}}折</view>
|
||||
<view>
|
||||
<view class="fs-28 lh-40rpx red w-234 line1">{{item.coupon_title}}</view>
|
||||
<view class="fs-20 lh-28rpx text--w111-666 mt-8" v-if="item.coupon_time">领取后{{item.coupon_time}}天内可用</view>
|
||||
<view class="fs-20 lh-28rpx text--w111-666 mt-8" v-else>{{item.start_time ? item.start_time+'-' : ''}}{{item.end_time === 0 ? '不限时': item.end_time}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="box-3 cover abs-lb" :style="[box3]">
|
||||
<view class="btn-box flex-center fs-34 fw-500" @tap="goPage">立即领取</view>
|
||||
</view>
|
||||
</view>
|
||||
<text class="iconfont icon-ic_close1 fs-60 text--w111-fff" @tap="close"></text>
|
||||
</view>
|
||||
<view class='mask' catchtouchmove="true" :hidden="window==false" @touchmove.stop.prevent></view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {HTTP_REQUEST_URL} from '@/config/app';
|
||||
export default {
|
||||
props: {
|
||||
window: {
|
||||
type: Boolean | String | Number,
|
||||
default: false,
|
||||
},
|
||||
couponList: {
|
||||
type: Array,
|
||||
default: function() {
|
||||
return []
|
||||
},
|
||||
},
|
||||
couponImage: {
|
||||
type: String,
|
||||
default: '',
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
imgHost:HTTP_REQUEST_URL
|
||||
};
|
||||
},
|
||||
computed:{
|
||||
boxHt(){
|
||||
return {
|
||||
backgroundImage: 'url('+ HTTP_REQUEST_URL +'/statics/images/product/new_coupon_bg1.png'+')'
|
||||
}
|
||||
},
|
||||
boxItem(){
|
||||
return {
|
||||
backgroundImage: 'url('+ HTTP_REQUEST_URL +'/statics/images/product/new_coupon_bg2.png'+')'
|
||||
}
|
||||
},
|
||||
box3(){
|
||||
return {
|
||||
backgroundImage: 'url('+ HTTP_REQUEST_URL +'/statics/images/product/new_coupon_bg3.png'+')'
|
||||
}
|
||||
},
|
||||
box1(){
|
||||
return {
|
||||
backgroundImage: 'url('+ HTTP_REQUEST_URL +'/statics/images/product/new_coupon_bg4.png'+')'
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
goPage(){
|
||||
this.$emit('onColse');
|
||||
uni.navigateTo({
|
||||
url: '/pages/activity/coupon/index'
|
||||
})
|
||||
},
|
||||
close:function(){
|
||||
this.$emit('onColse');
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
<style scoped lang="scss">
|
||||
.mask {
|
||||
z-index: 9999;
|
||||
}
|
||||
|
||||
.coupon-window {
|
||||
width: 574rpx;
|
||||
height: 860rpx;
|
||||
position: fixed;
|
||||
top: 20%;
|
||||
z-index: 10000;
|
||||
left: 50%;
|
||||
margin-left: -286rpx;
|
||||
transform: translate3d(0, -200%, 0);
|
||||
transition: all .3s cubic-bezier(.25, .5, .5, .9);
|
||||
border-radius: 30rpx 30rpx 0 0;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
.coupon-window.on {
|
||||
transform: translate3d(0, 0, 0);
|
||||
}
|
||||
.box-1{
|
||||
width: 100%;
|
||||
height: 462rpx;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
bottom: 108rpx;
|
||||
}
|
||||
.box-2{
|
||||
width: 524rpx;
|
||||
max-height: 508rpx;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
bottom: 188rpx;
|
||||
border-radius: 40rpx 40rpx 0 0;
|
||||
overflow-y: auto;
|
||||
border-radius: 24px;
|
||||
}
|
||||
.box-3{
|
||||
width: 100%;
|
||||
height: 242rpx;
|
||||
}
|
||||
.box-ht{
|
||||
width: 524rpx;
|
||||
height: 136rpx;
|
||||
}
|
||||
.box-item{
|
||||
width: 100%;
|
||||
height: 140rpx;
|
||||
background-size: 100%;
|
||||
padding: 0 40rpx 0 20rpx;
|
||||
}
|
||||
.btn-box{
|
||||
width: 460rpx;
|
||||
height: 88rpx;
|
||||
background: linear-gradient(90deg, #FFD10C 0%, #FEEF4C 100%);
|
||||
border-radius: 44rpx;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
bottom: 48rpx;
|
||||
}
|
||||
.cover{
|
||||
background-size: cover;
|
||||
}
|
||||
.icon-ic_close1{
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
bottom: 0;
|
||||
}
|
||||
.red{
|
||||
color: #e93323;
|
||||
}
|
||||
.SemiBold{
|
||||
font-family:'SemiBold';
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user