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 170420c8
authored
Aug 30, 2022
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交代码
1 parent
351d307a
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
96 additions
and
48 deletions
src/assets/css/crowdfunding.scss
src/assets/css/sharegoods.scss
src/assets/images/order-bg-3.png
src/components/Action.vue
src/components/EvaluateItem.vue
src/components/FAQItem.vue
src/components/PayModal.vue
src/components/ShareGoods.vue
src/components/createOrderImg.vue
src/router/routes.js
src/views/crowdfunding/index.vue
src/views/crowdfunding/success.vue
src/assets/css/crowdfunding.scss
View file @
170420c
...
@@ -359,31 +359,44 @@
...
@@ -359,31 +359,44 @@
position
:
relative
;
position
:
relative
;
overflow
:
hidden
;
overflow
:
hidden
;
@keyframes
move-stripe
{
from
{
transform
:
translate
(
0
);
}
to
{
transform
:
translate
(
-100vw
);
}
}
.stripe
{
.stripe
{
position
:
absolute
;
position
:
absolute
;
width
:
1000%
;
width
:
200vw
;
height
:
100%
;
height
:
100%
;
left
:
0
;
left
:
0
;
top
:
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
:
url('https://img02.glsx.com.cn/weapp/resource/scrm-mobile/crowdfunding/line.png')
repeat
;
background-size
:
28px
18px
;
background-size
:
28px
18px
;
animation
:
move-stripe
30s
infinite
ease-in-out
;
}
// animation: rolling 10s linear infinite;
&
:
:
after
{
// &::after,
transform
:
translateX
(
-18px
);
// &::before {
width
:
calc
(
100%
+
18px
);
// 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);
// }
}
}
...
...
src/assets/css/sharegoods.scss
View file @
170420c
.share-goods-box
{
.share-item
{
padding-bottom
:
14px
;
margin-bottom
:
14px
;
border-bottom
:
1px
solid
#e3e3e6
;
.title
{
.title
{
font-size
:
16px
;
font-size
:
16px
;
font-weight
:
500
;
font-weight
:
500
;
...
@@ -9,6 +13,7 @@
...
@@ -9,6 +13,7 @@
margin-left
:
auto
;
margin-left
:
auto
;
height
:
17px
;
height
:
17px
;
font-size
:
0
;
font-size
:
0
;
span
{
span
{
font-size
:
12px
;
font-size
:
12px
;
font-weight
:
400
;
font-weight
:
400
;
...
@@ -21,3 +26,9 @@
...
@@ -21,3 +26,9 @@
}
}
}
}
}
}
.hideBorder
{
border-bottom
:
none
;
padding-bottom
:
0
;
}
\ No newline at end of file
\ No newline at end of file
src/assets/images/order-bg-3.png
0 → 100644
View file @
170420c
90.8 KB
src/components/Action.vue
View file @
170420c
...
@@ -138,7 +138,6 @@ export default {
...
@@ -138,7 +138,6 @@ export default {
if
(
detail
.
buyFlag
==
2
||
detail
.
activityStatus
!=
2
)
return
if
(
detail
.
buyFlag
==
2
||
detail
.
activityStatus
!=
2
)
return
this
.
showModal
=
true
this
.
showModal
=
true
},
},
/**明天继续这里添加车型 */
checkOut
:
util
.
debounce
(({
obj
,
that
})
=>
{
checkOut
:
util
.
debounce
(({
obj
,
that
})
=>
{
let
{
detail
}
=
that
let
{
detail
}
=
that
let
{
nickName
,
logo
}
=
util
.
getUserInfo
()
let
{
nickName
,
logo
}
=
util
.
getUserInfo
()
...
...
src/components/EvaluateItem.vue
View file @
170420c
<
template
>
<
template
>
<div
class=
"share-
goods-box
"
>
<div
class=
"share-
item
"
>
<div
class=
"title flex"
>
<div
class=
"title flex"
>
玩家心得(1885)
玩家心得(1885)
<div
class=
"all flex"
>
<div
class=
"all flex"
>
...
...
src/components/FAQItem.vue
View file @
170420c
<
template
>
<
template
>
<div
class=
"share-goods-box
"
>
<div
:class=
"['share-item',
{hideBorder}]
">
<div
class=
"title flex"
>
<div
class=
"title flex"
>
商品答疑(9)
商品答疑(9)
<div
class=
"all flex"
>
<div
class=
"all flex"
>
...
@@ -14,6 +14,9 @@
...
@@ -14,6 +14,9 @@
<
script
type=
'text/ecmascript-6'
>
<
script
type=
'text/ecmascript-6'
>
export
default
{
export
default
{
name
:
'FAQItem'
,
name
:
'FAQItem'
,
props
:
{
hideBorder
:
Boolean
},
data
()
{
data
()
{
return
{
return
{
}
}
...
@@ -27,9 +30,4 @@ export default {
...
@@ -27,9 +30,4 @@ export default {
<
style
scoped
lang=
'scss'
>
<
style
scoped
lang=
'scss'
>
@import
'@/assets/css/sharegoods.scss'
;
@import
'@/assets/css/sharegoods.scss'
;
.share-goods-box
{
padding-top
:
14px
;
border-top
:
1px
solid
#e3e3e6
;
margin-top
:
14px
;
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
src/components/PayModal.vue
View file @
170420c
...
@@ -149,10 +149,13 @@ export default {
...
@@ -149,10 +149,13 @@ export default {
this
.
showToast
(
'请填写正确的手机号'
)
this
.
showToast
(
'请填写正确的手机号'
)
return
return
}
}
if
(
params
.
plateNo
&&
!
platNumberRex
.
test
(
params
.
plateNo
))
{
if
(
params
.
plateNo
)
{
params
.
plateNo
=
params
.
plateNo
.
toUpperCase
()
if
(
!
platNumberRex
.
test
(
params
.
plateNo
))
{
this
.
showToast
(
'请填写正确的车牌号'
)
this
.
showToast
(
'请填写正确的车牌号'
)
return
return
}
}
}
Object
.
keys
(
params
).
map
(
key
=>
{
Object
.
keys
(
params
).
map
(
key
=>
{
if
(
params
[
key
])
obj
[
key
]
=
params
[
key
]
if
(
params
[
key
])
obj
[
key
]
=
params
[
key
]
})
})
...
...
src/components/ShareGoods.vue
View file @
170420c
<
template
>
<
template
>
<div
class=
"box"
>
<div
class=
"box"
>
<evaluate
/>
<evaluate
-item
/>
<FAQ-item
/>
<FAQ-item
hideBorder
/>
</div>
</div>
</
template
>
</
template
>
...
@@ -20,7 +20,6 @@ export default {
...
@@ -20,7 +20,6 @@ export default {
</
script
>
</
script
>
<
style
scoped
lang=
'scss'
>
<
style
scoped
lang=
'scss'
>
@import
'@/assets/css/crowdfunding.scss'
;
.box
{
.box
{
border-radius
:
4px
;
border-radius
:
4px
;
max-height
:
343px
;
max-height
:
343px
;
...
...
src/components/createOrderImg.vue
View file @
170420c
...
@@ -35,21 +35,22 @@ export default {
...
@@ -35,21 +35,22 @@ export default {
methods
:
{
methods
:
{
drawOrderImg
(
callBack
)
{
drawOrderImg
(
callBack
)
{
let
{
let
{
plateNo
,
payPrice
,
userName
,
userName
,
orderCode
,
userPhone
,
userPhone
,
plateNo
,
vehicleBrandName
,
vehicleSubBrandName
,
vehicleSeriesName
,
vehicleShapeName
,
goodsName
,
goodsName
,
createdDate
,
payPrice
,
orderStatus
,
orderStatus
,
formDescribeFirst
,
createdDate
,
vehicleBrandName
,
vehicleShapeName
,
formContentFirst
,
formContentFirst
,
vehicleSeriesName
,
formDescribeFirst
,
formContentSecond
,
formDescribeSecond
,
formDescribeSecond
,
formContentSecond
vehicleSubBrandName
,
}
=
this
.
orderInfo
}
=
this
.
orderInfo
this
.
ctx
=
document
.
getElementById
(
this
.
canvasId
)
this
.
ctx
=
document
.
getElementById
(
this
.
canvasId
)
let
valueX
=
95
,
let
valueX
=
95
,
...
@@ -102,13 +103,35 @@ export default {
...
@@ -102,13 +103,35 @@ export default {
if
(
index
==
labelList
.
length
-
1
)
textYList
.
push
(
452
)
if
(
index
==
labelList
.
length
-
1
)
textYList
.
push
(
452
)
else
textYList
.
push
(
index
*
32
+
109
+
spacing
)
else
textYList
.
push
(
index
*
32
+
109
+
spacing
)
})
})
const
imgName
=
{
8
:
'-2'
,
10
:
'-3'
}[
orderStatus
]
draw
.
drawImages
({
draw
.
drawImages
({
url
:
require
(
`@/assets/images/order-bg
${
orderStatus
==
8
?
'-2'
:
''
}
.png`
),
url
:
require
(
`@/assets/images/order-bg
${
imgName
||
''
}
.png`
),
x
:
0
,
x
:
0
,
y
:
0
,
y
:
0
,
width
:
canvasWidth
,
width
:
canvasWidth
,
height
:
canvasHeight
,
height
:
canvasHeight
,
},
()
=>
{
},
()
=>
{
if
(
orderStatus
==
10
)
{
draw
.
drawText
({
text
:
'商户订单号'
,
x
:
labelX
-
1
,
y
:
24
,
color
:
'#282829'
,
fontSize
,
textBaseline
})
draw
.
drawText
({
text
:
orderCode
,
x
:
labelX
-
1
,
y
:
54
,
color
:
'#282829'
,
fontSize
,
textBaseline
})
}
labelList
&&
labelList
.
length
>
0
&&
(
labelList
.
map
((
e
,
index
)
=>
{
labelList
&&
labelList
.
length
>
0
&&
(
labelList
.
map
((
e
,
index
)
=>
{
let
y
=
textYList
[
index
]
+
fontSize
/
2
let
y
=
textYList
[
index
]
+
fontSize
/
2
let
label
=
{
let
label
=
{
...
...
src/router/routes.js
View file @
170420c
...
@@ -4,7 +4,7 @@ const pages = {
...
@@ -4,7 +4,7 @@ const pages = {
name
:
'index'
,
name
:
'index'
,
meta
:
{
meta
:
{
keepAlive
:
true
,
keepAlive
:
true
,
noAuth
:
true
,
//
noAuth: true,
backgroundColor
:
'#F7F7F7'
backgroundColor
:
'#F7F7F7'
},
},
},
},
...
...
src/views/crowdfunding/index.vue
View file @
170420c
...
@@ -382,8 +382,8 @@ export default {
...
@@ -382,8 +382,8 @@ export default {
data
.
s_time
=
new
Date
(
this
.
iosTimeFormat
(
data
.
startTime
)).
format
(
'yyyy年M月d日'
)
data
.
s_time
=
new
Date
(
this
.
iosTimeFormat
(
data
.
startTime
)).
format
(
'yyyy年M月d日'
)
data
.
e_time
=
new
Date
(
this
.
iosTimeFormat
(
data
.
endTime
)).
format
(
'yyyy年M月d日'
)
data
.
e_time
=
new
Date
(
this
.
iosTimeFormat
(
data
.
endTime
)).
format
(
'yyyy年M月d日'
)
document
.
title
=
data
.
activityName
document
.
title
=
data
.
activityName
//
this.getActivityGroup()
this
.
getActivityGroup
()
//
this.getOrderList()
this
.
getOrderList
()
let
[
redirectUrl
]
=
window
.
location
.
href
.
split
(
'?'
)
let
[
redirectUrl
]
=
window
.
location
.
href
.
split
(
'?'
)
if
(
data
.
activityVideos
&&
data
.
activityVideos
.
length
)
{
if
(
data
.
activityVideos
&&
data
.
activityVideos
.
length
)
{
/**安卓退出全屏 */
/**安卓退出全屏 */
...
@@ -413,7 +413,6 @@ export default {
...
@@ -413,7 +413,6 @@ export default {
data
.
hasDefaultBrands
=
true
data
.
hasDefaultBrands
=
true
}
}
this
.
detail
=
data
this
.
detail
=
data
return
let
name
=
''
,
let
name
=
''
,
openId
=
''
,
openId
=
''
,
logo
=
''
logo
=
''
...
@@ -481,6 +480,7 @@ export default {
...
@@ -481,6 +480,7 @@ export default {
})
})
if
(
items
.
length
)
arr
.
push
(
items
)
if
(
items
.
length
)
arr
.
push
(
items
)
data
.
arr
=
arr
data
.
arr
=
arr
data
.
progress
=
88
this
.
groupInfo
=
data
this
.
groupInfo
=
data
this
.
updata
=
Date
.
now
()
this
.
updata
=
Date
.
now
()
})
})
...
...
src/views/crowdfunding/success.vue
View file @
170420c
...
@@ -40,7 +40,8 @@ export default {
...
@@ -40,7 +40,8 @@ export default {
let
{
let
{
activityJoin
,
activityJoin
,
payPrice
,
payPrice
,
orderGoods
:
[
orderGoods
]
orderGoods
:
[
orderGoods
],
orderCode
}
=
orderInfo
}
=
orderInfo
this
.
orderInfo
=
{
this
.
orderInfo
=
{
userName
:
activityJoin
.
userName
,
userName
:
activityJoin
.
userName
,
...
@@ -53,11 +54,12 @@ export default {
...
@@ -53,11 +54,12 @@ export default {
goodsName
:
orderGoods
.
goodsName
,
goodsName
:
orderGoods
.
goodsName
,
createdDate
:
activityJoin
.
createdDate
,
createdDate
:
activityJoin
.
createdDate
,
payPrice
,
payPrice
,
orderStatus
:
1
,
orderStatus
:
1
0
,
formContentFirst
:
activityJoin
.
formContentFirst
,
formContentFirst
:
activityJoin
.
formContentFirst
,
formContentSecond
:
activityJoin
.
formContentSecond
,
formContentSecond
:
activityJoin
.
formContentSecond
,
formDescribeFirst
:
activityJoin
.
formDescribeFirst
,
formDescribeFirst
:
activityJoin
.
formDescribeFirst
,
formDescribeSecond
:
activityJoin
.
formDescribeSecond
,
formDescribeSecond
:
activityJoin
.
formDescribeSecond
,
orderCode
}
}
},
},
methods
:
{
methods
:
{
...
...
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