🦀️ fix: 修复bug
This commit is contained in:
parent
c33027d392
commit
ef9c8bf47a
|
@ -86,7 +86,7 @@
|
||||||
const bm_obj_data = sessionStorage.getItem("bm_auth") ? JSON.parse(sessionStorage.getItem("bm_auth")) : null;
|
const bm_obj_data = sessionStorage.getItem("bm_auth") ? JSON.parse(sessionStorage.getItem("bm_auth")) : null;
|
||||||
const { createApp, ref, onMounted, computed } = Vue;
|
const { createApp, ref, onMounted, computed } = Vue;
|
||||||
createApp({
|
createApp({
|
||||||
setup() {
|
setup () {
|
||||||
const goods = ref({});
|
const goods = ref({});
|
||||||
const toast = ref(false);
|
const toast = ref(false);
|
||||||
const clr = ref(null);
|
const clr = ref(null);
|
||||||
|
@ -102,7 +102,7 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
/* 获取详情 */
|
/* 获取详情 */
|
||||||
function getInfo(isLoading) {
|
function getInfo (isLoading) {
|
||||||
|
|
||||||
const orderNumber = sessionStorage.getItem('orderNumber');
|
const orderNumber = sessionStorage.getItem('orderNumber');
|
||||||
req.axiosGet(`/key/order/detail/${orderNumber}`).then(res => {
|
req.axiosGet(`/key/order/detail/${orderNumber}`).then(res => {
|
||||||
|
@ -115,7 +115,7 @@
|
||||||
}
|
}
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
const { product_name, status, show_url, card_number, card_password, use_coupon, product, mask_card_password } = res.data;
|
const { product_name, status, show_url, card_number, card_password, use_coupon, product, mask_card_password } = res.data;
|
||||||
card_look_pwd.value = mask_card_password.length > 16 ? mask_card_password.substring(0, 16) : mask_card_password;
|
card_look_pwd.value = mask_card_password && mask_card_password.length > 16 ? mask_card_password.substring(0, 16) : mask_card_password;
|
||||||
goods.value = { product_name, time: res.data.goods.end_time, status, show_url, card_number, card_password, card_show: res.data.goods.card_show, use_coupon, detail_url: product.detail_url };
|
goods.value = { product_name, time: res.data.goods.end_time, status, show_url, card_number, card_password, card_show: res.data.goods.card_show, use_coupon, detail_url: product.detail_url };
|
||||||
// 领取成功结算 5
|
// 领取成功结算 5
|
||||||
if (bm_obj_data && !bm_obj_data.settlement_data.is_settlement && bm_obj_data.settlement_data.settlement_type === 5 && status === 2) {
|
if (bm_obj_data && !bm_obj_data.settlement_data.is_settlement && bm_obj_data.settlement_data.settlement_type === 5 && status === 2) {
|
||||||
|
@ -126,7 +126,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 重新兑换 */
|
/* 重新兑换 */
|
||||||
function toHome() {
|
function toHome () {
|
||||||
if (goods.value.use_coupon === 2) {
|
if (goods.value.use_coupon === 2) {
|
||||||
window.location.replace('../homepage.html');
|
window.location.replace('../homepage.html');
|
||||||
} else {
|
} else {
|
||||||
|
@ -135,7 +135,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
// 解密
|
// 解密
|
||||||
function decrypt(encryptedBase64Str, key) {
|
function decrypt (encryptedBase64Str, key) {
|
||||||
var keyHex = CryptoJS.enc.Utf8.parse(key);
|
var keyHex = CryptoJS.enc.Utf8.parse(key);
|
||||||
var decrypted = CryptoJS.AES.decrypt(encryptedBase64Str, keyHex, {
|
var decrypted = CryptoJS.AES.decrypt(encryptedBase64Str, keyHex, {
|
||||||
mode: CryptoJS.mode.ECB,
|
mode: CryptoJS.mode.ECB,
|
||||||
|
@ -146,7 +146,7 @@
|
||||||
|
|
||||||
|
|
||||||
/* 复制 */
|
/* 复制 */
|
||||||
function copyFunction(number, type) {
|
function copyFunction (number, type) {
|
||||||
let new_number = number;
|
let new_number = number;
|
||||||
// 使用结算 卡密6
|
// 使用结算 卡密6
|
||||||
if (bm_obj_data && !bm_obj_data.settlement_data.is_settlement && bm_obj_data.settlement_data.settlement_type === 6) {
|
if (bm_obj_data && !bm_obj_data.settlement_data.is_settlement && bm_obj_data.settlement_data.settlement_type === 6) {
|
||||||
|
@ -154,9 +154,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
if (type === 1 && sessionStorage.getItem('orderNumber')) {
|
if (type === 1 && sessionStorage.getItem('orderNumber')) {
|
||||||
let key = sessionStorage.getItem('orderNumber')
|
let key = sessionStorage.getItem('orderNumber');
|
||||||
key = key.substring(0, 16);
|
key = key.substring(0, 16);
|
||||||
new_number = decrypt(number, key)
|
new_number = decrypt(number, key);
|
||||||
card_look_pwd.value = new_number;
|
card_look_pwd.value = new_number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -188,7 +188,7 @@
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
function backHandler() {
|
function backHandler () {
|
||||||
history.go(-1);
|
history.go(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue