oil-station/fuintAdmin/src/views/EventMarketing/center/index.vue

843 lines
25 KiB
Vue
Raw Normal View History

2024-08-16 18:26:19 +08:00
<template>
2024-09-11 17:35:10 +08:00
<!-- 活动中心-->
2024-08-28 14:49:35 +08:00
<div class="app-containers">
<div class="tap-box">
2024-09-11 17:35:10 +08:00
<div class="t-box" :class="{'actve' : tabindex == index }" v-for="(item,index) in tablist" :key="index"
@click="getindex(index)">
{{ item }}
2024-08-16 18:26:19 +08:00
</div>
2024-08-28 14:49:35 +08:00
</div>
2024-09-11 17:35:10 +08:00
<div class="rp-box">
<!-- 营销活动-->
2024-11-20 18:00:45 +08:00
<div class="bai-box" style="height:84vh;overflow: auto" v-show="tabindex == 0">
2024-09-11 17:35:10 +08:00
<div class="d-s">
<div class="gang"></div>
<div style="font-weight: bold">会员营销</div>
</div>
<div class="wp-box">
<div class="nr-box">
<div class="nr-top">
<img src="./imgs/礼物@2x.png">
<div>
<div class="size_title">开卡有礼</div>
<div class="size_text">激活会员卡享受优惠</div>
2024-08-28 14:49:35 +08:00
</div>
</div>
2024-09-11 17:35:10 +08:00
<div class="nr-bottom">
<div class="left-bt" @click="indexType('6')">进行中1个</div>
|
2024-09-12 15:44:25 +08:00
<div class="right-bt" @click="routerPush(1,'add')">创建活动</div>
2024-09-11 17:35:10 +08:00
</div>
</div>
2024-08-28 14:49:35 +08:00
2024-10-28 09:35:42 +08:00
2024-09-11 17:35:10 +08:00
<div class="nr-box">
<div class="nr-top">
<img src="./imgs/理财@2x.png">
<div>
<div class="size_title">充值有礼</div>
<div class="size_text">充值后赠送金额积分经验 优惠券等</div>
2024-08-28 14:49:35 +08:00
</div>
</div>
2024-09-11 17:35:10 +08:00
<div class="nr-bottom">
<div class="left-bt" @click="goOtherPage(2)">进行中1个</div>
|
<div class="right-bt" @click="goOtherPage(2,'add')">创建活动</div>
2024-08-28 14:49:35 +08:00
</div>
2024-09-11 17:35:10 +08:00
</div>
<div class="nr-box">
<div class="nr-top">
<img src="./imgs/消费券@2x.png">
<div>
<div class="size_title">消费有礼</div>
<div class="size_text">支付后赠送积分成长值优惠券</div>
2024-08-28 14:49:35 +08:00
</div>
</div>
2024-09-11 17:35:10 +08:00
<div class="nr-bottom">
<div class="left-bt" @click="indexType('5')">进行中1个</div>
|
2024-09-12 15:44:25 +08:00
<div class="right-bt" @click="routerPush(3,'add')">创建活动</div>
2024-09-11 17:35:10 +08:00
</div>
</div>
<div class="nr-box">
<div class="nr-top">
<img src="./imgs/邀请@2x.png">
<div>
<div class="size_title">邀请有礼</div>
<div class="size_text">邀请好友注册会员获得奖励</div>
2024-08-28 14:49:35 +08:00
</div>
2024-09-11 17:35:10 +08:00
</div>
<div class="nr-bottom">
2024-09-14 11:46:31 +08:00
<div class="left-bt" @click="indexType('7')">进行中1个</div>
2024-09-11 17:35:10 +08:00
|
2024-09-12 15:44:25 +08:00
<div class="right-bt" @click="routerPush(4,'add')">创建活动</div>
2024-09-11 17:35:10 +08:00
</div>
</div>
<div class="nr-box">
<div class="nr-top">
<img src="./imgs/生日专区@2x.png">
<div>
<div class="size_title" @click="indexType('4')">生日有礼</div>
<div class="size_text">会员生日关怀激活用户复购</div>
2024-08-28 14:49:35 +08:00
</div>
</div>
2024-09-11 17:35:10 +08:00
<div class="nr-bottom">
<div class="left-bt" @click="indexType('4')">进行中1个</div>
|
2024-09-12 15:44:25 +08:00
<div class="right-bt" @click="routerPush(5,'add')">创建活动</div>
2024-09-11 17:35:10 +08:00
</div>
</div>
2024-08-28 14:49:35 +08:00
2024-09-11 17:35:10 +08:00
<div class="nr-box">
<div class="nr-top">
<img src="./imgs/充值@2x.png">
<div>
<div class="size_title">推荐会员充值有礼</div>
<div class="size_text">会员充值后推荐人获得积分 成长值优惠券</div>
2024-08-28 14:49:35 +08:00
</div>
</div>
2024-09-11 17:35:10 +08:00
<div class="nr-bottom">
<div class="left-bt" @click="indexType('8')">进行中1个</div>
|
2024-09-12 15:44:25 +08:00
<div class="right-bt" @click="routerPush(6,'add')">创建活动</div>
2024-08-28 14:49:35 +08:00
</div>
2024-09-11 17:35:10 +08:00
</div>
<div class="nr-box">
<div class="nr-top">
<img src="./imgs/消费卡@2x.png" style="width: 59px;height: 42px">
<div>
<div class="size_title">推荐会员消费有礼</div>
<div class="size_text">会员消费后推荐人获得积分 成长值优惠券</div>
2024-08-28 14:49:35 +08:00
</div>
</div>
2024-09-11 17:35:10 +08:00
<div class="nr-bottom">
<div class="left-bt" @click="indexType('9')">进行中1个</div>
|
2024-09-12 15:44:25 +08:00
<div class="right-bt" @click="routerPush(7,'add')">创建活动</div>
2024-09-11 17:35:10 +08:00
</div>
2024-08-28 14:49:35 +08:00
</div>
2024-09-11 17:35:10 +08:00
<div class="nr-box">
<div class="nr-top">
<img src="./imgs/营销@2x.png">
<div>
<div class="size_title">弹窗营销</div>
<div class="size_text">支付前定向投放优惠</div>
2024-08-28 14:49:35 +08:00
</div>
</div>
2024-09-11 17:35:10 +08:00
<div class="nr-bottom">
<div class="left-bt" @click="indexType('10')">进行中1个</div>
|
2024-09-12 15:44:25 +08:00
<div class="right-bt" @click="routerPush(8,'add')">创建活动</div>
2024-08-28 14:49:35 +08:00
</div>
2024-09-11 17:35:10 +08:00
</div>
2024-08-28 14:49:35 +08:00
2024-09-11 17:35:10 +08:00
</div>
<div class="d-s" style="margin-top: 15px">
<div class="gang"></div>
<div style="font-weight: bold">价格营销</div>
</div>
<div class="wp-box">
<div class="nr-box">
<div class="nr-top">
<img src="./imgs/券@2x.png">
<div>
<div class="size_title">分时优惠</div>
<div class="size_text">不同会员不同时间指定油品享受 限时优惠</div>
2024-08-28 14:49:35 +08:00
</div>
2024-09-11 17:35:10 +08:00
</div>
<div class="nr-bottom">
2024-09-12 15:44:25 +08:00
<div class="left-bt" @click="routerPush(9,'add')">进行中1个</div>
2024-09-11 17:35:10 +08:00
|
2024-09-12 15:44:25 +08:00
<div class="right-bt" @click="routerPush(9,'add')">创建活动</div>
2024-09-11 17:35:10 +08:00
</div>
</div>
<div class="nr-box">
<div class="nr-top">
<img src="./imgs/特价申请单@2x.png">
<div>
<div class="size_title">限时特价</div>
<div class="size_text">充值后赠送金额积分成长值 优惠券锁价优惠</div>
2024-08-28 14:49:35 +08:00
</div>
</div>
2024-09-11 17:35:10 +08:00
<div class="nr-bottom">
2024-09-12 15:44:25 +08:00
<div class="left-bt" @click="routerPush(10,'add')">进行中1个</div>
2024-09-11 17:35:10 +08:00
|
2024-09-12 15:44:25 +08:00
<div class="right-bt" @click="routerPush(10,'add')">创建活动</div>
2024-09-11 17:35:10 +08:00
</div>
</div>
<div class="nr-box">
<div class="nr-top">
<img src="./imgs/会员营销@2x.png">
<div>
<div class="size_title">立减营销</div>
<div class="size_text">订单满立减营销活动</div>
2024-08-28 14:49:35 +08:00
</div>
2024-09-11 17:35:10 +08:00
</div>
<div class="nr-bottom">
<div class="left-bt" @click="indexType('3')">进行中1个</div>
|
2024-09-12 15:44:25 +08:00
<div class="right-bt" @click="routerPush(11,'add')">创建活动</div>
2024-09-11 17:35:10 +08:00
</div>
</div>
<div class="nr-box">
<div class="nr-top">
<img src="./imgs/折扣@2x.png">
<div>
<div class="size_title">折扣营销</div>
<div class="size_text">会员折扣营销限时订单折扣 引爆店铺流量</div>
2024-08-28 14:49:35 +08:00
</div>
</div>
2024-09-11 17:35:10 +08:00
<div class="nr-bottom">
<div class="left-bt" @click="goOtherPage(12)">进行中1个</div>
|
<div class="right-bt" @click="goOtherPage(12)">创建活动</div>
</div>
2024-08-28 14:49:35 +08:00
</div>
2024-08-27 16:54:55 +08:00
</div>
2024-09-11 17:35:10 +08:00
</div>
<!-- 当前活动列表-->
<div class="bai-box" v-show="tabindex == 1">
<div class="b-d">
<div class="d-s">
<el-input v-model="queryParams.name" placeholder="请输入活动名称"
style=" width: 260px; margin-right: 15px"></el-input>
<el-select v-model="queryParams.type" placeholder="请选择活动类型"
style=" width: 260px; margin-right: 15px">
<el-option
v-for="item in options"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</div>
<div class="d-s">
<el-button type="primary" icon="el-icon-search" @click="handleQuery">搜索</el-button>
<el-button icon="el-icon-refresh-right" @click="resetQuery">重置</el-button>
</div>
2024-08-29 10:24:29 +08:00
</div>
2024-11-20 18:00:45 +08:00
<div style="height: 68.9vh;overflow: auto">
2024-09-11 18:03:14 +08:00
<el-table
:data="tableData"
border
style="width: 100%">
2024-11-20 14:26:48 +08:00
<el-table-column type="selection" align="center" width="55"></el-table-column>
<el-table-column type="index" label="序号" align="center" width="55"></el-table-column>
<el-table-column prop="typeText" label="活动类型" align="center"></el-table-column>
<el-table-column prop="name" label="活动名称" align="center"></el-table-column>
<el-table-column prop="discountActiveDescribe" label="活动内容" align="center"></el-table-column>
<el-table-column prop="time" label="活动时间" align="center">
2024-09-11 18:03:14 +08:00
<template slot-scope="scope">
<span v-if="scope.row.time==0">不限时间</span>
<span v-else>{{ scope.row.activeStartTime }} ~ {{ scope.row.activeEndTime }}</span>
</template>
</el-table-column>
2024-11-20 14:26:48 +08:00
<el-table-column prop="userGradeName" label="适用会员等级" align="center">
2024-09-11 18:03:14 +08:00
<template slot-scope="scope">
<span>{{ scope.row.userGradeName || "--" }}</span>
</template>
</el-table-column>
2024-11-20 14:26:48 +08:00
<el-table-column prop="discountActiveDescribe" label="活动详情" align="center">
<template slot-scope="scope">
<span>{{ scope.row.discountActiveDescribe || "--" }}</span>
</template>
</el-table-column>
<el-table-column prop="sendNum" label="已领数量" align="center">
2024-10-24 18:01:22 +08:00
<template slot-scope="scope">
<span>{{ scope.row.sendNum || 0 }}</span>
</template>
</el-table-column>
2024-11-20 14:26:48 +08:00
<el-table-column prop="activeStatus" label="状态" align="center">
2024-09-11 18:03:14 +08:00
<template slot-scope="scope">
<el-switch
v-model="scope.row.activeStatus"
active-color="#13ce66"
inactive-color="#ff4949"
active-value="1"
2024-09-14 11:46:31 +08:00
disabled
2024-09-11 18:03:14 +08:00
inactive-value="2">
</el-switch>
</template>
</el-table-column>
2024-11-20 14:26:48 +08:00
<el-table-column prop="createName" label="创建人" align="center"></el-table-column>
<el-table-column prop="createTime" label="创建时间" align="center"></el-table-column>
2024-09-11 18:03:14 +08:00
<el-table-column prop="date" label="操作" align="center">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
2024-09-12 15:44:25 +08:00
@click="routerPush(scope.row.type,'edit',scope.row)"
2024-09-11 18:03:14 +08:00
>修改
</el-button>
<el-button
size="mini"
type="text"
slot="reference"
2024-09-12 15:44:25 +08:00
@click="deleteActive(scope.row)"
2024-09-11 18:03:14 +08:00
>删除
</el-button>
<el-button
size="mini"
type="text"
2024-09-12 15:44:25 +08:00
@click="editStatus(scope.row)"
2024-09-11 18:03:14 +08:00
>停用
</el-button>
</template>
2024-09-11 17:35:10 +08:00
2024-09-11 18:03:14 +08:00
</el-table-column>
</el-table>
</div>
2024-09-11 17:35:10 +08:00
<pagination
v-show="total>0"
:total="total"
:page.sync="queryParams.page"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
</div>
<!-- 历史活动列表-->
<div class="bai-box" v-show="tabindex == 2">
<div class="b-d">
<div class="d-s">
<el-input v-model="queryParams.name" placeholder="请输入活动名称"
style=" width: 260px; margin-right: 15px"></el-input>
<el-select v-model="queryParams.type" placeholder="请选择活动类型"
style=" width: 260px; margin-right: 15px">
<el-option
v-for="item in options"
:key="item.value.toString()"
:label="item.label"
:value="item.value.toString()">
</el-option>
</el-select>
</div>
<div class="d-s">
<el-button type="primary" icon="el-icon-search" @click="handleOldQuery">搜索</el-button>
<el-button icon="el-icon-refresh-right" @click="resetOldQuery">重置</el-button>
2024-09-09 23:24:18 +08:00
</div>
</div>
2024-11-20 18:00:45 +08:00
<div style="height: 68.9vh;overflow: auto">
2024-09-11 18:03:14 +08:00
<el-table
:data="oldTableData"
border
style="width: 100%">
<el-table-column
type="selection"
width="55">
</el-table-column>
2024-11-20 14:26:48 +08:00
<el-table-column type="index" label="序号" width="55" align="center"></el-table-column>
<el-table-column prop="typeText" label="活动类型" align="center"></el-table-column>
<el-table-column prop="name" label="活动名称" align="center"></el-table-column>
<el-table-column prop="discountActiveDescribe" label="活动内容" align="center"></el-table-column>
<el-table-column prop="time" label="活动时间" align="center">
2024-09-11 18:03:14 +08:00
<template slot-scope="scope">
<span v-if="scope.row.time==0">不限时间</span>
<span v-else>{{ scope.row.activeStartTime }} ~ {{ scope.row.activeEndTime }}</span>
</template>
</el-table-column>
2024-11-20 14:26:48 +08:00
<el-table-column prop="userGradeName" label="适用会员等级" align="center">
2024-09-11 18:03:14 +08:00
<template slot-scope="scope">
<span>{{ scope.row.userGradeName || "--" }}</span>
</template>
</el-table-column>
2024-11-20 14:26:48 +08:00
<el-table-column prop="discountActiveDescribe" label="活动详情" align="center">
<template slot-scope="scope">
<span>{{ scope.row.discountActiveDescribe || "--" }}</span>
</template>
</el-table-column>
<el-table-column prop="sendNum" label="已领数量" align="center"></el-table-column>
<el-table-column prop="activeStatus" label="状态" align="center">
2024-09-11 18:03:14 +08:00
<template slot-scope="scope">
<el-switch
v-model="scope.row.activeStatus"
active-color="#13ce66"
inactive-color="#ff4949"
active-value="1"
2024-09-14 11:46:31 +08:00
disabled
2024-09-11 18:03:14 +08:00
inactive-value="2">
</el-switch>
</template>
2024-09-11 17:35:10 +08:00
2024-09-11 18:03:14 +08:00
</el-table-column>
2024-11-20 14:26:48 +08:00
<el-table-column prop="createName" label="创建人" align="center"></el-table-column>
<el-table-column prop="createTime" label="创建时间" align="center"></el-table-column>
2024-09-11 18:03:14 +08:00
<el-table-column prop="date" label="操作" align="center">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
2024-09-12 15:44:25 +08:00
@click="routerPush(scope.row.type,'edit',scope.row)"
2024-09-11 18:03:14 +08:00
>修改
</el-button>
<el-button
size="mini"
type="text"
slot="reference"
2024-09-12 15:44:25 +08:00
@click="deleteActive(scope.row)"
2024-09-11 18:03:14 +08:00
>删除
</el-button>
<el-button
size="mini"
type="text"
2024-09-12 15:44:25 +08:00
@click="editStatus(scope.row)"
>启用
2024-09-11 18:03:14 +08:00
</el-button>
</template>
2024-09-11 17:35:10 +08:00
2024-09-11 18:03:14 +08:00
</el-table-column>
</el-table>
</div>
2024-09-11 17:35:10 +08:00
<pagination
v-show="oldTotal>0"
:total="oldTotal"
:page.sync="queryParams.page"
:limit.sync="queryParams.pageSize"
@pagination="getOldList"
/>
2024-08-27 16:54:55 +08:00
</div>
2024-09-11 17:35:10 +08:00
</div>
2024-08-16 18:26:19 +08:00
</div>
</template>
<script>
import activeDiscount from '../activeDiscount/index'
import activeNewlyweds from '../activeNewlyweds/index'
import activeConsumption from '../activeConsumption/index'
import activeFullminus from '../activeFullminus/index'
2024-09-11 17:35:10 +08:00
import activeRecommend from '../activeRecommend/index'
2024-09-12 15:44:25 +08:00
import {deleteActive, editActiveStatus, pageActive} from "@/api/active/active";
2024-09-11 17:35:10 +08:00
2024-08-16 18:26:19 +08:00
export default {
name: 'Exchange',
data() {
2024-09-11 17:35:10 +08:00
return {
ruleForm: {},
value: 1,
tabindex: 0,
//类型 1:储值卡 2囤油卡 3立减营销 4立减营销 5消费有礼 6开卡有礼 7邀请有礼 8分时优惠 9限时特价 (以数据库注释为主)
2024-10-10 14:14:27 +08:00
options: [
// {
// value: '1',
// label: '储值卡'
// }, {
// value: '2',
// label: '囤油卡'
// },
{
2024-09-09 23:24:18 +08:00
value: '3',
label: '立减营销'
2024-09-11 18:03:14 +08:00
}, {
2024-09-09 23:24:18 +08:00
value: '4',
2024-09-11 17:35:10 +08:00
label: '生日有礼'
2024-08-29 10:24:29 +08:00
}, {
2024-09-09 23:24:18 +08:00
value: '5',
2024-09-11 17:35:10 +08:00
label: '消费有礼'
2024-08-29 10:24:29 +08:00
}, {
2024-09-09 23:24:18 +08:00
value: '6',
label: '开卡有礼'
2024-08-29 10:24:29 +08:00
}, {
2024-09-09 23:24:18 +08:00
value: '7',
label: '邀请有礼'
}, {
value: '8',
2024-09-11 17:35:10 +08:00
label: '推荐会员充值有礼'
2024-09-09 23:24:18 +08:00
}, {
value: '9',
2024-09-11 17:35:10 +08:00
label: '推荐会员消费有礼'
2024-09-11 18:03:14 +08:00
}, {
2024-09-11 17:35:10 +08:00
value: '10',
label: '弹窗营销'
2024-08-29 10:24:29 +08:00
}],
tableData: [{
date: '2016-05-02',
name: '王小虎',
address: '上海市普陀区金沙江路 1518 弄'
}, {
date: '2016-05-04',
name: '王小虎',
address: '上海市普陀区金沙江路 1517 弄'
}, {
date: '2016-05-01',
name: '王小虎',
address: '上海市普陀区金沙江路 1519 弄'
}, {
date: '2016-05-03',
name: '王小虎',
address: '上海市普陀区金沙江路 1516 弄'
}],
2024-09-11 17:35:10 +08:00
oldTableData: [],
tablist: [
2024-08-28 14:49:35 +08:00
"营销活动",
"当前活动列表",
"历史活动列表"
2024-09-09 22:29:15 +08:00
],
2024-09-11 17:35:10 +08:00
queryParams: {
page: 0,
pageSize: 10,
name: '',
type: '',
activeStatus: ""
2024-09-09 22:29:15 +08:00
},
2024-09-11 17:35:10 +08:00
total: 0,
oldTotal: 0
2024-09-09 23:24:18 +08:00
2024-08-16 18:26:19 +08:00
}
},
created() {
2024-09-11 17:35:10 +08:00
if (this.$route.query.id) {
this.indexType(this.$route.query.id)
} else {
this.getList();
}
2024-09-15 20:26:35 +08:00
if (this.$route.query.activeId){
this.tabindex = 1
}
2024-09-11 17:35:10 +08:00
2024-09-09 23:24:18 +08:00
this.getOldList()
2024-08-16 18:26:19 +08:00
},
2024-09-11 17:35:10 +08:00
components: {
activeNewlyweds, activeConsumption, activeDiscount, activeFullminus, activeRecommend
2024-08-16 18:26:19 +08:00
},
methods: {
2024-09-11 18:03:14 +08:00
getindex(index) {
2024-09-11 17:35:10 +08:00
this.tabindex = index
2024-09-11 18:03:14 +08:00
if (index == 1) {
2024-09-11 17:35:10 +08:00
this.queryParams.type = ""
this.handleQuery()
2024-09-12 15:44:25 +08:00
} else if (index == 2) {
2024-09-11 17:35:10 +08:00
this.queryParams.type = ""
2024-09-12 15:44:25 +08:00
this.handleOldQuery()
2024-09-11 17:35:10 +08:00
}
},
indexType(id) {
2024-09-10 14:58:47 +08:00
this.queryParams.type = id
this.tabindex = 1
this.handleQuery()
},
2024-09-09 22:29:15 +08:00
/**
* 查询列表
*/
getList() {
2024-09-09 23:24:18 +08:00
this.queryParams.activeStatus = '1'
2024-09-11 17:35:10 +08:00
pageActive(this.queryParams).then(res => {
2024-09-09 22:29:15 +08:00
this.tableData = res.data.records
this.total = res.data.total
})
},
2024-09-09 23:24:18 +08:00
handleQuery() {
this.queryParams.page = 1;
this.getList();
},
resetQuery() {
this.queryParams.page = 1
this.queryParams.name = null
this.queryParams.type = null
this.getList()
},
/**
* 查询历史列表
*/
getOldList() {
this.queryParams.activeStatus = '2'
2024-09-11 17:35:10 +08:00
pageActive(this.queryParams).then(res => {
2024-09-09 23:24:18 +08:00
this.oldTableData = res.data.records
this.oldTotal = res.data.total
})
},
handleOldQuery() {
this.queryParams.activeStatus = '2'
this.queryParams.page = 1;
this.getOldList();
},
resetOldQuery() {
this.queryParams.page = 1
this.queryParams.activeStatus = '2'
this.queryParams.name = null
this.queryParams.type = null
this.getOldList()
},
2024-09-12 15:44:25 +08:00
// 删除活动信息
deleteActive(data) {
this.$modal.confirm('是否删除本条数据,删除后无法恢复!').then(function () {
return deleteActive(data.id);
}).then(() => {
this.handleQuery()
this.handleOldQuery()
this.$modal.msgSuccess("删除成功");
}).catch(() => {
});
},
// 修改活动状态
editStatus(data) {
let str = data.activeStatus=='1' ? "停用" : "启用"
this.$modal.confirm('是否'+str+'本条数据!').then(function () {
return editActiveStatus(data.id);
}).then(() => {
this.handleQuery()
this.handleOldQuery()
this.$modal.msgSuccess(str+"成功");
}).catch(() => {
});
},
routerPush(id,type,data) {
let activeId = ""
if (data){
if (data.type=='3') id = 11
if (data.type=='4') id = 5
if (data.type=='5') id = 3
if (data.type=='6') id = 1
if (data.type=='7') id = 4
if (data.type=='8') id = 6
if (data.type=='9') id = 7
if (data.type=='10') id = 8
activeId = data.activeId
}
2024-08-29 15:56:51 +08:00
this.$router.push({
path: '/EventMarketing/openCardGift/index',
2024-09-10 14:58:47 +08:00
query: {
id: id,
2024-09-14 11:46:31 +08:00
activeId:activeId,
type:type
2024-09-10 14:58:47 +08:00
}
2024-08-29 15:56:51 +08:00
});
},
2024-08-31 13:51:23 +08:00
// 跳转其他页面
2024-09-11 17:35:10 +08:00
goOtherPage(id, type) {
if (id == 12) {
2024-08-31 13:51:23 +08:00
this.$router.push({
path: '/userGrade/index',
2024-09-11 17:35:10 +08:00
query: {id: id}
2024-08-31 13:51:23 +08:00
});
}
2024-09-11 17:35:10 +08:00
if (id == 2) {
2024-09-02 08:55:30 +08:00
this.$router.push({
path: '/EventMarketing/CardHolder/index',
2024-09-11 17:35:10 +08:00
query: {id: id, type: type}
2024-09-02 08:55:30 +08:00
});
}
2024-08-31 13:51:23 +08:00
},
2024-09-11 17:35:10 +08:00
gobox(id) {
if (id == 1) {
2024-08-16 18:26:19 +08:00
this.$router.push('/EventMarketing/activeConsumption/index')
}
2024-09-11 17:35:10 +08:00
if (id == 2) {
2024-08-16 18:26:19 +08:00
this.$router.push('/EventMarketing/activeDiscount/index')
}
2024-09-11 17:35:10 +08:00
if (id == 3) {
2024-08-16 18:26:19 +08:00
this.$router.push('/EventMarketing/activeFullminus/index')
}
2024-09-11 17:35:10 +08:00
if (id == 4) {
2024-08-16 18:26:19 +08:00
this.$router.push('/EventMarketing/activeNewlyweds/index')
}
2024-09-11 17:35:10 +08:00
if (id == 5) {
2024-08-16 18:26:19 +08:00
this.$router.push('/EventMarketing/activeRecommend/index')
}
2024-09-11 17:35:10 +08:00
if (id == 6) {
2024-08-16 18:26:19 +08:00
this.$router.push('/EventMarketing/yijiancoupon/index')
}
},
}
}
</script>
<style scoped lang="scss">
2024-09-11 17:35:10 +08:00
.app-containers {
2024-08-16 18:26:19 +08:00
width: 100%;
2024-08-28 14:49:35 +08:00
background: #f9f9f9;
2024-08-16 18:26:19 +08:00
}
2024-09-11 17:35:10 +08:00
.qr-code {
2024-08-16 18:26:19 +08:00
margin: 0px auto;
}
2024-09-11 17:35:10 +08:00
.rp-box {
2024-08-28 14:49:35 +08:00
width: 100%;
box-sizing: border-box;
padding: 15px;
}
2024-09-11 17:35:10 +08:00
.wrap-box {
2024-08-16 18:26:19 +08:00
text-align: center;
width: 375px;
height: 316px;
background: #FFFFFF;
border-radius: 10px 10px 10px 10px;
overflow: hidden;
box-shadow: 0px 2px 4px rgb(31 30 47 / 10%);
margin-right: 25px;
cursor: pointer;
margin-bottom: 25px;
box-sizing: border-box;
padding: 15px;
position: relative;
}
2024-09-11 17:35:10 +08:00
.p-r-title {
2024-08-16 18:26:19 +08:00
position: absolute;
left: 40px;
top: 20px;
color: #fff;
width: 200px;
text-align: left;
}
2024-09-11 17:35:10 +08:00
.fji {
2024-08-16 18:26:19 +08:00
display: flex;
flex-wrap: wrap;
}
2024-09-11 17:35:10 +08:00
.bottom-box {
2024-08-16 18:26:19 +08:00
box-sizing: border-box;
padding: 0px 15px;
font-size: 18px;
font-weight: bold;
padding-bottom: 15px;
}
2024-09-11 17:35:10 +08:00
.rp-box {
2024-08-28 14:49:35 +08:00
display: flex;
flex-wrap: wrap;
}
2024-09-11 17:35:10 +08:00
.d-s {
2024-08-28 14:49:35 +08:00
display: flex;
align-items: center;
}
2024-09-11 17:35:10 +08:00
.tap-box {
2024-11-01 12:09:24 +08:00
margin-top: 2px;
2024-08-28 14:49:35 +08:00
width: 100%;
height: 50px;
background: #fff;
box-sizing: border-box;
display: flex;
align-items: center;
}
2024-09-11 17:35:10 +08:00
.t-box {
2024-08-28 14:49:35 +08:00
height: 100%;
font-size: 14px;
color: #999999;
border-bottom: 2px solid transparent;
margin: 0px 30px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
//border-bottom: 2px solid #FF770F;
}
2024-09-11 17:35:10 +08:00
.actve {
2024-08-28 14:49:35 +08:00
color: #FF770F !important;
font-weight: bold;
border-bottom: 2px solid #FF770F !important;
}
2024-09-11 17:35:10 +08:00
.bai-box {
2024-08-28 14:49:35 +08:00
width: 100%;
2024-11-20 18:00:45 +08:00
height: 100%;
2024-08-28 14:49:35 +08:00
background: #fff;
border-radius: 10px;
box-sizing: border-box;
2024-09-12 17:54:56 +08:00
padding: 20px;
2024-08-28 14:49:35 +08:00
}
2024-09-11 17:35:10 +08:00
.gang {
2024-08-28 14:49:35 +08:00
width: 2px;
height: 14px;
background: #FF9655;
margin-right: 5px;
}
2024-09-11 17:35:10 +08:00
.wp-box {
2024-08-28 14:49:35 +08:00
width: 100%;
display: flex;
flex-wrap: wrap;
}
2024-09-11 17:35:10 +08:00
.nr-box {
2024-08-28 14:49:35 +08:00
border-radius: 10px;
border: 1px solid #EEEEEE;
margin-top: 15px;
margin-right: 15px;
2024-09-14 11:46:31 +08:00
width: 19%;
margin-right: 1%;
2024-08-28 14:49:35 +08:00
}
2024-09-11 17:35:10 +08:00
.nr-top {
2024-08-28 14:49:35 +08:00
box-sizing: border-box;
padding: 15px;
display: flex;
align-items: center;
2024-09-11 17:35:10 +08:00
img {
2024-08-28 14:49:35 +08:00
width: 55px;
2024-09-11 17:35:10 +08:00
height: 55px;
2024-08-28 14:49:35 +08:00
margin-right: 10px;
}
}
2024-09-11 17:35:10 +08:00
.size_title {
2024-08-28 14:49:35 +08:00
font-weight: bold;
font-size: 16px;
color: #333333;
margin-bottom: 10px;
}
2024-09-11 17:35:10 +08:00
.size_text {
2024-08-28 14:49:35 +08:00
font-size: 12px;
color: #333333;
2024-08-29 15:56:51 +08:00
height: 34px;
2024-08-28 14:49:35 +08:00
}
2024-09-11 17:35:10 +08:00
.nr-bottom {
2024-08-28 14:49:35 +08:00
border-top: 1px solid #EEEEEE;
box-sizing: border-box;
2024-09-11 17:35:10 +08:00
padding: 4px;
2024-08-28 14:49:35 +08:00
display: flex;
align-items: center;
2024-09-11 17:35:10 +08:00
color: #EEEEEE;
2024-08-28 14:49:35 +08:00
}
2024-09-11 17:35:10 +08:00
.left-bt {
2024-08-28 14:49:35 +08:00
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
color: #666666;
width: 50%;
box-sizing: border-box;
padding: 5px;
2024-09-14 11:46:31 +08:00
cursor: pointer;
2024-08-28 14:49:35 +08:00
}
2024-09-11 17:35:10 +08:00
.right-bt {
2024-08-28 14:49:35 +08:00
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
color: #FF9655;
width: 50%;
box-sizing: border-box;
padding: 5px;
2024-08-29 15:56:51 +08:00
cursor: pointer;
2024-08-28 14:49:35 +08:00
}
2024-09-11 17:35:10 +08:00
.b-d {
2024-08-29 10:24:29 +08:00
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 15px;
}
2024-08-16 18:26:19 +08:00
</style>