fix: user unlock
This commit is contained in:
@@ -9,6 +9,11 @@
|
||||
<el-option v-for="item in sceneList" :key="item.scene" :label="item.sceneName" :value="item.scene" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="解锁类型" prop="unlockType">
|
||||
<el-select v-model="form.unlockType" clearable placeholder="请选择解锁类型(可为空)" style="width: 100%">
|
||||
<el-option v-for="item in unlockTypeList" :key="item.value" :label="item.label" :value="item.value" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="卡片图片" prop="imageUrl">
|
||||
<single-upload
|
||||
v-model="form.imageUrl"
|
||||
@@ -43,9 +48,17 @@
|
||||
form: {
|
||||
name: '',
|
||||
scene: '',
|
||||
unlockType: '',
|
||||
imageUrl: '',
|
||||
isEnabled: true,
|
||||
},
|
||||
unlockTypeList: [
|
||||
{ value: 'sing3', label: '连续签到3天' },
|
||||
{ value: 'sing5', label: '连续签到5天' },
|
||||
{ value: 'sing7', label: '连续签到7天' },
|
||||
{ value: 'ad', label: '观看广告' },
|
||||
{ value: 'vip', label: '开通vip' },
|
||||
],
|
||||
rules: {
|
||||
name: [{ required: true, trigger: 'blur', message: '请输入卡片名称' }],
|
||||
imageUrl: [{ required: true, trigger: 'blur', message: '请上传卡片图片' }],
|
||||
@@ -80,6 +93,7 @@
|
||||
this.form = {
|
||||
name: row.name,
|
||||
scene: row.scene,
|
||||
unlockType: row.unlockType,
|
||||
imageUrl: row.imageUrl,
|
||||
isEnabled: row.isEnabled,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user