|
|
@ -121,8 +121,8 @@ const add = async function () { |
|
|
WriteCookies.value = `coinRecharge-${recharge.value.jwcode}-${recharge.value.permanentGold}-${recharge.value.freeGold}` |
|
|
WriteCookies.value = `coinRecharge-${recharge.value.jwcode}-${recharge.value.permanentGold}-${recharge.value.freeGold}` |
|
|
//value 为充值时间 |
|
|
//value 为充值时间 |
|
|
WriteCookiesVale.value = JSON.stringify({ |
|
|
WriteCookiesVale.value = JSON.stringify({ |
|
|
payTime: moment(resultProps.data.createTime).format("YYYY-MM-DD HH:mm:ss"), |
|
|
|
|
|
orderCode: result.data |
|
|
|
|
|
|
|
|
payTime: moment(result.data.createTime).format("YYYY-MM-DD HH:mm:ss"), |
|
|
|
|
|
orderCode: result.data.orderCoder, |
|
|
}); |
|
|
}); |
|
|
// 设置cookies,用户jwcode为key,value也是jwcode,过期时间为1天 |
|
|
// 设置cookies,用户jwcode为key,value也是jwcode,过期时间为1天 |
|
|
Cookies.set(WriteCookies.value, WriteCookiesVale.value, {expires: 1, path: '/'}); |
|
|
Cookies.set(WriteCookies.value, WriteCookiesVale.value, {expires: 1, path: '/'}); |
|
|
|