Commit 4f33195d by 王志慧

commit

1 parent 7160e59c
...@@ -322,7 +322,9 @@ img { ...@@ -322,7 +322,9 @@ img {
.pointer{
cursor: pointer;
}
.txt-red { .txt-red {
color: red; color: red;
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<div class="store-wrap"> <div class="store-wrap">
<div class="mrglr text-16 scrm-c3 weight-6">{{ merchantInfo.merchantName }}</div> <div class="mrglr text-16 scrm-c3 weight-6">{{ merchantInfo.merchantName }}</div>
<div class="merchantId scrm-c3 scrm-f14">商户号:{{ merchantInfo.merchantId }}</div> <div class="merchantId scrm-c3 scrm-f14">商户号:{{ merchantInfo.merchantId }}</div>
<el-button class="mrglr" icon="el-icon-plus" type="primary">新建</el-button> <el-button class="mrglr" icon="el-icon-plus" size="small" type="primary">新建</el-button>
</div> </div>
<!-- 营销方案 --> <!-- 营销方案 -->
<div class="scheme-wrap"> <div class="scheme-wrap">
...@@ -21,8 +21,8 @@ ...@@ -21,8 +21,8 @@
<div class="scheme-line scrm-c3 scrm-f14 flex" :class="{ select: item.hovering }" :key="index" @mouseenter="item.hovering = true" @mouseleave="item.hovering = false"> <div class="scheme-line scrm-c3 scrm-f14 flex" :class="{ select: item.hovering }" :key="index" @mouseenter="item.hovering = true" @mouseleave="item.hovering = false">
<div class="scheme-text one-line-ellipsis">{{ item.activityName }}</div> <div class="scheme-text one-line-ellipsis">{{ item.activityName }}</div>
<div class="flex txt-blue" v-show="item.hovering"> <div class="flex txt-blue" v-show="item.hovering">
<span>预览</span> <span class="pointer">预览</span>
<span class="scrm-ml6" @click="setActivity(item)">引用</span> <span class="scrm-ml6 pointer" @click="setActivity(item)">引用</span>
</div> </div>
</div> </div>
</template> </template>
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
<div class="theme-line scrm-c3 scrm-f12 flex" :class="{ select: item.hovering }" :key="index" @mouseenter="item.hovering = true" @mouseleave="item.hovering = false"> <div class="theme-line scrm-c3 scrm-f12 flex" :class="{ select: item.hovering }" :key="index" @mouseenter="item.hovering = true" @mouseleave="item.hovering = false">
<div class="scheme-text">{{ index + 1 }}、{{ item.title }}</div> <div class="scheme-text">{{ index + 1 }}、{{ item.title }}</div>
<div class="flex txt-blue" v-show="item.hovering"> <div class="flex txt-blue" v-show="item.hovering">
<span class="scrm-ml6" @click="setActivity(item)">引用</span> <span class="scrm-ml6 pointer" @click="setActivity(item)">引用</span>
</div> </div>
</div> </div>
</template> </template>
...@@ -116,7 +116,7 @@ export default { ...@@ -116,7 +116,7 @@ export default {
title: item.title, title: item.title,
id: item.id, id: item.id,
hovering: false, hovering: false,
type: 'calendar' //方案 type: 'calendar' //方案
} }
}) })
} }
...@@ -148,6 +148,9 @@ export default { ...@@ -148,6 +148,9 @@ export default {
margin: 8px 0; margin: 8px 0;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
height: 200px;
overflow-y: scroll;
overflow-x: hidden;
.scheme-line { .scheme-line {
margin-bottom: 4px; margin-bottom: 4px;
align-items: center; align-items: center;
...@@ -177,6 +180,9 @@ export default { ...@@ -177,6 +180,9 @@ export default {
.theme-wrap { .theme-wrap {
padding: 0 16px; padding: 0 16px;
.theme-list { .theme-list {
height: 200px;
// overflow-x: hidden;
overflow-y: scroll;
margin: 8px 0; margin: 8px 0;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
...@@ -190,7 +196,7 @@ export default { ...@@ -190,7 +196,7 @@ export default {
} }
} }
.select { .select {
width: 226px; width: 206px;
height: auto; height: auto;
background: #f2f1ff; background: #f2f1ff;
border-radius: 4px; border-radius: 4px;
......
...@@ -74,7 +74,7 @@ export default { ...@@ -74,7 +74,7 @@ export default {
}, },
handleShowCalendar() { handleShowCalendar() {
console.log(111) console.log(111)
this.$parent.$parent.handleShowCalendar() this.$parent.$parent.handleShowCalendar(1)
}, },
plusMonth: function() { plusMonth: function() {
if (this.date.month == 11) { if (this.date.month == 11) {
......
...@@ -6,8 +6,26 @@ ...@@ -6,8 +6,26 @@
</div> </div>
<span class="range">{{ currentDate }}</span> <span class="range">{{ currentDate }}</span>
<div class="header-rounded next" @click="handlePrev('next')"><img src="@/assets/arrow.png" /></div> <div class="header-rounded next" @click="handlePrev('next')"><img src="@/assets/arrow.png" /></div>
<div class="close scrm-c3 scrm-f12 " @click="close()">
<img src="@/assets/close.png" />
关闭日历
</div>
</div> </div>
<div ref="calendar" class="calendar"></div> <div ref="calendar" class="calendar"></div>
<div class="footer">
<div class="title">
2023年度
<br />
营销计划概览:
</div>
<div class="described">
1、本年度共计可营销场次48+次
<br />
2、推荐营销场次16次,查看
<br />
3、定保、续保、节日关怀、店庆等
</div>
</div>
</div> </div>
</template> </template>
<script> <script>
...@@ -37,11 +55,14 @@ export default { ...@@ -37,11 +55,14 @@ export default {
this.calendar.on('clickEvent', e => { this.calendar.on('clickEvent', e => {
// console.log(e) // console.log(e)
}) })
this.getCalendarData() this.getCalendarData()
}, },
methods: { methods: {
close(){
this.$parent.handleShowCalendar(0)
},
getCalendarData() { getCalendarData() {
let { eventList, calendarData,calendar, currentDate } = this let { eventList, calendarData, calendar, currentDate } = this
eventList = calendarData.map(item => { eventList = calendarData.map(item => {
return { return {
id: item.id, id: item.id,
...@@ -62,17 +83,20 @@ export default { ...@@ -62,17 +83,20 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.calendar-wrap { .calendar-wrap {
width: 100%; width: auto;
height: 100%; height: calc(100% - 56px);
margin-bottom: 20px; margin-bottom: 20px;
margin-right: 10px;
} }
.header { .header {
display: flex; display: flex;
margin: 11px 0; margin-top: 11px;
align-items: center; align-items: center;
margin-left: -76px; justify-content: center;
height: 44px;
background: #ffffff;
border-bottom: 1px solid #c6c6c6;
position: relative; position: relative;
left: 50%;
.range { .range {
font-weight: 600; font-weight: 600;
font-size: 16px; font-size: 16px;
...@@ -85,10 +109,22 @@ export default { ...@@ -85,10 +109,22 @@ export default {
transform: rotate(270deg); transform: rotate(270deg);
} }
} }
.close {
display: flex;
align-items: center;
position: absolute;
cursor: pointer;
right:16px;
img {
width: 12px;
height: 12px;
margin-right: 4px;
}
}
} }
.calendar { .calendar {
width: 100%; width: 100%;
height: 100%; height: calc(100% - 216px);
} }
.header-rounded { .header-rounded {
width: 28px; width: 28px;
...@@ -104,4 +140,28 @@ export default { ...@@ -104,4 +140,28 @@ export default {
transform: rotate(90deg); transform: rotate(90deg);
} }
} }
.footer {
width: 100%;
height: 164px;
background: #ffffff;
margin-top: 8px;
display: flex;
padding: 16px;
box-sizing: border-box;
.title {
text-align: right;
margin-right: 36px;
font-weight: 600;
font-size: 20px;
color: #333333;
text-align: center;
line-height: 28px;
}
.described {
font-size: 14px;
color: #333333;
letter-spacing: 0;
line-height: 22px;
}
}
</style> </style>
...@@ -22,13 +22,15 @@ ...@@ -22,13 +22,15 @@
<div class="market-title">ChatGPT超级营销</div> <div class="market-title">ChatGPT超级营销</div>
</div> </div>
</div> </div>
<div class="market-bottom"> <div class="market-bottom" v-show="!showCalendar">
<div class="market-middle"> <!-- <template > -->
<marketing-middle></marketing-middle> <div class="market-middle">
</div> <marketing-middle></marketing-middle>
<div class="market-right"> </div>
<marketing-right></marketing-right> <div class="market-right">
</div> <marketing-right></marketing-right>
</div>
<!-- </template> -->
</div> </div>
<div v-if="showCalendar" class="calendar-panel"> <div v-if="showCalendar" class="calendar-panel">
<schedule-calendar ref="calendar"></schedule-calendar> <schedule-calendar ref="calendar"></schedule-calendar>
...@@ -41,7 +43,7 @@ import ScheduleCalendar from './components/Marketing/components/ScheduleCalendar ...@@ -41,7 +43,7 @@ import ScheduleCalendar from './components/Marketing/components/ScheduleCalendar
import MarketingLeft from './components/Marketing/MarketingLeft' import MarketingLeft from './components/Marketing/MarketingLeft'
import MarketingMiddle from './components/Marketing/MarketingMiddle' import MarketingMiddle from './components/Marketing/MarketingMiddle'
import MarketingRight from './components/Marketing/MarketingRight' import MarketingRight from './components/Marketing/MarketingRight'
import {mapActions} from 'vuex' import { mapActions } from 'vuex'
export default { export default {
components: { components: {
MarketingLeft, MarketingLeft,
...@@ -58,11 +60,11 @@ export default { ...@@ -58,11 +60,11 @@ export default {
this.getCalendarListData({}) this.getCalendarListData({})
}, },
methods: { methods: {
...mapActions({ ...mapActions({
getCalendarListData: 'marketing/getCalendarListData' getCalendarListData: 'marketing/getCalendarListData'
}), }),
handleShowCalendar() { handleShowCalendar(value) {
this.showCalendar = true this.showCalendar = Boolean(value)
}, },
goBack() { goBack() {
this.$router.push('/home/index') this.$router.push('/home/index')
...@@ -92,7 +94,6 @@ export default { ...@@ -92,7 +94,6 @@ export default {
.market-bottom { .market-bottom {
display: flex; display: flex;
margin-right: 10px; margin-right: 10px;
height: calc(100% - 210px); height: calc(100% - 210px);
.market-middle { .market-middle {
...@@ -105,9 +106,6 @@ export default { ...@@ -105,9 +106,6 @@ export default {
} }
.calendar-panel { .calendar-panel {
position: absolute;
top: 10px;
left: 0px;
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!