Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
飞
飞鹤小程序
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
FH
飞鹤小程序
Commits
8914dfb1
Commit
8914dfb1
authored
Aug 14, 2025
by
王炽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
积分页面处理
parent
1e4ac7fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
15 deletions
+37
-15
Integral.vue
views/Integral.vue
+37
-15
No files found.
views/Integral.vue
View file @
8914dfb1
...
@@ -80,11 +80,23 @@
...
@@ -80,11 +80,23 @@
<!-- 进度条 -->
<!-- 进度条 -->
<view
class=
"progress-bar-container"
>
<view
class=
"progress-bar-container"
>
<view
class=
"progress-bar-bg"
></view>
<!-- 进度条背景图片 -->
<view
<image
class=
"progress-bar-fill"
:src=
"`/static/integral/$
{tupianBanben}/barBgVip${index}.png`"
:style=
"
{ width: '60%' }"
class="progress-bar-bg"
>
</view>
mode="aspectFit"
@error="onProgressBarError"
/>
<!-- 进度条填充图片 -->
<view
class=
"progress-bar-mask"
>
<image
:src=
"`/static/integral/$
{tupianBanben}/barVip${index}.png`"
class="progress-bar-fill"
mode="aspectFit"
:style="{ transform: `translateX(${(6000/10000)*100 -100}%)` }"
@error="onProgressBarError"
/>
</view>
</view>
</view>
</view>
</view>
<!--
<view
class=
"vip-info"
>
<!--
<view
class=
"vip-info"
>
...
@@ -438,6 +450,11 @@
...
@@ -438,6 +450,11 @@
import
RegisterLayer
from
"../components/RegisterLayer.vue"
;
import
RegisterLayer
from
"../components/RegisterLayer.vue"
;
import
md
from
'../md'
;
import
md
from
'../md'
;
// 进度条图片加载错误处理
const
onProgressBarError
=
(
e
)
=>
{
console
.
error
(
'进度条图片加载失败:'
,
e
)
// 可以设置默认样式或显示错误提示
}
const
integralData
=
ref
({
const
integralData
=
ref
({
"tupianBanben"
:
"1013"
,
"tupianBanben"
:
"1013"
,
...
@@ -1962,7 +1979,7 @@
...
@@ -1962,7 +1979,7 @@
// 积分进度条样式
// 积分进度条样式
.
jifen
-
progressbar
{
.
jifen
-
progressbar
{
position
:
absolute
;
position
:
absolute
;
top
:
20
9
rpx
;
top
:
20
7
rpx
;
width
:
320
rpx
;
width
:
320
rpx
;
left
:
40
rpx
;
left
:
40
rpx
;
...
@@ -2002,9 +2019,7 @@
...
@@ -2002,9 +2019,7 @@
.
progress
-
bar
-
container
{
.
progress
-
bar
-
container
{
position
:
relative
;
position
:
relative
;
width
:
100
%
;
width
:
100
%
;
height
:
12
rpx
;
height
:
7
rpx
;
background
:
#
f5f3f0
;
border
-
radius
:
6
rpx
;
overflow
:
hidden
;
overflow
:
hidden
;
margin
-
top
:
10
rpx
;
margin
-
top
:
10
rpx
;
...
@@ -2014,19 +2029,26 @@
...
@@ -2014,19 +2029,26 @@
left
:
0
;
left
:
0
;
width
:
100
%
;
width
:
100
%
;
height
:
100
%
;
height
:
100
%
;
background
:
#
f5f3f0
;
z
-
index
:
1
;
border
-
radius
:
6
rpx
;
}
.
progress
-
bar
-
mask
{
position
:
absolute
;
top
:
0
;
left
:
0
;
width
:
100
%
;
height
:
100
%
;
overflow
:
hidden
;
z
-
index
:
2
;
}
}
.
progress
-
bar
-
fill
{
.
progress
-
bar
-
fill
{
position
:
absolute
;
position
:
absolute
;
top
:
0
;
top
:
0
;
left
:
0
;
left
:
0
;
width
:
100
%
;
height
:
100
%
;
height
:
100
%
;
background
:
#
8
b4513
;
transition
:
transform
0.3
s
ease
;
border
-
radius
:
6
rpx
;
transition
:
width
0.3
s
ease
;
box
-
shadow
:
0
1
rpx
3
rpx
rgba
(
139
,
69
,
19
,
0.3
);
}
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment