fix: 修改直充 上游返回成功
This commit is contained in:
parent
6e788da527
commit
60bf3ad202
|
@ -30,6 +30,7 @@
|
||||||
<link href="https://lsxdemall.oss-cn-beijing.aliyuncs.com/siteqiexchange/css/swiper.min.css" rel="stylesheet">
|
<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">
|
<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/api2_0.js"></script>
|
||||||
|
<script src="https://lsxdemall.oss-cn-beijing.aliyuncs.com/MarketingSystem/js/libs.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
@ -129,6 +130,7 @@
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
<script>
|
<script>
|
||||||
|
const bm_obj_data = sessionStorage.getItem("bm_auth") ? JSON.parse(sessionStorage.getItem("bm_auth")) : null;
|
||||||
let goodsCount = null, goodsDetail = null;
|
let goodsCount = null, goodsDetail = null;
|
||||||
new Vue({
|
new Vue({
|
||||||
el: '#exchangePage',
|
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: {
|
methods: {
|
||||||
bindAvailable() {
|
bindAvailable() {
|
||||||
if (goodsDetail.available != 1) {
|
if (goodsDetail.available != 1) {
|
||||||
|
@ -334,7 +342,20 @@
|
||||||
};
|
};
|
||||||
self.popboxshow = false;
|
self.popboxshow = false;
|
||||||
req.axiosPost('/key/usage', data).then(res => {
|
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) {
|
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 = '成功';
|
this.popboxtype = '成功';
|
||||||
sessionStorage.setItem('lastid', self.goodInfo.product_id);
|
sessionStorage.setItem('lastid', self.goodInfo.product_id);
|
||||||
sessionStorage.setItem('orderNumber', res.data.order_number);
|
sessionStorage.setItem('orderNumber', res.data.order_number);
|
||||||
|
|
Loading…
Reference in New Issue