Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
scrm-wx-merchant-activity
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 3e960554
authored
Sep 26, 2022
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
小窗直播样式调整
1 parent
0b25c8a1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
24 deletions
src/components/Action.vue
src/components/LiveBox.vue
src/components/Action.vue
View file @
3e96055
<
template
>
<div
:class=
"['action isFullSucreen flex',
{ bgBlack: bgBlack }]" v-if="show">
<div
class=
"btn-box flex"
v-show=
"!bgBlack"
>
<div
class=
"item"
@
click=
"getPoster"
>
<div
:class=
"['action isFullSucreen flex',
{ bgBlack: bgBlack }]"
v-if="show">
<div
class=
"btn-box flex"
v-show=
"!bgBlack"
>
<div
class=
"item"
@
click=
"getPoster"
>
<div
class=
"sprite-icon icon-poster"
></div>
海报
</div>
...
...
@@ -11,7 +14,10 @@
{{
detail
.
price
}}
<span>
.
{{
detail
.
decimal
}}
</span>
</div>
<div
:class=
"['btn text-center',
{ disabled: iSMiniprogram || detail.activityStatus == 3 || detail.buyFlag == 2 }, { short: detail.buyFlag == 3 }]" @click="submit" @touchstart="touchstart" @touchend="touchend">
<div
:class=
"['btn text-center',
{ disabled: iSMiniprogram || detail.activityStatus == 3 || detail.buyFlag == 2 }, { short: detail.buyFlag == 3 }]"
@click="submit"
@touchstart="touchstart"
@touchend="touchend">
<template
v-if=
"detail.activityStatus == 1 && detail.buyFlag != 2"
>
预热下单
</
template
>
<
template
v-else-if=
"detail.activityStatus == 3"
>
活动已结束
</
template
>
<
template
v-else
>
...
...
@@ -20,12 +26,22 @@
<
template
v-else
>
立即参团
</
template
>
</template>
</div>
<pay-modal
v-model=
"showModal"
:list=
"formList"
@
cancel=
"showModal = false"
@
pay=
"checkOut"
:payStatus=
"payStatus"
:carInfo=
"carInfo"
/>
<van-overlay
:show=
"showPoster"
@
click
.
self=
"showPoster = false"
>
<div
class=
"wrapper"
@
click
.
stop
>
<van-image
:src=
"posterImg"
width=
"100%"
height=
"100%"
>
<pay-modal
v-model=
"showModal"
:list=
"formList"
@
cancel=
"showModal = false"
@
pay=
"checkOut"
:payStatus=
"payStatus"
:carInfo=
"carInfo"
/>
<van-overlay
:show=
"showPoster"
@
click
.
self=
"showPoster = false"
>
<div
class=
"wrapper"
@
click
.
stop
>
<van-image
:src=
"posterImg"
width=
"100%"
height=
"100%"
>
<
template
v-slot:loading
>
<van-loading
type=
"spinner"
size=
"20"
/>
<van-loading
type=
"spinner"
size=
"20"
/>
</
template
>
</van-image>
</div>
...
...
@@ -41,7 +57,7 @@ export default {
watch
:
{
watchUpdataCarInfo
:
{
immediate
:
true
,
handler
(
n
)
{
handler
(
n
)
{
let
{
activityInfo
:
{
carInfo
},
activityInfo
}
...
...
@@ -52,7 +68,7 @@ export default {
},
watchInfo
:
{
immediate
:
true
,
handler
(
n
)
{
handler
(
n
)
{
if
(
n
.
id
)
{
let
[
price
,
decimal
]
=
this
.
centsToyuan
(
n
.
retailPrice
).
toString
().
split
(
'.'
)
if
(
!
decimal
)
decimal
=
'00'
...
...
@@ -105,14 +121,14 @@ export default {
}
},
computed
:
{
watchInfo
()
{
watchInfo
()
{
return
this
.
$store
.
state
.
app
.
activityInfo
},
watchUpdataCarInfo
()
{
watchUpdataCarInfo
()
{
return
this
.
$store
.
state
.
app
.
updataCarInfo
}
},
data
()
{
data
()
{
return
{
show
:
false
,
showModal
:
false
,
...
...
@@ -130,11 +146,11 @@ export default {
default
:
false
}
},
mounted
()
{
mounted
()
{
this
.
iSMiniprogram
=
window
.
__wxjs_environment
===
'miniprogram'
},
methods
:
{
submit
()
{
submit
()
{
let
{
detail
,
iSMiniprogram
}
=
this
if
(
iSMiniprogram
)
{
this
.
showToast
(
'参团请拨打短信中咨询热线'
)
...
...
@@ -171,7 +187,7 @@ export default {
that
.
pay
(
data
)
})
},
1
e3
),
pay
(
orderInfo
)
{
pay
(
orderInfo
)
{
this
.
showLoading
(
'结算中'
)
this
.
payStatus
=
Date
.
now
()
shopmallApi
.
payOrder
({
...
...
@@ -212,7 +228,7 @@ export default {
}
else
this
.
showToast
(
message
)
})
},
getPoster
()
{
getPoster
()
{
let
{
id
}
=
this
.
detail
let
userInfo
=
this
.
getUserInfo
()
let
{
phone
,
nickName
,
logo
}
=
userInfo
...
...
@@ -305,6 +321,7 @@ export default {
font-weight
:
500
;
color
:
#ffffff
;
box-sizing
:
border-box
;
line-height
:
40px
;
}
.disabled
{
background
:
#b1b1b1
;
...
...
src/components/LiveBox.vue
View file @
3e96055
...
...
@@ -349,16 +349,16 @@ export default {
}
.status
{
position
:
absolute
;
left
:
0
;
bottom
:
0
;
width
:
10
0
%
;
left
:
-2px
;
bottom
:
-2px
;
width
:
10
4
%
;
height
:
18px
;
background
:
linear-gradient
(
291deg
,
#f6542b
0%
,
#ff6c47
100%
),
linear-gradient
(
270deg
,
rgba
(
255
,
57
,
0
,
0
)
0%
,
#ff3900
33%
,
#fd466f
100%
);
font-size
:
12px
;
font-weight
:
500
;
color
:
#ffffff
;
box-sizing
:
border-box
;
padding
:
0
9
px
;
padding
:
0
10
px
;
.live-replayIcon
{
display
:
inline-block
;
width
:
10px
;
...
...
@@ -421,12 +421,13 @@ export default {
/
deep
/
.vjs-control-bar
{
opacity
:
1
!important
;
bottom
:
1
5
vh
;
bottom
:
1
0
vh
;
background
:
none
!important
;
//
background-color
:
rgba
(
0
,
0
,
0
,
0.3
);
}
.BgAction
{
background
:
linear-gradient
(
0deg
,
rgba
(
0
,
0
,
0
,
0.6
),
rgba
(
0
,
0
,
0
,
0
));
/* 标准的语法(必须放在最后) */
//
80%,80%,
rgba(0,
0,
0,
0.4),
background
:
linear-gradient
(
0deg
,
rgba
(
0
,
0
,
0
,
0.6
),
rgba
(
225
,
225
,
225
,
0
));
/* 标准的语法(必须放在最后) */
}
}
</
style
>
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