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 1b3102ec
authored
Aug 24, 2022
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改样式
1 parent
1ea83d15
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
327 additions
and
142 deletions
src/assets/css/crowdfunding.scss
src/assets/css/sprite.scss
src/assets/images/sprite.png
src/assets/spritesmith/flash.png
src/views/crowdfunding/components/CountDown.vue
src/views/crowdfunding/components/LiveBox.vue
src/views/crowdfunding/index.vue
src/assets/css/crowdfunding.scss
View file @
1b3102e
...
@@ -235,7 +235,6 @@
...
@@ -235,7 +235,6 @@
.activity
{
.activity
{
padding
:
0
16px
;
padding
:
0
16px
;
margin-top
:
10px
;
.address-box
{
.address-box
{
font-size
:
12px
;
font-size
:
12px
;
...
@@ -279,7 +278,6 @@
...
@@ -279,7 +278,6 @@
font-weight
:
600
;
font-weight
:
600
;
color
:
#3C3939
;
color
:
#3C3939
;
position
:
relative
;
position
:
relative
;
margin-bottom
:
14px
;
justify-content
:
space-between
;
justify-content
:
space-between
;
span
{
span
{
...
@@ -299,6 +297,7 @@
...
@@ -299,6 +297,7 @@
.group-swipe
{
.group-swipe
{
height
:
216px
;
height
:
216px
;
width
:
100%
;
width
:
100%
;
margin-top
:
14px
;
}
}
.group-box
{
.group-box
{
...
@@ -325,52 +324,167 @@
...
@@ -325,52 +324,167 @@
}
}
}
}
.progress-box
{
background
:
#FFFFFF
linear-gradient
(
360deg
,
#FFFFFF
0%
,
#FFF7F7
100%
);
border-radius
:
4px
;
border
:
1px
solid
#FFFFFF
;
box-sizing
:
border-box
;
.progress-title
{
color
:
#3C3939
;
font-weight
:
500
;
font-size
:
16px
;
}
.progress-bar
{
.progress-bar
{
margin
:
24px
16px
8
px
;
margin
:
32px
0
9
px
;
position
:
relative
;
position
:
relative
;
.progress
{
.progress
{
width
:
100%
;
width
:
100%
;
height
:
18px
;
height
:
18px
;
border-radius
:
9px
;
border-radius
:
9px
;
background
:
#FFE9E4
;
overflow
:
hidden
;
overflow
:
hidden
;
background
:
linear-gradient
(
360deg
,
#FF4444
0%
,
#FD6C6C
100%
);
box-shadow
:
inset
0px
2px
3px
0px
rgba
(
255
,
255
,
255
,
0
.5
);
position
:
relative
;
.line
{
.line
{
min-width
:
40px
;
height
:
100%
;
height
:
100%
;
background
:
linear-gradient
(
270deg
,
#FF8802
0%
,
#FC5B32
100%
);
background
:
linear-gradient
(
360deg
,
#FFAA48
0%
,
#FFF454
100%
);
transition
:
all
.25s
;
box-shadow
:
0px
1px
4px
0px
#A90303
,
inset
0px
2px
3px
0px
rgba
(
255
,
255
,
255
,
0
.5
)
,
inset
0px
-1px
3px
0px
#FE9D24
;
border-radius
:
9px
;
transition
:
all
3s
;
position
:
relative
;
overflow
:
hidden
;
.stripe
{
position
:
absolute
;
width
:
1000%
;
height
:
100%
;
left
:
0
;
top
:
0
;
animation
:
rolling
10s
linear
infinite
;
&
:
:
after
,
&::
before
{
display
:
block
;
content
:
''
;
width
:
100%
;
height
:
100%
;
border-radius
:
9px
;
transition
:
all
3s
;
background
:
url('https://img02.glsx.com.cn/weapp/resource/scrm-mobile/crowdfunding/line.png')
repeat
;
background-size
:
28px
18px
;
}
&
:
:
after
{
transform
:
translateX
(
-18px
);
width
:
calc
(
100%
+
18px
);
}
}
}
@keyframes
rolling
{
0
%
{
transform
:
translateY
(
0
);
}
25
%
{
transform
:
translateY
(
-9px
);
}
50
%
{
transform
:
translateY
(
-18px
);
}
75
%
{
transform
:
translateY
(
-9px
);
}
100
%
{
transform
:
translateY
(
0
);
}
}
}
.bar
{
position
:
absolute
;
width
:
auto
;
height
:
22px
;
top
:
-30px
;
font-size
:
14px
;
font-size
:
14px
;
padding
:
0
4px
;
font-weight
:
600
;
font-weight
:
600
;
color
:
#FFFFFF
;
border-radius
:
2px
;
justify-content
:
flex-end
;
background
:
linear-gradient
(
360deg
,
#FFAA48
0%
,
#FFF454
100%
);
box-shadow
:
inset
0px
-1px
3px
0px
#FE9D24
,
inset
0px
2px
3px
0px
rgba
(
255
,
255
,
255
,
0
.5
)
,
inset
0px
1px
3px
0px
rgba
(
255
,
255
,
255
,
0
.5
);
color
:
#F13C3D
;
transform
:
translateX
(
-50%
);
transition
:
all
3s
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
border-radius
:
7px
;
.number
{
margin-left
:
4px
;
}
}
.line-padding
{
.arrow
{
padding-right
:
14px
;
position
:
absolute
;
border-top
:
5px
solid
#FFAA48
;
border-left
:
5
.5px
solid
transparent
;
border-right
:
5
.5px
solid
transparent
;
border-bottom
:
5px
solid
transparent
;
bottom
:
-10px
;
left
:
50%
;
transform
:
translateX
(
-50%
);
}
.right
{
left
:
80%
;
}
}
}
}
}
}
.bar
{
.group-info
{
justify-content
:
space-between
;
font-size
:
14px
;
font-weight
:
500
;
color
:
#FC5B32
;
position
:
relative
;
&
:
:
before
,
&::
after
{
position
:
absolute
;
position
:
absolute
;
width
:
1px
;
height
:
34px
;
background
:
#E3E3E6
;
content
:
''
;
top
:
50%
;
top
:
50%
;
transform
:
translate
(
-50%
,
-50%
);
transform
:
translate
(
-50%
,
-50%
);
}
}
&
:
:
before
{
left
:
92px
;
}
}
.group-info
{
&
:
:
after
{
padding
:
0
16px
;
left
:
234px
;
justify-content
:
space-between
;
}
font-size
:
12px
;
font-weight
:
500
;
color
:
#3C3939
;
.item
{
.item
{
color
:
#FC5B32
;
.label
{
font-size
:
12px
;
font-weight
:
400
;
color
:
#999999
;
}
}
div
{
margin-bottom
:
3px
;
}
}
}
}
}
}
...
@@ -382,7 +496,12 @@
...
@@ -382,7 +496,12 @@
}
}
.tips
{
.tips
{
padding-top
:
30
px
;
padding-top
:
47
px
;
font-size
:
12px
;
font-size
:
12px
;
img
{
width
:
143px
;
height
:
21px
;
}
}
}
}
}
\ No newline at end of file
\ No newline at end of file
src/assets/css/sprite.scss
View file @
1b3102e
.sprite-icon
{
background-image
:
url(../images/sprite.png)
;
background-size
:
453px
3
85
px
;}
.sprite-icon
{
background-image
:
url(../images/sprite.png)
;
background-size
:
453px
3
64
px
;}
.icon-address
{
width
:
34px
;
height
:
34px
;
background-position
:
-310px
-232px
;}
.icon-address
{
width
:
34px
;
height
:
34px
;
background-position
:
-310px
-232px
;}
.icon-big-play
{
width
:
40px
;
height
:
40px
;
background-position
:
-376px
-152px
;}
.icon-big-play
{
width
:
40px
;
height
:
40px
;
background-position
:
-376px
-152px
;}
.icon-close
{
width
:
24px
;
height
:
24px
;
background-position
:
-426px
-152px
;}
.icon-close
{
width
:
24px
;
height
:
24px
;
background-position
:
-426px
-152px
;}
.icon-download
{
width
:
30px
;
height
:
30px
;
background-position
:
-310px
-276px
;}
.icon-download
{
width
:
30px
;
height
:
30px
;
background-position
:
-310px
-276px
;}
.icon-flash
{
width
:
24px
;
height
:
24px
;
background-position
:
-39
0px
-316px
;}
.icon-flash
{
width
:
10px
;
height
:
14px
;
background-position
:
-42
0px
-316px
;}
.icon-hot
{
width
:
15px
;
height
:
18px
;
background-position
:
-436px
-202px
;}
.icon-hot
{
width
:
15px
;
height
:
18px
;
background-position
:
-436px
-202px
;}
.icon-kf-box
{
width
:
300px
;
height
:
350px
;
background-position
:
0px
0px
;}
.icon-kf-box
{
width
:
300px
;
height
:
350px
;
background-position
:
0px
0px
;}
.icon-kf-logo
{
width
:
56px
;
height
:
70px
;
background-position
:
-310px
-152px
;}
.icon-kf-logo
{
width
:
56px
;
height
:
70px
;
background-position
:
-310px
-152px
;}
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
.icon-poster
{
width
:
20px
;
height
:
20px
;
background-position
:
-430px
-276px
;}
.icon-poster
{
width
:
20px
;
height
:
20px
;
background-position
:
-430px
-276px
;}
.icon-qr
{
width
:
143px
;
height
:
142px
;
background-position
:
-310px
0px
;}
.icon-qr
{
width
:
143px
;
height
:
142px
;
background-position
:
-310px
0px
;}
.icon-scan
{
width
:
30px
;
height
:
30px
;
background-position
:
-310px
-316px
;}
.icon-scan
{
width
:
30px
;
height
:
30px
;
background-position
:
-310px
-316px
;}
.icon-success
{
width
:
20px
;
height
:
20px
;
background-position
:
-
424
px
-316px
;}
.icon-success
{
width
:
20px
;
height
:
20px
;
background-position
:
-
390
px
-316px
;}
.icon-time
{
width
:
12px
;
height
:
11px
;
background-position
:
0px
-374
px
;}
.icon-time
{
width
:
12px
;
height
:
11px
;
background-position
:
-440px
-316
px
;}
.icon-title
{
width
:
170px
;
height
:
4px
;
background-position
:
0px
-360px
;}
.icon-title
{
width
:
170px
;
height
:
4px
;
background-position
:
0px
-360px
;}
.icon-top
{
width
:
30px
;
height
:
30px
;
background-position
:
-350px
-316px
;}
.icon-top
{
width
:
30px
;
height
:
30px
;
background-position
:
-350px
-316px
;}
\ No newline at end of file
\ No newline at end of file
src/assets/images/sprite.png
View file @
1b3102e
100 KB
|
W:
|
H:
97.9 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/assets/spritesmith/flash.png
View file @
1b3102e
2.07 KB
|
W:
|
H:
641 Bytes
|
W:
|
H:
2-up
Swipe
Onion skin
src/views/crowdfunding/components/CountDown.vue
View file @
1b3102e
<
template
>
<
template
>
<div>
<div
class=
"count-down"
>
<template
v-if=
"timeFlag"
>
<div
class=
"bg"
>
<div
class=
"title"
>
<img
src=
"https://img02.glsx.com.cn/weapp/resource/scrm-mobile/crowdfunding/timer-bg.png"
>
{{
detail
.
activityStatus
==
1
?
'距离活动开始'
:
'活动倒计时'
}}
</div>
<div
class=
"sprite-icon icon-title xy-center"
></div>
<div
:class=
"['timer-title',
{'timer-not-started':detail.activityStatus == 1}]">
<img
:src=
"`https://img02.glsx.com.cn/weapp/resource/scrm-mobile/crowdfunding/timer-$
{detail.activityStatus == 1?1:2}.png`">
</div>
</div>
<div
:class=
"['time-box flex',
{'not-started':detail.activityStatus == 1},{'finished':finished}]">
<div
:class=
"['time-box flex',
{'not-started':detail.activityStatus == 1},{'finished':finished}]">
<template
v-if=
"timeFlag"
>
<template
v-if=
"finished"
>
{{
finished
}}
</
template
>
<template
v-if=
"finished"
>
{{
finished
}}
</
template
>
<
template
v-else
>
<
template
v-else
>
<template
v-if=
"detail.activityStatus == 1"
>
<template
v-if=
"detail.activityStatus == 1"
>
...
@@ -27,9 +29,9 @@
...
@@ -27,9 +29,9 @@
</div>
</div>
</
template
>
</
template
>
</template>
</template>
</div>
</template>
</template>
</div>
</div>
</div>
</template>
</template>
<
script
type=
'text/ecmascript-6'
>
<
script
type=
'text/ecmascript-6'
>
...
@@ -123,54 +125,83 @@ export default {
...
@@ -123,54 +125,83 @@ export default {
<
style
scoped
lang=
'scss'
>
<
style
scoped
lang=
'scss'
>
@import
'@/assets/css/crowdfunding.scss'
;
@import
'@/assets/css/crowdfunding.scss'
;
.count-down
{
position
:
relative
;
.bg
{
position
:
absolute
;
width
:
calc
(
100%
+
32px
);
left
:
-16px
;
top
:
0
;
z-index
:
-1
;
img
{
width
:
375px
;
height
:
200px
;
}
}
}
.timer-title
{
padding-top
:
14px
;
height
:
19px
;
img
{
width
:
105px
;
}
}
.timer-not-started
{
img
{
width
:
128px
;
}
}
.time-box
{
.time-box
{
height
:
66px
;
height
:
56px
;
background
:
#fff5f3
;
border-radius
:
4px
;
border-radius
:
4px
;
margin
:
1
4
px
0
;
margin
:
1
1.5
px
0
;
justify-content
:
center
;
justify-content
:
center
;
.time
{
.time
{
span
{
span
{
width
:
3
0
px
;
width
:
3
4
px
;
height
:
32px
;
height
:
32px
;
background
:
#fa2c18
;
background
:
#fff
;
border-radius
:
3px
;
border-radius
:
4px
;
font-size
:
18px
;
font-size
:
20px
;
color
:
#fa2c18
;
font-weight
:
600
;
font-weight
:
600
;
color
:
#ffffff
;
}
}
.unit
{
.unit
{
font-weight
:
500
;
font-weight
:
500
;
font-size
:
18
px
;
font-size
:
20
px
;
color
:
#f
a2c18
;
color
:
#f
ff
;
margin
:
0
5px
0
3px
;
margin
:
0
5px
0
3px
;
}
}
}
}
}
}
.not-started
{
.not-started
{
font-size
:
1
2
px
;
font-size
:
1
4
px
;
font-weight
:
600
;
font-weight
:
600
;
color
:
#
333333
;
color
:
#
fff
;
border
:
1px
dashed
#
e3e3e3
;
border
:
1px
dashed
#
fff
;
b
ackground
:
#fff
;
b
ox-sizing
:
border-box
;
.time
{
.time
{
color
:
#333333
;
margin-left
:
2px
;
span
{
span
{
background
:
#fff5f3
;
width
:
26px
;
color
:
#f13c3d
;
height
:
26px
;
font-size
:
14px
;
background
:
#ae0404
;
box-shadow
:
inset
1px
1px
2px
0px
rgba
(
111
,
0
,
0
,
0.5
);
border-radius
:
3px
;
color
:
#fff
;
font-size
:
18px
;
}
}
.unit
{
.unit
{
font-size
:
12px
;
font-size
:
14px
;
color
:
#333333
;
}
}
}
}
}
}
.finished
{
.finished
{
background
:
#f0f0f0
;
font-size
:
20px
;
font-size
:
18px
;
font-weight
:
600
;
font-weight
:
600
;
color
:
#999999
;
color
:
#fff
;
border
:
1px
dashed
#ffffff
;
box-sizing
:
border-box
;
}
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
src/views/crowdfunding/components/LiveBox.vue
View file @
1b3102e
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<div
:class=
"['live-box',
{'videoFullscreen':videoFullscreen}]">
<div
:class=
"['live-box',
{'videoFullscreen':videoFullscreen}]">
<div
<div
class=
"mask"
class=
"mask"
@
click=
"
videoFullscreen = true
"
@
click=
"
openFullscreen
"
>
>
<div
class=
"status flex"
></div>
<div
class=
"status flex"
></div>
</div>
</div>
...
@@ -63,15 +63,19 @@ export default {
...
@@ -63,15 +63,19 @@ export default {
fullscreenToggle
:
false
,
fullscreenToggle
:
false
,
}
}
})
})
_this
.
player
.
volume
(
0
)
_this
.
player
.
src
(
'http://play.glsx.com.cn/live/live.m3u8'
)
_this
.
player
.
src
(
'http://play.glsx.com.cn/live/live.m3u8'
)
//
_this.player.play()
_this
.
player
.
play
()
}
}
})
})
})
})
},
},
methods
:
{
methods
:
{
openFullscreen
()
{
this
.
player
.
volume
(
1
)
this
.
videoFullscreen
=
true
}
}
}
}
}
</
script
>
</
script
>
...
...
src/views/crowdfunding/index.vue
View file @
1b3102e
...
@@ -69,6 +69,84 @@
...
@@ -69,6 +69,84 @@
<move-group :groupInfo="groupInfo" />
<move-group :groupInfo="groupInfo" />
</template> -->
</template> -->
</div>
</div>
<
template
v-if=
"viewFlag"
>
<div
class=
"activity"
>
<count-down
:detail=
"detail"
:updata=
"updata"
@
refresh=
"refresh"
/>
<template
v-if=
"detail.activityStatus != 1"
>
<div
class=
"box"
>
<div
class=
"group-title flex"
>
<div><span>
{{
groupInfo
.
groupQuantity
}}
</span>
人已参团
</div>
<div>
<span>
{{
groupInfo
.
viewAmount
}}
</span>
人已浏览
</div>
</div>
<template
v-if=
"groupInfo.arr && groupInfo.arr.length"
>
<van-swipe
class=
"group-swipe"
vertical
:show-indicators=
"false"
:touchable=
"false"
autoplay=
"5000"
>
<template
v-for=
"(item, ind) in groupInfo.arr"
>
<van-swipe-item
:key=
"ind"
>
<div
class=
"group-box"
>
<template
v-for=
"(i, index) in item"
>
<div
class=
"item"
:key=
"index"
>
<img
:src=
"i.imageUrl"
/>
<div
class=
"name"
>
{{
i
.
name
}}
</div>
</div>
</
template
>
</div>
</van-swipe-item>
</template>
</van-swipe>
</template>
</div>
<div
class=
"box progress-box"
id=
"progress"
>
<div
class=
"progress-title"
>
活动进度
</div>
<div
class=
"progress-bar"
>
<div
class=
"bar flex"
:style=
"{ left: `${progress > 91 ? 91.5 : progress < 11 ? 10 : progress}%` }"
>
<div
class=
"sprite-icon icon-flash"
></div>
<div
class=
"number"
>
{{ progress ? `${count}%` : '0%' }}
</div>
<div
:class=
"['arrow',{'right':count > 91}]"
></div>
</div>
<div
class=
"progress"
>
<div
class=
"line"
:style=
"{ width: `${progress > 100 ? 100 : progress < 11? 10 : progress}%` }"
>
<div
class=
"stripe"
></div>
</div>
</div>
</div>
<div
class=
"group-info flex"
>
<div
class=
"item"
>
<div
class=
"label"
>
最低折扣
</div>
需{{ groupInfo.fictitiousLadderQuantity || 0 }}人
</div>
<div
class=
"item"
>
<div
class=
"label"
>
已参与
</div>
{{ groupInfo.groupQuantity || 0 }}人
</div>
<div
class=
"item"
>
<div>
众筹
</div>
成功
</div>
</div>
</div>
</template>
<
template
v-if=
"detail.activityVideos && detail.activityVideos.length"
>
<
template
v-if=
"detail.activityVideos && detail.activityVideos.length"
>
<div
:class=
"['video-box flex',
{ onlyone: detail.activityVideos.length == 1 }, { onlytwo: detail.activityVideos.length == 2 }]">
<div
:class=
"['video-box flex',
{ onlyone: detail.activityVideos.length == 1 }, { onlytwo: detail.activityVideos.length == 2 }]">
<template
v-for=
"(i, index) in detail.activityVideos"
>
<template
v-for=
"(i, index) in detail.activityVideos"
>
...
@@ -99,8 +177,7 @@
...
@@ -99,8 +177,7 @@
</
template
>
</
template
>
</div>
</div>
</template>
</template>
<
template
v-if=
"viewFlag"
>
<div
class=
"activity"
>
<div
class=
"box"
>
<div
class=
"box"
>
<div
class=
"title"
>
<div
class=
"title"
>
活动举办方
活动举办方
...
@@ -136,83 +213,6 @@
...
@@ -136,83 +213,6 @@
</template>
</template>
</div>
</div>
</div>
</div>
<div
class=
"box"
>
<count-down
:detail=
"detail"
:updata=
"updata"
@
refresh=
"refresh"
/>
<
template
v-if=
"detail.activityStatus != 1"
>
<div
class=
"group-title flex"
>
<div><span>
{{
groupInfo
.
groupQuantity
}}
</span>
人已参团
</div>
<div>
<span>
{{
groupInfo
.
viewAmount
}}
</span>
人已浏览
</div>
</div>
<!--
<template
v-if=
"groupInfo.arr && groupInfo.arr.length"
>
<van-swipe
class=
"group-swipe"
vertical
:show-indicators=
"false"
:touchable=
"false"
autoplay=
"5000"
>
<template
v-for=
"(item, ind) in groupInfo.arr"
>
<van-swipe-item
:key=
"ind"
>
<div
class=
"group-box"
>
<template
v-for=
"(i, index) in item"
>
<div
class=
"item"
:key=
"index"
>
<img
:src=
"i.imageUrl"
/>
<div
class=
"name"
>
{{
i
.
name
}}
</div>
</div>
</
template
>
</div>
</van-swipe-item>
</template>
</van-swipe>
</template>
-->
</template>
</div>
<
template
v-if=
"detail.activityStatus != 1"
>
<div
class=
"box"
>
<div
class=
"title"
>
活动进度
<div
class=
"sprite-icon icon-title xy-center"
></div>
</div>
<div
class=
"progress-bar"
>
<div
class=
"bar sprite-icon icon-flash"
:style=
"
{ left: `${groupInfo.progress > 100 ? 100 : groupInfo.progress
< 11
?
13
:
groupInfo
.
progress
}%`
}"
></div>
<div
class=
"progress"
>
<div
:class=
"['line flex',
{ 'line-padding': groupInfo.progress }]"
:style="{ width: `${groupInfo.progress > 100 ? 100 : groupInfo.progress}%` }"
>
{{
groupInfo
.
progress
?
`${groupInfo.progress
}
%`
:
''
}}
<
/div
>
<
/div
>
<
/div
>
<
div
class
=
"group-info flex"
>
<
div
class
=
"item"
>
最低折扣
<
br
/>
需
{{
groupInfo
.
fictitiousLadderQuantity
||
0
}}
人
<
/div
>
<
div
class
=
"item"
>
已参与
<
br
/>
{{
groupInfo
.
groupQuantity
||
0
}}
人
<
/div
>
<
div
>
众筹
<
br
/>
成功
<
/div
>
<
/div
>
<
/div
>
<
/template
>
</div>
</div>
</template>
</template>
<
template
v-if=
"detail.activityDetail"
>
<
template
v-if=
"detail.activityDetail"
>
...
@@ -270,12 +270,13 @@ export default {
...
@@ -270,12 +270,13 @@ export default {
carInfoKey
:
Date
.
now
(),
carInfoKey
:
Date
.
now
(),
showOrderBtn
:
false
,
showOrderBtn
:
false
,
userOff
:
null
,
userOff
:
null
,
progress
:
''
,
count
:
0
,
step
:
1
}
}
},
},
beforeRouteEnter
(
to
,
from
,
next
)
{
beforeRouteEnter
(
to
,
from
,
next
)
{
if
(
from
.
name
==
'crowdfunding.success'
)
window
.
location
.
reload
()
next
(
vm
=>
{
else
next
(
vm
=>
{
let
{
carInfo
}
=
from
.
params
let
{
carInfo
}
=
from
.
params
if
(
carInfo
)
{
if
(
carInfo
)
{
vm
.
detail
.
carInfo
=
carInfo
vm
.
detail
.
carInfo
=
carInfo
...
@@ -304,6 +305,18 @@ export default {
...
@@ -304,6 +305,18 @@ export default {
})
})
window
.
addEventListener
(
'scroll'
,
_this
.
debounce
(()
=>
{
window
.
addEventListener
(
'scroll'
,
_this
.
debounce
(()
=>
{
_this
.
scrollY
=
window
.
scrollY
_this
.
scrollY
=
window
.
scrollY
if
(
_this
.
progress
)
return
let
progress
=
document
.
getElementById
(
'progress'
)
if
(
progress
&&
_this
.
groupInfo
.
progress
)
{
let
top
=
progress
.
offsetTop
let
windowTop
=
document
.
body
.
scrollTop
let
size
=
window
.
innerHeight
/
2
if
(
top
<
(
windowTop
+
size
))
{
_this
.
progress
=
_this
.
groupInfo
.
progress
_this
.
step
=
_this
.
decimal
(
_this
.
progress
/
200
,
2
)
||
1
_this
.
counter
(
_this
.
progress
)
}
}
},
1
e3
/
2
))
},
1
e3
/
2
))
},
},
deactivated
()
{
deactivated
()
{
...
@@ -378,9 +391,16 @@ export default {
...
@@ -378,9 +391,16 @@ export default {
data
.
hasDefaultBrands
=
true
data
.
hasDefaultBrands
=
true
}
}
this
.
detail
=
data
this
.
detail
=
data
let
name
=
userInfo
.
nickName
||
userInfo
.
userName
||
''
let
name
=
''
,
let
link
=
`${redirectUrl
}
?id=${id
}
&shareStaffType=${this.ISWXWORK ? 2 : 1
}
&shareStaffName=${this.toUnicode(name)
}
&shareStaffImageUrl=${encodeURIComponent(userInfo.logo || userInfo.staffAvatar)
}
&openId=${userInfo.openid || userInfo.uuid
}
`
openId
=
''
,
if
(
userInfo
.
phone
)
link
=
`${link
}
&userPhone=${userInfo.phone
}
`
logo
=
''
if
(
userInfo
)
{
name
=
userInfo
.
nickName
||
userInfo
.
userName
openId
=
userInfo
.
openid
||
userInfo
.
uuid
logo
=
userInfo
.
logo
||
userInfo
.
staffAvatar
}
let
link
=
`
${
redirectUrl
}
?id=
${
id
}
&shareStaffType=
${
this
.
ISWXWORK
?
2
:
1
}
&shareStaffName=
${
this
.
toUnicode
(
name
)}
&shareStaffImageUrl=
${
encodeURIComponent
(
logo
)}
&openId=
${
openId
}
`
if
(
userInfo
&&
userInfo
.
phone
)
link
=
`
${
link
}
&userPhone=
${
userInfo
.
phone
}
`
if
(
this
.
ISWXWORK
)
{
if
(
this
.
ISWXWORK
)
{
let
{
corpId
,
agentId
}
=
this
.
getLocalStorage
(
'dj_scrm_corpId'
)
let
{
corpId
,
agentId
}
=
this
.
getLocalStorage
(
'dj_scrm_corpId'
)
link
=
`
${
link
}
&corpId=
${
corpId
||
userInfo
.
entmicroId
}
`
link
=
`
${
link
}
&corpId=
${
corpId
||
userInfo
.
entmicroId
}
`
...
@@ -442,6 +462,17 @@ export default {
...
@@ -442,6 +462,17 @@ export default {
this
.
updata
=
Date
.
now
()
this
.
updata
=
Date
.
now
()
})
})
},
},
counter
(
num
)
{
setTimeout
(()
=>
{
this
.
count
=
this
.
decimal
(
this
.
count
+
this
.
step
,
2
)
if
(
this
.
count
>=
num
)
{
this
.
count
=
this
.
decimal
(
num
,
2
)
return
}
else
this
.
counter
(
num
)
},
10
)
},
getOrderList
()
{
getOrderList
()
{
shopmallApi
.
getOrderList
(
this
.
id
).
then
(
data
=>
{
shopmallApi
.
getOrderList
(
this
.
id
).
then
(
data
=>
{
if
(
data
&&
data
.
length
)
this
.
showOrderBtn
=
true
if
(
data
&&
data
.
length
)
this
.
showOrderBtn
=
true
...
...
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