1
This commit is contained in:
@@ -1,7 +1,32 @@
|
||||
<template>
|
||||
<view class="">添加优惠券</view>
|
||||
<view class="container">
|
||||
<u-form ref="formRef" label-position="top" labelWidth="200" :model="form" :rules="rules">
|
||||
<view class="u-form-card">
|
||||
<u-form-item label="满减券名称" prop="title">
|
||||
<u-input placeholder="请输入活动名称" :maxlength="20" v-model="form.title" border="bottom" :customStyle="inputStyle"></u-input>
|
||||
</u-form-item>
|
||||
</view>
|
||||
</u-form>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script></script>
|
||||
<script setup>
|
||||
import { ref } from 'vue';
|
||||
|
||||
<style></style>
|
||||
const form = ref({
|
||||
title: ''
|
||||
});
|
||||
|
||||
const rules = ref({
|
||||
title: [
|
||||
{
|
||||
type: 'string',
|
||||
required: true,
|
||||
message: '请输入活动名称',
|
||||
trigger: ['blur']
|
||||
}
|
||||
]
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss"></style>
|
||||
|
||||
Reference in New Issue
Block a user