Commit d9d2226c by cwq0219
2 parents 15cc3137 ef316f80
......@@ -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>
......
......@@ -174,7 +174,7 @@ const getMerchant = params => {
})
}
const getCard = params => {
params.method = 'scrm.api.equity.card.class.list.with.page'
params.method = 'scrm.api.equity.open.card.price.list.by.merchantid'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
......@@ -200,6 +200,16 @@ const getPackage = params => {
sign: true
})
}
const getActivity = params => {
params.method = 'scrm.api.shopmall.activity.page'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
export default {
customerList,
customerGroupList,
......@@ -220,5 +230,6 @@ export default {
getMerchant,
getCard,
getCoupon,
getPackage
getPackage,
getActivity
}
......@@ -288,4 +288,17 @@ html {
/*滚动条里面小方块*/
border-radius: 4px;
background-color: rgba(144, 147, 153, 0.3);
}
\ No newline at end of file
}
.el-tag {
color: #666!important;
font-size: 14px!important;
}
.el-tag.el-tag--info {
background: #fafbfe !important;
border: 1px solid #e8e8ea !important;
border-radius: 4px;
color: #666;
}
.el-tag.el-tag--info.el-tag--plain {
background: transparent !important;
}

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>
<!-- 编辑代金券 -->
<!-- 编辑会员服务 -->
<template>
<div class="edit-share marketing p-t-20 edit-box">
<div class="container edit-container">
......
......@@ -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>
......@@ -59,7 +59,8 @@ export default {
searchForm: {
couponName: '',
discountType: '',
status: ''
status: '',
discountTypes: [2, 3, 4]
},
tableSearchForm: {},
// 搜索
......@@ -156,11 +157,11 @@ export default {
{
confId: '4',
confName: '兑换券'
},
{
confId: '7',
confName: '会员服务'
}
// {
// confId: '7',
// confName: '会员服务'
// }
],
statusList: [
{
......@@ -344,7 +345,8 @@ export default {
this.searchForm = {
couponName: '',
discountType: '',
status: ''
status: '',
discountTypes: [2, 3, 4]
}
this.handleSearch()
},
......
......@@ -6,7 +6,13 @@
<div class="title">基础信息</div>
<div class="info-box">
<div class="info-content">
<el-form :model="basicForm" :rules="basicRules" ref="basicForm" label-width="120px">
<el-form
class="basic-form"
:model="basicForm"
:rules="basicRules"
ref="basicForm"
label-width="120px"
>
<el-form-item prop="userList">
<label slot="label" class="required">选择群发账号</label>
<el-button size="small" @click="openMembers">
......@@ -71,6 +77,7 @@
v-model="basicForm.condition.chatId"
@change="valueChange"
@focus="groupFocus"
:size="size"
multiple
collapse-tags
placeholder="请选择"
......@@ -91,7 +98,8 @@
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
size="small"
:size="size"
style="width: 320px;"
></el-date-picker>
</el-form-item>
<el-form-item label="标签筛选">
......@@ -108,11 +116,12 @@
v-for="(tag, idx) in tagging"
:key="idx"
:size="size"
type="info"
closable
: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">
已选择
......@@ -125,6 +134,7 @@
v-for="(tag, idx) in basicForm.condition.labelList"
:key="idx"
:size="size"
type="info"
closable
:disable-transitions="false"
@close="remove(tag)"
......@@ -148,7 +158,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 +532,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 +540,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 +553,7 @@ export default {
width: calc(100% - 360px);
.filter-box {
margin-left: 120px;
min-width: 656px;
background-color: #f7f7f7;
.filter-memeber {
padding: 20px 0;
......@@ -569,21 +580,22 @@ export default {
}
}
}
.basic-form {
padding: 32px 0 20px 20px;
/deep/.el-input {
width: 320px;
}
}
}
}
.el-form {
padding: 32px 0 20px 66px;
/deep/.el-input {
width: 320px;
}
}
.form-tips {
font-size: 12px;
color: #999;
}
.preview {
margin-right: 24px;
margin-bottom: 100px;
}
}
.footer-panel {
......@@ -640,6 +652,7 @@ export default {
height: 26px;
line-height: 24px;
margin-bottom: 5px;
// background: #fff !important;
}
.tag-input {
background: transparent;
......
......@@ -6,7 +6,13 @@
<div class="title">基础信息</div>
<div class="info-box">
<div class="info-content">
<el-form :model="basicForm" :rules="basicRules" ref="basicForm" label-width="120px">
<el-form
:model="basicForm"
class="basic-form"
:rules="basicRules"
ref="basicForm"
label-width="120px"
>
<el-form-item label="群聊名称" prop="massName">
<el-input v-model="basicForm.massName" placeholder="群发名称仅内部可见" maxlength="10"></el-input>
</el-form-item>
......@@ -312,7 +318,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 +325,7 @@ export default {
.title {
padding: 20px 0 17px 20px;
font-size: 16px;
font-weight: 600;
color: #333;
border-bottom: 1px solid #d8d8d8;
}
......@@ -335,7 +341,7 @@ export default {
}
}
.el-form {
.basic-form {
padding: 32px 0 20px 66px;
/deep/.el-input {
width: 320px;
......@@ -347,6 +353,7 @@ export default {
}
.preview {
margin-right: 24px;
margin-bottom: 100px;
}
}
.footer-panel {
......@@ -413,6 +420,7 @@ export default {
height: 26px;
line-height: 24px;
margin-bottom: 5px;
background: #fff !important;
}
.tag-input {
background: transparent;
......
......@@ -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,17 +117,23 @@ export default {
return {
dialogVisible: false,
loading: false,
activeName: '1',
activeName: '3',
modelList: [],
pageNum: 1,
pageSize: 12,
tableTotal: 0,
selectItem: {}
selectItem: {
id: ''
}
}
},
methods: {
handleSelectItem(item) {
this.selectItem = item
if (item.equityClassId) {
this.selectItem.id = item.equityClassId
}
console.log(this.selectItem)
},
handleSelect() {
if (!this.selectItem.id) {
......@@ -136,7 +144,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 +171,9 @@ export default {
case '4':
market = 'getPackage'
break
case '5':
market = 'getActivity'
break
}
let params = {
pageSize: this.pageSize,
......@@ -174,12 +185,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;
}
......
......@@ -49,6 +49,7 @@
class="tag-selected-item"
:key="idx"
v-if="tag"
type="info"
closable
:disable-transitions="false"
@close="remove(item, idx)"
......
......@@ -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">
......@@ -59,7 +59,10 @@
</div>
</div>
</div>
<el-empty v-else image-size="200"></el-empty>
<div class="model-item-empty" v-else v-loading="loading">
<img src="@/assets/empty.png" />
<div class="empty-item">暂无数据</div>
</div>
</div>
</div>
<div class="detail-modular">
......@@ -111,7 +114,10 @@
</div>
</div>
</div>
<el-empty v-else image-size="200"></el-empty>
<div class="model-item-empty" v-else v-loading="loading">
<img src="@/assets/empty.png" />
<div class="empty-item">暂无数据</div>
</div>
</div>
</div>
</div>
......@@ -229,6 +235,7 @@ export default {
.title {
padding: 20px 0 17px 20px;
font-size: 16px;
font-weight: 600;
color: #333;
border-bottom: 1px solid #d8d8d8;
}
......@@ -282,7 +289,7 @@ export default {
align-items: center;
font-size: 16px;
color: #333;
font-weight: 500;
font-weight: 600;
line-height: 22px;
margin-bottom: 14px;
span {
......@@ -293,6 +300,7 @@ export default {
.send {
position: relative;
color: #666;
font-weight: normal;
span {
img {
position: absolute;
......@@ -306,6 +314,7 @@ export default {
background-color: #eb4e4e;
color: #fff;
border-radius: 2px;
font-weight: normal;
}
.customer-table {
display: flex;
......@@ -338,11 +347,13 @@ export default {
}
.el-menu-item {
line-height: 56px;
font-size: 16px;
height: 46px;
}
.el-menu--horizontal > .el-menu-item.is-active {
border-bottom-color: #5850ff;
color: #5850ff;
font-weight: 600;
}
}
.footer-panel {
......@@ -366,15 +377,22 @@ export default {
box-sizing: border-box;
padding: 40px 0;
}
::-webkit-scrollbar {
/*滚动条整体样式*/
width: 6px;
height: 4px;
}
::-webkit-scrollbar-thumb {
/*滚动条里面小方块*/
border-radius: 4px;
background-color: rgba(144, 147, 153, 0.3);
.model-item-empty {
height: 200px;
> img {
display: block;
margin: 50px auto 0px;
width: 60px;
height: auto;
}
.empty-item {
text-align: center;
font-size: 14px;
font-weight: 400;
color: #000000;
line-height: 22px;
margin-bottom: 30px;
}
}
</style>
......@@ -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} 张'
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!