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
b5cecb6f
Commit
b5cecb6f
authored
Apr 02, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
界面和细节优化
parent
218de66b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
4 deletions
+30
-4
storeList.vue
components/storeList/storeList.vue
+1
-0
couponCheck.vue
pages/couponCheck/couponCheck.vue
+17
-1
index.vue
pages/index/index.vue
+9
-3
order.vue
pages/order/order.vue
+3
-0
No files found.
components/storeList/storeList.vue
View file @
b5cecb6f
...
...
@@ -86,6 +86,7 @@
this
.
list
=
this
.
value
;
},
onNavToHome
(
val
)
{
uni
.
setStorageSync
(
"storePopShow"
,
false
)
uni
.
setStorageSync
(
"storeId"
,
val
.
id
)
uni
.
switchTab
({
url
:
`/pages/index/index?storeId=
${
val
.
id
}
`
...
...
pages/couponCheck/couponCheck.vue
View file @
b5cecb6f
...
...
@@ -82,7 +82,8 @@
}
],
couponInfo
:
''
,
eventChannel
:
null
eventChannel
:
null
,
orderPage
:
false
};
},
filters
:{
...
...
@@ -90,8 +91,20 @@
return
moment
(
val
).
format
(
"YYYY-MM-DD HH:mm:ss"
)
}
},
onLoad
()
{
this
.
eventChannel
=
this
.
getOpenerEventChannel
();
this
.
eventChannel
.
on
(
'acceptDataFromOpenerPage'
,
(
data
)
=>
{
console
.
log
(
data
,
99999
)
if
(
data
.
orderPage
){
this
.
orderPage
=
true
}
else
{
this
.
orderPage
=
false
}
})
},
methods
:{
onConfirm
(){
let
that
=
this
;
if
(
!
this
.
code
){
uni
.
showToast
({
icon
:
"none"
,
...
...
@@ -119,6 +132,9 @@
title
:
"核验成功"
,
success
:
()
=>
{
setTimeout
(()
=>
{
if
(
that
.
orderPage
){
that
.
eventChannel
.
emit
(
'acceptData'
,
{
data
:
true
});
}
uni
.
navigateBack
()
},
1000
)
}
...
...
pages/index/index.vue
View file @
b5cecb6f
...
...
@@ -178,7 +178,7 @@
<view
class=
"title"
>
<text
class=
"text-black text-xl text-bold"
>
温馨提示
</text>
</view>
<view
class=
"close-box text-xxl"
@
tap=
"on
Close
"
>
<view
class=
"close-box text-xxl"
@
tap=
"on
StoreClose(true)
"
>
<text
class=
"cuIcon-roundclosefill text-pink"
></text>
</view>
</view>
...
...
@@ -327,7 +327,7 @@
methods
:
{
onStoreChage
(
id
){
uni
.
setStorageSync
(
"storeId"
,
id
);
this
.
on
Close
(
);
this
.
on
StoreClose
(
false
);
setTimeout
(()
=>
{
this
.
onGetListStore
();
},
200
)
...
...
@@ -475,7 +475,9 @@
let
l
=
that
.
roomVoList
.
filter
(
item
=>
item
.
sortNum
===
1
)
if
(
l
.
length
<=
0
){
that
.
$refs
.
popupStoreList
.
open
();
if
(
!
uni
.
getStorageSync
(
"storePopShow"
)){
that
.
$refs
.
popupStoreList
.
open
();
}
}
}
else
{
...
...
@@ -595,6 +597,10 @@
},
onClose
()
{
this
.
$refs
.
popup
.
close
()
},
onStoreClose
(
storePopShow
=
true
){
uni
.
setStorageSync
(
"storePopShow"
,
storePopShow
)
this
.
$refs
.
popupStoreList
.
close
()
},
onNavToSet
()
{
...
...
pages/order/order.vue
View file @
b5cecb6f
...
...
@@ -1373,6 +1373,9 @@
let
that
=
this
;
uni
.
navigateTo
({
url
:
"/pages/couponCheck/couponCheck?openShopUuid="
+
this
.
roomInfo
.
openShopUuid
,
success
:
(
res
)
=>
{
res
.
eventChannel
.
emit
(
'acceptDataFromOpenerPage'
,
{
orderPage
:
true
})
},
events
:
{
// 为指定事件添加一个监听器,获取被打开页面传送到当前页面的数据
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