Skip to content

Commit 2dbfa77

Browse files
committed
code review:banner 逻辑
1 parent 4709c18 commit 2dbfa77

File tree

5 files changed

+6
-2
lines changed

5 files changed

+6
-2
lines changed

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ VITE_OPEN=true
1111
VITE_APP_TENANT_ENABLE=true
1212

1313
# 验证码的开关
14-
VITE_APP_CAPTCHA_ENABLE=false
14+
VITE_APP_CAPTCHA_ENABLE=true
1515

1616
# 百度统计
1717
VITE_APP_BAIDU_CODE = a1ff8825baa73c3a78eb96aa40325abc

src/views/mall/product/spu/form/CouponSelect.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,20 +201,23 @@ const resetQuery = () => {
201201
queryFormRef?.value?.resetFields()
202202
handleQuery()
203203
}
204+
204205
/** 打开弹窗 */
205206
const open = async () => {
206207
dialogVisible.value = true
207208
resetQuery()
208209
}
209210
defineExpose({ open }) // 提供 open 方法,用于打开弹窗
211+
210212
const handleSelectionChange = (val: CouponTemplateApi.CouponTemplateVO[]) => {
211213
emit(
212214
'update:multipleSelection',
213215
val.map((item) => ({ id: item.id, name: item.name }))
214216
)
215217
}
218+
216219
const submitForm = () => {
217220
dialogVisible.value = false
218221
}
222+
// TODO @puhui999:提前 todo,先不用改;未来单独成组件,其它模块可以服用;例如说,满减送,可以选择优惠劵;
219223
</script>
220-
<style lang="scss" scoped></style>

src/views/mall/product/spu/form/OtherSettingsForm.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
</el-col>
4343
<el-col :span="24">
4444
<el-form-item label="活动优先级">
45+
<!-- TODO @puhui999:这个目前先写死;主要是,这个优惠类型不好用 promotion_type_enum;因为优惠劵、会员折扣都算。 -->
4546
<ActivityOrdersSort
4647
v-model:activity-orders="formData.activityOrders"
4748
:promotion-types="promotionTypes"

0 commit comments

Comments
 (0)