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