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
200 lines
4.2 KiB
Vue
200 lines
4.2 KiB
Vue
<template>
|
||
<view :style="colorStyle">
|
||
<view class="mask" @touchmove.prevent :hidden="isShow === false"></view>
|
||
<view class="product-window" :class="{'on':isShow}">
|
||
<view class="mp-data">
|
||
<text class="mp-name">服务与隐私协议</text>
|
||
</view>
|
||
<view class="trip-msg">
|
||
<view class="trip">
|
||
{{`请仔细阅读以下内容,并作出适当的选择:`}}
|
||
</view>
|
||
</view>
|
||
<view class="trip-title">
|
||
隐私政策概要
|
||
</view>
|
||
<view class="trip-msg">
|
||
<view class="trip">
|
||
当您点击同意并继续使用产品服务时,即表示您已理解并同意该条款内容,该条款将对您产生法律约束力。如您拒绝,将无法继续下一步操作。
|
||
</view>
|
||
</view>
|
||
<view class="main-color" @click.stop="privacy('privacy')">点击阅读{{agreementName}}</view>
|
||
<view class="bottom">
|
||
<button class="save open" type="default" id="agree-btn" open-type="agreePrivacyAuthorization"
|
||
@agreeprivacyauthorization="handleAgree">同意并继续</button>
|
||
<button class="reject" @click="rejectAgreement">取消</button>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
|
||
</template>
|
||
|
||
<script>
|
||
import colors from "@/mixins/color";
|
||
export default {
|
||
mixins: [colors],
|
||
data() {
|
||
return {
|
||
isShow: false,
|
||
agreementName: '',
|
||
configData: this.$Cache.get('BASIC_CONFIG'),
|
||
};
|
||
},
|
||
mounted() {
|
||
wx.getPrivacySetting({
|
||
success: res => {
|
||
if (res.needAuthorization) {
|
||
// 需要弹出隐私协议
|
||
this.isShow = true
|
||
this.agreementName = res.privacyContractName
|
||
} else {
|
||
this.$emit('onAgree');
|
||
// 用户已经同意过隐私协议,所以不需要再弹出隐私协议,也能调用已声明过的隐私接口
|
||
// wx.getUserProfile()
|
||
// wx.chooseMedia()
|
||
// wx.getClipboardData()
|
||
// wx.startRecord()
|
||
}
|
||
},
|
||
fail: () => {},
|
||
complete: () => {}
|
||
})
|
||
},
|
||
methods: {
|
||
// 同意
|
||
handleAgree() {
|
||
this.isShow = false
|
||
this.$emit('onAgree');
|
||
},
|
||
// 拒绝
|
||
rejectAgreement() {
|
||
this.isShow = false
|
||
uni.switchTab({
|
||
url: '/pages/index/index'
|
||
})
|
||
this.$emit('onReject');
|
||
},
|
||
// 跳转协议
|
||
privacy(type) {
|
||
uni.navigateTo({
|
||
url: "/pages/users/privacy/index?type=" + type
|
||
})
|
||
},
|
||
}
|
||
}
|
||
</script>
|
||
<style>
|
||
.pl-sty {
|
||
color: #999999;
|
||
font-size: 30rpx;
|
||
}
|
||
</style>
|
||
<style scoped lang="scss">
|
||
.product-window.on {
|
||
transform: translate3d(0, 0, 0);
|
||
}
|
||
|
||
.mask {
|
||
z-index: 99;
|
||
}
|
||
|
||
.product-window {
|
||
position: fixed;
|
||
bottom: 0;
|
||
width: 100%;
|
||
left: 0;
|
||
background-color: #fff;
|
||
z-index: 1000;
|
||
border-radius: 40rpx 40rpx 0 0;
|
||
transform: translate3d(0, 100%, 0);
|
||
transition: all .3s cubic-bezier(.25, .5, .5, .9);
|
||
padding: 64rpx 40rpx;
|
||
padding-bottom: 38rpx;
|
||
padding-bottom: calc(38rpx + constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
|
||
padding-bottom: calc(38rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
|
||
box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.06);
|
||
|
||
.icon-guanbi {
|
||
position: absolute;
|
||
top: 40rpx;
|
||
right: 40rpx;
|
||
font-size: 24rpx;
|
||
font-weight: bold;
|
||
color: #999;
|
||
}
|
||
|
||
.mp-data {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
margin-bottom: 40rpx;
|
||
|
||
.mp-name {
|
||
font-size: 34rpx;
|
||
font-weight: 500;
|
||
color: #333333;
|
||
line-height: 48rpx;
|
||
}
|
||
}
|
||
|
||
.trip-msg {
|
||
padding-bottom: 32rpx;
|
||
|
||
.title {
|
||
font-size: 30rpx;
|
||
font-weight: bold;
|
||
color: #000;
|
||
margin-bottom: 6rpx;
|
||
}
|
||
|
||
.trip {
|
||
color: #333333;
|
||
font-size: 28rpx;
|
||
font-family: PingFang SC-Regular, PingFang SC;
|
||
font-weight: 400;
|
||
}
|
||
}
|
||
|
||
.trip-title {
|
||
font-size: 28rpx;
|
||
font-weight: 500;
|
||
color: #333333;
|
||
margin-bottom: 8rpx;
|
||
}
|
||
|
||
.main-color {
|
||
font-size: 28rpx;
|
||
font-weight: 400;
|
||
color: var(--view-theme);
|
||
margin-bottom: 40rpx;
|
||
}
|
||
|
||
.bottom {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
flex-direction: column;
|
||
|
||
.save,
|
||
.reject {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
width: 670rpx;
|
||
height: 80rpx;
|
||
border-radius: 80rpx;
|
||
background-color: #F5F5F5;
|
||
color: #333;
|
||
font-size: 30rpx;
|
||
font-weight: 500;
|
||
}
|
||
|
||
.save {
|
||
background-color: var(--view-theme);
|
||
color: #fff;
|
||
margin-bottom: 24rpx;
|
||
}
|
||
}
|
||
}
|
||
</style>
|