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
fa67c472
Commit
fa67c472
authored
Jan 16, 2025
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优惠券详情
parent
24fd0823
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
247 additions
and
4 deletions
+247
-4
App.vue
App.vue
+5
-0
header.vue
components/header/header.vue
+65
-0
pages.json
pages.json
+7
-1
details.vue
pages/coupon/details/details.vue
+170
-3
No files found.
App.vue
View file @
fa67c472
...
...
@@ -116,6 +116,11 @@ export default {
url("//at.alicdn.com/wf/webfont/MQHUV6e56ce5/ViySHjFRkPg9.woff")
format
(
"woff"
);
font-display
:
swap
;
}
@font-face
{
font-family
:
"DFPLiJinHeiW8-GB"
;
src
:
url("https://im.oytour.com/tripfont/cb76573b1580477fbea1ce0cc0d136e5.woff")
;
}
// @font-face {
// font-family: "oswald";
// src: url("https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/smallapp/Oswald-Regular.ttf");
...
...
components/header/header.vue
0 → 100644
View file @
fa67c472
<
template
>
<view
class=
"carrHeader"
:style=
"[titleStyle]"
>
<view
class=
"carrHeaderBox"
>
<view
class=
"carrHeader-left"
>
<view
class=
"carrHeader-left-icon"
@
click=
"goBack"
>
<u-icon
name=
"arrow-left"
size=
"38"
color=
"#000"
></u-icon>
</view>
</view>
<view
class=
"carrHeader-title"
>
<slot>
{{
title
}}
</slot>
</view>
</view>
</view>
</
template
>
<
script
>
export
default
{
props
:[
'title'
],
data
()
{
return
{
titleStyle
:{}
}
},
mounted
()
{
const
that
=
this
uni
.
getSystemInfo
({
success
(
res
)
{
that
.
titleStyle
=
{
paddingTop
:
`
${
res
.
statusBarHeight
}
px`
};
},
});
},
methods
:{
goBack
(){
uni
.
navigateBack
({
delta
:
-
1
})
}
}
}
</
script
>
<
style
>
.carrHeader-title
{
width
:
100%
;
position
:
relative
;
left
:
0
;
right
:
0
;
text-align
:
center
;
font-size
:
32
rpx
;
}
.carrHeader-left
{
position
:
absolute
;
left
:
32
rpx
;
}
.carrHeaderBox
{
width
:
100%
;
height
:
88
rpx
;
padding
:
0
32
rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
position
:
relative
;
}
.carrHeader
{
padding-top
:
48
rpx
;
}
</
style
>
\ No newline at end of file
pages.json
View file @
fa67c472
...
...
@@ -206,7 +206,13 @@
"path"
:
"list/list"
},
{
"path"
:
"details/details"
"path"
:
"details/details"
,
"style"
:
{
"navigationStyle"
:
"custom"
},
"globalStyle"
:
{
"navigationStyle"
:
"custom"
}
},
{
"path"
:
"index/index"
...
...
pages/coupon/details/details.vue
View file @
fa67c472
<
template
>
<view
class=
"coupondetailsStyle"
:style=
"
{ height: contentHeight }">
<view
class=
"cd_box"
>
<view
class=
"couponDetailsHeadeBox"
>
<headers
:title=
"'优惠券详情'"
></headers>
<view
class=
"couponDetailsHeadeNB"
>
<view
class=
"couponDetailsHeade"
>
<view
class=
"couponDetailsHeadeL"
>
<view
class=
"couponDetailsHeadeLq"
v-if=
"g.couponsType==1"
>
<view>
¥
</view>
</view>
<view
class=
"couponDetailsHeadeLn"
>
{{
g
.
denomination
}}
</view>
<view
class=
"couponDetailsHeadeLq"
style=
"margin-right: 0;margin-left: 10rpx;"
v-if=
"g.couponsType==2"
>
<view>
折
</view>
</view>
</view>
<view
class=
"couponDetailsHeadeR"
>
<view
class=
"couponDetailsHeadeRt"
>
{{
g
.
couponName
}}
</view>
<view
class=
"couponDetailsHeadeRn"
>
满
{{
g
.
useCondition
}}
元使用
</view>
</view>
</view>
</view>
</view>
<view
class=
"cdTiaojian_box"
>
<view
class=
"cdTiaojianB"
>
<view
class=
"cdTiaojianBLeft"
>
<img
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638726421660548071.png"
/>
</view>
<view
class=
"cdTiaojianBRight"
>
<view
class=
"cdTiaojianBRTitle"
>
使用条件
</view>
<view
class=
"cdTiaojianBRText"
>
满
{{
g
.
useCondition
}}
元使用
</view>
</view>
</view>
<view
class=
"cdTiaojianB"
>
<view
class=
"cdTiaojianBLeft"
>
<img
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638726421660548071.png"
/>
</view>
<view
class=
"cdTiaojianBRight"
>
<view
class=
"cdTiaojianBRTitle"
>
有效期
</view>
<view
class=
"cdTiaojianBRText"
>
{{
g
.
effectDate
}}
-
{{
g
.
expirationDate
}}
</view>
</view>
</view>
<view
class=
"cdTiaojianB"
>
<view
class=
"cdTiaojianBLeft"
>
<img
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638726421660548071.png"
/>
</view>
<view
class=
"cdTiaojianBRight"
>
<view
class=
"cdTiaojianBRTitle"
>
使用说明
</view>
<view
class=
"cdTiaojianBRText"
>
券类型:
{{
g
.
couponsType
==
1
?
'抵用券'
:
'折扣卷'
}}
</view>
<view
class=
"cdTiaojianBRText"
>
使用范围:
{{
g
.
couponsUseScopeName
}}
</view>
<!--
<view
class=
"cdTiaojianBRText"
>
{{
g
.
remark
}}
</view>
-->
</view>
</view>
<view
class=
"cdTiaojianButtom"
@
click=
"gouseUrl(g)"
>
立即使用
</view>
</view>
<view
class=
"cd_box"
v-if=
"false"
>
<Text
class=
'cd_name'
>
{{
g
.
couponName
}}
</Text>
...
...
@@ -43,7 +97,11 @@
</
template
>
<
script
>
import
headers
from
"@/components/header/header"
;
export
default
{
components
:
{
headers
,
},
data
()
{
return
{
pageTitle
:
"优惠券详情"
,
...
...
@@ -114,7 +172,7 @@
width
:
100%
;
height
:
100%
;
background
:
#f3f4f6
;
padding-top
:
10px
;
/* padding-top: 10px; */
}
...
...
@@ -122,12 +180,12 @@
width
:
94%
;
border-radius
:
10
rpx
;
background
:
#fff
;
margin-left
:
3%
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
padding
:
10px
;
margin-top
:
250
rpx
;
}
.cd_box
.cd_name
{
...
...
@@ -182,4 +240,113 @@
width
:
90%
;
font-size
:
15px
;
}
.couponDetailsHeadeBox
{
position
:
relative
;
/* position: fixed; */
width
:
100%
;
height
:
328
rpx
;
top
:
0
;
background-image
:
url('https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638726421380079705.png')
;
background-size
:
100%
auto
;
}
.couponDetailsHeadeNB
{
position
:
absolute
;
width
:
100%
;
top
:
190
rpx
;
}
.couponDetailsHeade
{
width
:
675
rpx
;
height
:
232
rpx
;
background-image
:
url('https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638726421549327416.png')
;
background-size
:
100%
auto
;
margin
:
auto
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
padding
:
76
rpx
86
rpx
;
}
.couponDetailsHeadeL
{
flex-shrink
:
0
;
display
:
flex
;
flex-direction
:
row
;
}
.couponDetailsHeadeLq
{
display
:
flex
;
font-size
:
44
rpx
;
color
:
rgba
(
222
,
87
,
67
,
1
);
margin-right
:
10
rpx
;
}
.couponDetailsHeadeLq
{
position
:
relative
;
top
:
25
rpx
;
}
.couponDetailsHeadeLn
{
font-size
:
84
rpx
;
color
:
rgba
(
222
,
87
,
67
,
1
);
font-family
:
"DFPLiJinHeiW8-GB"
;
}
.couponDetailsHeadeR
{
flex
:
1
;
margin-left
:
27
rpx
;
}
.couponDetailsHeadeRt
{
width
:
100%
;
font-weight
:
bold
;
font-size
:
32
rpx
;
color
:
#7D5D0D
;
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
}
.couponDetailsHeadeRn
{
width
:
100%
;
font-weight
:
500
;
font-size
:
24
rpx
;
color
:
#B99846
;
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
margin-top
:
20
rpx
;
}
.cdTiaojian_box
{
padding
:
0
66
rpx
;
margin-top
:
143
rpx
;
/* margin-top: 480rpx; */
}
.cdTiaojianB
{
display
:
flex
;
margin-bottom
:
59
rpx
;
}
.cdTiaojianBLeft
{
flex-shrink
:
0
;
margin-right
:
19
rpx
;
}
.cdTiaojianBLeft
img
{
width
:
16
rpx
;
height
:
16
rpx
;
display
:
inline-block
;
}
.cdTiaojianBRTitle
{
font-weight
:
500
;
font-size
:
28
rpx
;
color
:
#080A09
;
}
.cdTiaojianBRText
{
font-weight
:
500
;
font-size
:
24
rpx
;
color
:
#B99846
;
margin-top
:
23
rpx
;
}
.cdTiaojianButtom
{
width
:
100%
;
height
:
84
rpx
;
background
:
#E2C27A
;
border-radius
:
18
rpx
;
color
:
#fff
;
font-weight
:
bold
;
font-size
:
30
rpx
;
text-align
:
center
;
line-height
:
84
rpx
;
margin-top
:
83
rpx
;
}
</
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