feat:提示词修改

This commit is contained in:
dzc committed 2026-02-03 19:07:08 +08:00
1 parent 835c618cbd
commit 177f61d804
4 files changed
+15 -2

No files matched your search

@@ -36,7 +36,7 @@ const doVisibleQrcode = () => {
</view>
<view class="scope-text flex-col">
<text>{{ actCouponTypeEnum[detail.couponType] }}</text>
<text>有限期至 {{ detail.endTime }}</text>
<text>在{{ detail.startTime }}至{{ detail.endTime }}时间段使用</text>
</view>
</view>
</view>
+5 -1
View File
@@ -78,7 +78,7 @@
</view>
</template>
</crud-layout>
<modify-user ref="modifyUserRef" warnText="填写出生日期即可领取生日兑换券" />
<modify-user ref="modifyUserRef" warnText="填写出生日期即可领取生日兑换券" @close="modifyUserClose" />
</template>
<script setup lang="ts">
@@ -235,6 +235,10 @@ const getUserInfo = async () => {
const doQrcode = () => {
router.jump("/pages/merchant/my-act-list")
}
const modifyUserClose = () => {
getIsEligibleForAct()
}
</script>
<style scoped>
+8
View File
@@ -75,6 +75,14 @@ const doVisibleQrcode = async (detail: any) => {
console.log("生成二维码:", type, actDetail);
// 查询优惠券对应的短码
if (type == "ACT_COUPON") {
// 判断核销时间 必须在`actDetail.startTime`和`actDetail.endTime`之间
const now = new Date().getTime()
const startTime = new Date(actDetail.startTime).getTime()
const endTime = new Date(actDetail.endTime).getTime()
if (now < startTime || now > endTime) {
uni.showToast({ title: "核销时间不在活动时间范围内", icon: "none" })
return
}
// 特殊情况
// 1. 生日
if (actDetail.actUniquecode == "1qRgFo") {
+1
View File
@@ -82,6 +82,7 @@ const actUserReceiveEnum = {
// 特殊
"-100": "仅限生日当月使用",
"-101": "请填写出生日期",
"-102": "生日已结束",
}
export default {