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 8f4f845b
authored
Aug 09, 2022
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交代码
1 parent
614c8e6b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
19 deletions
src/assets/css/crowdfunding.scss
src/main.js
src/views/crowdfunding/components/Action.vue
src/views/crowdfunding/index.vue
src/views/crowdfunding/success.vue
src/assets/css/crowdfunding.scss
View file @
8f4f845
...
...
@@ -96,9 +96,14 @@
height
:
82px
;
border-radius
:
2px
;
position
:
relative
;
&
:last-of-type
{
margin-right
:
16px
;
.mask
{
border-right
:
16px
solid
#f7f7f7
;
.line-box
{
width
:
calc
(
100%
-
16px
);
}
}
}
.mask
{
...
...
@@ -109,10 +114,10 @@
left
:
0
;
z-index
:
2
;
background
:
#E9E8EC
;
box-sizing
:
border-box
;
img
{
img
{
object-fit
:
contain
;
}
.line-box
{
position
:
absolute
;
left
:
0
;
...
...
@@ -128,7 +133,8 @@
border-radius
:
1px
;
margin-left
:
4%
;
}
.duration
{
.duration
{
font-size
:
8px
;
color
:
#FFFFFF
;
margin-left
:
auto
;
...
...
@@ -140,16 +146,16 @@
}
.onlyone
{
.item
{
width
:
343px
;
height
:
192px
;
margin
:
0
auto
!
important
;
}
.active
{
.mask
{
border-color
:
transparent
;
border-right
:
none
!
important
;
.line-box
{
width
:
100%
!
important
;
}
}
}
}
...
...
@@ -157,13 +163,16 @@
.onlytwo
{
width
:
100%
;
justify-content
:
space-between
;
padding
:
0
16px
;
box-sizing
:
border-box
;
.item
{
width
:
166px
;
height
:
92px
;
&
:last-of-type
{
margin-left
:
0
;
margin-left
:
0
;
.mask
{
.line-box
{
width
:
100%
!
important
;
}
}
}
}
...
...
@@ -330,7 +339,8 @@
height
:
auto
;
}
}
.tips
{
.tips
{
padding-top
:
30px
;
font-size
:
10px
;
}
...
...
src/main.js
View file @
8f4f845
...
...
@@ -65,7 +65,7 @@ fetchConfig(!isMock).then(res => {
// 设置 js中可以访问 $cdn
Vue
.
use
(
cfg
)
window
.
$fetchConfig
=
res
if
(
res
.
vconsole
)
new
VConsole
()
//
if (res.vconsole) new VConsole()
/**登录过期 重新登录 */
window
.
reLogin
=
()
=>
{
console
.
log
(
'重新登录'
)
...
...
src/views/crowdfunding/components/Action.vue
View file @
8f4f845
...
...
@@ -75,7 +75,6 @@ export default {
watch
:
{
'detail'
:
function
(
n
)
{
this
.
show
=
true
console
.
log
(
n
)
let
[
price
,
decimal
]
=
this
.
centsToyuan
(
n
.
retailPrice
).
toString
().
split
(
'.'
)
if
(
!
decimal
)
decimal
=
'00'
n
.
price
=
price
...
...
src/views/crowdfunding/index.vue
View file @
8f4f845
...
...
@@ -378,9 +378,8 @@ export default {
}
,
getActivityGroup
()
{
shopmallApi
.
getActivityGroup
(
this
.
id
).
then
(
data
=>
{
console
.
log
(
data
)
let
arr
=
[],
items
=
[]
//
console.log(JSON.parse(JSON.stringify(data)))
console
.
log
(
JSON
.
parse
(
JSON
.
stringify
(
data
)))
data
.
progress
=
data
.
fictitiousLadderQuantity
!=
0
?
this
.
decimal
((
data
.
groupQuantity
/
data
.
fictitiousLadderQuantity
)
*
100
,
2
)
:
this
.
decimal
(
data
.
groupQuantity
*
100
,
2
)
...
...
src/views/crowdfunding/success.vue
View file @
8f4f845
...
...
@@ -78,7 +78,7 @@ export default {
valueList
.
push
(
carText
)
}
labelList
=
[...
labelList
,
'商品名称:'
,
'支付时间:'
,
'支付定金'
]
valueList
=
[...
valueList
,
orderGoods
.
goodsName
,
new
Date
().
format
(
'yyyy年M月d日 hh:mm:ss'
),
`
${
payPrice
}
元`
]
valueList
=
[...
valueList
,
orderGoods
.
goodsName
,
new
Date
(
activityJoin
.
createdDate
).
format
(
'yyyy年M月d日 hh:mm:ss'
),
`
${
payPrice
}
元`
]
labelList
.
map
((
e
,
index
)
=>
{
if
(
e
==
'商品名称:'
&&
draw
.
getTextWidth
(
carText
)
+
valueX
>
valueWidth
)
spacing
=
24
if
(
index
==
labelList
.
length
-
1
)
textYList
.
push
(
352
)
...
...
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