mobileclient/packkey-back/libs.js

21 lines
581 B
JavaScript
Raw Normal View History

2024-02-22 19:28:16 +08:00
/**
* 结算 埋点方法
* @param {string} key
* @param {number} settlementType
*/
const settlementFun = (token, settlementType) => {
let params = {
token,
type: settlementType
};
req.axiosPost("/key/settlement/create", params).then((res) => {
2024-02-23 17:25:07 +08:00
console.log("点 =>", res);
2024-02-22 19:28:16 +08:00
if (res.code === 200) {
// 接口请求成功后,就不能再请求接口了
let obj_sy = JSON.parse(sessionStorage.getItem("bm_auth"));
obj_sy.settlement_data.is_settlement = true;
sessionStorage.setItem("bm_auth", JSON.stringify(obj_sy));
}
});
};