Commit 49c232e9 by 王志慧

Merge branch 'wangzh_dev_3.11.0' into v3.11.0

2 parents 6adcf416 a3890202
<!--
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2023-05-15 15:08:01
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-05-23 17:35:23
* @FilePath: \scrm-micro-home\src\views\home\components\marketing\MarketingLeft.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @Author: 前端 qianduan01@didihu.com.cn
 * @Date: 2023-05-15 15:08:01
 * @LastEditors: yangming yangming@didihu.com.cn
 * @LastEditTime: 2023-05-23 17:35:23
 * @FilePath: \scrm-micro-home\src\views\home\components\marketing\MarketingLeft.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
<div class="left-wrap">
<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>
<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" size="small" type="primary" @click="addSuper">新建</el-button>
</div>
<!-- 营销方案 -->
<!-- 营销方案 -->
<div class="scheme-wrap">
<div class="scrm-ml6 scrm-c3 scrm-f14 weight-6">营销方案:</div>
<div class="scrm-ml6 scrm-c3 scrm-f14 weight-6">营销方案:</div>
<div class="scheme-list" v-infinite-scroll="scrollLoad">
<template v-for="(item, index) in schemeListData">
<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">
<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 class="pointer" @click="getView(item)">预览</span>
<span class="scrm-ml6 pointer" @click="setActivity(item)">引用</span>
<span class="scrm-ml6 pointer" @click="setActivity(item)">引用</span>
</div>
</div>
</template>
</div>
</div>
<!-- 营销日历 -->
<!-- 营销日历 -->
<div class="calendar-market-wrap">
<div class="scrm-c3 scrm-f14 m-b-8 weight-6">营销日历:</div>
<div class="scrm-c3 scrm-f14 m-b-8 weight-6">营销日历:</div>
<glsx-calendar></glsx-calendar>
</div>
<!-- 营销主题 -->
<!-- 营销主题 -->
<div class="theme-wrap">
<div class="scrm-c3 scrm-f14 m-b-8 weight-6">推荐近期营销主题:</div>
<div class="scrm-c3 scrm-f14 m-b-8 weight-6">推荐近期营销主题:</div>
<div class="theme-list">
<template v-for="(item, index) in themeList">
<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="flex txt-blue" v-show="item.hovering">
<span class="scrm-ml6 pointer" @click="setActivity(item)">引用</span>
<div class="flex txt-blue" v-show="item.hovering">
<span class="scrm-ml6 pointer" @click="setActivity(item)">引用</span>
</div>
</div>
</template>
......@@ -101,7 +101,7 @@ export default {
}
},
mounted() {
this.getSchemeListData() //44211227 this.$globalState.session.merchantId
this.getSchemeListData() //44211227 this.$globalState.session.merchantId
},
methods: {
...mapActions('marketing', ['setActivityInfo', 'setSchemeListData']),
......@@ -152,9 +152,9 @@ export default {
})
},
addSuper() {
this.$parent.handleShowCalendar(0)
this.setActivityInfo({})
},
//设置活动详情
}, //设置活动详情
setActivity(item) {
this.$parent.handleShowCalendar(0)
this.setActivityInfo(item)
......@@ -173,89 +173,89 @@ export default {
}
</script>
<style lang="scss" scoped>
.left-wrap {
width: 246px;
height: 100%;
background: #ffffff;
box-sizing: border-box;
display: flex;
flex-direction: column;
.store-wrap {
height: 192px;
margin-top: 48px;
display: flex;
flex-direction: column;
border-bottom: 1px solid #e5e5e5;
.merchantId {
margin: 8px auto 24px;
}
}
.scheme-wrap {
padding: 16px 10px;
.left-wrap {
  width: 246px;
  height: 100%;
  background: #ffffff;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  .store-wrap {
    height: 192px;
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #e5e5e5;
    .merchantId {
      margin: 8px auto 24px;
    }
  }
  .scheme-wrap {
    padding: 16px 10px;
.scheme-list {
margin: 8px 0;
display: flex;
flex-direction: column;
height: 190px;
overflow-y: scroll;
overflow-x: hidden;
.scheme-line {
margin-bottom: 4px;
align-items: center;
height: 36px;
line-height: 36px;
.scheme-text {
width: 182px;
margin-left: 6px;
}
}
.select {
width: 226px;
height: 36px;
background: #f2f1ff;
border-radius: 4px;
padding: 0 6px;
box-sizing: border-box;
.scheme-text {
width: 140px;
}
}
}
}
.calendar-market-wrap {
padding: 0 16px 32px;
}
.theme-wrap {
padding: 0 16px;
.theme-list {
height: 200px;
// overflow-x: hidden;
overflow-y: scroll;
margin: 8px 0;
display: flex;
flex-direction: column;
.theme-line {
margin-bottom: 6px;
align-items: center;
line-height: 32px;
.scheme-text {
width: 182px;
margin-left: 6px;
}
}
.select {
width: 206px;
height: auto;
background: #f2f1ff;
border-radius: 4px;
padding: 0 6px;
box-sizing: border-box;
.scheme-text {
width: 140px;
}
}
}
}
    .scheme-list {
      margin: 8px 0;
      display: flex;
      flex-direction: column;
      height: 190px;
      overflow-y: scroll;
      overflow-x: hidden;
      .scheme-line {
        margin-bottom: 4px;
        align-items: center;
        height: 36px;
        line-height: 36px;
        .scheme-text {
          width: 182px;
          margin-left: 6px;
        }
      }
      .select {
        width: 226px;
        height: 36px;
        background: #f2f1ff;
        border-radius: 4px;
        padding: 0 6px;
        box-sizing: border-box;
        .scheme-text {
          width: 140px;
        }
      }
    }
  }
  .calendar-market-wrap {
    padding: 0 16px 32px;
  }
  .theme-wrap {
    padding: 0 16px;
    .theme-list {
      height: 200px;
      // overflow-x: hidden;
      overflow-y: scroll;
      margin: 8px 0;
      display: flex;
      flex-direction: column;
      .theme-line {
        margin-bottom: 6px;
        align-items: center;
        line-height: 32px;
        .scheme-text {
          width: 182px;
          margin-left: 6px;
        }
      }
      .select {
        width: 206px;
        height: auto;
        background: #f2f1ff;
        border-radius: 4px;
        padding: 0 6px;
        box-sizing: border-box;
        .scheme-text {
          width: 140px;
        }
      }
    }
  }
}
</style>
......@@ -51,7 +51,7 @@ export default {
},
computed: {
...mapState({
calendarData: state => state.marketing.calendarData
calendarData: state => state.marketing.calendarDataAll
})
},
watch: {
......
......@@ -57,9 +57,9 @@ export default {
}
},
mounted() {
this.getCalendarListData({ status: 1 })
this.getCalendarListData({ status: 1, recommendMonths: 3 })
this.getCalendarListDataAll()
this.getMerchantInfo({ merchantId: this.$globalState.session.merchantId })//'44211227' this.$globalState.session.merchantId
this.getMerchantInfo({ merchantId: this.$globalState.session.merchantId }) //'44211227' this.$globalState.session.merchantId
},
methods: {
...mapActions({
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!