Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
h5
/
glsx-posters
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 dfa8d6e5
authored
Oct 24, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复bug
1 parent
51b633cd
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
7 deletions
src/utils/rem.ts
src/views/crowdfunding/activited.vue
src/views/crowdfunding/activiting.vue
src/utils/rem.ts
View file @
dfa8d6e
/*
* @Description:
* @Author: huyue
* @Date: 2022-10-10 10:59:01
* @LastEditors: huyue
* @LastEditTime: 2022-10-24 11:04:56
*/
let
baseSize
=
37.5
let
baseSize
=
37.5
function
setRem
()
{
function
setRem
()
{
const
scale
=
document
.
documentElement
.
clientWidth
/
750
const
scale
=
document
.
documentElement
.
clientWidth
/
750
document
.
documentElement
.
style
.
fontSize
=
baseSize
*
Math
.
min
(
scale
,
3
)
+
'px'
document
.
documentElement
.
style
.
fontSize
=
baseSize
*
Math
.
min
(
scale
,
3
)
+
'px'
}
}
function
throttle
(
func
,
wait
)
{
let
timeout
return
function
()
{
if
(
!
timeout
)
{
timeout
=
setTimeout
(
function
()
{
func
()
timeout
=
null
},
wait
)
}
}
}
setRem
()
setRem
()
window
.
onresize
=
()
=>
{
window
.
onresize
=
throttle
(()
=>
{
console
.
log
(
11
)
setRem
()
setRem
()
}
\ No newline at end of file
\ No newline at end of file
},
1000
)
\ No newline at end of file
\ No newline at end of file
src/views/crowdfunding/activited.vue
View file @
dfa8d6e
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Author: huyue
* @Date: 2022-10-11 17:41:38
* @Date: 2022-10-11 17:41:38
* @LastEditors: huyue
* @LastEditors: huyue
* @LastEditTime: 2022-10-24
09:49:33
* @LastEditTime: 2022-10-24
13:45:35
-->
-->
<
template
>
<
template
>
<!-- 战报产品 -->
<!-- 战报产品 -->
...
@@ -151,7 +151,9 @@
...
@@ -151,7 +151,9 @@
活动完成率较差,争取下次活动有所突破
活动完成率较差,争取下次活动有所突破
</div>
</div>
<div
class=
"activty-text"
v-else-if=
"progress > 80"
>
<div
class=
"activty-text"
v-else-if=
"progress > 80"
>
已完成目标产值
<span
class=
"activty-flag"
>
{{
progress
}}
%
</span
已完成目标产值
<span
class=
"activty-flag"
>
{{
data
.
activitedInfo
.
volumeRate
}}
</span
>
,圆满完成任务
>
,圆满完成任务
</div>
</div>
<div
v-else
class=
"activty-text"
>
<div
v-else
class=
"activty-text"
>
...
@@ -928,7 +930,7 @@ const getInfo = async () => {
...
@@ -928,7 +930,7 @@ const getInfo = async () => {
const
res
=
await
req
(
"scrm.api.shopmall.activity.end.report.param"
,
query
);
const
res
=
await
req
(
"scrm.api.shopmall.activity.end.report.param"
,
query
);
data
.
activitedInfo
=
res
;
data
.
activitedInfo
=
res
;
const
seriesRank
=
data
.
activitedInfo
.
seriesRank
;
const
seriesRank
=
data
.
activitedInfo
.
seriesRank
;
progress
.
value
=
res
.
volume
;
progress
.
value
=
res
.
volume
Rate
.
slice
(
0
,
-
1
)
;
// progress.value = 150;
// progress.value = 150;
let
index
=
1
;
let
index
=
1
;
for
(
let
i
in
rankingList
)
{
for
(
let
i
in
rankingList
)
{
...
...
src/views/crowdfunding/activiting.vue
View file @
dfa8d6e
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Author: huyue
* @Date: 2022-10-11 17:41:38
* @Date: 2022-10-11 17:41:38
* @LastEditors: huyue
* @LastEditors: huyue
* @LastEditTime: 2022-10-2
3 14:36:36
* @LastEditTime: 2022-10-2
4 11:23:02
-->
-->
<
template
>
<
template
>
<!-- 战报产品 -->
<!-- 战报产品 -->
...
@@ -464,7 +464,7 @@ const getInfo = async () => {
...
@@ -464,7 +464,7 @@ const getInfo = async () => {
);
);
data
.
activityInfo
=
res
;
data
.
activityInfo
=
res
;
console
.
log
(
data
.
activityInfo
.
userRank
);
console
.
log
(
data
.
activityInfo
.
userRank
);
progress
.
value
=
res
.
volume
;
progress
.
value
=
res
.
volume
Rate
.
slice
(
0
,
-
1
)
;
let
index
=
1
;
let
index
=
1
;
for
(
let
i
in
rankingList
)
{
for
(
let
i
in
rankingList
)
{
console
.
log
(
i
);
console
.
log
(
i
);
...
...
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