Commit a0fa2d96 by 杨明

fixed

1 parent 9342d357
......@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-06-29 21:24:27
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-07-17 15:40:36
* @LastEditTime: 2023-07-17 17:29:32
* @FilePath: \scrm-micro-link\src\views\activityLink\components\MarketingContent.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......
......@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2023-05-15 15:08:32
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-07-17 16:29:54
* @LastEditTime: 2023-07-17 17:47:36
* @FilePath: \scrm-micro-home\src\views\home\components\Marketing\MarketingRight.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -203,6 +203,78 @@
</template>
<template v-else>
<img src="@/assets/seckillActivity/phone.png" class="review-phone" />
<div class="review-title_top">{{ detail.marketingTitle || detail.activityName }}</div>
<div class="review-content">
<div class="review-main">
<div class="review-bg-img">
<img :src="detail.backgroundImage" v-if="detail.backgroundImage" />
</div>
</div>
<div class="review-package" :style="{ background: detail.mainColor }">
<div class="review-equity" v-if="detailCoupon.selectedCarList && detailCoupon.selectedCarList.length">
<div class="service-item" v-for="(item, index) in detailCoupon.selectedCarList" :key="index">
<div class="service-time">{{ item.packageAmount }}</div>
<div class="service-title">{{ item.packageName }}</div>
</div>
</div>
<div class="review-goods" v-if="detailCoupon.selectedGoodsList && detailCoupon.selectedGoodsList.length">
<div class="goods-item" v-for="(item, index) in detailCoupon.selectedGoodsList" :key="index">
<div class="service-logo">
<img :src="item.goodsImage || $vip" alt="" />
</div>
<div class="service-desc">
<div class="title">{{ item.brandName }}{{ item.goodsName }}</div>
<div class="content">x1 抵扣券</div>
</div>
<div class="service-price">
{{ formatPrice(item.couponAnticipatedCost || item.denomination || item.anticipatedCost) }}
<span>元</span>
</div>
</div>
</div>
<div class="review-service" v-if="detailCoupon.selectedServiceList && detailCoupon.selectedServiceList.length">
<div class="coupon-item" v-for="(item, index) in detailCoupon.selectedServiceList" :key="index">
<div class="service-time">{{ discount[item.discountType] }}</div>
<div class="service-title">
<span>{{ item.couponName }}</span>
<span>x1</span>
</div>
</div>
</div>
<div class="review-address" v-if="detail.merchantname">
<div class="navigation">
<div class="title">
<div class="title-l">活动举办方</div>
<div class="title-r">
<span>官方合作</span>
<span>品牌授权</span>
</div>
</div>
<div class="address">
<div class="info">
<div class="store">
{{ detail.merchantname }}
</div>
<div class="detail">
{{ detail.merchantAddress }}
</div>
</div>
</div>
</div>
</div>
<div class="review-line" v-if="detail.serviceHotline">
<img src="https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/service.png" />
<span>服务热线</span>
<i class="el-icon-arrow-right"></i>
</div>
</div>
</div>
<div class="wechat-footer">
<div class="footer-panel">
<div class="wechat-footer-price">¥{{ ((detail.activityPrice || 0) / 100).toFixed(2) }}元</div>
<img src="@/assets/seckillActivity/crowd-footer.png" />
</div>
</div>
</template>
</div>
</template>
......@@ -311,21 +383,21 @@ export default {
}
},
mounted() {
this.$nextTick(() => {
if (!this.activityInfo?.id) return
this.detail = this.activityInfo
this.detailCoupon = this.detail
this.isFestival = false
this.isRenewal = false
if (!this.detail) return
if (RENEWAL.includes(this.detail.codeId)) {
this.modelNum = this.detail.codeId
this.isRenewal = true
}
if (FESTIVAL.includes(this.detail.codeId)) {
this.isFestival = true
}
})
// this.$nextTick(() => {
// if (!this.activityInfo?.id) return
// this.detail = this.activityInfo
// this.detailCoupon = this.detail
// this.isFestival = false
// this.isRenewal = false
// if (!this.detail) return
// if (RENEWAL.includes(this.detail.codeId)) {
// this.modelNum = this.detail.codeId
// this.isRenewal = true
// }
// if (FESTIVAL.includes(this.detail.codeId)) {
// this.isFestival = true
// }
// })
},
watch: {
activityInfo: {
......@@ -354,6 +426,8 @@ export default {
},
methods: {
showActivity(detail) {
this.isFestival = false
this.isRenewal = false
this.detail = detail
this.detailCoupon = this.$common.utils.deepClone(this.packageList)
if (RENEWAL.includes(this.detail.codeId)) {
......@@ -363,6 +437,7 @@ export default {
if (FESTIVAL.includes(this.detail.codeId)) {
this.isFestival = true
}
console.log(this.isFestival, this.isRenewal)
},
validActivity(detail) {
this.detail = detail
......@@ -671,7 +746,7 @@ export default {
}
.service-desc {
width: 65%;
width: 55%;
.title {
font-size: 12px;
color: #111111;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!