Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-outbound
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a320fbe9
authored
Jul 13, 2023
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
5cea7a4f
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
165 additions
and
610 deletions
src/main.js
src/views/calendar/add.vue
src/views/calendar/components/PhoneView.vue
src/views/calendar/components/model/model_1/goods/index.vue
src/views/calendar/components/model/model_2/goods/index.vue
src/views/calendar/components/model/model_3/goods/index.vue
src/views/calendar/components/model/model_4/goods/index.vue
src/main.js
View file @
a320fbe
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
* @version: 1.0.0
* @version: 1.0.0
* @Author: limin
* @Author: limin
* @Date: 2021-08-13 14:12:11
* @Date: 2021-08-13 14:12:11
* @LastEditors:
limi
n
* @LastEditors:
yangming yangming@didihu.com.c
n
* @LastEditTime: 202
1-09-24 10:41:31
* @LastEditTime: 202
3-07-13 17:52:36
* @FilePath: \scrm\scrm-sub-blog\src\main.js
* @FilePath: \scrm\scrm-sub-blog\src\main.js
*/
*/
import
Vue
from
'vue'
import
Vue
from
'vue'
...
@@ -17,6 +17,7 @@ import { start } from '@/setup'
...
@@ -17,6 +17,7 @@ import { start } from '@/setup'
Vue
.
config
.
productionTip
=
false
Vue
.
config
.
productionTip
=
false
Vue
.
prototype
.
$apis
=
apis
Vue
.
prototype
.
$apis
=
apis
Vue
.
prototype
.
size
=
'small'
Vue
.
prototype
.
size
=
'small'
Vue
.
prototype
.
$vip
=
'https://img01.glsx.com.cn/weapp/resource/miniprogram/expandedGold/vip.png'
start
()
start
()
export
{
bootstrap
,
mount
,
unmount
}
from
'@/setup'
export
{
bootstrap
,
mount
,
unmount
}
from
'@/setup'
export
const
http
=
params
=>
Vue
.
prototype
.
$http
(
params
)
export
const
http
=
params
=>
Vue
.
prototype
.
$http
(
params
)
...
...
src/views/calendar/add.vue
View file @
a320fbe
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2023-05-10 17:17:31
* @Date: 2023-05-10 17:17:31
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-07-13
16:33:1
0
* @LastEditTime: 2023-07-13
21:02:0
0
* @FilePath: \outbound\src\views\calendar\add.vue
* @FilePath: \outbound\src\views\calendar\add.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
-->
-->
...
@@ -67,6 +67,7 @@
...
@@ -67,6 +67,7 @@
import
selectGoodsDialog
from
'./components/SelectGoodsDialog'
import
selectGoodsDialog
from
'./components/SelectGoodsDialog'
import
PhoneView
from
'./components/PhoneView'
import
PhoneView
from
'./components/PhoneView'
import
getUploadImgColor
from
'@/utils/color'
import
getUploadImgColor
from
'@/utils/color'
const
RENEWAL
=
[
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
]
export
default
{
export
default
{
name
:
'addCalendar'
,
name
:
'addCalendar'
,
data
()
{
data
()
{
...
@@ -210,7 +211,7 @@ export default {
...
@@ -210,7 +211,7 @@ export default {
couponAmount
:
item
.
couponAmount
couponAmount
:
item
.
couponAmount
}
}
})
})
if
(
param
.
titleStyle
)
{
if
(
param
.
titleStyle
&&
RENEWAL
.
includes
(
param
.
codeId
)
)
{
const
style1
=
this
.
$refs
.
preview
.
draggableList
[
0
]
const
style1
=
this
.
$refs
.
preview
.
draggableList
[
0
]
const
style2
=
this
.
$refs
.
preview
.
draggableList
[
1
]
const
style2
=
this
.
$refs
.
preview
.
draggableList
[
1
]
const
titleStyle
=
JSON
.
parse
(
param
.
titleStyle
)
const
titleStyle
=
JSON
.
parse
(
param
.
titleStyle
)
...
...
src/views/calendar/components/PhoneView.vue
View file @
a320fbe
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2023-05-15 15:08:32
* @Date: 2023-05-15 15:08:32
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-07-
06 17:44:3
9
* @LastEditTime: 2023-07-
13 21:03:1
9
* @FilePath: \scrm-micro-home\src\views\home\components\Marketing\MarketingRight.vue
* @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
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
-->
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<div
class=
"review-body"
>
<div
class=
"review-body"
>
<img
src=
"@/assets/phone.png"
class=
"review-phone"
/>
<img
src=
"@/assets/phone.png"
class=
"review-phone"
/>
<div
class=
"review-title_top"
>
{{
detail
.
title
}}
</div>
<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"
>
<div
class=
"review-main"
>
<template
v-for=
"item in draggableList"
>
<template
v-for=
"item in draggableList"
>
<vue-draggable-resizable
<vue-draggable-resizable
...
@@ -23,7 +23,8 @@
...
@@ -23,7 +23,8 @@
:y=
"item.y"
:y=
"item.y"
:style=
"
{
:style=
"
{
'font-size': item.size + 'px',
'font-size': item.size + 'px',
color: item.color
color: item.color,
'font-family': item.font
}"
}"
class="img_cl"
class="img_cl"
parent=".review-main"
parent=".review-main"
...
@@ -38,43 +39,27 @@
...
@@ -38,43 +39,27 @@
<img
:src=
"detail.backgroundImg"
v-if=
"detail.backgroundImg"
/>
<img
:src=
"detail.backgroundImg"
v-if=
"detail.backgroundImg"
/>
</div>
</div>
</div>
</div>
<div
class=
"main-body"
style=
"background: #DEEAF2;"
>
<div
class=
"main-body"
:style=
"{ background: detail.mainColor }"
>
<
template
v-if=
"modelNum == 1"
>
<
template
v-if=
"[1, 2, 3].includes(modelNum)"
>
<!-- 权益服务 -->
<equity-one
:detail=
"detail"
></equity-one>
<!-- 商品券 -->
<!-- 商品券 -->
<goods-one
:detail=
"detail"
></goods-one>
<goods-one
:selectedGoodsList=
"selectedGoodsList"
></goods-one>
<!-- 服务券 -->
<coupon-one
:detail=
"detail"
></coupon-one>
</
template
>
</
template
>
<
template
v-if=
"modelNum == 2"
>
<
template
v-if=
"[4].includes(modelNum)"
>
<!-- 权益服务 -->
<equity-two
:detail=
"detail"
></equity-two>
<!-- 商品券 -->
<!-- 商品券 -->
<goods-two
:detail=
"detail"
></goods-two>
<goods-two
:selectedGoodsList=
"selectedGoodsList"
></goods-two>
<!-- 服务券 -->
<coupon-two
:detail=
"detail"
></coupon-two>
</
template
>
</
template
>
<
template
v-if=
"modelNum == 3"
>
<
template
v-if=
"[5, 6, 7].includes(modelNum)"
>
<!-- 权益服务 -->
<equity-three
:detail=
"detail"
></equity-three>
<!-- 商品券 -->
<!-- 商品券 -->
<goods-three
:detail=
"detail"
></goods-three>
<goods-three
:selectedGoodsList=
"selectedGoodsList"
></goods-three>
<!-- 服务券 -->
<coupon-three
:detail=
"detail"
></coupon-three>
</
template
>
</
template
>
<
template
v-if=
"modelNum == 4"
>
<
template
v-if=
"[8].includes(modelNum)"
>
<!-- 权益服务 -->
<equity-four
:detail=
"detail"
></equity-four>
<!-- 商品券 -->
<!-- 商品券 -->
<goods-four
:detail=
"detail"
></goods-four>
<goods-four
:selectedGoodsList=
"selectedGoodsList"
></goods-four>
<!-- 服务券 -->
<coupon-four
:detail=
"detail"
></coupon-four>
</
template
>
</
template
>
</div>
</div>
</div>
</div>
<
!-- <
div class="review-content" v-else>
<div
class=
"review-content"
v-else
>
<div
class=
"review-main"
>
<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=
"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"
>
<div
class=
"review-bg-img"
>
...
@@ -84,44 +69,32 @@
...
@@ -84,44 +69,32 @@
<img
:src=
"detail.captionImg"
v-if=
"detail.captionImg"
/>
<img
:src=
"detail.captionImg"
v-if=
"detail.captionImg"
/>
</div>
</div>
</div>
</div>
</div>
-->
</div>
</div>
</div>
</template>
</template>
<
script
>
<
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
VueDraggableResizable
from
'@/components/draggable/vue-draggable-resizable'
import
'@/components/draggable/vue-draggable-resizable.css'
import
'@/components/draggable/vue-draggable-resizable.css'
import
equityOne
from
'./model/model_1/equity'
import
goodsOne
from
'./model/model_1/goods'
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
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
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
goodsFour
from
'./model/model_4/goods'
import
couponFour
from
'./model/model_4/coupon'
export
default
{
export
default
{
components
:
{
components
:
{
VueDraggableResizable
,
VueDraggableResizable
,
equityOne
,
goodsOne
,
goodsOne
,
couponOne
,
equityTwo
,
goodsTwo
,
goodsTwo
,
couponTwo
,
equityThree
,
goodsThree
,
goodsThree
,
couponThree
,
goodsFour
goodsFour
,
equityFour
,
couponFour
},
},
data
()
{
data
()
{
return
{
return
{
currentIndex
:
0
,
currentIndex
:
0
,
modelNum
:
4
,
modelNum
:
4
,
isRenewal
:
false
,
discount
:
{
discount
:
{
2
:
'折扣券'
,
2
:
'折扣券'
,
3
:
'代金券'
,
3
:
'代金券'
,
...
@@ -200,8 +173,13 @@ export default {
...
@@ -200,8 +173,13 @@ export default {
watch
:
{
watch
:
{
editForm
:
{
editForm
:
{
handler
(
val
)
{
handler
(
val
)
{
console
.
log
(
33
)
this
.
isRenewal
=
false
const
mainTitle
=
this
.
cavansObj
[
val
.
id
],
if
(
RENEWAL
.
includes
(
val
.
codeId
))
{
this
.
modelNum
=
val
.
codeId
this
.
isRenewal
=
true
}
this
.
detail
=
this
.
editForm
const
mainTitle
=
this
.
cavansObj
[
1
],
{
title
,
subTitle
}
=
val
,
{
title
,
subTitle
}
=
val
,
textList
=
[]
textList
=
[]
if
(
mainTitle
)
{
if
(
mainTitle
)
{
...
@@ -238,8 +216,8 @@ export default {
...
@@ -238,8 +216,8 @@ export default {
if
(
marketingType
==
5
)
{
if
(
marketingType
==
5
)
{
const
style1
=
JSON
.
parse
(
titleStyle
)
const
style1
=
JSON
.
parse
(
titleStyle
)
const
style2
=
JSON
.
parse
(
subTitleStyle
)
const
style2
=
JSON
.
parse
(
subTitleStyle
)
Object
.
assign
(
this
.
draggableList
[
0
],
{
content
:
title
,
...
style1
,
color
:
style1
.
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
,
...
style
1
,
color
:
style2
.
style
.
color
})
Object
.
assign
(
this
.
draggableList
[
1
],
{
content
:
subTitle
,
...
style
2
,
color
:
style2
.
style
.
color
,
font
:
style2
.
font
,
height
:
style2
.
size
})
}
}
},
},
deep
:
true
,
deep
:
true
,
...
@@ -309,3 +287,13 @@ export default {
...
@@ -309,3 +287,13 @@ export default {
}
}
}
}
</
style
>
</
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
>
src/views/calendar/components/model/model_1/goods/index.vue
View file @
a320fbe
<
template
>
<
template
>
<div
class=
"wrap"
>
<div
class=
"wrap"
>
<div
class=
"container-panel"
>
<div
class=
"container-panel"
>
<img
class=
"angle"
src=
"https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/deliver.png?v=1.0.2"
/>
<img
class=
"angle"
src=
"https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/deliver.png?v=1.0.2"
/>
...
@@ -7,20 +6,21 @@
...
@@ -7,20 +6,21 @@
<span>
超爽生活权益
</span>
<span>
超爽生活权益
</span>
<img
class=
"xing "
src=
"https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/xing_2.png?v=1.0.2"
/>
<img
class=
"xing "
src=
"https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/xing_2.png?v=1.0.2"
/>
</div>
</div>
<div
class=
"service-item"
v-for=
"(item, index) in serviceList"
:key=
"index"
>
<div
class=
"service-item"
v-for=
"(item, index) in selectedGoodsList"
:key=
"index"
>
<div
class=
"service-logo"
></div>
<div
class=
"service-logo"
>
<img
:src=
"item.goodsImage || $vip"
/>
</div>
<div
class=
"service-desc"
>
<div
class=
"service-desc"
>
<div
class=
"service-title"
>
{{
item
.
brandName
}}{{
item
.
goodsName
}}
</div>
<div
class=
"service-title"
>
{{
item
.
brandName
}}{{
item
.
goodsName
}}
</div>
<div
class=
"service-content"
>
x
{{
item
.
couponAmount
}}
抵扣券
</div>
<div
class=
"service-content"
>
x
{{
item
.
couponAmount
}}
抵扣券
</div>
</div>
</div>
<div
class=
"service-price"
>
<div
class=
"service-price"
>
{{
item
.
couponAnticipatedCost
}}
{{
formatPrice
(
item
.
couponAnticipatedCost
||
item
.
denomination
)
}}
<span>
元
</span>
<span>
元
</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
export
default
{
export
default
{
...
@@ -31,142 +31,26 @@ export default {
...
@@ -31,142 +31,26 @@ export default {
3
:
'代金券'
,
3
:
'代金券'
,
4
:
'兑换券'
,
4
:
'兑换券'
,
7
:
'服务券'
7
:
'服务券'
}
}
},
},
serviceList
:
[
props
:
{
{
selectedGoodsList
:
{
couponId
:
1312
,
type
:
Array
,
discountType
:
7
,
default
:
()
=>
[]
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
},
},
{
watch
:
{
couponId
:
1404
,
selectedGoodsList
:
{
discountType
:
8
,
handler
(
val
)
{
couponName
:
'爱奇艺2元券'
,
console
.
log
(
val
)
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
},
},
{
deep
:
true
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
}
}
]
},
methods
:
{
formatPrice
(
val
)
{
return
(
val
/
100
).
toFixed
(
2
).
replace
(
/
\.[
0
]
+$/
,
''
)
}
}
}
}
}
}
...
@@ -184,33 +68,33 @@ export default {
...
@@ -184,33 +68,33 @@ export default {
.angle
{
.angle
{
position
:
absolute
;
position
:
absolute
;
top
:
-
8
px
;
top
:
-
4
px
;
left
:
-
8
px
;
left
:
-
4
px
;
width
:
9
3.87px
;
width
:
5
3.87px
;
height
:
8
9.24px
;
height
:
5
9.24px
;
}
}
.title
{
.title
{
font-weight
:
700
;
font-weight
:
700
;
font-size
:
20
px
;
font-size
:
13
px
;
color
:
#ffffff
;
color
:
#ffffff
;
text-shadow
:
0
2px
3px
#d89410
;
text-shadow
:
0
2px
3px
#d89410
;
padding-left
:
5
0px
;
padding-left
:
2
0px
;
padding-top
:
10
px
;
padding-top
:
5
px
;
position
:
relative
;
position
:
relative
;
display
:
inline-block
;
display
:
inline-block
;
.xing
{
.xing
{
position
:
absolute
;
position
:
absolute
;
top
:
-5px
;
top
:
-5px
;
width
:
3
9.99px
;
width
:
1
9.99px
;
height
:
4
2.89px
;
height
:
2
2.89px
;
}
}
}
}
.service-item
{
.service-item
{
display
:
flex
;
display
:
flex
;
height
:
6
6.15px
;
height
:
4
6.15px
;
align-items
:
center
;
align-items
:
center
;
background
:
#fcf9ef
;
background
:
#fcf9ef
;
background-image
:
linear-gradient
(
-83deg
,
#fe6a7545
0%
,
#fcf0ee00
96%
);
background-image
:
linear-gradient
(
-83deg
,
#fe6a7545
0%
,
#fcf0ee00
96%
);
...
@@ -227,6 +111,11 @@ export default {
...
@@ -227,6 +111,11 @@ export default {
width
:
32px
;
width
:
32px
;
height
:
32px
;
height
:
32px
;
margin-right
:
10px
;
margin-right
:
10px
;
img
{
width
:
32px
;
height
:
32px
;
border-radius
:
50%
;
}
}
}
.service-desc
{
.service-desc
{
...
...
src/views/calendar/components/model/model_2/goods/index.vue
View file @
a320fbe
...
@@ -2,16 +2,21 @@
...
@@ -2,16 +2,21 @@
<div
class=
"wrap"
>
<div
class=
"wrap"
>
<div
class=
"container-panel"
>
<div
class=
"container-panel"
>
<img
class=
"header-panel"
src=
"https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_4/delivery.png"
/>
<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-item"
v-for=
"(item, index) in selectedGoodsList"
:key=
"index"
>
<div
class=
"service-logo"
>
</div>
<div
class=
"service-logo"
>
<img
:src=
"item.goodsImage || $vip"
/>
</div>
<div
class=
"service-desc"
>
<div
class=
"service-desc"
>
<div
class=
"service-title"
>
{{
item
.
brandName
}}{{
item
.
goodsName
}}
</div>
<div
class=
"service-title"
>
{{
item
.
brandName
}}{{
item
.
goodsName
}}
</div>
<div
class=
"service-content"
>
x
{{
item
.
couponAmount
}}
抵扣券
</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
class=
"service-price"
>
{{
item
.
couponAnticipatedCost
}}
<span>
元
</span>
</div>
</div>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
export
default
{
export
default
{
...
@@ -22,142 +27,26 @@ export default {
...
@@ -22,142 +27,26 @@ export default {
3
:
'代金券'
,
3
:
'代金券'
,
4
:
'兑换券'
,
4
:
'兑换券'
,
7
:
'服务券'
7
:
'服务券'
}
}
},
},
serviceList
:
[
props
:
{
{
selectedGoodsList
:
{
couponId
:
1312
,
type
:
Array
,
discountType
:
7
,
default
:
()
=>
[]
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
},
},
{
watch
:
{
couponId
:
1295
,
selectedGoodsList
:
{
discountType
:
7
,
handler
(
val
)
{
couponName
:
'特殊服务'
,
console
.
log
(
val
)
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
},
},
{
deep
:
true
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
},
},
{
methods
:
{
couponId
:
1399
,
formatPrice
(
val
)
{
discountType
:
8
,
return
(
val
/
100
).
toFixed
(
2
).
replace
(
/
\.[
0
]
+$/
,
''
)
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
}
]
}
}
}
}
}
}
...
@@ -198,6 +87,11 @@ export default {
...
@@ -198,6 +87,11 @@ export default {
width
:
28px
;
width
:
28px
;
height
:
28px
;
height
:
28px
;
margin-right
:
8px
;
margin-right
:
8px
;
img
{
width
:
28px
;
height
:
28px
;
border-radius
:
50%
;
}
}
}
.service-desc
{
.service-desc
{
...
...
src/views/calendar/components/model/model_3/goods/index.vue
View file @
a320fbe
...
@@ -6,14 +6,16 @@
...
@@ -6,14 +6,16 @@
<div
class=
"service-body-bg"
></div>
<div
class=
"service-body-bg"
></div>
<div
class=
"service-panel-bg"
></div>
<div
class=
"service-panel-bg"
></div>
<div
class=
"service-panel-box"
>
<div
class=
"service-panel-box"
>
<div
class=
"service-item"
v-for=
"(item, index) in serviceList"
:key=
"index"
>
<div
class=
"service-item"
v-for=
"(item, index) in selectedGoodsList"
:key=
"index"
>
<div
class=
"service-logo"
></div>
<div
class=
"service-logo"
>
<img
:src=
"item.goodsImage || $vip"
/>
</div>
<div
class=
"service-desc"
>
<div
class=
"service-desc"
>
<div
class=
"service-title"
>
{{
item
.
brandName
}}{{
item
.
goodsName
}}
</div>
<div
class=
"service-title"
>
{{
item
.
brandName
}}{{
item
.
goodsName
}}
</div>
<div
class=
"service-content"
>
x
{{
item
.
couponAmount
}}
抵扣券
</div>
<div
class=
"service-content"
>
x
{{
item
.
couponAmount
}}
抵扣券
</div>
</div>
</div>
<div
class=
"service-price"
>
<div
class=
"service-price"
>
{{
item
.
couponAnticipatedCost
}}
{{
formatPrice
(
item
.
couponAnticipatedCost
||
item
.
denomination
)
}}
<span>
元
</span>
<span>
元
</span>
</div>
</div>
</div>
</div>
...
@@ -31,142 +33,26 @@ export default {
...
@@ -31,142 +33,26 @@ export default {
3
:
'代金券'
,
3
:
'代金券'
,
4
:
'兑换券'
,
4
:
'兑换券'
,
7
:
'服务券'
7
:
'服务券'
}
}
},
},
serviceList
:
[
props
:
{
{
selectedGoodsList
:
{
couponId
:
1312
,
type
:
Array
,
discountType
:
7
,
default
:
()
=>
[]
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
},
},
{
watch
:
{
couponId
:
1404
,
selectedGoodsList
:
{
discountType
:
8
,
handler
(
val
)
{
couponName
:
'爱奇艺2元券'
,
console
.
log
(
val
)
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
},
},
{
deep
:
true
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
}
}
]
},
methods
:
{
formatPrice
(
val
)
{
return
(
val
/
100
).
toFixed
(
2
).
replace
(
/
\.[
0
]
+$/
,
''
)
}
}
}
}
}
}
...
@@ -236,6 +122,11 @@ export default {
...
@@ -236,6 +122,11 @@ export default {
width
:
32px
;
width
:
32px
;
height
:
32px
;
height
:
32px
;
margin-right
:
10px
;
margin-right
:
10px
;
img
{
width
:
32px
;
height
:
32px
;
border-radius
:
50%
;
}
}
}
.service-desc
{
.service-desc
{
...
...
src/views/calendar/components/model/model_4/goods/index.vue
View file @
a320fbe
...
@@ -2,14 +2,16 @@
...
@@ -2,14 +2,16 @@
<div
class=
"wrap"
>
<div
class=
"wrap"
>
<div
class=
"container-panel"
>
<div
class=
"container-panel"
>
<img
class=
"header-panel"
src=
"https://img02.glsx.com.cn/weapp/resource/miniprogram/expandedGold/model_8/deliver.png"
/>
<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-item"
v-for=
"(item, index) in selectedGoodsList"
:key=
"index"
>
<div
class=
"service-logo"
></div>
<div
class=
"service-logo"
>
<img
:src=
"item.goodsImage || $vip"
/>
</div>
<div
class=
"service-desc"
>
<div
class=
"service-desc"
>
<div
class=
"service-title"
>
{{
item
.
brandName
}}{{
item
.
goodsName
}}
</div>
<div
class=
"service-title"
>
{{
item
.
brandName
}}{{
item
.
goodsName
}}
</div>
<div
class=
"service-content"
>
x
{{
item
.
couponAmount
}}
抵扣券
</div>
<div
class=
"service-content"
>
x
{{
item
.
couponAmount
}}
抵扣券
</div>
</div>
</div>
<div
class=
"service-price"
>
<div
class=
"service-price"
>
{{
item
.
couponAnticipatedCost
}}
{{
formatPrice
(
item
.
couponAnticipatedCost
||
item
.
denomination
)
}}
<span>
元
</span>
<span>
元
</span>
</div>
</div>
</div>
</div>
...
@@ -25,142 +27,26 @@ export default {
...
@@ -25,142 +27,26 @@ export default {
3
:
'代金券'
,
3
:
'代金券'
,
4
:
'兑换券'
,
4
:
'兑换券'
,
7
:
'服务券'
7
:
'服务券'
}
}
},
},
serviceList
:
[
props
:
{
{
selectedGoodsList
:
{
couponId
:
1312
,
type
:
Array
,
discountType
:
7
,
default
:
()
=>
[]
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
},
},
{
watch
:
{
couponId
:
1295
,
selectedGoodsList
:
{
discountType
:
7
,
handler
(
val
)
{
couponName
:
'特殊服务'
,
console
.
log
(
val
)
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
},
},
{
deep
:
true
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
},
},
{
methods
:
{
couponId
:
1399
,
formatPrice
(
val
)
{
discountType
:
8
,
return
(
val
/
100
).
toFixed
(
2
).
replace
(
/
\.[
0
]
+$/
,
''
)
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
}
]
}
}
}
}
}
}
...
@@ -201,6 +87,11 @@ export default {
...
@@ -201,6 +87,11 @@ export default {
width
:
28px
;
width
:
28px
;
height
:
28px
;
height
:
28px
;
margin-right
:
8px
;
margin-right
:
8px
;
img
{
width
:
28px
;
height
:
28px
;
border-radius
:
50%
;
}
}
}
.service-desc
{
.service-desc
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment