Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jz_Travel
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhengke
jz_Travel
Commits
b70cae09
Commit
b70cae09
authored
Apr 16, 2025
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
d0a302d0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
2 deletions
+42
-2
list.vue
pages/bigredrnvelope/list.vue
+11
-0
rule.vue
pages/bigredrnvelope/rule.vue
+31
-2
No files found.
pages/bigredrnvelope/list.vue
View file @
b70cae09
...
...
@@ -121,6 +121,17 @@ export default {
this
.
getList
()
},
methods
:
{
formatAmount
(
value
)
{
if
(
typeof
value
!==
'number'
)
return
value
;
// 确保是数字类型
if
(
value
>=
10000
)
{
return
(
value
/
10000
).
toFixed
(
1
)
+
'w'
;
// 转换为万,保留1位小数
}
else
if
(
value
>=
1000
)
{
return
(
value
/
1000
).
toFixed
(
1
)
+
'k'
;
// 转换为千,保留1位小数
}
else
{
return
value
.
toString
();
// 直接返回原值
}
},
goWebUrl
(
item
){
return
console
.
log
(
item
,
"-----item"
)
let
url
=
""
...
...
pages/bigredrnvelope/rule.vue
View file @
b70cae09
...
...
@@ -3,9 +3,20 @@
<image
mode=
""
style=
"height: 568rpx;"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638796333602414702.jpg"
/>
<image
mode=
""
style=
"height: 939rpx;"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638796333646350233.jpg"
/>
<image
mode=
""
style=
"height: 1031rpx;"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638796333741115931.jpg"
/>
<image
v-if=
"IsRenewalContract==1"
@
click=
"goUrl"
mode=
""
style=
"height: 204rpx;"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638796333810848018.jpg"
/>
<image
v-else
@
click=
"goBack"
mode=
""
style=
"height: 204rpx;"
<image
v-if=
"IsRenewalContract==1"
@
click=
"goUrl"
mode=
""
style=
"height: 204rpx;"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638796333810848018.jpg"
/>
<image
v-if=
"IsRenewalContract==0"
@
click=
"goBack"
mode=
""
style=
"height: 204rpx;"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638798830960524078.jpg"
/>
<view
class=
"clickBox row-sbas-n"
v-if=
"IsRenewalContract==2"
>
<view
@
click=
"goBack"
class=
"clickLeft"
>
<text
style=
"opacity: 0;"
>
1
</text>
</view>
<view
@
click=
"goUrl"
class=
"clickRight"
>
<text
style=
"opacity: 0;"
>
1
</text>
</view>
<image
mode=
""
style=
"width: 100%; height: 204rpx;"
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638804256574691882.jpg"
/>
</view>
</view>
</
template
>
<
script
>
...
...
@@ -46,4 +57,22 @@ export default {
width
:
100%
;
display
:
block
;
}
.clickBox
{
width
:
100%
;
position
:
relative
;
}
.clickLeft
{
position
:
absolute
;
width
:
50%
;
height
:
100%
;
left
:
0
;
z-index
:
2
;
}
.clickRight
{
position
:
absolute
;
width
:
50%
;
height
:
100%
;
right
:
0
;
z-index
:
2
;
}
</
style
>
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