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
0e5ea495
Commit
0e5ea495
authored
Apr 19, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节优化
parent
cac52536
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
9 deletions
+18
-9
toolBox.vue
components/toolBox/toolBox.vue
+7
-4
couponCheck.vue
pages/couponCheck/couponCheck.vue
+6
-2
index.vue
pages/index/index.vue
+4
-2
order.vue
pages/order/order.vue
+1
-1
No files found.
components/toolBox/toolBox.vue
View file @
0e5ea495
...
...
@@ -18,6 +18,9 @@
value
:{
type
:
Boolean
,
default
:
true
},
storeId
:{
type
:
[
String
,
Number
]
}
},
data
()
{
...
...
@@ -58,7 +61,8 @@
],
timer
:
null
,
orderInfo
:{},
servicePhone
:
''
servicePhone
:
''
,
};
},
watch
:{
...
...
@@ -74,7 +78,6 @@
}
else
{
this
.
show
=
val
}
}
},
mounted
()
{
...
...
@@ -100,9 +103,9 @@
this
.
onGetOrderByAvailable
(
val
.
value
)
return
}
if
(
val
.
routePath
){
if
(
val
.
value
===
1
){
uni
.
navigateTo
({
url
:
val
.
routePath
url
:
val
.
routePath
+
'?storeId='
+
this
.
storeId
})
}
},
...
...
pages/couponCheck/couponCheck.vue
View file @
0e5ea495
...
...
@@ -124,8 +124,11 @@
return
moment
(
val
).
format
(
"YYYY-MM-DD HH:mm:ss"
)
}
},
onLoad
()
{
// this.$refs.popup.open();
onLoad
(
option
)
{
console
.
log
(
option
,
"canshu"
)
if
(
option
&&
option
.
storeId
){
this
.
storeId
=
option
.
storeId
;
}
this
.
eventChannel
=
this
.
getOpenerEventChannel
();
this
.
eventChannel
.
on
(
'acceptDataFromOpenerPage'
,
(
data
)
=>
{
console
.
log
(
data
,
99999
)
...
...
@@ -156,6 +159,7 @@
title
:
'加载中...'
})
getStoreListByCouponCode
({
storeId
:
uni
.
getStorageSync
(
'storeId'
)
||
this
.
storeId
,
code
:
this
.
qrCode
,
longitude
:
uni
.
getStorageSync
(
"longitude"
),
latitude
:
uni
.
getStorageSync
(
"latitude"
)
...
...
pages/index/index.vue
View file @
0e5ea495
...
...
@@ -153,7 +153,7 @@
</view>
</view>
</scroll-view>
<ToolBox
v-model=
"show"
/>
<ToolBox
v-model=
"show"
:storeId=
"storeInfo.id"
/>
<uni-popup
ref=
"popup"
type=
"bottom"
>
<view
class=
"flex-col location-box"
>
<view
class=
"flex-col content-box"
>
...
...
@@ -237,7 +237,9 @@
scrollTop
:
0
,
storeId
:
''
,
storeList
:
[],
storeInfo
:
{},
storeInfo
:
{
id
:
''
},
statusBarHeight
:
this
.
statusBarHeight
,
hostUrl
:
config
.
hostUrl
,
assetsPath
:
config
.
assetsPath
,
...
...
pages/order/order.vue
View file @
0e5ea495
...
...
@@ -1374,7 +1374,7 @@
onNavToCheckedCoupon
()
{
let
that
=
this
;
uni
.
navigateTo
({
url
:
"/pages/couponCheck/couponCheck?
openShopUuid="
+
this
.
roomInfo
.
openShopUui
d
,
url
:
"/pages/couponCheck/couponCheck?
storeId="
+
this
.
roomInfo
.
storeI
d
,
success
:
(
res
)
=>
{
res
.
eventChannel
.
emit
(
'acceptDataFromOpenerPage'
,
{
orderPage
:
true
,
...
...
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