Browse Source

Merge branch 'milestone-20250913-现金管理' of http://39.101.133.168:8807/huangqizhen/gold-vue into milestone-20250913-现金管理

lihuilin/feature-20250923114949-现金
lihuilin 1 month ago
parent
commit
7d49895257
  1. 21
      src/views/consume/gold/addCoinConsume.vue

21
src/views/consume/gold/addCoinConsume.vue

@ -225,16 +225,7 @@ const add = async function () {
console.log("addConsume.value", addConsume.value) console.log("addConsume.value", addConsume.value)
// jwcode
// jwcode:permanentGold:freeGold
WriteCookies.value = `coinConsume:${addConsume.value.jwcode}:${addConsume.value.goodsName.value}`
//value
WriteCookiesTime.value = dayjs().format("YYYY-MM-DD HH:mm:ss");
// cookies,jwcodekeyvaluejwcode1
Cookies.set(WriteCookies.value, WriteCookiesTime.value, {
expires:
1, path: '/'
});
addDisabled.value = true addDisabled.value = true
// POST // POST
@ -269,6 +260,16 @@ const add = async function () {
function handleResponse(result) { function handleResponse(result) {
console.log("响应结果", result) console.log("响应结果", result)
if (result.code === 200) { if (result.code === 200) {
// jwcode
// jwcode:permanentGold:freeGold
WriteCookies.value = `coinConsume:${addConsume.value.jwcode}:${addConsume.value.goodsName.value}`
//value
WriteCookiesTime.value = dayjs().format("YYYY-MM-DD HH:mm:ss");
// cookies,jwcodekeyvaluejwcode1
Cookies.set(WriteCookies.value, WriteCookiesTime.value, {
expires:
1, path: '/'
});
ElMessage.success("添加成功"); ElMessage.success("添加成功");
console.log("请求成功", result); console.log("请求成功", result);
} else { } else {

Loading…
Cancel
Save