|
|
@ -18,7 +18,10 @@
|
|
|
|
</a-radio-group>
|
|
|
|
</a-radio-group>
|
|
|
|
</a-form-model-item>
|
|
|
|
</a-form-model-item>
|
|
|
|
<a-form-model-item label="获取积分数额" prop="amount">
|
|
|
|
<a-form-model-item label="获取积分数额" prop="amount">
|
|
|
|
<a-input-number v-model.number="setForm.amount" :disabled='setForm.enableFirstLoginSetting===false'></a-input-number>
|
|
|
|
<a-input-number
|
|
|
|
|
|
|
|
v-model.number="setForm.amount"
|
|
|
|
|
|
|
|
:disabled="setForm.enableFirstLoginSetting === false"
|
|
|
|
|
|
|
|
></a-input-number>
|
|
|
|
</a-form-model-item>
|
|
|
|
</a-form-model-item>
|
|
|
|
<div class="title">签到奖励设置</div>
|
|
|
|
<div class="title">签到奖励设置</div>
|
|
|
|
<a-form-model-item label="是否开启签到" prop="enableSignSetting">
|
|
|
|
<a-form-model-item label="是否开启签到" prop="enableSignSetting">
|
|
|
@ -29,7 +32,10 @@
|
|
|
|
</a-form-model-item>
|
|
|
|
</a-form-model-item>
|
|
|
|
<a-form-model-item label="签到方式" prop="signType">
|
|
|
|
<a-form-model-item label="签到方式" prop="signType">
|
|
|
|
<a-space>
|
|
|
|
<a-space>
|
|
|
|
<span :class='[setForm.enableSignSetting===false?"disabled":""]'>{{ setForm.signType === 1 ? "一周每日签到模式" : "" }}</span>
|
|
|
|
<span
|
|
|
|
|
|
|
|
:class="[setForm.enableSignSetting === false ? 'disabled' : '']"
|
|
|
|
|
|
|
|
>{{ setForm.signType === 1 ? "一周每日签到模式" : "" }}</span
|
|
|
|
|
|
|
|
>
|
|
|
|
<a-popover>
|
|
|
|
<a-popover>
|
|
|
|
<template slot="content">
|
|
|
|
<template slot="content">
|
|
|
|
<p style="width: 300px">
|
|
|
|
<p style="width: 300px">
|
|
|
@ -47,7 +53,7 @@
|
|
|
|
</a-form-model-item>
|
|
|
|
</a-form-model-item>
|
|
|
|
<a-form-model-item label="活动时间" prop="signTime">
|
|
|
|
<a-form-model-item label="活动时间" prop="signTime">
|
|
|
|
<a-range-picker
|
|
|
|
<a-range-picker
|
|
|
|
:disabled='setForm.enableSignSetting===false'
|
|
|
|
:disabled="setForm.enableSignSetting === false"
|
|
|
|
style="width: 400px"
|
|
|
|
style="width: 400px"
|
|
|
|
@change="changeTime"
|
|
|
|
@change="changeTime"
|
|
|
|
v-model="time"
|
|
|
|
v-model="time"
|
|
|
@ -55,10 +61,17 @@
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</a-form-model-item>
|
|
|
|
</a-form-model-item>
|
|
|
|
<a-form-model-item label="签到奖励" prop="signReward">
|
|
|
|
<a-form-model-item label="签到奖励" prop="signReward">
|
|
|
|
<span :class='[setForm.enableSignSetting===false?"disabled":""]' >{{ setForm.signReward === 1 ? "商城积分" : "" }}</span>
|
|
|
|
<span
|
|
|
|
|
|
|
|
:class="[setForm.enableSignSetting === false ? 'disabled' : '']"
|
|
|
|
|
|
|
|
>{{ setForm.signReward === 1 ? "商城积分" : "" }}</span
|
|
|
|
|
|
|
|
>
|
|
|
|
</a-form-model-item>
|
|
|
|
</a-form-model-item>
|
|
|
|
<a-form-model-item label="签到活动名称" prop="signName">
|
|
|
|
<a-form-model-item label="签到活动名称" prop="signName">
|
|
|
|
<a-input v-model="setForm.signName" :disabled='setForm.enableSignSetting===false' style="width: 300px"></a-input>
|
|
|
|
<a-input
|
|
|
|
|
|
|
|
v-model="setForm.signName"
|
|
|
|
|
|
|
|
:disabled="setForm.enableSignSetting === false"
|
|
|
|
|
|
|
|
style="width: 300px"
|
|
|
|
|
|
|
|
></a-input>
|
|
|
|
</a-form-model-item>
|
|
|
|
</a-form-model-item>
|
|
|
|
<a-form-model-item label="签到奖励设置" prop="signRewardSetting">
|
|
|
|
<a-form-model-item label="签到奖励设置" prop="signRewardSetting">
|
|
|
|
<div v-for="(item, index) in dailyScore" :key="index">
|
|
|
|
<div v-for="(item, index) in dailyScore" :key="index">
|
|
|
@ -66,7 +79,7 @@
|
|
|
|
>{{ item.label
|
|
|
|
>{{ item.label
|
|
|
|
}}<a-input
|
|
|
|
}}<a-input
|
|
|
|
type="number"
|
|
|
|
type="number"
|
|
|
|
:disabled='setForm.enableSignSetting===false'
|
|
|
|
:disabled="setForm.enableSignSetting === false"
|
|
|
|
v-model.number="dailyScore[index].value"
|
|
|
|
v-model.number="dailyScore[index].value"
|
|
|
|
addon-after="分"
|
|
|
|
addon-after="分"
|
|
|
|
style="width: 100px"
|
|
|
|
style="width: 100px"
|
|
|
@ -131,11 +144,11 @@ export default {
|
|
|
|
async getData() {
|
|
|
|
async getData() {
|
|
|
|
let res = await getSetting();
|
|
|
|
let res = await getSetting();
|
|
|
|
this.setForm = res.data;
|
|
|
|
this.setForm = res.data;
|
|
|
|
res.data.signRewardSetting.split(',').forEach((ele,index)=>{
|
|
|
|
res.data.signRewardSetting.split(",").forEach((ele, index) => {
|
|
|
|
this.dailyScore[index].value = ele
|
|
|
|
this.dailyScore[index].value = ele;
|
|
|
|
})
|
|
|
|
});
|
|
|
|
this.time[0] = res.data.signBeginTime
|
|
|
|
this.time[0] = res.data.signBeginTime;
|
|
|
|
this.time[1] = res.data.signEndTime
|
|
|
|
this.time[1] = res.data.signEndTime;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
async onSubmit() {
|
|
|
|
async onSubmit() {
|
|
|
|
let res = await Setting(this.setForm);
|
|
|
|
let res = await Setting(this.setForm);
|
|
|
|