Commit b56215ee by 王志慧

commit

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