Commit a320fbe9 by 杨明

fixed

1 parent 5cea7a4f
......@@ -3,8 +3,8 @@
* @version: 1.0.0
* @Author: limin
* @Date: 2021-08-13 14:12:11
* @LastEditors: limin
* @LastEditTime: 2021-09-24 10:41:31
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-07-13 17:52:36
* @FilePath: \scrm\scrm-sub-blog\src\main.js
*/
import Vue from 'vue'
......@@ -17,6 +17,7 @@ import { start } from '@/setup'
Vue.config.productionTip = false
Vue.prototype.$apis = apis
Vue.prototype.size = 'small'
Vue.prototype.$vip = 'https://img01.glsx.com.cn/weapp/resource/miniprogram/expandedGold/vip.png'
start()
export { bootstrap, mount, unmount } from '@/setup'
export const http = params => Vue.prototype.$http(params)
......
......@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2023-05-10 17:17:31
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-07-13 16:33:10
* @LastEditTime: 2023-07-13 21:02:00
* @FilePath: \outbound\src\views\calendar\add.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -67,6 +67,7 @@
import selectGoodsDialog from './components/SelectGoodsDialog'
import PhoneView from './components/PhoneView'
import getUploadImgColor from '@/utils/color'
const RENEWAL = [1, 2, 3, 4, 5, 6, 7, 8]
export default {
name: 'addCalendar',
data() {
......@@ -210,7 +211,7 @@ export default {
couponAmount: item.couponAmount
}
})
if (param.titleStyle) {
if (param.titleStyle && RENEWAL.includes(param.codeId)) {
const style1 = this.$refs.preview.draggableList[0]
const style2 = this.$refs.preview.draggableList[1]
const titleStyle = JSON.parse(param.titleStyle)
......
......@@ -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-06 17:44:39
* @LastEditTime: 2023-07-13 21:03:19
* @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
-->
......@@ -10,7 +10,7 @@
<div class="review-body">
<img src="@/assets/phone.png" class="review-phone" />
<div class="review-title_top">{{ detail.title }}</div>
<div class="review-content" v-if="detail.marketingType == 5">
<div class="review-content" v-if="isRenewal">
<div class="review-main">
<template v-for="item in draggableList">
<vue-draggable-resizable
......@@ -23,7 +23,8 @@
:y="item.y"
:style="{
'font-size': item.size + 'px',
color: item.color
color: item.color,
'font-family': item.font
}"
class="img_cl"
parent=".review-main"
......@@ -38,43 +39,27 @@
<img :src="detail.backgroundImg" v-if="detail.backgroundImg" />
</div>
</div>
<div class="main-body" style="background: #DEEAF2;">
<template v-if="modelNum == 1">
<!-- 权益服务 -->
<equity-one :detail="detail"></equity-one>
<div class="main-body" :style="{ background: detail.mainColor }">
<template v-if="[1, 2, 3].includes(modelNum)">
<!-- 商品券 -->
<goods-one :detail="detail"></goods-one>
<!-- 服务券 -->
<coupon-one :detail="detail"></coupon-one>
<goods-one :selectedGoodsList="selectedGoodsList"></goods-one>
</template>
<template v-if="modelNum == 2">
<!-- 权益服务 -->
<equity-two :detail="detail"></equity-two>
<template v-if="[4].includes(modelNum)">
<!-- 商品券 -->
<goods-two :detail="detail"></goods-two>
<!-- 服务券 -->
<coupon-two :detail="detail"></coupon-two>
<goods-two :selectedGoodsList="selectedGoodsList"></goods-two>
</template>
<template v-if="modelNum == 3">
<!-- 权益服务 -->
<equity-three :detail="detail"></equity-three>
<template v-if="[5, 6, 7].includes(modelNum)">
<!-- 商品券 -->
<goods-three :detail="detail"></goods-three>
<!-- 服务券 -->
<coupon-three :detail="detail"></coupon-three>
<goods-three :selectedGoodsList="selectedGoodsList"></goods-three>
</template>
<template v-if="modelNum == 4">
<!-- 权益服务 -->
<equity-four :detail="detail"></equity-four>
<template v-if="[8].includes(modelNum)">
<!-- 商品券 -->
<goods-four :detail="detail"></goods-four>
<!-- 服务券 -->
<coupon-four :detail="detail"></coupon-four>
<goods-four :selectedGoodsList="selectedGoodsList"></goods-four>
</template>
</div>
</div>
<!-- <div class="review-content" v-else>
<div class="review-content" v-else>
<div class="review-main">
<div class="main-title" :style="{ top: item.y + 'px', 'font-size': item.fontSize + 'px', color: item.color }" v-for="(item, index) in textList" :key="index">{{ item.text }}</div>
<div class="review-bg-img">
......@@ -84,44 +69,32 @@
<img :src="detail.captionImg" v-if="detail.captionImg" />
</div>
</div>
</div> -->
</div>
</div>
</template>
<script>
const WIDTH = 275
const RATIO = WIDTH / 375
const RENEWAL = [1, 2, 3, 4, 5, 6, 7, 8]
import VueDraggableResizable from '@/components/draggable/vue-draggable-resizable'
import '@/components/draggable/vue-draggable-resizable.css'
import equityOne from './model/model_1/equity'
import goodsOne from './model/model_1/goods'
import couponOne from './model/model_1/coupon'
import equityTwo from './model/model_2/equity'
import goodsTwo from './model/model_2/goods'
import couponTwo from './model/model_2/coupon'
import equityThree from './model/model_3/equity'
import goodsThree from './model/model_3/goods'
import couponThree from './model/model_3/coupon'
import equityFour from './model/model_4/equity'
import goodsFour from './model/model_4/goods'
import couponFour from './model/model_4/coupon'
export default {
components: {
VueDraggableResizable,
equityOne,
goodsOne,
couponOne,
equityTwo,
goodsTwo,
couponTwo,
equityThree,
goodsThree,
couponThree,
goodsFour,
equityFour,
couponFour
goodsFour
},
data() {
return {
currentIndex: 0,
modelNum: 4,
isRenewal: false,
discount: {
2: '折扣券',
3: '代金券',
......@@ -200,8 +173,13 @@ export default {
watch: {
editForm: {
handler(val) {
console.log(33)
const mainTitle = this.cavansObj[val.id],
this.isRenewal = false
if (RENEWAL.includes(val.codeId)) {
this.modelNum = val.codeId
this.isRenewal = true
}
this.detail = this.editForm
const mainTitle = this.cavansObj[1],
{ title, subTitle } = val,
textList = []
if (mainTitle) {
......@@ -238,8 +216,8 @@ export default {
if (marketingType == 5) {
const style1 = JSON.parse(titleStyle)
const style2 = JSON.parse(subTitleStyle)
Object.assign(this.draggableList[0], { content: title, ...style1, color: style1.style.color })
Object.assign(this.draggableList[1], { content: subTitle, ...style1, color: style2.style.color })
Object.assign(this.draggableList[0], { content: title, ...style1, color: style1.style.color, font: style1.font, height: style1.size })
Object.assign(this.draggableList[1], { content: subTitle, ...style2, color: style2.style.color, font: style2.font, height: style2.size })
}
},
deep: true,
......@@ -309,3 +287,13 @@ export default {
}
}
</style>
<style>
@font-face {
font-family: 'jingnanyuanmoti';
src: url('https://img01.glsx.com.cn/weapp/resource/saas/scrm/fonts/KNFONTYUANMO-2.otf');
}
@font-face {
font-family: 'YouSheBiaoTiYuan';
src: url('https://img01.glsx.com.cn/weapp/resource/saas/scrm/fonts/douyuFont-2.otf');
}
</style>
<template>
<div class="wrap">
<div class="container-panel">
<img class="angle" src="https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/deliver.png?v=1.0.2" />
<div class="title">
<span>超爽生活权益</span>
<img class="xing " src="https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/xing_2.png?v=1.0.2" />
<div class="wrap">
<div class="container-panel">
<img class="angle" src="https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/deliver.png?v=1.0.2" />
<div class="title">
<span>超爽生活权益</span>
<img class="xing " src="https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/xing_2.png?v=1.0.2" />
</div>
<div class="service-item" v-for="(item, index) in selectedGoodsList" :key="index">
<div class="service-logo">
<img :src="item.goodsImage || $vip" />
</div>
<div class="service-desc">
<div class="service-title">{{ item.brandName }}{{ item.goodsName }}</div>
<div class="service-content">x{{ item.couponAmount }} 抵扣券</div>
</div>
<div class="service-item" v-for="(item, index) in serviceList" :key="index">
<div class="service-logo"></div>
<div class="service-desc">
<div class="service-title">{{ item.brandName }}{{ item.goodsName }}</div>
<div class="service-content">x{{ item.couponAmount }} 抵扣券</div>
</div>
<div class="service-price">
{{ item.couponAnticipatedCost }}
<span>元</span>
</div>
<div class="service-price">
{{ formatPrice(item.couponAnticipatedCost || item.denomination) }}
<span>元</span>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
......@@ -31,142 +31,26 @@ export default {
3: '代金券',
4: '兑换券',
7: '服务券'
}
}
},
props: {
selectedGoodsList: {
type: Array,
default: () => []
}
},
watch: {
selectedGoodsList: {
handler(val) {
console.log(val)
},
serviceList: [
{
couponId: 1312,
discountType: 7,
couponName: '特殊服务230104160557',
couponAnticipatedCost: 0,
status: 2,
limitStockFlag: 1,
residueCouponAmount: null,
couponAmount: 1,
effectiveType: 3,
effectiveDays: null,
brandId: null,
brandName: null,
goodId: null,
goodsName: null,
appearance: null,
rechargeDenomination: null,
provideWay: null
},
{
couponId: 1308,
discountType: 7,
couponName: '特殊服务230104160455',
couponAnticipatedCost: 0,
status: 2,
limitStockFlag: 1,
residueCouponAmount: null,
couponAmount: 1,
effectiveType: 3,
effectiveDays: null,
brandId: null,
brandName: null,
goodId: null,
goodsName: null,
appearance: null,
rechargeDenomination: null,
provideWay: null
},
{
couponId: 1304,
discountType: 7,
couponName: '特殊服务230104154920',
couponAnticipatedCost: 0,
status: 2,
limitStockFlag: 1,
residueCouponAmount: null,
couponAmount: 1,
effectiveType: 3,
effectiveDays: null,
brandId: null,
brandName: null,
goodId: null,
goodsName: null,
appearance: null,
rechargeDenomination: null,
provideWay: null
},
{
couponId: 1296,
discountType: 7,
couponName: '特殊服务20230103161654',
couponAnticipatedCost: 0,
status: 2,
limitStockFlag: 1,
residueCouponAmount: null,
couponAmount: 1,
effectiveType: 3,
effectiveDays: null,
brandId: null,
brandName: null,
goodId: null,
goodsName: null,
appearance: null,
rechargeDenomination: null,
provideWay: null
},
{
couponId: 1295,
discountType: 7,
couponName: '特殊服务',
couponAnticipatedCost: 0,
status: 2,
limitStockFlag: 1,
residueCouponAmount: null,
couponAmount: 1,
effectiveType: 3,
effectiveDays: null,
brandId: null,
brandName: null,
goodId: null,
goodsName: null,
appearance: null,
rechargeDenomination: null,
provideWay: null
},
{
couponId: 1404,
discountType: 8,
couponName: '爱奇艺2元券',
couponAnticipatedCost: 100,
status: 2,
limitStockFlag: 2,
residueCouponAmount: null,
couponAmount: 1,
effectiveType: 1,
effectiveDays: 25,
brandId: null,
brandName: '爱奇艺',
goodId: 353,
goodsName: '爱奇艺2元券',
appearance: 2,
rechargeDenomination: '1',
provideWay: null
},
{
couponId: 1399,
discountType: 8,
couponName: '中杯全国通兑券-新品',
couponAnticipatedCost: 1000,
status: 2,
limitStockFlag: 2,
residueCouponAmount: null,
couponAmount: 4,
effectiveType: 1,
effectiveDays: 30,
brandId: null,
brandName: '星巴克',
goodId: 578,
goodsName: '中杯全国通兑券-新品',
appearance: 1,
rechargeDenomination: '',
provideWay: null
}
]
deep: true
}
},
methods: {
formatPrice(val) {
return (val / 100).toFixed(2).replace(/\.[0]+$/, '')
}
}
}
......@@ -184,33 +68,33 @@ export default {
.angle {
position: absolute;
top: -8px;
left: -8px;
width: 93.87px;
height: 89.24px;
top: -4px;
left: -4px;
width: 53.87px;
height: 59.24px;
}
.title {
font-weight: 700;
font-size: 20px;
font-size: 13px;
color: #ffffff;
text-shadow: 0 2px 3px #d89410;
padding-left: 50px;
padding-top: 10px;
padding-left: 20px;
padding-top: 5px;
position: relative;
display: inline-block;
.xing {
position: absolute;
top: -5px;
width: 39.99px;
height: 42.89px;
width: 19.99px;
height: 22.89px;
}
}
.service-item {
display: flex;
height: 66.15px;
height: 46.15px;
align-items: center;
background: #fcf9ef;
background-image: linear-gradient(-83deg, #fe6a7545 0%, #fcf0ee00 96%);
......@@ -227,6 +111,11 @@ export default {
width: 32px;
height: 32px;
margin-right: 10px;
img {
width: 32px;
height: 32px;
border-radius: 50%;
}
}
.service-desc {
......
<template>
<div class="wrap">
<div class="wrap">
<div class="container-panel">
<img class="header-panel" src="https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_4/delivery.png" />
<div class="service-item" v-for="(item, index) in serviceList" :key="index">
<div class="service-logo"> </div>
<div class="service-desc">
<div class="service-title">{{item.brandName}}{{item.goodsName}}</div>
<div class="service-content">x{{item.couponAmount}} 抵扣券</div>
</div>
<div class="service-price">{{item.couponAnticipatedCost}}<span>元</span> </div>
<div class="service-item" v-for="(item, index) in selectedGoodsList" :key="index">
<div class="service-logo">
<img :src="item.goodsImage || $vip" />
</div>
<div class="service-desc">
<div class="service-title">{{ item.brandName }}{{ item.goodsName }}</div>
<div class="service-content">x{{ item.couponAmount }} 抵扣券</div>
</div>
<div class="service-price">
{{ formatPrice(item.couponAnticipatedCost || item.denomination) }}
<span>元</span>
</div>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
......@@ -22,142 +27,26 @@ export default {
3: '代金券',
4: '兑换券',
7: '服务券'
}
}
},
props: {
selectedGoodsList: {
type: Array,
default: () => []
}
},
watch: {
selectedGoodsList: {
handler(val) {
console.log(val)
},
serviceList: [
{
couponId: 1312,
discountType: 7,
couponName: '特殊服务230104160557',
couponAnticipatedCost: 0,
status: 2,
limitStockFlag: 1,
residueCouponAmount: null,
couponAmount: 1,
effectiveType: 3,
effectiveDays: null,
brandId: null,
brandName: null,
goodId: null,
goodsName: null,
appearance: null,
rechargeDenomination: null,
provideWay: null
},
{
couponId: 1308,
discountType: 7,
couponName: '特殊服务230104160455',
couponAnticipatedCost: 0,
status: 2,
limitStockFlag: 1,
residueCouponAmount: null,
couponAmount: 1,
effectiveType: 3,
effectiveDays: null,
brandId: null,
brandName: null,
goodId: null,
goodsName: null,
appearance: null,
rechargeDenomination: null,
provideWay: null
},
{
couponId: 1304,
discountType: 7,
couponName: '特殊服务230104154920',
couponAnticipatedCost: 0,
status: 2,
limitStockFlag: 1,
residueCouponAmount: null,
couponAmount: 1,
effectiveType: 3,
effectiveDays: null,
brandId: null,
brandName: null,
goodId: null,
goodsName: null,
appearance: null,
rechargeDenomination: null,
provideWay: null
},
{
couponId: 1296,
discountType: 7,
couponName: '特殊服务20230103161654',
couponAnticipatedCost: 0,
status: 2,
limitStockFlag: 1,
residueCouponAmount: null,
couponAmount: 1,
effectiveType: 3,
effectiveDays: null,
brandId: null,
brandName: null,
goodId: null,
goodsName: null,
appearance: null,
rechargeDenomination: null,
provideWay: null
},
{
couponId: 1295,
discountType: 7,
couponName: '特殊服务',
couponAnticipatedCost: 0,
status: 2,
limitStockFlag: 1,
residueCouponAmount: null,
couponAmount: 1,
effectiveType: 3,
effectiveDays: null,
brandId: null,
brandName: null,
goodId: null,
goodsName: null,
appearance: null,
rechargeDenomination: null,
provideWay: null
},
{
couponId: 1404,
discountType: 8,
couponName: '爱奇艺2元券',
couponAnticipatedCost: 100,
status: 2,
limitStockFlag: 2,
residueCouponAmount: null,
couponAmount: 1,
effectiveType: 1,
effectiveDays: 25,
brandId: null,
brandName: '爱奇艺',
goodId: 353,
goodsName: '爱奇艺2元券',
appearance: 2,
rechargeDenomination: '1',
provideWay: null
},
{
couponId: 1399,
discountType: 8,
couponName: '中杯全国通兑券-新品',
couponAnticipatedCost: 1000,
status: 2,
limitStockFlag: 2,
residueCouponAmount: null,
couponAmount: 4,
effectiveType: 1,
effectiveDays: 30,
brandId: null,
brandName: '星巴克',
goodId: 578,
goodsName: '中杯全国通兑券-新品',
appearance: 1,
rechargeDenomination: '',
provideWay: null
}
]
deep: true
}
},
methods: {
formatPrice(val) {
return (val / 100).toFixed(2).replace(/\.[0]+$/, '')
}
}
}
......@@ -198,6 +87,11 @@ export default {
width: 28px;
height: 28px;
margin-right: 8px;
img {
width: 28px;
height: 28px;
border-radius: 50%;
}
}
.service-desc {
......
......@@ -6,14 +6,16 @@
<div class="service-body-bg"></div>
<div class="service-panel-bg"></div>
<div class="service-panel-box">
<div class="service-item" v-for="(item, index) in serviceList" :key="index">
<div class="service-logo"></div>
<div class="service-item" v-for="(item, index) in selectedGoodsList" :key="index">
<div class="service-logo">
<img :src="item.goodsImage || $vip" />
</div>
<div class="service-desc">
<div class="service-title">{{ item.brandName }}{{ item.goodsName }}</div>
<div class="service-content">x{{ item.couponAmount }} 抵扣券</div>
</div>
<div class="service-price">
{{ item.couponAnticipatedCost }}
{{ formatPrice(item.couponAnticipatedCost || item.denomination) }}
<span>元</span>
</div>
</div>
......@@ -31,142 +33,26 @@ export default {
3: '代金券',
4: '兑换券',
7: '服务券'
}
}
},
props: {
selectedGoodsList: {
type: Array,
default: () => []
}
},
watch: {
selectedGoodsList: {
handler(val) {
console.log(val)
},
serviceList: [
{
couponId: 1312,
discountType: 7,
couponName: '特殊服务230104160557',
couponAnticipatedCost: 0,
status: 2,
limitStockFlag: 1,
residueCouponAmount: null,
couponAmount: 1,
effectiveType: 3,
effectiveDays: null,
brandId: null,
brandName: null,
goodId: null,
goodsName: null,
appearance: null,
rechargeDenomination: null,
provideWay: null
},
{
couponId: 1308,
discountType: 7,
couponName: '特殊服务230104160455',
couponAnticipatedCost: 0,
status: 2,
limitStockFlag: 1,
residueCouponAmount: null,
couponAmount: 1,
effectiveType: 3,
effectiveDays: null,
brandId: null,
brandName: null,
goodId: null,
goodsName: null,
appearance: null,
rechargeDenomination: null,
provideWay: null
},
{
couponId: 1304,
discountType: 7,
couponName: '特殊服务230104154920',
couponAnticipatedCost: 0,
status: 2,
limitStockFlag: 1,
residueCouponAmount: null,
couponAmount: 1,
effectiveType: 3,
effectiveDays: null,
brandId: null,
brandName: null,
goodId: null,
goodsName: null,
appearance: null,
rechargeDenomination: null,
provideWay: null
},
{
couponId: 1296,
discountType: 7,
couponName: '特殊服务20230103161654',
couponAnticipatedCost: 0,
status: 2,
limitStockFlag: 1,
residueCouponAmount: null,
couponAmount: 1,
effectiveType: 3,
effectiveDays: null,
brandId: null,
brandName: null,
goodId: null,
goodsName: null,
appearance: null,
rechargeDenomination: null,
provideWay: null
},
{
couponId: 1295,
discountType: 7,
couponName: '特殊服务',
couponAnticipatedCost: 0,
status: 2,
limitStockFlag: 1,
residueCouponAmount: null,
couponAmount: 1,
effectiveType: 3,
effectiveDays: null,
brandId: null,
brandName: null,
goodId: null,
goodsName: null,
appearance: null,
rechargeDenomination: null,
provideWay: null
},
{
couponId: 1404,
discountType: 8,
couponName: '爱奇艺2元券',
couponAnticipatedCost: 100,
status: 2,
limitStockFlag: 2,
residueCouponAmount: null,
couponAmount: 1,
effectiveType: 1,
effectiveDays: 25,
brandId: null,
brandName: '爱奇艺',
goodId: 353,
goodsName: '爱奇艺2元券',
appearance: 2,
rechargeDenomination: '1',
provideWay: null
},
{
couponId: 1399,
discountType: 8,
couponName: '中杯全国通兑券-新品',
couponAnticipatedCost: 1000,
status: 2,
limitStockFlag: 2,
residueCouponAmount: null,
couponAmount: 4,
effectiveType: 1,
effectiveDays: 30,
brandId: null,
brandName: '星巴克',
goodId: 578,
goodsName: '中杯全国通兑券-新品',
appearance: 1,
rechargeDenomination: '',
provideWay: null
}
]
deep: true
}
},
methods: {
formatPrice(val) {
return (val / 100).toFixed(2).replace(/\.[0]+$/, '')
}
}
}
......@@ -236,6 +122,11 @@ export default {
width: 32px;
height: 32px;
margin-right: 10px;
img {
width: 32px;
height: 32px;
border-radius: 50%;
}
}
.service-desc {
......
......@@ -2,14 +2,16 @@
<div class="wrap">
<div class="container-panel">
<img class="header-panel" src="https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_8/deliver.png" />
<div class="service-item" v-for="(item, index) in serviceList" :key="index">
<div class="service-logo"></div>
<div class="service-item" v-for="(item, index) in selectedGoodsList" :key="index">
<div class="service-logo">
<img :src="item.goodsImage || $vip" />
</div>
<div class="service-desc">
<div class="service-title">{{ item.brandName }}{{ item.goodsName }}</div>
<div class="service-content">x{{ item.couponAmount }} 抵扣券</div>
</div>
<div class="service-price">
{{ item.couponAnticipatedCost }}
{{ formatPrice(item.couponAnticipatedCost || item.denomination) }}
<span>元</span>
</div>
</div>
......@@ -25,142 +27,26 @@ export default {
3: '代金券',
4: '兑换券',
7: '服务券'
}
}
},
props: {
selectedGoodsList: {
type: Array,
default: () => []
}
},
watch: {
selectedGoodsList: {
handler(val) {
console.log(val)
},
serviceList: [
{
couponId: 1312,
discountType: 7,
couponName: '特殊服务230104160557',
couponAnticipatedCost: 0,
status: 2,
limitStockFlag: 1,
residueCouponAmount: null,
couponAmount: 1,
effectiveType: 3,
effectiveDays: null,
brandId: null,
brandName: null,
goodId: null,
goodsName: null,
appearance: null,
rechargeDenomination: null,
provideWay: null
},
{
couponId: 1308,
discountType: 7,
couponName: '特殊服务230104160455',
couponAnticipatedCost: 0,
status: 2,
limitStockFlag: 1,
residueCouponAmount: null,
couponAmount: 1,
effectiveType: 3,
effectiveDays: null,
brandId: null,
brandName: null,
goodId: null,
goodsName: null,
appearance: null,
rechargeDenomination: null,
provideWay: null
},
{
couponId: 1304,
discountType: 7,
couponName: '特殊服务230104154920',
couponAnticipatedCost: 0,
status: 2,
limitStockFlag: 1,
residueCouponAmount: null,
couponAmount: 1,
effectiveType: 3,
effectiveDays: null,
brandId: null,
brandName: null,
goodId: null,
goodsName: null,
appearance: null,
rechargeDenomination: null,
provideWay: null
},
{
couponId: 1296,
discountType: 7,
couponName: '特殊服务20230103161654',
couponAnticipatedCost: 0,
status: 2,
limitStockFlag: 1,
residueCouponAmount: null,
couponAmount: 1,
effectiveType: 3,
effectiveDays: null,
brandId: null,
brandName: null,
goodId: null,
goodsName: null,
appearance: null,
rechargeDenomination: null,
provideWay: null
},
{
couponId: 1295,
discountType: 7,
couponName: '特殊服务',
couponAnticipatedCost: 0,
status: 2,
limitStockFlag: 1,
residueCouponAmount: null,
couponAmount: 1,
effectiveType: 3,
effectiveDays: null,
brandId: null,
brandName: null,
goodId: null,
goodsName: null,
appearance: null,
rechargeDenomination: null,
provideWay: null
},
{
couponId: 1404,
discountType: 8,
couponName: '爱奇艺2元券',
couponAnticipatedCost: 100,
status: 2,
limitStockFlag: 2,
residueCouponAmount: null,
couponAmount: 1,
effectiveType: 1,
effectiveDays: 25,
brandId: null,
brandName: '爱奇艺',
goodId: 353,
goodsName: '爱奇艺2元券',
appearance: 2,
rechargeDenomination: '1',
provideWay: null
},
{
couponId: 1399,
discountType: 8,
couponName: '中杯全国通兑券-新品',
couponAnticipatedCost: 1000,
status: 2,
limitStockFlag: 2,
residueCouponAmount: null,
couponAmount: 4,
effectiveType: 1,
effectiveDays: 30,
brandId: null,
brandName: '星巴克',
goodId: 578,
goodsName: '中杯全国通兑券-新品',
appearance: 1,
rechargeDenomination: '',
provideWay: null
}
]
deep: true
}
},
methods: {
formatPrice(val) {
return (val / 100).toFixed(2).replace(/\.[0]+$/, '')
}
}
}
......@@ -201,6 +87,11 @@ export default {
width: 28px;
height: 28px;
margin-right: 8px;
img {
width: 28px;
height: 28px;
border-radius: 50%;
}
}
.service-desc {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!