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
b6035a44
Commit
b6035a44
authored
Nov 15, 2023
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节优化
parent
292a4643
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
7 deletions
+14
-7
coupon.js
api/coupon.js
+3
-3
couponCheck.vue
pages/couponCheck/couponCheck.vue
+10
-3
order.vue
pages/order/order.vue
+1
-1
No files found.
api/coupon.js
View file @
b6035a44
...
@@ -11,9 +11,9 @@ export const getUseCoupon=(data)=>{
...
@@ -11,9 +11,9 @@ export const getUseCoupon=(data)=>{
return
http
.
post
(
url
,
data
)
return
http
.
post
(
url
,
data
)
}
}
export
const
couponChecked
=
(
code
)
=>
{
export
const
couponChecked
=
(
data
)
=>
{
let
url
=
`/chessCards/consumeByUser
?code=`
+
code
let
url
=
`/chessCards/consumeByUser
`
return
http
.
get
(
url
)
return
http
.
get
(
url
,
data
)
}
}
...
...
pages/couponCheck/couponCheck.vue
View file @
b6035a44
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
</view>
</view>
<view
class=
"input-box"
>
<view
class=
"input-box"
>
<view
class=
"cu-form-group"
>
<view
class=
"cu-form-group"
>
<input
type=
"number"
class=
"input"
placeholder=
"点击输入卡券兑换码
"
v-model=
"code"
></input>
<input
placeholder=
"点击输入卡券兑换码"
name=
"input
"
v-model=
"code"
></input>
<text
class=
"cuIcon-qr_code text-gray text-xxl"
@
tap=
"onScanCode"
></text>
<text
class=
"cuIcon-qr_code text-gray text-xxl"
@
tap=
"onScanCode"
></text>
</view>
</view>
</view>
</view>
...
@@ -70,6 +70,7 @@
...
@@ -70,6 +70,7 @@
return
{
return
{
assetsPath
:
config
.
assetsPath
,
assetsPath
:
config
.
assetsPath
,
code
:
""
,
code
:
""
,
openShopUuid
:
''
,
list
:[
list
:[
{
{
iconUrl
:
config
.
assetsPath
+
'/mt_icon.png'
,
iconUrl
:
config
.
assetsPath
+
'/mt_icon.png'
,
...
@@ -85,7 +86,10 @@
...
@@ -85,7 +86,10 @@
return
moment
(
val
).
format
(
"YYYY-MM-DD HH:mm:ss"
)
return
moment
(
val
).
format
(
"YYYY-MM-DD HH:mm:ss"
)
}
}
},
},
onLoad
()
{
onLoad
(
option
)
{
if
(
option
.
openShopUuid
){
this
.
openShopUuid
=
option
.
openShopUuid
}
this
.
eventChannel
=
this
.
getOpenerEventChannel
();
this
.
eventChannel
=
this
.
getOpenerEventChannel
();
},
},
...
@@ -101,7 +105,10 @@
...
@@ -101,7 +105,10 @@
uni
.
showLoading
({
uni
.
showLoading
({
title
:
"券码核验中"
title
:
"券码核验中"
})
})
couponChecked
(
this
.
code
).
then
(
res
=>
{
couponChecked
({
code
:
this
.
code
,
openShopUuid
:
this
.
openShopUuid
}).
then
(
res
=>
{
console
.
log
(
res
,
909090
)
console
.
log
(
res
,
909090
)
if
(
res
.
data
.
code
===
200
){
if
(
res
.
data
.
code
===
200
){
this
.
couponInfo
=
res
.
data
.
data
this
.
couponInfo
=
res
.
data
.
data
...
...
pages/order/order.vue
View file @
b6035a44
...
@@ -750,7 +750,7 @@
...
@@ -750,7 +750,7 @@
},
},
onNavToCheckedCoupon
(){
onNavToCheckedCoupon
(){
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
"/pages/couponCheck/couponCheck
"
,
url
:
"/pages/couponCheck/couponCheck
?openShopUuid="
+
this
.
roomInfo
.
openShopUuid
,
events
:
{
events
:
{
// 为指定事件添加一个监听器,获取被打开页面传送到当前页面的数据
// 为指定事件添加一个监听器,获取被打开页面传送到当前页面的数据
acceptData
(
data
){
acceptData
(
data
){
...
...
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