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
7178b3a4
Commit
7178b3a4
authored
Feb 27, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
验券优化
parent
dcc23940
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
17 deletions
+14
-17
toolBox.vue
components/toolBox/toolBox.vue
+8
-8
couponCheck.vue
pages/couponCheck/couponCheck.vue
+5
-9
index.vue
pages/index/index.vue
+1
-0
No files found.
components/toolBox/toolBox.vue
View file @
7178b3a4
...
...
@@ -37,13 +37,13 @@
imgUrl
:
config
.
assetsPath
+
'/order_2_icon.png'
,
sortName
:
"续"
},
//
{
//
name:"验券",
//
url:config.assetsPath+'/tool_3.png',
//
imgUrl: config.assetsPath+'/scan_code_icon.png',
//
sortName:"验",
// routePath:"/pages/useCouponIllustrate/useCouponIllustrate?keyData=coupon_use_process
"
//
},
{
name
:
"验券"
,
url
:
config
.
assetsPath
+
'/tool_3.png'
,
imgUrl
:
config
.
assetsPath
+
'/scan_code_icon.png'
,
sortName
:
"验"
,
routePath
:
"/pages/couponCheck/couponCheck
"
},
{
name
:
"客服"
,
url
:
config
.
assetsPath
+
'/tool_4.png'
,
...
...
@@ -87,7 +87,7 @@
}
},
onHandle
(
val
,
index
){
if
(
index
===
2
){
if
(
index
===
3
){
this
.
onGetSysConfig
()
return
};
...
...
pages/couponCheck/couponCheck.vue
View file @
7178b3a4
...
...
@@ -75,6 +75,10 @@
{
iconUrl
:
config
.
assetsPath
+
'/mt_icon.png'
,
name
:
"美团"
},
{
iconUrl
:
config
.
assetsPath
+
'/dy_icon.jpg'
,
name
:
"抖音"
}
],
couponInfo
:
''
,
...
...
@@ -86,13 +90,6 @@
return
moment
(
val
).
format
(
"YYYY-MM-DD HH:mm:ss"
)
}
},
onLoad
(
option
)
{
if
(
option
.
openShopUuid
){
this
.
openShopUuid
=
option
.
openShopUuid
}
this
.
eventChannel
=
this
.
getOpenerEventChannel
();
},
methods
:{
onConfirm
(){
if
(
!
this
.
code
){
...
...
@@ -107,7 +104,7 @@
})
couponChecked
({
code
:
this
.
code
.
split
(
" "
).
join
(
""
),
openShopUuid
:
this
.
openShopUuid
storeId
:
uni
.
getStorageSync
(
'storeId'
)
}).
then
(
res
=>
{
uni
.
hideLoading
()
if
(
res
.
data
.
code
===
200
){
...
...
@@ -116,7 +113,6 @@
icon
:
"success"
,
title
:
"核验成功"
,
success
:
()
=>
{
this
.
eventChannel
.
emit
(
'acceptData'
,
{
data
:
true
});
setTimeout
(()
=>
{
uni
.
navigateBack
()
},
1000
)
...
...
pages/index/index.vue
View file @
7178b3a4
...
...
@@ -329,6 +329,7 @@
obj
=
res
.
data
.
data
.
find
(
item
=>
item
.
id
===
uni
.
getStorageSync
(
"storeId"
))
}
else
{
obj
=
res
.
data
.
data
[
0
];
uni
.
setStorageSync
(
"storeId"
,
obj
.
id
);
}
that
.
storeInfo
=
{
...
obj
,
...
...
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