fix: 修改直充 上游返回成功

This commit is contained in:
zhangds 2024-02-25 14:14:58 +08:00
parent 6e788da527
commit 60bf3ad202
1 changed files with 21 additions and 0 deletions

View File

@ -30,6 +30,7 @@
<link href="https://lsxdemall.oss-cn-beijing.aliyuncs.com/siteqiexchange/css/swiper.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/css/homepage2_0.css?v=2">
<script src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/js/api2_0.js"></script>
<script src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/js/libs.js"></script>
</head>
<body>
@ -129,6 +130,7 @@
</div>
</body>
<script>
const bm_obj_data = sessionStorage.getItem("bm_auth") ? JSON.parse(sessionStorage.getItem("bm_auth")) : null;
let goodsCount = null, goodsDetail = null;
new Vue({
el: '#exchangePage',
@ -200,6 +202,12 @@
});
});
},
mounted() {
// 领取成功结算 5
if (bm_obj_data && !bm_obj_data.settlement_data.is_settlement && bm_obj_data.settlement_data.settlement_type === 3) {
settlementFun(bm_obj_data.token, bm_obj_data.settlement_data.settlement_type);
}
},
methods: {
bindAvailable() {
if (goodsDetail.available != 1) {
@ -334,7 +342,20 @@
};
self.popboxshow = false;
req.axiosPost('/key/usage', data).then(res => {
// 使用结算 6
// 卡密做特殊处理,复制才会触发
if (bm_obj_data && !bm_obj_data.settlement_data.is_settlement && bm_obj_data.settlement_data.settlement_type === 6 && this.goodInfo.product_type !== 2) {
settlementFun(bm_obj_data.token, bm_obj_data.settlement_data.settlement_type);
}
if (res.code == 200) {
// 使用成功结算 7
// 直充类 上游充值返回成功
if (bm_obj_data && !bm_obj_data.settlement_data.is_settlement && bm_obj_data.settlement_data.settlement_type === 6 && this.goodInfo.product_type !== 2) {
settlementFun(bm_obj_data.token, bm_obj_data.settlement_data.settlement_type);
}
this.popboxtype = '成功';
sessionStorage.setItem('lastid', self.goodInfo.product_id);
sessionStorage.setItem('orderNumber', res.data.order_number);