Commit d40993ca by 胡悦

修改样式

1 parent c81f1f03
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
"el-tree-transfer": "^2.2.6", "el-tree-transfer": "^2.2.6",
"element-ui": "^2.4.5", "element-ui": "^2.4.5",
"glsx-common": "^1.4.6", "glsx-common": "^1.4.6",
"glsx-components": "^1.2.4", "glsx-components": "^1.2.5",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"vue": "^2.6.10", "vue": "^2.6.10",
"vue-router": "^3.1.3", "vue-router": "^3.1.3",
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
<el-button class="right" type="primary" size="medium" @click="callParentChange('default')">通知父应用收到</el-button> <el-button class="right" type="primary" size="medium" @click="callParentChange('default')">通知父应用收到</el-button>
</div> </div>
<img src="./assets/logo.png" alt="" srcset="" /> <img src="./assets/logo.png" alt="" srcset="" />
</div> --> </div>-->
<router-view /> <router-view />
</div> </div>
...@@ -58,7 +58,7 @@ export default { ...@@ -58,7 +58,7 @@ export default {
} }
#app { #app {
padding: 0px 20px 20px 40px; padding: 0px 20px 20px 40px;
overflow-y: auto; // overflow-y: auto;
height: 100%; height: 100%;
} }
</style> </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
...@@ -71,6 +71,7 @@ ...@@ -71,6 +71,7 @@
v-model="basicForm.condition.chatId" v-model="basicForm.condition.chatId"
@change="valueChange" @change="valueChange"
@focus="groupFocus" @focus="groupFocus"
:size="size"
multiple multiple
collapse-tags collapse-tags
placeholder="请选择" placeholder="请选择"
...@@ -91,7 +92,8 @@ ...@@ -91,7 +92,8 @@
range-separator="至" range-separator="至"
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期" end-placeholder="结束日期"
size="small" :size="size"
style="width: 320px;"
></el-date-picker> ></el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="标签筛选"> <el-form-item label="标签筛选">
...@@ -112,7 +114,7 @@ ...@@ -112,7 +114,7 @@
:disable-transitions="false" :disable-transitions="false"
@close="removeTag(tag, idx)" @close="removeTag(tag, idx)"
>{{ tag.name }}</el-tag> >{{ 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> </div>
<!-- <span class="label-text"> <!-- <span class="label-text">
已选择 已选择
...@@ -148,7 +150,7 @@ ...@@ -148,7 +150,7 @@
<!-- 编辑入群欢迎语 --> <!-- 编辑入群欢迎语 -->
<div class="title">编辑群发内容</div> <div class="title">编辑群发内容</div>
<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"> <el-form-item prop="attachmentList">
<label slot="label" class="required">群发内容</label> <label slot="label" class="required">群发内容</label>
<WelcomeWords ref="welcome" :form="'customer'" :eventBus="eventBus"></WelcomeWords> <WelcomeWords ref="welcome" :form="'customer'" :eventBus="eventBus"></WelcomeWords>
...@@ -522,7 +524,6 @@ export default { ...@@ -522,7 +524,6 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.container { .container {
margin-top: 26px;
margin-bottom: 84px; margin-bottom: 84px;
background: #ffffff; background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1); box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
...@@ -531,6 +532,7 @@ export default { ...@@ -531,6 +532,7 @@ export default {
padding: 20px 0 17px 20px; padding: 20px 0 17px 20px;
font-size: 16px; font-size: 16px;
color: #333; color: #333;
font-weight: 600;
border-bottom: 1px solid #d8d8d8; border-bottom: 1px solid #d8d8d8;
} }
.info-box { .info-box {
...@@ -543,6 +545,7 @@ export default { ...@@ -543,6 +545,7 @@ export default {
width: calc(100% - 360px); width: calc(100% - 360px);
.filter-box { .filter-box {
margin-left: 120px; margin-left: 120px;
min-width: 656px;
background-color: #f7f7f7; background-color: #f7f7f7;
.filter-memeber { .filter-memeber {
padding: 20px 0; padding: 20px 0;
...@@ -573,7 +576,7 @@ export default { ...@@ -573,7 +576,7 @@ export default {
} }
.el-form { .el-form {
padding: 32px 0 20px 66px; padding: 32px 0 20px 20px;
/deep/.el-input { /deep/.el-input {
width: 320px; width: 320px;
} }
...@@ -584,6 +587,7 @@ export default { ...@@ -584,6 +587,7 @@ export default {
} }
.preview { .preview {
margin-right: 24px; margin-right: 24px;
margin-bottom: 100px;
} }
} }
.footer-panel { .footer-panel {
......
...@@ -312,7 +312,6 @@ export default { ...@@ -312,7 +312,6 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.container { .container {
margin-top: 26px;
margin-bottom: 84px; margin-bottom: 84px;
background: #ffffff; background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1); box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
...@@ -320,6 +319,7 @@ export default { ...@@ -320,6 +319,7 @@ export default {
.title { .title {
padding: 20px 0 17px 20px; padding: 20px 0 17px 20px;
font-size: 16px; font-size: 16px;
font-weight: 600;
color: #333; color: #333;
border-bottom: 1px solid #d8d8d8; border-bottom: 1px solid #d8d8d8;
} }
...@@ -347,6 +347,7 @@ export default { ...@@ -347,6 +347,7 @@ export default {
} }
.preview { .preview {
margin-right: 24px; margin-right: 24px;
margin-bottom: 100px;
} }
} }
.footer-panel { .footer-panel {
......
...@@ -5,10 +5,10 @@ ...@@ -5,10 +5,10 @@
<div class="model-panel-tab"> <div class="model-panel-tab">
<label>活动类型:</label> <label>活动类型:</label>
<el-tabs v-model="activeName" @tab-click="handleClick" type="card"> <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="3"></el-tab-pane>
<el-tab-pane label="权益套餐" name="4"></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> </el-tabs>
</div> </div>
<div class="model-item-panel" v-if="modelList.length > 0" v-loading="loading"> <div class="model-item-panel" v-if="modelList.length > 0" v-loading="loading">
...@@ -21,9 +21,9 @@ ...@@ -21,9 +21,9 @@
> >
<div <div
class="model-item-title" class="model-item-title"
:title="item.cardClassName" :title="item.equityName"
v-show="activeName == 3" v-show="activeName == 3"
>{{ item.cardClassName }}</div> >{{ item.equityName }}</div>
<div <div
class="model-item-title" class="model-item-title"
:title="item.couponName" :title="item.couponName"
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
>{{ item.couponName }}</div> >{{ item.couponName }}</div>
<div <div
class="model-item-title" class="model-item-title"
:title="item.cardClassName" :title="item.couponName"
v-show="activeName == 1" v-show="activeName == 1"
>{{ item.couponName }}</div> >{{ item.couponName }}</div>
<div <div
...@@ -39,11 +39,18 @@ ...@@ -39,11 +39,18 @@
:title="item.packageName" :title="item.packageName"
v-show="activeName == 4" v-show="activeName == 4"
>{{ item.packageName }}</div> >{{ 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 == 1 || activeName == 4"></div>
<div class="model-item-content" v-show="activeName == 2">剩余数量:{{ item.residueAmount }}</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 == 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 == 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 <div
class="model-item-content" class="model-item-content"
v-show="activeName == 2 && item.effectiveType == 1" v-show="activeName == 2 && item.effectiveType == 1"
...@@ -56,21 +63,11 @@ ...@@ -56,21 +63,11 @@
class="model-item-content" class="model-item-content"
v-show="activeName == 2 && item.effectiveType == 2" v-show="activeName == 2 && item.effectiveType == 2"
>有效期:{{ item.effectiveStartTime ? item.effectiveStartTime.split(' ')[0] : '' }}~{{ item.effectiveEndTime ? item.effectiveEndTime.split(' ')[0] : '' }}</div> >有效期:{{ item.effectiveStartTime ? item.effectiveStartTime.split(' ')[0] : '' }}~{{ item.effectiveEndTime ? item.effectiveEndTime.split(' ')[0] : '' }}</div>
<div
class="model-item-content" <div class="model-item-content" v-show="activeName == 3">有效期:{{ item.effectivedDay }}天</div>
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 == 2"> <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>
<div class="model-item-content" v-show="activeName == 1"> <div class="model-item-content" v-show="activeName == 1">
类型: 类型:
...@@ -84,6 +81,10 @@ ...@@ -84,6 +81,10 @@
类型: 类型:
<span>权益套餐</span> <span>权益套餐</span>
</div> </div>
<div class="model-item-content" v-if="activeName == 5">
活动时间:
{{ item.startTime.split(' ')[0] }}-{{ item.endTime.split(' ')[0] }}
</div>
</div> </div>
</div> </div>
<div class="model-item-empty" v-else v-loading="loading"> <div class="model-item-empty" v-else v-loading="loading">
...@@ -91,6 +92,7 @@ ...@@ -91,6 +92,7 @@
<div class="empty-item">暂无数据</div> <div class="empty-item">暂无数据</div>
</div> </div>
<el-pagination <el-pagination
v-if="activeName != 3"
@size-change="handleSizeChange" @size-change="handleSizeChange"
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
:current-page="pageNum" :current-page="pageNum"
...@@ -115,7 +117,7 @@ export default { ...@@ -115,7 +117,7 @@ export default {
return { return {
dialogVisible: false, dialogVisible: false,
loading: false, loading: false,
activeName: '1', activeName: '3',
modelList: [], modelList: [],
pageNum: 1, pageNum: 1,
pageSize: 12, pageSize: 12,
...@@ -136,7 +138,7 @@ export default { ...@@ -136,7 +138,7 @@ export default {
return return
} }
this.dialogVisible = false 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) { handleSizeChange(val) {
this.pageSize = val this.pageSize = val
...@@ -163,6 +165,9 @@ export default { ...@@ -163,6 +165,9 @@ export default {
case '4': case '4':
market = 'getPackage' market = 'getPackage'
break break
case '5':
market = 'getActivity'
break
} }
let params = { let params = {
pageSize: this.pageSize, pageSize: this.pageSize,
...@@ -174,12 +179,25 @@ export default { ...@@ -174,12 +179,25 @@ export default {
} }
if (this.activeName == 2) { if (this.activeName == 2) {
params.discountTypes = [2, 3, 4] 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.$apis.customerTransform[market](params)
this.modelList = res.list ? res.list : res.data .then(res => {
this.tableTotal = res.total if (this.activeName == 3) {
this.loading = false this.modelList = res
}) } else {
this.modelList = res.list ? res.list : res.data
this.tableTotal = res.total
}
this.loading = false
})
.catch(() => {
this.loading = false
})
}, },
init() { init() {
this.dialogVisible = true this.dialogVisible = true
......
...@@ -149,6 +149,7 @@ export default { ...@@ -149,6 +149,7 @@ export default {
.title { .title {
padding: 20px 0 17px 20px; padding: 20px 0 17px 20px;
font-size: 16px; font-size: 16px;
font-weight: 600;
color: #333; color: #333;
border-bottom: 1px solid #d8d8d8; border-bottom: 1px solid #d8d8d8;
} }
......
...@@ -330,7 +330,8 @@ export default { ...@@ -330,7 +330,8 @@ export default {
.content { .content {
display: inline-block; display: inline-block;
vertical-align: text-top; vertical-align: text-top;
width: calc(100% - 103px); min-width: 656px;
width: calc(100% - 15px);
margin-left: 12px; margin-left: 12px;
.welcome-file { .welcome-file {
display: flex; display: flex;
......
<template> <template>
<div style="margin-top: 26px;"> <div>
<BasicInof :form="'customerGroup'" :eventBus="eventBus" :id="$route.params.id"></BasicInof> <BasicInof :form="'customerGroup'" :eventBus="eventBus" :id="$route.params.id"></BasicInof>
<div class="group-detail-container"> <div class="group-detail-container">
<glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData"> <glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData">
...@@ -192,7 +192,6 @@ export default { ...@@ -192,7 +192,6 @@ export default {
</script> </script>
<style lang="scss" scope> <style lang="scss" scope>
.group-detail-container { .group-detail-container {
margin-top: 26px;
margin-bottom: 84px; margin-bottom: 84px;
padding: 20px; padding: 20px;
background-color: #ffffff; background-color: #ffffff;
......
<template> <template>
<div style="margin-top: 26px;"> <div>
<BasicInof :eventBus="eventBus" :id="$route.params.id" :form="'customer'"></BasicInof> <BasicInof :eventBus="eventBus" :id="$route.params.id" :form="'customer'"></BasicInof>
<div class="detail-container"> <div class="detail-container">
<div class="detail-modular"> <div class="detail-modular">
...@@ -229,6 +229,7 @@ export default { ...@@ -229,6 +229,7 @@ export default {
.title { .title {
padding: 20px 0 17px 20px; padding: 20px 0 17px 20px;
font-size: 16px; font-size: 16px;
font-weight: 600;
color: #333; color: #333;
border-bottom: 1px solid #d8d8d8; border-bottom: 1px solid #d8d8d8;
} }
......
...@@ -33,7 +33,7 @@ export default { ...@@ -33,7 +33,7 @@ export default {
grid: { grid: {
x: 120, x: 120,
y: 0, y: 0,
x2: 50, x2: 20,
y2: 0 y2: 0
}, },
series: [ series: [
......
...@@ -29,7 +29,7 @@ export default { ...@@ -29,7 +29,7 @@ export default {
{ {
name: '券类营销', name: '券类营销',
type: 'pie', type: 'pie',
radius: '50%', radius: '70%',
label: { label: {
formatter: '{b}\n \n{c} 张' formatter: '{b}\n \n{c} 张'
}, },
......
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
<!-- <img :src="iconUrl" alt /> --> <!-- <img :src="iconUrl" alt /> -->
</span> </span>
<span class="date-content"> <span class="date-content">
<span class="data-num">{{coupon.totalIssue}}</span>张 <span class="data-num">{{coupon.totalIssue ? coupon.totalIssue : '--'}}</span>张
</span> </span>
</div> </div>
<div class="data-item"> <div class="data-item">
...@@ -88,17 +88,20 @@ ...@@ -88,17 +88,20 @@
<!-- <img :src="iconUrl" alt /> --> <!-- <img :src="iconUrl" alt /> -->
</span> </span>
<span class="date-content"> <span class="date-content">
<span class="data-num">{{coupon.totalVerification}}</span>张 <span
class="data-num"
>{{coupon.totalVerification ? coupon.totalVerification: '--'}}</span>张
</span> </span>
</div> </div>
<div class="data-last"> <div class="data-last">
<span class="data-name">核销率</span> <span class="data-name">核销率</span>
<span class="data-percentage">{{coupon.verificationRate}}</span> <span
class="data-percentage"
>{{coupon.verificationRate ? coupon.verificationRate:'--'}}</span>
</div> </div>
</div> </div>
<div class="pie-box"> <div class="pie-box">
<PieChart :list.sync="coupon.list" class="coupons-right"></PieChart> <PieChart :list.sync="coupon.list" class="coupons-right"></PieChart>
<!-- <div v-else class="no-data">暂无数据</div> -->
</div> </div>
</div> </div>
</div> </div>
...@@ -120,7 +123,7 @@ ...@@ -120,7 +123,7 @@
<!-- <img :src="iconUrl" alt /> --> <!-- <img :src="iconUrl" alt /> -->
</span> </span>
<span class="date-content"> <span class="date-content">
<span class="data-num">{{merchant.saleAmount}}</span>人 <span class="data-num">{{merchant.saleAmount ? merchant.saleAmount: '--'}}</span>人
</span> </span>
</div> </div>
<div class="data-item"> <div class="data-item">
...@@ -138,7 +141,7 @@ ...@@ -138,7 +141,7 @@
<!-- <img :src="iconUrl" alt /> --> <!-- <img :src="iconUrl" alt /> -->
</span> </span>
<span class="date-content"> <span class="date-content">
<span class="data-num">{{merchant.viewAmount}}</span>次 <span class="data-num">{{merchant.viewAmount ? merchant.viewAmount: '--'}}</span>次
</span> </span>
</div> </div>
<div class="data-item"> <div class="data-item">
...@@ -156,7 +159,7 @@ ...@@ -156,7 +159,7 @@
<!-- <img :src="iconUrl" alt /> --> <!-- <img :src="iconUrl" alt /> -->
</span> </span>
<span class="date-content"> <span class="date-content">
<span class="data-num">{{merchant.salePrice}}</span>元 <span class="data-num">{{merchant.salePrice ? merchant.salePrice : '--'}}</span>元
</span> </span>
</div> </div>
</div> </div>
...@@ -170,13 +173,13 @@ ...@@ -170,13 +173,13 @@
<div class="data-item" style="margin-top: 10px;"> <div class="data-item" style="margin-top: 10px;">
<span class="data-title w-118">总会员数</span> <span class="data-title w-118">总会员数</span>
<span class="date-content"> <span class="date-content">
<span class="data-num">{{equity.totalMembership}}</span>人 <span class="data-num">{{equity.totalMembership ? equity.totalMembership: '--'}}</span>人
</span> </span>
</div> </div>
<div class="data-item" style="margin-top: 10px;"> <div class="data-item" style="margin-top: 10px;">
<span class="data-title w-118">今日新增</span> <span class="data-title w-118">今日新增</span>
<span class="date-content"> <span class="date-content">
<span class="data-num">{{equity.todayMembership}}</span>人 <span class="data-num">{{equity.todayMembership ? equity.todayMembership : '--'}}</span>人
</span> </span>
</div> </div>
<div class="data-item" style="margin-top: 10px;"> <div class="data-item" style="margin-top: 10px;">
...@@ -186,7 +189,7 @@ ...@@ -186,7 +189,7 @@
:class="[equity.weekFlag ? 'data-red-percentage data-half-red':'data-green-percentage data-half-green']" :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 :class="[equity.weekFlag ? 'data-red-triangle':'data-green-triangle']"></span>
<span>{{equity.lastWeekDayMemberShipCompared}}</span> <span>{{equity.lastWeekDayMemberShipCompared ? equity.lastWeekDayMemberShipCompared: '--'}}</span>
</span> </span>
</div> </div>
<div class="data-half"> <div class="data-half">
...@@ -195,7 +198,7 @@ ...@@ -195,7 +198,7 @@
:class="[equity.dayFlag ? 'data-red-percentage data-half-red':'data-green-percentage data-half-green']" :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 :class="[equity.dayFlag ? 'data-red-triangle':'data-green-triangle']"></span>
<span>{{equity.yesterdayMembershipSequential}}</span> <span>{{equity.yesterdayMembershipSequential ? equity.yesterdayMembershipSequential: '--'}}</span>
</span> </span>
</div> </div>
</div> </div>
...@@ -210,14 +213,16 @@ ...@@ -210,14 +213,16 @@
</div> </div>
<div class="bar-box"> <div class="bar-box">
<BarChart :list.sync="equity.countMerchantOrderList"></BarChart> <BarChart :list.sync="equity.countMerchantOrderList"></BarChart>
<!-- <div v-else class="no-data">暂无数据</div> --> <!-- <div v-else>暂无数据</div> -->
</div> </div>
<div> <div>
<div class="data-item"> <div class="data-item">
<span class="data-title w-118">累计产值</span> <span class="data-title w-118">累计产值</span>
<span class="date-content"> <span class="date-content">
<span class="data-num orange">{{equity.totalProductionValue}}</span>元 <span
class="data-num orange"
>{{equity.totalProductionValue ? equity.totalProductionValue : '--'}}</span>元
</span> </span>
</div> </div>
<div class="data-tips">注:仅体现套餐售卖数最多的前5单</div> <div class="data-tips">注:仅体现套餐售卖数最多的前5单</div>
...@@ -227,11 +232,25 @@ ...@@ -227,11 +232,25 @@
</div> </div>
<div class="border home-bottom"> <div class="border home-bottom">
<div class="title bottom-title"> <div class="title bottom-title">
<div>微店数据</div> <div class="bottom-text">微店数据</div>
<div style="width: 32%;"> <div class="bottom-time">
<el-button type="text" @click="storeData('week')">本周</el-button> <div class="bottom-btn">
<el-button type="text" @click="storeData('month')">本月</el-button> <el-button
<el-button type="text" @click="storeData('year')">全年</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 <el-date-picker
class="bottom-picker" class="bottom-picker"
v-model="date" v-model="date"
...@@ -247,7 +266,7 @@ ...@@ -247,7 +266,7 @@
<div class="bottom-content"> <div class="bottom-content">
<div class="line-box"> <div class="line-box">
<LineChart :list.sync="order.list"></LineChart> <LineChart :list.sync="order.list"></LineChart>
<!-- <div v-else class="no-data">暂无数据</div> --> <!-- <div v-show="!order.list" class="no-data">暂无数据</div> -->
</div> </div>
<div class="bottom-right"> <div class="bottom-right">
<div class="bottom-right-item"> <div class="bottom-right-item">
...@@ -256,7 +275,7 @@ ...@@ -256,7 +275,7 @@
<div> <div>
<div>成交金额</div> <div>成交金额</div>
<div class="item-number"> <div class="item-number">
{{order.totalAmount}} {{order.totalAmount ? order.totalAmount : '--'}}
<span>元</span> <span>元</span>
</div> </div>
</div> </div>
...@@ -272,7 +291,7 @@ ...@@ -272,7 +291,7 @@
<div> <div>
<div>订单总数</div> <div>订单总数</div>
<div class="item-number"> <div class="item-number">
{{order.totalCount}} {{order.totalCount ? order.totalCount : '--'}}
<span>单</span> <span>单</span>
</div> </div>
</div> </div>
...@@ -308,19 +327,19 @@ export default { ...@@ -308,19 +327,19 @@ export default {
list: [ list: [
{ {
title: '日常关怀', title: '日常关怀',
content: '可把通知、祝福、活动等消息批量发送给客户,员工可对客户进行后续的服务。', content: '群发工具可把通知、祝福、活动等消息批量发送给客户,员工可对客户进行后续的服务。',
linkName: '群发关怀信息', linkName: '群发关怀信息',
path: '/customerTransform/index' path: '/customerTransform/index'
}, },
{ {
title: '会员服务', title: '会员服务',
content: '会员服务由门店根据自店服务项目创建的线上服务券,如“一年十二次洗车券”、“陶瓷镀膜”等,客户购买后可到店出示服务券享受服务,门店扫码进行次数核销。', content: '会员服务由门店根据服务项目自主创建,客户购买后可到店享受服务,门店可通过扫码进行次数核销。',
linkName: '设置会员服务', linkName: '设置会员服务',
path: '/memberCenter/service' path: '/memberCenter/service'
}, },
{ {
title: '商品销售', title: '商品销售',
content: '管理上下架门店自有的商品,可配置带货商品活动商品销售分润。', content: '商品管理可对门店创建的商品进行自主上下架,管理商品的销售订单。',
linkName: '上架商品', linkName: '上架商品',
path: '/productGroup/index' path: '/productGroup/index'
} }
...@@ -335,7 +354,9 @@ export default { ...@@ -335,7 +354,9 @@ export default {
equity: { equity: {
countMerchantOrderList: [] countMerchantOrderList: []
}, },
merchant: {} merchant: {},
blackColor: 'color: #000;',
currentTime: ''
} }
}, },
mounted() { mounted() {
...@@ -371,6 +392,7 @@ export default { ...@@ -371,6 +392,7 @@ export default {
let nowDay = now.getDate() let nowDay = now.getDate()
let nowMonth = now.getMonth() let nowMonth = now.getMonth()
let nowYear = now.getFullYear() let nowYear = now.getFullYear()
this.currentTime = name
switch (name) { switch (name) {
case 'week': case 'week':
startTime = new Date(nowYear, nowMonth, nowDay - nowDayOfWeek) startTime = new Date(nowYear, nowMonth, nowDay - nowDayOfWeek)
...@@ -404,7 +426,7 @@ export default { ...@@ -404,7 +426,7 @@ export default {
}, },
couponStatistical() { couponStatistical() {
const params = { const params = {
discountTypes: [2, 3, 4, 7] discountTypes: [2, 3, 4]
} }
this.$apis.home.couponStatistical(params).then(res => { this.$apis.home.couponStatistical(params).then(res => {
this.coupon = res this.coupon = res
...@@ -549,12 +571,15 @@ export default { ...@@ -549,12 +571,15 @@ export default {
.home-left { .home-left {
margin-right: 20px; margin-right: 20px;
width: 75%; width: 75%;
min-width: 885px;
.marketing { .marketing {
display: flex; display: flex;
margin-bottom: 20px; margin-bottom: 20px;
&-item { &-item {
position: relative;
width: 33%; width: 33%;
// width: 275px; height: 260px;
min-width: 275px;
box-sizing: border-box; box-sizing: border-box;
margin-right: 20px; margin-right: 20px;
&:last-child { &:last-child {
...@@ -583,11 +608,23 @@ export default { ...@@ -583,11 +608,23 @@ export default {
color: #333333; color: #333333;
line-height: 20px; line-height: 20px;
margin-bottom: 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 { &-btn {
position: absolute;
bottom: 30px;
left: 50%;
transform: translateX(-50%);
text-align: center; text-align: center;
margin-bottom: 10px; // margin-bottom: 10px;
} }
} }
.customer-content { .customer-content {
...@@ -633,7 +670,8 @@ export default { ...@@ -633,7 +670,8 @@ export default {
.home-right { .home-right {
// flex: 1; // flex: 1;
width: 25%; width: 25%;
height: 555px; height: 560px;
min-width: 240px;
box-sizing: border-box; box-sizing: border-box;
.membership-data { .membership-data {
padding-bottom: 20px; padding-bottom: 20px;
...@@ -668,6 +706,12 @@ export default { ...@@ -668,6 +706,12 @@ export default {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
} }
&-btn {
display: inline-block;
}
&-time {
width: 31%;
}
&-picker { &-picker {
// width: 240px; // width: 240px;
// width: 25%; // width: 25%;
...@@ -679,7 +723,7 @@ export default { ...@@ -679,7 +723,7 @@ export default {
} }
&-right { &-right {
margin-top: 10px; margin-top: 10px;
width: 240px; min-width: 240px;
&-item { &-item {
font-size: 16px; font-size: 16px;
color: #333; color: #333;
...@@ -742,24 +786,28 @@ export default { ...@@ -742,24 +786,28 @@ export default {
} }
} }
.line-box { .line-box {
position: relative; // position: relative;
display: flex;
justify-content: center;
align-items: center;
height: 196px; height: 196px;
width: 76.7%; width: 76.7%;
min-width: 890px;
} }
.bar-box { .bar-box {
position: relative; // position: relative;
display: flex;
justify-content: center;
align-items: center;
width: 100%; width: 100%;
height: 240px; height: 240px;
} }
.pie-box { .pie-box {
position: relative; // position: relative;
display: flex;
justify-content: center;
align-items: center;
width: 50%; width: 50%;
height: 185px; height: 185px;
} }
.no-data {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%, -50%);
}
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!