Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_wechat
Overview
Overview
Details
Activity
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
pseer
gxpt_wechat
Commits
9a599823
Commit
9a599823
authored
Apr 12, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节优化
parent
b01256ba
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
21 deletions
+35
-21
couponCheck.vue
pages/couponCheck/couponCheck.vue
+35
-21
No files found.
pages/couponCheck/couponCheck.vue
View file @
9a599823
...
...
@@ -58,20 +58,19 @@
<view
class=
"content-box"
>
<view
class=
"content"
>
<view
class=
"title-box"
>
<text
class=
"text-black text-bold text-xl"
>
提示
</text>
<text
class=
"text-black text-bold text-xl"
>
核销成功
</text>
<view
class=
"close-box"
@
tap=
"onClose"
>
<text
class=
"cuIcon-close text-gray text-bold text-xl"
></text>
</view>
</view>
<view
class=
"tip"
>
<view
class=
"text-1"
>
<text
class=
"text-bold text-lg text-black"
>
核销成功
</text>
<view
class=
"flex-row"
>
<text
class=
"text-gray"
>
优惠券名称:
</text>
<text
class=
"text-title text-bold"
>
{{
couponInfo
.
couponName
}}
</text>
</view>
<view
class=
"flex-col"
>
<text
>
优惠券名称:
{{
couponInfo
.
deal_title
}}
</text>
</view>
<view
class=
"flex-col"
>
<text
>
到期时间:
{{
couponInfo
.
receiptEndDate
|
dateFormat
}}
</text>
<view
class=
"flex-row"
>
<text
class=
"text-gray"
>
到期时间:
</text>
<text
class=
"text-title text-bold"
>
{{
couponInfo
.
receiptEndDate
|
dateFormat
}}
</text>
</view>
</view>
</view>
...
...
@@ -110,7 +109,10 @@
}
],
storeId
:
''
,
couponInfo
:
''
,
couponInfo
:{
couponName
:
"【新店特惠】8点-13点任意包4小时畅玩"
,
receiptEndDate
:
"2024-04-01"
},
eventChannel
:
null
,
orderPage
:
false
,
popStoreList
:[],
...
...
@@ -123,6 +125,7 @@
}
},
onLoad
()
{
// this.$refs.popup.open();
this
.
eventChannel
=
this
.
getOpenerEventChannel
();
this
.
eventChannel
.
on
(
'acceptDataFromOpenerPage'
,
(
data
)
=>
{
console
.
log
(
data
,
99999
)
...
...
@@ -208,7 +211,6 @@
}).
then
(
res
=>
{
uni
.
hideLoading
()
if
(
res
.
data
.
code
===
200
){
uni
.
showToast
({
icon
:
"success"
,
title
:
"核验成功"
,
...
...
@@ -218,12 +220,16 @@
that
.
eventChannel
.
emit
(
'acceptData'
,
{
data
:
true
});
uni
.
navigateBack
()
}
else
{
getCouponByCode
({
code
:
that
.
qrCode
}).
then
(
result
=>
{
that
.
couponInfo
=
res
.
data
.
data
;
that
.
$refs
.
popup
.
open
();
uni
.
setStorageSync
(
"storeId"
,
that
.
storeId
)
uni
.
switchTab
({
url
:
"/pages/index/index"
})
// getCouponByCode({
// code: that.qrCode
// }).then(result =>{
// that.couponInfo = res.data.data;
// that.$refs.popup.open();
// })
}
},
1000
)
}
...
...
@@ -340,10 +346,11 @@
.content-box
{
display
:
flex
;
flex-direction
:
column
;
width
:
7
0vw
;
height
:
4
0vh
;
width
:
8
0vw
;
height
:
5
0vh
;
.content{
display
:
flex
;
//
flex
:
1
;
flex-direction
:
column
;
width
:
100%
;
padding
:
10
upx
0
50
upx
;
...
...
@@ -380,14 +387,21 @@
align-items
:
center
;
margin
:
30
upx
0
;
}
.flex-col
{
.flex-row
{
align-items
:
center
;
width
:
90%
;
margin
:
10
upx
auto
;
text{
font-size
:
32
upx
;
color
:
#666666
;
.text-gray{
width
:
180
upx
;
text-align
:
justify
;
text-align-last
:
justify
;
}
.text-title
{
display
:
flex
;
flex
:
1
;
align-items
:
center
;
}
}
}
}
...
...
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