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} 张'
},
......
......@@ -70,7 +70,7 @@
<!-- <img :src="iconUrl" alt /> -->
</span>
<span class="date-content">
<span class="data-num">{{coupon.totalIssue}}</span>张
<span class="data-num">{{coupon.totalIssue ? coupon.totalIssue : '--'}}</span>张
</span>
</div>
<div class="data-item">
......@@ -88,17 +88,21 @@
<!-- <img :src="iconUrl" alt /> -->
</span>
<span class="date-content">
<span class="data-num">{{coupon.totalVerification}}</span>张
<span
class="data-num"
>{{coupon.totalVerification ? coupon.totalVerification: '--'}}</span>张
</span>
</div>
<div class="data-last">
<span class="data-name">核销率</span>
<span class="data-percentage">{{coupon.verificationRate}}</span>
<span
class="data-percentage"
>{{coupon.verificationRate ? coupon.verificationRate:'--'}}</span>
</div>
</div>
<div class="pie-box">
<PieChart :list.sync="coupon.list" class="coupons-right"></PieChart>
<!-- <div v-else class="no-data">暂无数据</div> -->
<div v-show="!coupon.list" class="no-data">暂无数据</div>
</div>
</div>
</div>
......@@ -120,7 +124,7 @@
<!-- <img :src="iconUrl" alt /> -->
</span>
<span class="date-content">
<span class="data-num">{{merchant.saleAmount}}</span>人
<span class="data-num">{{merchant.saleAmount ? merchant.saleAmount: '--'}}</span>人
</span>
</div>
<div class="data-item">
......@@ -138,7 +142,7 @@
<!-- <img :src="iconUrl" alt /> -->
</span>
<span class="date-content">
<span class="data-num">{{merchant.viewAmount}}</span>次
<span class="data-num">{{merchant.viewAmount ? merchant.viewAmount: '--'}}</span>次
</span>
</div>
<div class="data-item">
......@@ -156,7 +160,7 @@
<!-- <img :src="iconUrl" alt /> -->
</span>
<span class="date-content">
<span class="data-num">{{merchant.salePrice}}</span>元
<span class="data-num">{{merchant.salePrice ? merchant.salePrice : '--'}}</span>元
</span>
</div>
</div>
......@@ -170,13 +174,13 @@
<div class="data-item" style="margin-top: 10px;">
<span class="data-title w-118">总会员数</span>
<span class="date-content">
<span class="data-num">{{equity.totalMembership}}</span>人
<span class="data-num">{{equity.totalMembership ? equity.totalMembership: '--'}}</span>人
</span>
</div>
<div class="data-item" style="margin-top: 10px;">
<span class="data-title w-118">今日新增</span>
<span class="date-content">
<span class="data-num">{{equity.todayMembership}}</span>人
<span class="data-num">{{equity.todayMembership ? equity.todayMembership : '--'}}</span>人
</span>
</div>
<div class="data-item" style="margin-top: 10px;">
......@@ -186,7 +190,7 @@
:class="[equity.weekFlag ? 'data-red-percentage data-half-red':'data-green-percentage data-half-green']"
>
<span :class="[equity.weekFlag ? 'data-red-triangle':'data-green-triangle']"></span>
<span>{{equity.lastWeekDayMemberShipCompared}}</span>
<span>{{equity.lastWeekDayMemberShipCompared ? equity.lastWeekDayMemberShipCompared: '--'}}</span>
</span>
</div>
<div class="data-half">
......@@ -195,7 +199,7 @@
:class="[equity.dayFlag ? 'data-red-percentage data-half-red':'data-green-percentage data-half-green']"
>
<span :class="[equity.dayFlag ? 'data-red-triangle':'data-green-triangle']"></span>
<span>{{equity.yesterdayMembershipSequential}}</span>
<span>{{equity.yesterdayMembershipSequential ? equity.yesterdayMembershipSequential: '--'}}</span>
</span>
</div>
</div>
......@@ -210,28 +214,44 @@
</div>
<div class="bar-box">
<BarChart :list.sync="equity.countMerchantOrderList"></BarChart>
<!-- <div v-else class="no-data">暂无数据</div> -->
<div class="no-data" v-if="!equity.countMerchantOrderList">暂无数据</div>
</div>
<div>
<div class="data-item">
<span class="data-title w-118">累计产值</span>
<span class="date-content">
<span class="data-num orange">{{equity.totalProductionValue}}</span>元
<span
class="data-num orange"
>{{equity.totalProductionValue ? equity.totalProductionValue : '--'}}</span>元
</span>
</div>
<div class="data-tips">注:仅体现套餐售卖数最多的前5单</div>
<div class="data-tips">注:仅体现套餐售卖数最多的前5类</div>
</div>
</div>
</div>
</div>
<div class="border home-bottom">
<div class="title bottom-title">
<div>微店数据</div>
<div style="width: 32%;">
<el-button type="text" @click="storeData('week')">本周</el-button>
<el-button type="text" @click="storeData('month')">本月</el-button>
<el-button type="text" @click="storeData('year')">全年</el-button>
<div class="bottom-text">微店数据</div>
<div class="bottom-time">
<div class="bottom-btn">
<el-button
:style="currentTime == 'week' ? '' : blackColor"
type="text"
@click="storeData('week')"
>本周</el-button>
<el-button
:style="currentTime == 'month' ? '' : blackColor"
type="text"
@click="storeData('month')"
>本月</el-button>
<el-button
:style="currentTime == 'year' ? '' : blackColor"
type="text"
@click="storeData('year')"
>全年</el-button>
</div>
<el-date-picker
class="bottom-picker"
v-model="date"
......@@ -247,7 +267,7 @@
<div class="bottom-content">
<div class="line-box">
<LineChart :list.sync="order.list"></LineChart>
<!-- <div v-else class="no-data">暂无数据</div> -->
<div v-show="!order.list" class="no-data">暂无数据</div>
</div>
<div class="bottom-right">
<div class="bottom-right-item">
......@@ -256,7 +276,7 @@
<div>
<div>成交金额</div>
<div class="item-number">
{{order.totalAmount}}
{{order.totalAmount ? order.totalAmount : '--'}}
<span>元</span>
</div>
</div>
......@@ -272,7 +292,7 @@
<div>
<div>订单总数</div>
<div class="item-number">
{{order.totalCount}}
{{order.totalCount ? order.totalCount : '--'}}
<span>单</span>
</div>
</div>
......@@ -308,19 +328,19 @@ export default {
list: [
{
title: '日常关怀',
content: '可把通知、祝福、活动等消息批量发送给客户,员工可对客户进行后续的服务。',
content: '群发工具可把通知、祝福、活动等消息批量发送给客户,员工可对客户进行后续的服务。',
linkName: '群发关怀信息',
path: '/customerTransform/index'
},
{
title: '会员服务',
content: '会员服务由门店根据自店服务项目创建的线上服务券,如“一年十二次洗车券”、“陶瓷镀膜”等,客户购买后可到店出示服务券享受服务,门店扫码进行次数核销。',
content: '会员服务由门店根据服务项目自主创建,客户购买后可到店享受服务,门店可通过扫码进行次数核销。',
linkName: '设置会员服务',
path: '/memberCenter/service'
},
{
title: '商品销售',
content: '管理上下架门店自有的商品,可配置带货商品活动商品销售分润。',
content: '商品管理可对门店创建的商品进行自主上下架,管理商品的销售订单。',
linkName: '上架商品',
path: '/productGroup/index'
}
......@@ -335,7 +355,9 @@ export default {
equity: {
countMerchantOrderList: []
},
merchant: {}
merchant: {},
blackColor: 'color: #000;',
currentTime: ''
}
},
mounted() {
......@@ -371,6 +393,7 @@ export default {
let nowDay = now.getDate()
let nowMonth = now.getMonth()
let nowYear = now.getFullYear()
this.currentTime = name
switch (name) {
case 'week':
startTime = new Date(nowYear, nowMonth, nowDay - nowDayOfWeek)
......@@ -404,7 +427,7 @@ export default {
},
couponStatistical() {
const params = {
discountTypes: [2, 3, 4, 7]
discountTypes: [2, 3, 4]
}
this.$apis.home.couponStatistical(params).then(res => {
this.coupon = res
......@@ -549,12 +572,15 @@ export default {
.home-left {
margin-right: 20px;
width: 75%;
min-width: 885px;
.marketing {
display: flex;
margin-bottom: 20px;
&-item {
position: relative;
width: 33%;
// width: 275px;
height: 260px;
min-width: 275px;
box-sizing: border-box;
margin-right: 20px;
&:last-child {
......@@ -583,11 +609,23 @@ export default {
color: #333333;
line-height: 20px;
margin-bottom: 20px;
min-height: 80px;
max-height: 80px;
min-width: 235px;
// word-break: keep-all;
// white-space: pre-line;
// -webkit-box-orient: vertical;
// -webkit-line-clamp: 4;
// // white-space:
// overflow: hidden;
// text-overflow: ellipsis;
}
&-btn {
position: absolute;
bottom: 30px;
left: 50%;
transform: translateX(-50%);
text-align: center;
margin-bottom: 10px;
// margin-bottom: 10px;
}
}
.customer-content {
......@@ -633,7 +671,8 @@ export default {
.home-right {
// flex: 1;
width: 25%;
height: 555px;
height: 560px;
min-width: 240px;
box-sizing: border-box;
.membership-data {
padding-bottom: 20px;
......@@ -668,6 +707,12 @@ export default {
display: flex;
justify-content: space-between;
}
&-btn {
display: inline-block;
}
&-time {
width: 31.5%;
}
&-picker {
// width: 240px;
// width: 25%;
......@@ -679,7 +724,7 @@ export default {
}
&-right {
margin-top: 10px;
width: 240px;
min-width: 240px;
&-item {
font-size: 16px;
color: #333;
......@@ -743,8 +788,10 @@ export default {
}
.line-box {
position: relative;
height: 196px;
width: 76.7%;
min-width: 890px;
}
.bar-box {
position: relative;
......@@ -758,8 +805,13 @@ export default {
}
.no-data {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%, -50%);
background-color: #ffffff;
width: 100%;
height: 100%;
top: 0;
display: flex;
justify-content: center;
align-items: center;
color: #666;
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!