Commit b6aa7fcc by 李长胜
2 parents 7a749aac 7e30dda6
......@@ -25,7 +25,7 @@
<el-button class="right" type="primary" size="medium" @click="callParentChange('default')">通知父应用收到</el-button>
</div>
<img src="./assets/logo.png" alt="" srcset="" />
</div> -->
</div>-->
<router-view />
</div>
......@@ -58,7 +58,7 @@ export default {
}
#app {
padding: 0px 20px 20px 40px;
overflow-y: auto;
// overflow-y: auto;
height: 100%;
}
</style>
......

1.23 KB | W: | H:

3.02 KB | W: | H:

src/assets/guestCustom/applet-logo.png
src/assets/guestCustom/applet-logo.png
src/assets/guestCustom/applet-logo.png
src/assets/guestCustom/applet-logo.png
  • 2-up
  • Swipe
  • Onion skin
<!-- 选择商品弹窗 -->
<template>
<glsx-dialog class="muti-pro" title="选择商品" :isVisible.sync="isMutiSelectVisible" width="70%" @confirmDialog="handleMutiSelectConfirm" @closeDialog="handleMutiSelectClose" :noClose="false" :noCancel="true">
<glsx-dialog class="muti-pro" title="选择商品" :isVisible.sync="isMutiSelectVisible" width="70%" @confirmDialog="handleMutiSelectConfirm" @closeDialog="handleMutiSelectClose" :noClose="false" :noCancel="true" :showClose="true">
<div style="max-height:60vh">
<div class="noproDiv" v-if="!productList.length && fnCallBack">
<img src="@/assets/noPro.png" />
......
<!-- 选择商品 - 单选 -->
<template>
<glsx-dialog class="single-pro" title="选择商品" :isVisible.sync="isSingleSelectVisible" width="900px" @confirmDialog="handleSingleSelectConfirm" @closeDialog="handleSingleSelectClose">
<glsx-dialog class="single-pro" title="选择商品" :isVisible.sync="isSingleSelectVisible" width="900px" @confirmDialog="handleSingleSelectConfirm" @closeDialog="handleSingleSelectClose" :showClose="true">
<div style="max-height:60vh">
<div class="noproDiv" v-if="!productList.length && fnCallBack">
<img src="@/assets/noPro.png" />
......
......@@ -2,7 +2,7 @@
<template>
<div class="edit-share marketing p-t-20 edit-box">
<div class="container edit-container" style="position: relative;">
<div class="right_show">
<!-- <div class="right_show">
<div class="card-top"></div>
<div class="card-middle">
<div>
......@@ -22,6 +22,29 @@
<div class="cremarks">使用说明:</div>
<div class="cremarks_content">{{ editForm.useDescription }}</div>
</div>
</div> -->
<div class="right_show">
<div class="card-top"></div>
<div class="card_one">
<div>
<span class="cname">{{ editForm.couponName }}</span>
<span class="ctype"><span class="ctypeName">代金券</span></span>
</div>
<div class="ctime">
<span class="ctime_name">有效期:</span>
<span class="ctime_content" v-if="editForm.effectiveType == 3">无限制</span>
<span class="ctime_content" v-if="editForm.effectiveType == 1">{{ editForm.effectiveDays }}天</span>
<span class="ctime_content" v-if="editForm.effectiveType == 2">{{ couponTime }}</span>
</div>
<div class="ctime">
<span class="ctime_name">使用限制:</span>
<span class="ctime_content">{{ editForm.useBarriers == 1 ? '无限制' : '满' + editForm.full + '可用' }}</span>
</div>
</div>
<div class="card_two">
<div class="cremarks">使用说明:</div>
<div class="cremarks_content">{{ editForm.useDescription }}</div>
</div>
</div>
<p class="edit-title">{{ title }}代金券</p>
<glsx-combi-form class="edit-form-container" style="min-height: 570px;" ref="editFormRef" :isEdit="true" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
......@@ -267,7 +290,7 @@ export default {
},
'editForm.effectiveTime'(newValue, oldValue) {
if (newValue && newValue.length > 0) {
this.couponTime = this.setDateString(newValue[0], true) + ' - ' + this.setDateString(newValue[1], true)
this.couponTime = this.setDateString(newValue[0], true) + ' ~ ' + this.setDateString(newValue[1], true)
} else {
this.couponTime = ''
}
......@@ -605,7 +628,6 @@ export default {
</script>
<style scoped>
.right_show {
/* float: right; */
position: absolute;
z-index: 10;
height: 566px;
......@@ -622,37 +644,39 @@ export default {
margin-top: 55px;
}
.right_show .card-middle {
height: 388px;
width: 251px;
margin-left: 18px;
overflow: auto;
.card_one {
width: 243px;
height: 252px;
background: #ffffff;
border-radius: 4px;
margin-left: 22px;
margin-top: 5.81px;
}
.right_show .card-middle .cname {
.cname {
width: 170px;
height: 17px;
font-family: PingFangSC-Regular;
font-size: 12px;
color: #666666;
font-weight: 400;
margin-left: 10px;
margin-top: 15px;
margin-left: 8px;
margin-top: 10px;
display: inline-block;
}
.right_show .card-middle .ctype {
.ctype {
width: 48px;
height: 20px;
background: #5850ff;
border-radius: 10px;
margin-right: 6px;
margin-top: 10px;
border-radius: 2px;
margin-right: 8px;
margin-top: 8px;
display: inline-block;
float: right;
}
.right_show .card-middle .ctype .ctypeName {
.ctypeName {
width: 36px;
height: 17px;
font-family: PingFangSC-Regular;
......@@ -662,11 +686,11 @@ export default {
margin-left: 6px;
}
.right_show .card-middle .ctime {
margin-left: 10px;
margin-top: 17px;
.ctime {
margin-left: 8px;
margin-top: 10px;
}
.right_show .card-middle .ctime .ctime_name {
.ctime_name {
width: 48px;
height: 17px;
font-family: PingFangSC-Regular;
......@@ -675,7 +699,7 @@ export default {
font-weight: 400;
}
.right_show .card-middle .ctime .ctime_content {
.ctime_content {
height: 17px;
font-family: PingFangSC-Regular;
font-size: 12px;
......@@ -684,27 +708,49 @@ export default {
margin-left: 5px;
}
.right_show .card-middle .ccode {
.ccode {
width: 120px;
height: 120px;
margin-left: 67px;
margin-left: 62px;
margin-top: 8px;
}
.right_show .card-middle .ccodeName {
.ccodeName {
width: 68px;
height: 17px;
font-family: PingFangSC-Medium;
font-size: 12px;
color: #1d1d1d;
font-weight: 500;
margin-left: 93px;
margin-left: 88px;
margin-top: 8px;
}
.right_show .card-middle .cremarks {
margin-left: 10px;
margin-top: 17px;
.link-top {
width: 227px;
height: 1px;
background: #eeeeee;
margin-left: 8px;
margin-top: 8px;
}
.code_d {
margin-left: 98px;
margin-top: 10px;
}
.card_two {
width: 243px;
height: 115px;
background: #ffffff;
border-radius: 4px;
margin-left: 22px;
margin-top: 8px;
}
.cremarks {
padding-left: 8px;
padding-top: 8px;
width: 60px;
height: 17px;
font-family: PingFangSC-Regular;
......@@ -713,16 +759,17 @@ export default {
font-weight: 400;
}
.right_show .card-middle .cremarks_content {
margin-left: 10px;
margin-right: 11px;
.cremarks_content {
margin-left: 8px;
margin-right: 8px;
margin-top: 4px;
width: 230px;
height: 34px;
width: 227px;
height: 80px;
font-family: PingFangSC-Regular;
font-size: 12px;
color: #666666;
font-weight: 400;
word-break: break-word;
overflow: auto;
}
</style>
<!-- 编辑代金券 -->
<!-- 编辑折扣券 -->
<template>
<div class="edit-share marketing p-t-20 edit-box">
<div class="container edit-container" style="height: 630px; position: relative">
<div class="right_show">
<!-- <div class="right_show">
<div class="card-top"></div>
<div class="card-middle">
<div>
......@@ -17,8 +17,32 @@
<div class="ctime">
<span class="ctime_name">核销劵码:</span>
</div>
<img class="ccode" src="../../assets/coupon/code.png" />
<img class="ccode" src="../../assets/coupon/code2.png" />
<div class="ccodeName">GH078-003</div>
<div class="cremarks">使用说明:</div>
<div class="cremarks_content">{{ editForm.useDescription }}</div>
</div>
</div> -->
<div class="right_show">
<div class="card-top"></div>
<div class="card_one">
<div>
<span class="cname">{{ editForm.couponName }}</span>
<span class="ctype"><span class="ctypeName">折扣券</span></span>
</div>
<div class="ctime">
<span class="ctime_name">有效期:</span>
<span class="ctime_content" v-if="editForm.effectiveType == 1">{{ editForm.effectiveDays }}天</span>
<span class="ctime_content" v-if="editForm.effectiveType == 2">{{ couponTime }}</span>
</div>
<div class="link-top"></div>
<div class="code_d">
<span class="ctime_name">核销劵码</span>
</div>
<img class="ccode" src="../../assets/coupon/code2.png" />
<div class="ccodeName">GH078-003</div>
</div>
<div class="card_two">
<div class="cremarks">使用说明:</div>
<div class="cremarks_content">{{ editForm.useDescription }}</div>
</div>
......@@ -276,7 +300,6 @@ export default {
</script>
<style scoped>
.right_show {
/* float: right; */
position: absolute;
z-index: 10;
height: 566px;
......@@ -293,7 +316,7 @@ export default {
margin-top: 55px;
}
.right_show .card-middle {
/* .right_show .card-middle {
height: 388px;
width: 251px;
margin-left: 18px;
......@@ -395,5 +418,134 @@ export default {
color: #666666;
font-weight: 400;
word-break: break-word;
} */
.card_one {
width: 243px;
height: 252px;
background: #ffffff;
border-radius: 4px;
margin-left: 22px;
margin-top: 5.81px;
}
.cname {
width: 170px;
height: 17px;
font-family: PingFangSC-Regular;
font-size: 12px;
color: #666666;
font-weight: 400;
margin-left: 8px;
margin-top: 10px;
display: inline-block;
}
.ctype {
width: 48px;
height: 20px;
background: #5850ff;
border-radius: 2px;
margin-right: 8px;
margin-top: 8px;
display: inline-block;
float: right;
}
.ctypeName {
width: 36px;
height: 17px;
font-family: PingFangSC-Regular;
font-size: 12px;
color: #ffffff;
font-weight: 400;
margin-left: 6px;
}
.ctime {
margin-left: 8px;
margin-top: 10px;
}
.ctime_name {
width: 48px;
height: 17px;
font-family: PingFangSC-Regular;
font-size: 12px;
color: #333333;
font-weight: 400;
}
.ctime_content {
height: 17px;
font-family: PingFangSC-Regular;
font-size: 12px;
color: #717171;
font-weight: 400;
margin-left: 5px;
}
.ccode {
width: 120px;
height: 120px;
margin-left: 62px;
margin-top: 8px;
}
.ccodeName {
width: 68px;
height: 17px;
font-family: PingFangSC-Medium;
font-size: 12px;
color: #1d1d1d;
font-weight: 500;
margin-left: 88px;
margin-top: 8px;
}
.link-top {
width: 227px;
height: 1px;
background: #eeeeee;
margin-left: 8px;
margin-top: 8px;
}
.code_d {
margin-left: 98px;
margin-top: 10px;
}
.card_two {
width: 243px;
height: 115px;
background: #ffffff;
border-radius: 4px;
margin-left: 22px;
margin-top: 8px;
}
.cremarks {
padding-left: 8px;
padding-top: 8px;
width: 60px;
height: 17px;
font-family: PingFangSC-Regular;
font-size: 12px;
color: #333333;
font-weight: 400;
}
.cremarks_content {
margin-left: 8px;
margin-right: 8px;
margin-top: 4px;
width: 227px;
height: 80px;
font-family: PingFangSC-Regular;
font-size: 12px;
color: #666666;
font-weight: 400;
word-break: break-word;
overflow: auto;
}
</style>
<!-- 编辑代金券 -->
<!-- 编辑兑换券 -->
<template>
<div class="edit-share marketing p-t-20 edit-box">
<div class="container edit-container" style="height: 630px;position: relative;">
<div class="right_show">
<div class="card-top"></div>
<div class="card-middle">
<div class="card_one">
<div>
<span class="cname">{{ editForm.couponName }}</span>
<span class="ctype"><span class="ctypeName">兑换券</span></span>
......@@ -14,11 +14,14 @@
<span class="ctime_content" v-if="editForm.effectiveType == 1">{{ editForm.effectiveDays }}天</span>
<span class="ctime_content" v-if="editForm.effectiveType == 2">{{ couponTime }}</span>
</div>
<div class="ctime">
<span class="ctime_name">核销劵码:</span>
<div class="link-top"></div>
<div class="code_d">
<span class="ctime_name">核销劵码</span>
</div>
<img class="ccode" src="../../assets/coupon/code.png" />
<img class="ccode" src="../../assets/coupon/code2.png" />
<div class="ccodeName">GH078-003</div>
</div>
<div class="card_two">
<div class="cremarks">使用说明:</div>
<div class="cremarks_content">{{ editForm.useDescription }}</div>
</div>
......@@ -159,7 +162,7 @@ export default {
},
'editForm.effectiveTime'(newValue, oldValue) {
if (newValue && newValue.length > 0) {
this.couponTime = this.setDateString(newValue[0], true) + ' - ' + this.setDateString(newValue[1], true)
this.couponTime = this.setDateString(newValue[0], true) + ' ~ ' + this.setDateString(newValue[1], true)
} else {
this.couponTime = ''
}
......@@ -276,7 +279,6 @@ export default {
</script>
<style scoped>
.right_show {
/* float: right; */
position: absolute;
z-index: 10;
height: 566px;
......@@ -293,37 +295,39 @@ export default {
margin-top: 55px;
}
.right_show .card-middle {
height: 388px;
width: 251px;
margin-left: 18px;
overflow: auto;
.card_one {
width: 243px;
height: 252px;
background: #ffffff;
border-radius: 4px;
margin-left: 22px;
margin-top: 5.81px;
}
.right_show .card-middle .cname {
.cname {
width: 170px;
height: 17px;
font-family: PingFangSC-Regular;
font-size: 12px;
color: #666666;
font-weight: 400;
margin-left: 10px;
margin-top: 15px;
margin-left: 8px;
margin-top: 10px;
display: inline-block;
}
.right_show .card-middle .ctype {
.ctype {
width: 48px;
height: 20px;
background: #5850ff;
border-radius: 10px;
margin-right: 6px;
margin-top: 10px;
border-radius: 2px;
margin-right: 8px;
margin-top: 8px;
display: inline-block;
float: right;
}
.right_show .card-middle .ctype .ctypeName {
.ctypeName {
width: 36px;
height: 17px;
font-family: PingFangSC-Regular;
......@@ -333,11 +337,11 @@ export default {
margin-left: 6px;
}
.right_show .card-middle .ctime {
margin-left: 10px;
margin-top: 17px;
.ctime {
margin-left: 8px;
margin-top: 10px;
}
.right_show .card-middle .ctime .ctime_name {
.ctime_name {
width: 48px;
height: 17px;
font-family: PingFangSC-Regular;
......@@ -346,7 +350,7 @@ export default {
font-weight: 400;
}
.right_show .card-middle .ctime .ctime_content {
.ctime_content {
height: 17px;
font-family: PingFangSC-Regular;
font-size: 12px;
......@@ -355,27 +359,49 @@ export default {
margin-left: 5px;
}
.right_show .card-middle .ccode {
.ccode {
width: 120px;
height: 120px;
margin-left: 67px;
margin-left: 62px;
margin-top: 8px;
}
.right_show .card-middle .ccodeName {
.ccodeName {
width: 68px;
height: 17px;
font-family: PingFangSC-Medium;
font-size: 12px;
color: #1d1d1d;
font-weight: 500;
margin-left: 93px;
margin-left: 88px;
margin-top: 8px;
}
.right_show .card-middle .cremarks {
margin-left: 10px;
margin-top: 17px;
.link-top {
width: 227px;
height: 1px;
background: #eeeeee;
margin-left: 8px;
margin-top: 8px;
}
.code_d {
margin-left: 98px;
margin-top: 10px;
}
.card_two {
width: 243px;
height: 115px;
background: #ffffff;
border-radius: 4px;
margin-left: 22px;
margin-top: 8px;
}
.cremarks {
padding-left: 8px;
padding-top: 8px;
width: 60px;
height: 17px;
font-family: PingFangSC-Regular;
......@@ -384,16 +410,17 @@ export default {
font-weight: 400;
}
.right_show .card-middle .cremarks_content {
margin-left: 10px;
margin-right: 11px;
.cremarks_content {
margin-left: 8px;
margin-right: 8px;
margin-top: 4px;
width: 230px;
height: 34px;
width: 227px;
height: 80px;
font-family: PingFangSC-Regular;
font-size: 12px;
color: #666666;
font-weight: 400;
word-break: break-word;
overflow: auto;
}
</style>
......@@ -3,7 +3,7 @@
<div class="marketing pro-group p-t-20">
<div class="m-b-20">
<el-button :size="size" type="primary" class="el-icon-plus" @click="addCashCoupon()">新建代金券</el-button>
<el-button :size="size" type="primary" class="el-icon-plus" style="margin-left:30px;" @click="addService()">新建会员服务</el-button>
<!-- <el-button :size="size" type="primary" class="el-icon-plus" style="margin-left:30px;" @click="addService()">新建会员服务</el-button> -->
<el-button :size="size" type="primary" class="el-icon-plus" style="margin-left:30px;" @click="addDiscountCoupon()">新建折扣劵</el-button>
<el-button :size="size" type="primary" class="el-icon-plus" style="margin-left:30px;" @click="addExchangeCoupon()">新建兑换券</el-button>
</div>
......
......@@ -71,6 +71,7 @@
v-model="basicForm.condition.chatId"
@change="valueChange"
@focus="groupFocus"
:size="size"
multiple
collapse-tags
placeholder="请选择"
......@@ -91,7 +92,8 @@
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
size="small"
:size="size"
style="width: 320px;"
></el-date-picker>
</el-form-item>
<el-form-item label="标签筛选">
......@@ -112,7 +114,7 @@
:disable-transitions="false"
@close="removeTag(tag, idx)"
>{{ tag.name }}</el-tag>
<el-input size="small" style="outline: none; border: none"></el-input>
<!-- <el-input size="small" style="outline: none; border: none"></el-input> -->
</div>
<!-- <span class="label-text">
已选择
......@@ -148,7 +150,7 @@
<!-- 编辑入群欢迎语 -->
<div class="title">编辑群发内容</div>
<div>
<el-form :model="basicForm" :rules="basicRules" ref="groupForm" label-width="120px">
<el-form :model="basicForm" :rules="basicRules" ref="groupForm" label-width="100px">
<el-form-item prop="attachmentList">
<label slot="label" class="required">群发内容</label>
<WelcomeWords ref="welcome" :form="'customer'" :eventBus="eventBus"></WelcomeWords>
......@@ -522,7 +524,6 @@ export default {
<style lang="scss" scoped>
.container {
margin-top: 26px;
margin-bottom: 84px;
background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
......@@ -531,6 +532,7 @@ export default {
padding: 20px 0 17px 20px;
font-size: 16px;
color: #333;
font-weight: 600;
border-bottom: 1px solid #d8d8d8;
}
.info-box {
......@@ -543,6 +545,7 @@ export default {
width: calc(100% - 360px);
.filter-box {
margin-left: 120px;
min-width: 656px;
background-color: #f7f7f7;
.filter-memeber {
padding: 20px 0;
......@@ -573,7 +576,7 @@ export default {
}
.el-form {
padding: 32px 0 20px 66px;
padding: 32px 0 20px 20px;
/deep/.el-input {
width: 320px;
}
......@@ -584,6 +587,7 @@ export default {
}
.preview {
margin-right: 24px;
margin-bottom: 100px;
}
}
.footer-panel {
......
......@@ -312,7 +312,6 @@ export default {
<style lang="scss" scoped>
.container {
margin-top: 26px;
margin-bottom: 84px;
background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
......@@ -320,6 +319,7 @@ export default {
.title {
padding: 20px 0 17px 20px;
font-size: 16px;
font-weight: 600;
color: #333;
border-bottom: 1px solid #d8d8d8;
}
......@@ -347,6 +347,7 @@ export default {
}
.preview {
margin-right: 24px;
margin-bottom: 100px;
}
}
.footer-panel {
......
......@@ -5,10 +5,10 @@
<div class="model-panel-tab">
<label>活动类型:</label>
<el-tabs v-model="activeName" @tab-click="handleClick" type="card">
<el-tab-pane label="精品券" name="1"></el-tab-pane>
<el-tab-pane label="商城券" name="2"></el-tab-pane>
<el-tab-pane label="权益卡试用" name="3"></el-tab-pane>
<el-tab-pane label="权益套餐" name="4"></el-tab-pane>
<el-tab-pane label="商城券" name="2"></el-tab-pane>
<el-tab-pane label="秒杀活动" name="5"></el-tab-pane>
</el-tabs>
</div>
<div class="model-item-panel" v-if="modelList.length > 0" v-loading="loading">
......@@ -21,9 +21,9 @@
>
<div
class="model-item-title"
:title="item.cardClassName"
:title="item.equityName"
v-show="activeName == 3"
>{{ item.cardClassName }}</div>
>{{ item.equityName }}</div>
<div
class="model-item-title"
:title="item.couponName"
......@@ -31,7 +31,7 @@
>{{ item.couponName }}</div>
<div
class="model-item-title"
:title="item.cardClassName"
:title="item.couponName"
v-show="activeName == 1"
>{{ item.couponName }}</div>
<div
......@@ -39,11 +39,18 @@
:title="item.packageName"
v-show="activeName == 4"
>{{ item.packageName }}</div>
<div
class="model-item-title"
:title="item.activityName"
v-show="activeName == 5"
>{{ item.activityName }}</div>
<div class="model-item-content" v-show="activeName == 1 || activeName == 4"></div>
<div class="model-item-content" v-show="activeName == 2">剩余数量:{{ item.residueAmount }}</div>
<div class="model-item-content" v-show="activeName == 1">剩余数量:{{ item.remainAmount }}</div>
<div class="model-item-content" v-show="activeName == 3">价格:{{ item.price }}元</div>
<div class="model-item-content" v-show="activeName == 3">价格:{{ item.goodPrice }}元</div>
<div class="model-item-content" v-show="activeName == 4">价格:{{ item.packagePrice }}元</div>
<div class="model-item-content" v-show="activeName == 5"></div>
<div class="model-item-content" v-show="activeName == 5"></div>
<div
class="model-item-content"
v-show="activeName == 2 && item.effectiveType == 1"
......@@ -56,21 +63,11 @@
class="model-item-content"
v-show="activeName == 2 && item.effectiveType == 2"
>有效期:{{ item.effectiveStartTime ? item.effectiveStartTime.split(' ')[0] : '' }}~{{ item.effectiveEndTime ? item.effectiveEndTime.split(' ')[0] : '' }}</div>
<div
class="model-item-content"
v-show="activeName == 3 && item.effectiveType == 3"
>有效期:{{ item.effectiveStartTime ? item.effectiveStartTime.split(' ')[0] : '' }}~{{ item.effectiveEndTime ? item.effectiveEndTime.split(' ')[0] : '' }}</div>
<div
class="model-item-content"
v-show="activeName == 3 && item.effectiveType == 1"
>有效期:无限制</div>
<div
class="model-item-content"
v-show="activeName == 3 && item.effectiveType == 2"
>有效期:{{ item.effectiveNum}}天</div>
<div class="model-item-content" v-show="activeName == 3">有效期:{{ item.effectivedDay }}天</div>
<div class="model-item-content" v-show="activeName == 2">
类型:
<span>{{ item.discountType == 2 ? '折扣券' : item.discountType == 3 ? '代金券' : item.discountType == 4 ? '兑换券': ''}}</span>
<span>{{ item.discountType == 2 ? '折扣券' : item.discountType == 3 ? '代金券' : item.discountType == 4 ? '兑换券' : '' }}</span>
</div>
<div class="model-item-content" v-show="activeName == 1">
类型:
......@@ -84,6 +81,10 @@
类型:
<span>权益套餐</span>
</div>
<div class="model-item-content" v-if="activeName == 5">
活动时间:
{{ item.startTime.split(' ')[0] }}-{{ item.endTime.split(' ')[0] }}
</div>
</div>
</div>
<div class="model-item-empty" v-else v-loading="loading">
......@@ -91,6 +92,7 @@
<div class="empty-item">暂无数据</div>
</div>
<el-pagination
v-if="activeName != 3"
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page="pageNum"
......@@ -115,7 +117,7 @@ export default {
return {
dialogVisible: false,
loading: false,
activeName: '1',
activeName: '3',
modelList: [],
pageNum: 1,
pageSize: 12,
......@@ -136,7 +138,7 @@ export default {
return
}
this.dialogVisible = false
this.$emit('selectActivity', { marketingId: this.selectItem.id, marketingType: this.activeName, marketingName: this.activeName == 3 ? this.selectItem.cardClassName : this.activeName == 4 ? this.selectItem.packageName : this.selectItem.couponName })
this.$emit('selectActivity', { marketingId: this.selectItem.id, marketingType: this.activeName, marketingName: this.activeName == 3 ? this.selectItem.equityName : this.activeName == 4 ? this.selectItem.packageName : this.activeName == 5 ? this.selectItem.activityName : this.selectItem.couponName })
},
handleSizeChange(val) {
this.pageSize = val
......@@ -163,6 +165,9 @@ export default {
case '4':
market = 'getPackage'
break
case '5':
market = 'getActivity'
break
}
let params = {
pageSize: this.pageSize,
......@@ -174,12 +179,25 @@ export default {
}
if (this.activeName == 2) {
params.discountTypes = [2, 3, 4]
params.validType = 'valid'
}
if (this.activeName == 5) {
params.currentPage = this.pageNum
params.activityStatus = 2
}
this.$apis.customerTransform[market](params).then(res => {
this.modelList = res.list ? res.list : res.data
this.tableTotal = res.total
this.loading = false
})
this.$apis.customerTransform[market](params)
.then(res => {
if (this.activeName == 3) {
this.modelList = res
} else {
this.modelList = res.list ? res.list : res.data
this.tableTotal = res.total
}
this.loading = false
})
.catch(() => {
this.loading = false
})
},
init() {
this.dialogVisible = true
......
......@@ -149,6 +149,7 @@ export default {
.title {
padding: 20px 0 17px 20px;
font-size: 16px;
font-weight: 600;
color: #333;
border-bottom: 1px solid #d8d8d8;
}
......
......@@ -330,7 +330,8 @@ export default {
.content {
display: inline-block;
vertical-align: text-top;
width: calc(100% - 103px);
min-width: 656px;
width: calc(100% - 15px);
margin-left: 12px;
.welcome-file {
display: flex;
......
<template>
<div style="margin-top: 26px;">
<div>
<BasicInof :form="'customerGroup'" :eventBus="eventBus" :id="$route.params.id"></BasicInof>
<div class="group-detail-container">
<glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData">
......@@ -192,7 +192,6 @@ export default {
</script>
<style lang="scss" scope>
.group-detail-container {
margin-top: 26px;
margin-bottom: 84px;
padding: 20px;
background-color: #ffffff;
......
<template>
<div style="margin-top: 26px;">
<div>
<BasicInof :eventBus="eventBus" :id="$route.params.id" :form="'customer'"></BasicInof>
<div class="detail-container">
<div class="detail-modular">
......@@ -229,6 +229,7 @@ export default {
.title {
padding: 20px 0 17px 20px;
font-size: 16px;
font-weight: 600;
color: #333;
border-bottom: 1px solid #d8d8d8;
}
......
......@@ -33,7 +33,7 @@ export default {
grid: {
x: 120,
y: 0,
x2: 50,
x2: 20,
y2: 0
},
series: [
......
......@@ -29,7 +29,7 @@ export default {
{
name: '券类营销',
type: 'pie',
radius: '50%',
radius: '70%',
label: {
formatter: '{b}\n \n{c} 张'
},
......
......@@ -682,35 +682,21 @@ export default {
text-align: center;
border: 0 !important;
background: #FFFFFF;
// color: #999999;
color: #999999;
border-radius: 0px 4px 0px 0px;
border: 1px solid #F4F6FC;
padding: 0;
}
.marketing .el-tabs__active-bar {
display: none;
}
.marketing .el-tabs__header {
margin: 0 !important;
}
.marketing .el-tabs__item.is-active {
color: #5850ff;
background: #F4F6FC !important;
border-radius: 4px 0px 0px 0px;
border: 1px solid #F4F6FC !important;
}
// .marketing .container {
// .choseRow {
// display: flex;
// height: 34px;
// .choseItem {
// cursor: pointer;
// width: 120px;
// height: 34px;
// line-height: 34px;
// text-align: center;
// font-size: 14px;
// font-weight: 400;
// color: #333333;
// }
// .active {
// color: #5850ff;
// background-color: #f4f6fc;
// }
// }
// }
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!