Commit af4757b1 by 王志慧

Merge branch 'wangzh_dev_3.11.0' into v3.11.0

2 parents 572bfcbe 4f33195d
......@@ -322,7 +322,9 @@ img {
.pointer{
cursor: pointer;
}
.txt-red {
color: red;
......
......@@ -11,7 +11,7 @@
<div class="store-wrap">
<div class="mrglr text-16 scrm-c3 weight-6">{{ merchantInfo.merchantName }}</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 class="scheme-wrap">
......@@ -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-text one-line-ellipsis">{{ item.activityName }}</div>
<div class="flex txt-blue" v-show="item.hovering">
<span>预览</span>
<span class="scrm-ml6" @click="setActivity(item)">引用</span>
<span class="pointer">预览</span>
<span class="scrm-ml6 pointer" @click="setActivity(item)">引用</span>
</div>
</div>
</template>
......@@ -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="scheme-text">{{ index + 1 }}、{{ item.title }}</div>
<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>
</template>
......@@ -116,7 +116,7 @@ export default {
title: item.title,
id: item.id,
hovering: false,
type: 'calendar' //方案
type: 'calendar' //方案
}
})
}
......@@ -148,6 +148,9 @@ export default {
margin: 8px 0;
display: flex;
flex-direction: column;
height: 200px;
overflow-y: scroll;
overflow-x: hidden;
.scheme-line {
margin-bottom: 4px;
align-items: center;
......@@ -177,6 +180,9 @@ export default {
.theme-wrap {
padding: 0 16px;
.theme-list {
height: 200px;
// overflow-x: hidden;
overflow-y: scroll;
margin: 8px 0;
display: flex;
flex-direction: column;
......@@ -190,7 +196,7 @@ export default {
}
}
.select {
width: 226px;
width: 206px;
height: auto;
background: #f2f1ff;
border-radius: 4px;
......
......@@ -74,7 +74,7 @@ export default {
},
handleShowCalendar() {
console.log(111)
this.$parent.$parent.handleShowCalendar()
this.$parent.$parent.handleShowCalendar(1)
},
plusMonth: function() {
if (this.date.month == 11) {
......
......@@ -6,8 +6,26 @@
</div>
<span class="range">{{ currentDate }}</span>
<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 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>
</template>
<script>
......@@ -37,11 +55,14 @@ export default {
this.calendar.on('clickEvent', e => {
// console.log(e)
})
this.getCalendarData()
this.getCalendarData()
},
methods: {
close(){
this.$parent.handleShowCalendar(0)
},
getCalendarData() {
let { eventList, calendarData,calendar, currentDate } = this
let { eventList, calendarData, calendar, currentDate } = this
eventList = calendarData.map(item => {
return {
id: item.id,
......@@ -62,17 +83,20 @@ export default {
</script>
<style lang="scss" scoped>
.calendar-wrap {
width: 100%;
height: 100%;
width: auto;
height: calc(100% - 56px);
margin-bottom: 20px;
margin-right: 10px;
}
.header {
display: flex;
margin: 11px 0;
margin-top: 11px;
align-items: center;
margin-left: -76px;
justify-content: center;
height: 44px;
background: #ffffff;
border-bottom: 1px solid #c6c6c6;
position: relative;
left: 50%;
.range {
font-weight: 600;
font-size: 16px;
......@@ -85,10 +109,22 @@ export default {
transform: rotate(270deg);
}
}
.close {
display: flex;
align-items: center;
position: absolute;
cursor: pointer;
right:16px;
img {
width: 12px;
height: 12px;
margin-right: 4px;
}
}
}
.calendar {
width: 100%;
height: 100%;
height: calc(100% - 216px);
}
.header-rounded {
width: 28px;
......@@ -104,4 +140,28 @@ export default {
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>
......@@ -22,13 +22,15 @@
<div class="market-title">ChatGPT超级营销</div>
</div>
</div>
<div class="market-bottom">
<div class="market-middle">
<marketing-middle></marketing-middle>
</div>
<div class="market-right">
<marketing-right></marketing-right>
</div>
<div class="market-bottom" v-show="!showCalendar">
<!-- <template > -->
<div class="market-middle">
<marketing-middle></marketing-middle>
</div>
<div class="market-right">
<marketing-right></marketing-right>
</div>
<!-- </template> -->
</div>
<div v-if="showCalendar" class="calendar-panel">
<schedule-calendar ref="calendar"></schedule-calendar>
......@@ -41,7 +43,7 @@ import ScheduleCalendar from './components/Marketing/components/ScheduleCalendar
import MarketingLeft from './components/Marketing/MarketingLeft'
import MarketingMiddle from './components/Marketing/MarketingMiddle'
import MarketingRight from './components/Marketing/MarketingRight'
import {mapActions} from 'vuex'
import { mapActions } from 'vuex'
export default {
components: {
MarketingLeft,
......@@ -58,11 +60,11 @@ export default {
this.getCalendarListData({})
},
methods: {
...mapActions({
...mapActions({
getCalendarListData: 'marketing/getCalendarListData'
}),
handleShowCalendar() {
this.showCalendar = true
handleShowCalendar(value) {
this.showCalendar = Boolean(value)
},
goBack() {
this.$router.push('/home/index')
......@@ -92,7 +94,6 @@ export default {
.market-bottom {
display: flex;
margin-right: 10px;
height: calc(100% - 210px);
.market-middle {
......@@ -105,9 +106,6 @@ export default {
}
.calendar-panel {
position: absolute;
top: 10px;
left: 0px;
width: 100%;
height: 100%;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!