|
@@ -5,6 +5,10 @@
|
|
<el-input v-model="form.buyPoint" type="number" placeholder="请输入购物赠送积分"></el-input>
|
|
<el-input v-model="form.buyPoint" type="number" placeholder="请输入购物赠送积分"></el-input>
|
|
<p style="color: #999">金额:积分=10:1</p>
|
|
<p style="color: #999">金额:积分=10:1</p>
|
|
</template>
|
|
</template>
|
|
|
|
+ <template #autoCloseOrder>
|
|
|
|
+ <el-input v-model="form.autoCloseOrder" type="number" placeholder="请输入自动关闭订单时间"></el-input>
|
|
|
|
+ <p style="color: #999">关闭订单时间小于等于0时不自动关闭</p>
|
|
|
|
+ </template>
|
|
<template #agree>
|
|
<template #agree>
|
|
<editor v-model="form.agree" url="/files/point/config/upload" />
|
|
<editor v-model="form.agree" url="/files/point/config/upload" />
|
|
</template>
|
|
</template>
|
|
@@ -25,6 +29,7 @@ export default {
|
|
{ label: '系统名称', model: 'title' },
|
|
{ label: '系统名称', model: 'title' },
|
|
{ label: 'logo', model: 'logo', type: 'upload', limit: 1, url: '/files/point/config/upload' },
|
|
{ label: 'logo', model: 'logo', type: 'upload', limit: 1, url: '/files/point/config/upload' },
|
|
{ label: '购物赠送积分', model: 'buyPoint', custom: true },
|
|
{ label: '购物赠送积分', model: 'buyPoint', custom: true },
|
|
|
|
+ { label: '自动关闭订单时间', model: 'autoCloseOrder', custom: true },
|
|
// { label: '积分计划', model: 'pointPlan' },
|
|
// { label: '积分计划', model: 'pointPlan' },
|
|
{ label: '底部文字', model: 'bottom_title' },
|
|
{ label: '底部文字', model: 'bottom_title' },
|
|
{ label: '分享图片', model: 'share', type: 'upload', limit: 1, url: '/files/point/config/upload' },
|
|
{ label: '分享图片', model: 'share', type: 'upload', limit: 1, url: '/files/point/config/upload' },
|
|
@@ -54,12 +59,13 @@ export default {
|
|
buyPoint: this.form.config.buyPoint,
|
|
buyPoint: this.form.config.buyPoint,
|
|
pointPlan: this.form.config.pointPlan,
|
|
pointPlan: this.form.config.pointPlan,
|
|
share: this.form.config.share,
|
|
share: this.form.config.share,
|
|
|
|
+ autoCloseOrder: this.form.config.autoCloseOrder,
|
|
};
|
|
};
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
async toSave({ data }) {
|
|
async toSave({ data }) {
|
|
- let config = { logo: data.logo, buyPoint: data.buyPoint, pointPlan: data.pointPlan, share: data.share };
|
|
|
|
|
|
+ let config = { logo: data.logo, buyPoint: data.buyPoint, pointPlan: data.pointPlan, share: data.share, autoCloseOrder: data.autoCloseOrder };
|
|
data.config = config;
|
|
data.config = config;
|
|
const res = await this.update(data);
|
|
const res = await this.update(data);
|
|
this.$checkRes(res, '操作成功', '操作失败');
|
|
this.$checkRes(res, '操作成功', '操作失败');
|