Compare commits

..

No commits in common. "a5fc73266f8a71d7fb3e2d0fa8d9cdb065d629c9" and "63d3625f3e59a0afffcff21d08a6832b645b53ea" have entirely different histories.

2 changed files with 189 additions and 318 deletions

View File

@ -1,8 +1,7 @@
<template>
<div class="app-containers">
<div class="tap-box">
<div class="t-box" :class="{'actve' : tabindex == index }" v-for="(item,index) in tablist" :key="index"
@click="tabindex = index">
<div class="t-box" :class="{'actve' : tabindex == index }" v-for="(item,index) in tablist" :key="index" @click="tabindex = index" >
{{item}}
</div>
</div>
@ -26,7 +25,6 @@ import newCertificate from "@/views/EventMarketing/newCertificate/index.vue"
import giftBlock from "@/views/EventMarketing/giftBlock/index.vue"
import SaveBlock from "@/views/EventMarketing/SaveBlock/index.vue";
import storeOilBlock from "@/views/EventMarketing/storeOilBlock/index.vue";
export default {
name: 'index',
data(){
@ -46,23 +44,23 @@ export default {
newCertificate
},
methods:{
// goDetail(id){
// if(id == 1){
// this.$router.push('/EventMarketing/SaveBlock/index')
// }
// if(id == 2){
// this.$router.push('/EventMarketing/giftBlock/index')
// }
// if(id == 3){
// this.$router.push('/EventMarketing/storeOilBlock/index')
// }
// if(id == 4){
// this.$router.push('/EventMarketing/coupon/index')
// }
// if(id == 5){
// this.$router.push('/EventMarketing/exchange/index')
// }
// }
goDetail(id){
if(id == 1){
this.$router.push('/EventMarketing/SaveBlock/index')
}
if(id == 2){
this.$router.push('/EventMarketing/giftBlock/index')
}
if(id == 3){
this.$router.push('/EventMarketing/storeOilBlock/index')
}
if(id == 4){
this.$router.push('/EventMarketing/coupon/index')
}
if(id == 5){
this.$router.push('/EventMarketing/exchange/index')
}
}
}
}
</script>
@ -72,13 +70,11 @@ export default {
width: 100%;
background: #f6f8f9;
}
.warp-box{
width: 100%;
display: flex;
flex-wrap: wrap;
}
.k-box{
box-shadow: 0px 2px 4px rgba(31,30,47,0.1);
background-color: #fff;
@ -93,7 +89,6 @@ export default {
padding: 20px;
position: relative;
}
.s-size{
position: absolute;
text-align: center;
@ -103,7 +98,6 @@ export default {
width: 315px;
top: 70px;
}
.x-size{
position: absolute;
text-align: center;
@ -113,37 +107,31 @@ export default {
width: 315px;
top: 140px;
}
.p-size{
position: absolute;
left: 82px;
top: 50px;
color: #FFFFFF;
}
.title_{
font-size: 17px;
color: #FFFFFF;
}
.size_{
font-size: 11px;
color: #EDE1CF;
}
.img-box{
height: 200px;
display: flex;
align-items: center;
justify-content: center;
img{
width: 100%;
height: 100%;
}
}
.size-box{
width: 100%;
height: 100px;
@ -151,25 +139,21 @@ export default {
box-sizing: border-box;
padding: 10px;
}
.box-title{
font-size: 18px;
font-weight: 600;
color: #363636;
margin-bottom: 5px;
}
.js{
font-size: 13px;
color: #303e67;
}
.title{
font-size: 20px;
font-weight: bold;
margin-bottom: 15px;
}
#img1{
width: 315px;
height: 215px;
@ -177,7 +161,6 @@ export default {
/*background-size:100% 100%;*/
}
#img2{
width: 315px;
height: 215px;
@ -185,7 +168,6 @@ export default {
/*background-size:100% 100%;*/
}
#img3{
width: 315px;
height: 215px;
@ -193,17 +175,14 @@ export default {
/*background-size:100% 100%;*/
}
#img4{
width: 315px;
height: 215px;
}
#img5{
width: 315px;
height: 215px;
}
.tap-box{
width: 100%;
height: 50px;
@ -213,7 +192,6 @@ export default {
display: flex;
align-items: center;
}
.t-box{
height: 100%;
font-size: 14px;
@ -226,13 +204,11 @@ export default {
cursor: pointer;
//border-bottom: 2px solid #FF770F;
}
.actve{
color: #FF770F !important;
font-weight: bold;
border-bottom: 2px solid #FF770F !important;
}
.ping-box{
box-sizing: border-box;
padding: 15px;

View File

@ -8,7 +8,7 @@
<div style="display: flex;justify-content: space-between;box-sizing: border-box;align-items: center;padding: 1px">
<div class="left-c">简化加油流程提升服务引领成品油零售市场进入便捷新时代</div>
<div style="margin: 10px 0px">
<el-button type="primary" @click="addCrule()" >编辑储值卡规则</el-button>
<el-button type="primary" >编辑储值卡规则</el-button>
<el-button type="primary" @click="addblock()">新增储值卡活动</el-button>
</div>
</div>
@ -508,85 +508,6 @@
/></div>
</el-dialog>
<!-- 规则-->
<el-dialog title="新增储值卡规则" :visible.sync="Crule">
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm">
<el-form-item label="名称" prop="name">
<el-input v-model="ruleForm.name"></el-input>
</el-form-item>
<el-form-item label="权益说明" prop="desc">
<el-input type="textarea" v-model="ruleForm.desc"></el-input>
</el-form-item>
<el-form-item label="规则说明" prop="desc">
<el-input type="textarea" v-model="ruleForm.desc"></el-input>
</el-form-item>
<el-form-item label="适用油品油号" prop="desc">
<div class="d-s" style="cursor: pointer">
<div class="d-s">
<img src="../../../assets/images/wx.png" style="width: 20px;height: 20px;">
<img src="../../../assets/images/xz.png" style="width: 20px;height: 20px;">
<div>不限</div>
</div>
<div class="d-s">
<img src="../../../assets/images/wx.png" style="width: 20px;height: 20px;">
<img src="../../../assets/images/xz.png" style="width: 20px;height: 20px;">
<div>自定义</div>
<el-select v-model="ruleForm.region" placeholder="请选择油品油号(可多选)" style="margin-left: 10px">
<el-option label="区域一" value="shanghai"></el-option>
<el-option label="区域二" value="beijing"></el-option>
</el-select>
</div>
</div>
</el-form-item>
<el-form-item label="适用商品" prop="desc">
<div class="d-s" style="cursor: pointer">
<div class="d-s">
<img src="../../../assets/images/wx.png" style="width: 20px;height: 20px;">
<img src="../../../assets/images/xz.png" style="width: 20px;height: 20px;">
<div>不限</div>
</div>
<div class="d-s">
<img src="../../../assets/images/wx.png" style="width: 20px;height: 20px;">
<img src="../../../assets/images/xz.png" style="width: 20px;height: 20px;">
<div>自定义</div>
<el-select v-model="ruleForm.region" placeholder="请选择商品名称(可多选)" style="margin-left: 10px">
<el-option label="区域一" value="shanghai"></el-option>
<el-option label="区域二" value="beijing"></el-option>
</el-select>
</div>
</div>
</el-form-item>
<el-form-item label="有效期" prop="desc">
<div class="d-s" style="cursor: pointer">
<div class="d-s">
<img src="../../../assets/images/wx.png" style="width: 20px;height: 20px;">
<img src="../../../assets/images/xz.png" style="width: 20px;height: 20px;">
<div>不限</div>
</div>
<div class="d-s">
<img src="../../../assets/images/wx.png" style="width: 20px;height: 20px;">
<img src="../../../assets/images/xz.png" style="width: 20px;height: 20px;">
<div>自定义</div>
<el-date-picker
style="margin-left: 10px"
v-model="value1"
type="daterange"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期">
</el-date-picker>
</div>
</div>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="submitForms('ruleForm')">保存</el-button>
<el-button @click="resetForm('ruleForm')">取消</el-button>
</el-form-item>
</el-form>
</el-dialog>
<!-- 兑换券列表-->
<el-dialog title="兑换券列表" :visible.sync="dialogTableVisibledh">
<div style="display: flex;align-items: center; margin-bottom: 20px ">
@ -662,17 +583,6 @@
name: 'index',
data(){
return{
ruleForm: {
name: '',
region: '',
date1: '',
date2: '',
delivery: false,
type: [],
resource: '',
desc: ''
},
Crule:false,
orderShow:false,
orderData: [{
date: '2016-05-02',
@ -793,28 +703,13 @@
value: '',
tableData: [ ],
vipname:[]
}
},
mounted() {
this.getlist()
},
methods:{
addCrule(){
this.Crule =! this.Crule
},
submitForms(formName) {
this.$refs[formName].validate((valid) => {
if (valid) {
alert('submit!');
} else {
console.log('error submit!!');
return false;
}
});
},
resetForm(formName) {
this.$refs[formName].resetFields();
},
//
getlistExchange(){
this.tableDatadh = []