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
adea96d1
Commit
adea96d1
authored
Jan 15, 2025
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优惠卷调整
parent
e7a1cca4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
9 deletions
+12
-9
details.vue
pages/coupon/details/details.vue
+10
-8
index.vue
pages/coupon/index/index.vue
+2
-1
No files found.
pages/coupon/details/details.vue
View file @
adea96d1
...
...
@@ -2,14 +2,14 @@
<view
class=
"coupondetailsStyle"
:style=
"
{ height: contentHeight }">
<view
class=
"cd_box"
>
<Text
class=
'cd_name'
>
{{
g
.
Name
}}
{{
g
.
coupon
Name
}}
</Text>
<view
style=
"display: flex;align-items: flex-end;"
>
<Text
style=
'font-size: 32px;'
>
{{
g
.
DiscountsPrice
}}
</Text>
<Text
style=
'font-size: 14px;'
>
{{
g
.
CouponType
==
2
?
'折'
:
""
}}
</Text>
<Text
style=
'font-size: 32px;'
>
{{
g
.
denomination
}}
</Text>
<Text
style=
'font-size: 14px;'
>
{{
g
.
couponsType
!=
1
?
'折'
:
""
}}
</Text>
</view>
<Text
class=
'condition'
>
满
{{
g
.
MinConsumePrice
}}
可用
满
{{
g
.
useCondition
}}
可用
</Text>
<view
v-if=
'type==2 && g.IsReceive==0'
class=
"receive"
:style=
"
{'background':mainColor}" @click="receive(g.CouponId)">
...
...
@@ -24,9 +24,9 @@
</view>
<view
style=
"width: 100%;border-top: 1px dashed #f5f5f5;margin: 10px 0;"
></view>
<Text
class=
'c_name'
style=
'margin-top: 25px;'
>
有效期
</Text>
<Text
class=
'cd_content'
v-if=
'g.IndateType==1'
>
领取后
{{
g
.
IndateDay
}}
天内有效
</Text>
<Text
class=
'cd_content'
v-if=
'g.IndateType==2'
>
{{
g
.
StartDate
}}
-
{{
g
.
EndDate
}}
</Text>
<Text
class=
'cd_content'
>
{{
g
.
expirationDate
}}
失效
</Text>
<
!--
<
Text
class=
'cd_content'
v-if=
'g.IndateType==1'
>
领取后
{{
g
.
IndateDay
}}
天内有效
</Text>
<Text
class=
'cd_content'
v-if=
'g.IndateType==2'
>
{{
g
.
StartDate
}}
-
{{
g
.
EndDate
}}
</Text>
-->
<!--
<Text
class=
'cd_content'
>
{{
g
.
StartDate
}}
-
{{
g
.
EndDate
}}
</Text>
-->
<Text
class=
'c_name'
style=
'margin-top: 1px;'
>
使用规则
</Text>
...
...
@@ -78,7 +78,7 @@
this
.
type
=
option
.
type
let
item
=
JSON
.
parse
(
decodeURIComponent
(
option
.
item
))
this
.
g
=
item
;
console
.
log
(
"this.g"
,
this
.
g
);
console
.
log
(
"this.g"
,
this
.
g
);
},
methods
:
{
receive
(
id
)
{
...
...
@@ -99,6 +99,8 @@
}
);
},
gouseUrl
(
g
)
{
uni
.
redirectTo
({
url
:
'/pages/index/index'
...
...
pages/coupon/index/index.vue
View file @
adea96d1
...
...
@@ -156,8 +156,9 @@
gbAuth
()
{
uni
.
navigateBack
();
},
//优惠劵详情
godetails
(
item
)
{
if
(
this
.
msg
.
UseState
==
0
)
{
if
(
this
.
msg
.
CouponStatus
==
1
)
{
uni
.
navigateTo
({
url
:
"/pages/coupon/details/details?item="
+
encodeURIComponent
(
JSON
.
stringify
(
item
))
+
...
...
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