This commit is contained in:
xvv 2024-09-08 15:42:28 +08:00
parent 08f7bafbbe
commit b6ad0d1113
2 changed files with 318 additions and 189 deletions

View File

@ -1,11 +1,12 @@
<template> <template>
<div class="app-containers"> <div class="app-containers">
<div class="tap-box"> <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"
{{item}} @click="tabindex = index">
{{ item }}
</div> </div>
</div> </div>
<div class="ping-box"> <div class="ping-box">
<div v-show="tabindex == 0"> <div v-show="tabindex == 0">
<SaveBlock></SaveBlock> <SaveBlock></SaveBlock>
<storeOilBlock></storeOilBlock> <storeOilBlock></storeOilBlock>
@ -16,7 +17,7 @@
<div v-show="tabindex == 2"> <div v-show="tabindex == 2">
<newCertificate></newCertificate> <newCertificate></newCertificate>
</div> </div>
</div> </div>
</div> </div>
</template> </template>
@ -25,58 +26,61 @@ import newCertificate from "@/views/EventMarketing/newCertificate/index.vue"
import giftBlock from "@/views/EventMarketing/giftBlock/index.vue" import giftBlock from "@/views/EventMarketing/giftBlock/index.vue"
import SaveBlock from "@/views/EventMarketing/SaveBlock/index.vue"; import SaveBlock from "@/views/EventMarketing/SaveBlock/index.vue";
import storeOilBlock from "@/views/EventMarketing/storeOilBlock/index.vue"; import storeOilBlock from "@/views/EventMarketing/storeOilBlock/index.vue";
export default {
export default {
name: 'index', name: 'index',
data(){ data() {
return{ return {
tabindex:0, tabindex: 0,
tablist:[ tablist: [
"电子卡", "电子卡",
"礼品卡", "礼品卡",
"优惠券" "优惠券"
] ]
} }
}, },
components:{ components: {
SaveBlock, SaveBlock,
storeOilBlock, storeOilBlock,
giftBlock, giftBlock,
newCertificate newCertificate
}, },
methods:{ methods: {
goDetail(id){ // goDetail(id){
if(id == 1){ // if(id == 1){
this.$router.push('/EventMarketing/SaveBlock/index') // this.$router.push('/EventMarketing/SaveBlock/index')
} // }
if(id == 2){ // if(id == 2){
this.$router.push('/EventMarketing/giftBlock/index') // this.$router.push('/EventMarketing/giftBlock/index')
} // }
if(id == 3){ // if(id == 3){
this.$router.push('/EventMarketing/storeOilBlock/index') // this.$router.push('/EventMarketing/storeOilBlock/index')
} // }
if(id == 4){ // if(id == 4){
this.$router.push('/EventMarketing/coupon/index') // this.$router.push('/EventMarketing/coupon/index')
} // }
if(id == 5){ // if(id == 5){
this.$router.push('/EventMarketing/exchange/index') // this.$router.push('/EventMarketing/exchange/index')
} // }
} // }
}
} }
}
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.app-containers{ .app-containers {
width: 100%; width: 100%;
background: #f6f8f9; background: #f6f8f9;
} }
.warp-box{
.warp-box {
width: 100%; width: 100%;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
} }
.k-box{
box-shadow: 0px 2px 4px rgba(31,30,47,0.1); .k-box {
box-shadow: 0px 2px 4px rgba(31, 30, 47, 0.1);
background-color: #fff; background-color: #fff;
border-radius: 6px; border-radius: 6px;
width: 355px; width: 355px;
@ -88,8 +92,9 @@ import storeOilBlock from "@/views/EventMarketing/storeOilBlock/index.vue";
box-sizing: border-box; box-sizing: border-box;
padding: 20px; padding: 20px;
position: relative; position: relative;
} }
.s-size{
.s-size {
position: absolute; position: absolute;
text-align: center; text-align: center;
font-weight: 600; font-weight: 600;
@ -97,8 +102,9 @@ import storeOilBlock from "@/views/EventMarketing/storeOilBlock/index.vue";
color: #333333; color: #333333;
width: 315px; width: 315px;
top: 70px; top: 70px;
} }
.x-size{
.x-size {
position: absolute; position: absolute;
text-align: center; text-align: center;
@ -106,84 +112,99 @@ import storeOilBlock from "@/views/EventMarketing/storeOilBlock/index.vue";
color: #b8b8b8; color: #b8b8b8;
width: 315px; width: 315px;
top: 140px; top: 140px;
} }
.p-size{
.p-size {
position: absolute; position: absolute;
left: 82px; left: 82px;
top: 50px; top: 50px;
color: #FFFFFF; color: #FFFFFF;
} }
.title_{
.title_ {
font-size: 17px; font-size: 17px;
color: #FFFFFF; color: #FFFFFF;
} }
.size_{
.size_ {
font-size: 11px; font-size: 11px;
color: #EDE1CF; color: #EDE1CF;
} }
.img-box{
.img-box {
height: 200px; height: 200px;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
img{
img {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
} }
.size-box{
.size-box {
width: 100%; width: 100%;
height: 100px; height: 100px;
background: white; background: white;
box-sizing: border-box; box-sizing: border-box;
padding: 10px; padding: 10px;
} }
.box-title{
.box-title {
font-size: 18px; font-size: 18px;
font-weight: 600; font-weight: 600;
color: #363636; color: #363636;
margin-bottom: 5px; margin-bottom: 5px;
} }
.js{
.js {
font-size: 13px; font-size: 13px;
color: #303e67; color: #303e67;
} }
.title{
.title {
font-size: 20px; font-size: 20px;
font-weight: bold; font-weight: bold;
margin-bottom: 15px; margin-bottom: 15px;
} }
#img1{
#img1 {
width: 315px; width: 315px;
height: 215px; height: 215px;
/*background: url("https://club.liantuobank.com/assets/images/market/32.png") center no-repeat;*/ /*background: url("https://club.liantuobank.com/assets/images/market/32.png") center no-repeat;*/
/*background-size:100% 100%;*/ /*background-size:100% 100%;*/
} }
#img2{
#img2 {
width: 315px; width: 315px;
height: 215px; height: 215px;
/*background: url("https://club.liantuobank.com/assets/images/market/12.png") center no-repeat;*/ /*background: url("https://club.liantuobank.com/assets/images/market/12.png") center no-repeat;*/
/*background-size:100% 100%;*/ /*background-size:100% 100%;*/
} }
#img3{
#img3 {
width: 315px; width: 315px;
height: 215px; height: 215px;
/*background: url("https://club.liantuobank.com/assets/images/market/11.png") center no-repeat;*/ /*background: url("https://club.liantuobank.com/assets/images/market/11.png") center no-repeat;*/
/*background-size:100% 100%;*/ /*background-size:100% 100%;*/
} }
#img4{
#img4 {
width: 315px; width: 315px;
height: 215px; height: 215px;
} }
#img5{
#img5 {
width: 315px; width: 315px;
height: 215px; height: 215px;
} }
.tap-box{
.tap-box {
width: 100%; width: 100%;
height: 50px; height: 50px;
background: #fff; background: #fff;
@ -191,8 +212,9 @@ import storeOilBlock from "@/views/EventMarketing/storeOilBlock/index.vue";
display: flex; display: flex;
align-items: center; align-items: center;
} }
.t-box{
.t-box {
height: 100%; height: 100%;
font-size: 14px; font-size: 14px;
color: #999999; color: #999999;
@ -203,13 +225,15 @@ import storeOilBlock from "@/views/EventMarketing/storeOilBlock/index.vue";
justify-content: center; justify-content: center;
cursor: pointer; cursor: pointer;
//border-bottom: 2px solid #FF770F; //border-bottom: 2px solid #FF770F;
} }
.actve{
.actve {
color: #FF770F !important; color: #FF770F !important;
font-weight: bold; font-weight: bold;
border-bottom: 2px solid #FF770F !important; border-bottom: 2px solid #FF770F !important;
} }
.ping-box{
.ping-box {
box-sizing: border-box; box-sizing: border-box;
padding: 15px; 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 style="display: flex;justify-content: space-between;box-sizing: border-box;align-items: center;padding: 1px">
<div class="left-c">简化加油流程提升服务引领成品油零售市场进入便捷新时代</div> <div class="left-c">简化加油流程提升服务引领成品油零售市场进入便捷新时代</div>
<div style="margin: 10px 0px"> <div style="margin: 10px 0px">
<el-button type="primary" >编辑储值卡规则</el-button> <el-button type="primary" @click="addCrule()" >编辑储值卡规则</el-button>
<el-button type="primary" @click="addblock()">新增储值卡活动</el-button> <el-button type="primary" @click="addblock()">新增储值卡活动</el-button>
</div> </div>
</div> </div>
@ -508,6 +508,85 @@
/></div> /></div>
</el-dialog> </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"> <el-dialog title="兑换券列表" :visible.sync="dialogTableVisibledh">
<div style="display: flex;align-items: center; margin-bottom: 20px "> <div style="display: flex;align-items: center; margin-bottom: 20px ">
@ -583,6 +662,17 @@
name: 'index', name: 'index',
data(){ data(){
return{ return{
ruleForm: {
name: '',
region: '',
date1: '',
date2: '',
delivery: false,
type: [],
resource: '',
desc: ''
},
Crule:false,
orderShow:false, orderShow:false,
orderData: [{ orderData: [{
date: '2016-05-02', date: '2016-05-02',
@ -703,13 +793,28 @@
value: '', value: '',
tableData: [ ], tableData: [ ],
vipname:[] vipname:[]
} }
}, },
mounted() { mounted() {
this.getlist() this.getlist()
}, },
methods:{ 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(){ getlistExchange(){
this.tableDatadh = [] this.tableDatadh = []