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
Show 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 @@
...
@@ -18,6 +18,9 @@
value
:{
value
:{
type
:
Boolean
,
type
:
Boolean
,
default
:
true
default
:
true
},
storeId
:{
type
:
[
String
,
Number
]
}
}
},
},
data
()
{
data
()
{
...
@@ -58,7 +61,8 @@
...
@@ -58,7 +61,8 @@
],
],
timer
:
null
,
timer
:
null
,
orderInfo
:{},
orderInfo
:{},
servicePhone
:
''
servicePhone
:
''
,
};
};
},
},
watch
:{
watch
:{
...
@@ -74,7 +78,6 @@
...
@@ -74,7 +78,6 @@
}
else
{
}
else
{
this
.
show
=
val
this
.
show
=
val
}
}
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -100,9 +103,9 @@
...
@@ -100,9 +103,9 @@
this
.
onGetOrderByAvailable
(
val
.
value
)
this
.
onGetOrderByAvailable
(
val
.
value
)
return
return
}
}
if
(
val
.
routePath
){
if
(
val
.
value
===
1
){
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
val
.
routePath
url
:
val
.
routePath
+
'?storeId='
+
this
.
storeId
})
})
}
}
},
},
...
...
pages/couponCheck/couponCheck.vue
View file @
0e5ea495
...
@@ -124,8 +124,11 @@
...
@@ -124,8 +124,11 @@
return
moment
(
val
).
format
(
"YYYY-MM-DD HH:mm:ss"
)
return
moment
(
val
).
format
(
"YYYY-MM-DD HH:mm:ss"
)
}
}
},
},
onLoad
()
{
onLoad
(
option
)
{
// this.$refs.popup.open();
console
.
log
(
option
,
"canshu"
)
if
(
option
&&
option
.
storeId
){
this
.
storeId
=
option
.
storeId
;
}
this
.
eventChannel
=
this
.
getOpenerEventChannel
();
this
.
eventChannel
=
this
.
getOpenerEventChannel
();
this
.
eventChannel
.
on
(
'acceptDataFromOpenerPage'
,
(
data
)
=>
{
this
.
eventChannel
.
on
(
'acceptDataFromOpenerPage'
,
(
data
)
=>
{
console
.
log
(
data
,
99999
)
console
.
log
(
data
,
99999
)
...
@@ -156,6 +159,7 @@
...
@@ -156,6 +159,7 @@
title
:
'加载中...'
title
:
'加载中...'
})
})
getStoreListByCouponCode
({
getStoreListByCouponCode
({
storeId
:
uni
.
getStorageSync
(
'storeId'
)
||
this
.
storeId
,
code
:
this
.
qrCode
,
code
:
this
.
qrCode
,
longitude
:
uni
.
getStorageSync
(
"longitude"
),
longitude
:
uni
.
getStorageSync
(
"longitude"
),
latitude
:
uni
.
getStorageSync
(
"latitude"
)
latitude
:
uni
.
getStorageSync
(
"latitude"
)
...
...
pages/index/index.vue
View file @
0e5ea495
...
@@ -153,7 +153,7 @@
...
@@ -153,7 +153,7 @@
</view>
</view>
</view>
</view>
</scroll-view>
</scroll-view>
<ToolBox
v-model=
"show"
/>
<ToolBox
v-model=
"show"
:storeId=
"storeInfo.id"
/>
<uni-popup
ref=
"popup"
type=
"bottom"
>
<uni-popup
ref=
"popup"
type=
"bottom"
>
<view
class=
"flex-col location-box"
>
<view
class=
"flex-col location-box"
>
<view
class=
"flex-col content-box"
>
<view
class=
"flex-col content-box"
>
...
@@ -237,7 +237,9 @@
...
@@ -237,7 +237,9 @@
scrollTop
:
0
,
scrollTop
:
0
,
storeId
:
''
,
storeId
:
''
,
storeList
:
[],
storeList
:
[],
storeInfo
:
{},
storeInfo
:
{
id
:
''
},
statusBarHeight
:
this
.
statusBarHeight
,
statusBarHeight
:
this
.
statusBarHeight
,
hostUrl
:
config
.
hostUrl
,
hostUrl
:
config
.
hostUrl
,
assetsPath
:
config
.
assetsPath
,
assetsPath
:
config
.
assetsPath
,
...
...
pages/order/order.vue
View file @
0e5ea495
...
@@ -1374,7 +1374,7 @@
...
@@ -1374,7 +1374,7 @@
onNavToCheckedCoupon
()
{
onNavToCheckedCoupon
()
{
let
that
=
this
;
let
that
=
this
;
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
"/pages/couponCheck/couponCheck?
openShopUuid="
+
this
.
roomInfo
.
openShopUui
d
,
url
:
"/pages/couponCheck/couponCheck?
storeId="
+
this
.
roomInfo
.
storeI
d
,
success
:
(
res
)
=>
{
success
:
(
res
)
=>
{
res
.
eventChannel
.
emit
(
'acceptDataFromOpenerPage'
,
{
res
.
eventChannel
.
emit
(
'acceptDataFromOpenerPage'
,
{
orderPage
:
true
,
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