diff --git a/apps/src/views/operate/components/gift-batch-drawer.vue b/apps/src/views/operate/components/gift-batch-drawer.vue index c8bdc39..babcc6d 100644 --- a/apps/src/views/operate/components/gift-batch-drawer.vue +++ b/apps/src/views/operate/components/gift-batch-drawer.vue @@ -15,7 +15,6 @@ import { Table, Tag, } from 'antdv-next'; -import dayjs from 'dayjs'; import { addGift } from '#/api/legacy/gift'; import { getAccessImgUrl, simpleUploadFile } from '#/api/legacy/oss'; @@ -70,7 +69,6 @@ const batchForm = reactive({ giftTab: 'ORDINARY', regionList: [] as Array, sysOrigin: '', - validDays: 7, }); const rows = ref([]); @@ -167,7 +165,6 @@ function resetBatch() { batchForm.sysOrigin = String(props.initialSysOrigin || props.sysOriginOptions[0]?.value || 'LIKEI'); batchForm.giftTab = 'ORDINARY'; - batchForm.validDays = 7; batchForm.regionList = []; rows.value = []; selectedRowKeys.value = []; @@ -632,7 +629,7 @@ function buildPayload(row: BatchGiftRow) { return { account: '', explanationGift: false, - expiredTime: String(dayjs().add(batchForm.validDays, 'day').valueOf()), + expiredTime: '', giftCandy: Number(row.giftCandy || 0), giftCode: String(row.code || '').trim(), giftIntegral: Number(row.giftIntegral || 0), @@ -731,15 +728,6 @@ async function submitBatch() { :options="regionOptions" /> -
- 有效期 - -
收费类型:金币
@@ -786,7 +774,7 @@ async function submitBatch() {
礼物_物品名_价格_cover/animation
礼物_物品名_价格_1天_cover/animation
cover 写入封面,animation 写入资源
-
默认金币,有效期 7 天
+
默认金币,不填写有效期