Browse Source

修改bug

yxb
DESKTOP-2IO5MST\huting 1 year ago
parent
commit
97316a378f
2 changed files with 29 additions and 2 deletions
  1. 27
    1
      subpackage/after-sale/card-Renewal/renewal-confirm.vue
  2. 2
    1
      utils/network/api.js

+ 27
- 1
subpackage/after-sale/card-Renewal/renewal-confirm.vue View File

cardModifyConfirm, cardModifyConfirm,
obuRenewal, obuRenewal,
modifyObuVehicleInfo, modifyObuVehicleInfo,
obuActivation
obuActivation,
renewalTimeApi
} from "@/utils/network/api.js"; } from "@/utils/network/api.js";
const cmd = require("../../../static/etcUtil/cmdConfig.js"); const cmd = require("../../../static/etcUtil/cmdConfig.js");
import { import {
request(cardModifyConfirm, options).then((res) => { request(cardModifyConfirm, options).then((res) => {
// 只写卡 // 只写卡
if (flag.length == 1) { if (flag.length == 1) {
sure(1)
state.showPopup = true; state.showPopup = true;
} else { } else {
// 为2要写签 // 为2要写签
tools.hideLoadingAlert(); tools.hideLoadingAlert();
console.log("在线激活 请求", res); console.log("在线激活 请求", res);
if (res[0] == "9000") { if (res[0] == "9000") {
sure(2)
state.showPopup = true; state.showPopup = true;
} }
}); });
} }
}); });
}; };
const sure = (val) => {
var data = {}
if (val == 1) {
data = {
type: "1",
cardId: fileDataStrings.cardId,
}
} else {
data = {
type: "2",
obuId: fileDataStrings.obuId,
}
}
const options = {
type: 2,
data: data,
method: "POST",
showLoading: true,
};
request(renewalTimeApi, options).then((res) => {

})
}
</script> </script>


<style> <style>

+ 2
- 1
utils/network/api.js View File

export const rechargeMoneyApi = "9d6c8c65490b426ca65e8add1aa977da" //查询充值成功后的金额 export const rechargeMoneyApi = "9d6c8c65490b426ca65e8add1aa977da" //查询充值成功后的金额
export const blackApi = "3aeafb995cb84112be87b8edcc303a8f" //黑名单查询 export const blackApi = "3aeafb995cb84112be87b8edcc303a8f" //黑名单查询
export const rechargeApi = "c62caa7ea6a249c3a2c3f5d3c6354a37" //单位账户充值 export const rechargeApi = "c62caa7ea6a249c3a2c3f5d3c6354a37" //单位账户充值
export const cancelOrderApi = "43d72061a84e4310abe631725e42c594" // 更换设备 去注销前订单的 卡签
export const cancelOrderApi = "43d72061a84e4310abe631725e42c594" // 更换设备 去注销前订单的 卡签
export const renewalTimeApi = "bdf2d521cba340deb6629f3b192db92a" // 更换卡签续期时间

Loading…
Cancel
Save