配置管理
This commit is contained in:
parent
6f7784b1f6
commit
a306c1a55c
@ -745,10 +745,12 @@
|
||||
</el-form-item>
|
||||
<el-form-item label="可使用支付方式" prop="type">
|
||||
<el-checkbox-group v-model="ruleForm.type">
|
||||
<el-checkbox label="美食/餐厅线上活动" name="type"></el-checkbox>
|
||||
<el-checkbox label="地推活动" name="type"></el-checkbox>
|
||||
<el-checkbox label="线下主题活动" name="type"></el-checkbox>
|
||||
<el-checkbox label="单纯品牌曝光" name="type"></el-checkbox>
|
||||
<el-checkbox
|
||||
v-for="dict in dict.type.payment_type"
|
||||
v-if="dict.value!='APPLET_CODE'"
|
||||
:key="dict.value"
|
||||
:label="dict.label"
|
||||
:value="dict.value"></el-checkbox>
|
||||
</el-checkbox-group>
|
||||
</el-form-item>
|
||||
<el-form-item label="每人每天参与上限" prop="desc">
|
||||
@ -775,9 +777,9 @@
|
||||
<el-form-item label="活动详情" prop="name">
|
||||
<el-input type="textarea" v-model="ruleForm.name" placeholder="请输入活动详情"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="活动性质" prop="type">
|
||||
<el-form-item label="活动奖品" prop="type">
|
||||
<el-checkbox-group v-model="ruleForm.type">
|
||||
<div style="display: flex;font-size: 14px">
|
||||
<div style="display: flex;font-size: 14px;margin: 15px 0">
|
||||
<el-checkbox value="0" name="type"><!--积分--></el-checkbox>
|
||||
<div style="margin-left: 10px">按</div>
|
||||
<el-select v-model="ruleForm.type" style="margin: 0 10px" placeholder="请选择">
|
||||
@ -791,28 +793,84 @@
|
||||
@click="addPoints()">
|
||||
</div>
|
||||
|
||||
<div v-for="(item,index) in pointList" :key="index" style="font-size: 14px">
|
||||
<div v-for="(item,index) in pointList" :key="index" style="font-size: 14px;margin: 15px 0">
|
||||
<span>消费满</span>
|
||||
<el-input placeholder="请输入消费金额" style="width: 30%" v-model="item.consumeAmount">
|
||||
<el-input placeholder="请输入消费金额" style="width: 30%;margin: 0 10px" v-model="item.consumeAmount">
|
||||
<template slot="append">元</template>
|
||||
</el-input>
|
||||
<span>送</span>
|
||||
<el-input placeholder="请输入赠送积分" style="width: 30%" v-model="item.givePoints">
|
||||
<el-input placeholder="请输入赠送积分" style="width: 30%;margin: 0 10px" v-model="item.givePoints">
|
||||
<template slot="append">积分</template>
|
||||
</el-input>
|
||||
<img src="@/assets/images/ljt.png" style="width: 25px;height: 25px;"
|
||||
@click="deletePoints(index)">
|
||||
</div>
|
||||
|
||||
<el-checkbox label="成长值" name="type"></el-checkbox>
|
||||
<el-checkbox label="优惠券" name="type"></el-checkbox>
|
||||
<div style="display: flex;font-size: 14px;margin: 15px 0">
|
||||
<el-checkbox value="3" name="type"><!--成长值--></el-checkbox>
|
||||
<div style="margin-left: 10px">按</div>
|
||||
<el-select v-model="ruleForm.type" style="margin: 0 10px" placeholder="请选择">
|
||||
<el-option label="订单金额" value="0"></el-option>
|
||||
<el-option label="实收金额" value="1"></el-option>
|
||||
<el-option label="加油升数" value="2"></el-option>
|
||||
</el-select>
|
||||
<div>赠送成长值</div>
|
||||
<img src="@/assets/images/tjb.png"
|
||||
style="width: 20px;height: 20px;cursor: pointer;margin-top: 7px;margin-left: 10px"
|
||||
@click="addGrowthValues()">
|
||||
</div>
|
||||
|
||||
<div v-for="(item,index) in growthValueList" :key="index" style="font-size: 14px;margin: 15px 0">
|
||||
<span>消费满</span>
|
||||
<el-input placeholder="请输入消费金额" style="width: 30%;margin: 0 10px" v-model="item.consumeAmount">
|
||||
<template slot="append">元</template>
|
||||
</el-input>
|
||||
<span>送</span>
|
||||
<el-input placeholder="请输入赠送成长值" style="width: 30%;margin: 0 10px" v-model="item.givePoints">
|
||||
<template slot="append">成长值</template>
|
||||
</el-input>
|
||||
<img src="@/assets/images/ljt.png" style="width: 25px;height: 25px;"
|
||||
@click="deleteGrowthValues(index)">
|
||||
</div>
|
||||
|
||||
<div style="display: flex;font-size: 14px;margin: 15px 0">
|
||||
<el-checkbox value="1" name="type"><!--优惠券--></el-checkbox>
|
||||
<div style="margin-left: 10px">按</div>
|
||||
<el-select v-model="ruleForm.type" style="margin: 0 10px" placeholder="请选择">
|
||||
<el-option label="订单金额" value="0"></el-option>
|
||||
<el-option label="实收金额" value="1"></el-option>
|
||||
<el-option label="加油升数" value="2"></el-option>
|
||||
</el-select>
|
||||
<div>赠送优惠券</div>
|
||||
<img src="@/assets/images/tjb.png"
|
||||
style="width: 20px;height: 20px;cursor: pointer;margin-top: 7px;margin-left: 10px"
|
||||
@click="addCoupons()">
|
||||
</div>
|
||||
|
||||
<div v-for="(item,index) in couponList" :key="index" style="font-size: 14px;margin: 15px 0">
|
||||
<span>消费满</span>
|
||||
<el-input placeholder="请输入消费金额" style="width: 30%;margin: 0 10px" v-model="item.consumeAmount">
|
||||
<template slot="append">元</template>
|
||||
</el-input>
|
||||
<span>送</span>
|
||||
<el-select v-model="ruleForm.type" style="margin-left: 10px;width: 15%" placeholder="请选择">
|
||||
<el-option label="优惠券" value="0"></el-option>
|
||||
<el-option label="实收金额" value="1"></el-option>
|
||||
<el-option label="加油升数" value="2"></el-option>
|
||||
</el-select>
|
||||
<el-input placeholder="请输入赠送积分" style="width: 15%;margin: 0 10px" v-model="item.givePoints">
|
||||
<template slot="append">张</template>
|
||||
</el-input>
|
||||
<img src="@/assets/images/ljt.png" style="width: 25px;height: 25px;"
|
||||
@click="deleteCoupons(index)">
|
||||
</div>
|
||||
</el-checkbox-group>
|
||||
</el-form-item>
|
||||
</div>
|
||||
</div>
|
||||
<el-form-item style="text-align: center">
|
||||
<el-button type="primary" @click="submitRuleForm('ruleForm')">立即创建</el-button>
|
||||
<el-button @click="resetForm('ruleForm')">重置</el-button>
|
||||
<el-button type="primary" @click="submitRuleForm('ruleForm')">保存</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</div>
|
||||
@ -840,6 +898,7 @@ import {getOilNameList} from "@/api/order/oilnumgun";
|
||||
|
||||
export default {
|
||||
name: "ActiveConsumption",
|
||||
dicts: ['payment_type'],
|
||||
data() {
|
||||
return {
|
||||
opendetails: false,
|
||||
|
@ -24,7 +24,7 @@
|
||||
<div class="nr-bottom">
|
||||
<div class="left-bt">进行中1个</div>
|
||||
|
|
||||
<div class="right-bt">创建活动</div>
|
||||
<div class="right-bt" @click="gobox(4)">创建活动</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -53,7 +53,7 @@
|
||||
<div class="nr-bottom">
|
||||
<div class="left-bt">进行中1个</div>
|
||||
|
|
||||
<div class="right-bt">创建活动</div>
|
||||
<div class="right-bt" @click="gobox(1)">创建活动</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="nr-box">
|
||||
@ -117,8 +117,8 @@
|
||||
<div class="nr-top">
|
||||
<img src="./imgs/营销@2x.png" >
|
||||
<div>
|
||||
<div class="size_title">开卡有礼</div>
|
||||
<div class="size_text">激活会员卡,享受优惠</div>
|
||||
<div class="size_title">弹窗营销</div>
|
||||
<div class="size_text">支付前定向投放优惠</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="nr-bottom">
|
||||
|
Loading…
Reference in New Issue
Block a user