Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 7ea4bc76
authored
Jun 07, 2024
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit 修复BUG
1 parent
0fe22f86
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
14 deletions
components/HomeFrame/index.vue
components/ToolBox.vue
pages/boutique/components/Reception.vue
components/HomeFrame/index.vue
View file @
7ea4bc7
...
...
@@ -208,20 +208,7 @@ export default {
};
},
mounted
()
{
const
userInfo
=
uni
.
$storage
.
get
(
"userInfo"
)
||
{};
if
(
!
userInfo
.
shopMerchantId
||
!
userInfo
.
shopMerchantName
)
{
uni
.
$storage
.
rm
(
"userInfo"
);
uni
.
$storage
.
rm
(
"sessionId"
);
uni
.
reLaunch
({
url
:
"/pages/common/login"
,
});
return
}
setTimeout
(()
=>
{
uni
.
$storage
.
set
(
"userInfo"
,
null
)
},
5
e3
)
console
.
log
(
userInfo
)
this
.
userInfo
=
userInfo
setInterval
(()
=>
{
this
.
dateKey
=
Date
.
now
();
...
...
components/ToolBox.vue
View file @
7ea4bc7
...
...
@@ -136,6 +136,7 @@ export default {
position
:
relative
;
background
:
rgba
(
255
,
255
,
255
,
0.6
);
visibility
:
hidden
;
height
:
0
;
&::after
{
position
:
absolute
;
content
:
""
;
...
...
@@ -183,6 +184,7 @@ export default {
padding-bottom
:
16
rpx
;
animation
:
scale-up-top-right
0.4s
;
visibility
:
visible
;
height
:
auto
;
}
@keyframes
scale-up-top-right
{
0
%
{
...
...
pages/boutique/components/Reception.vue
View file @
7ea4bc7
...
...
@@ -356,7 +356,9 @@ export default {
try
{
const
{
pageParams
:
{
couponId
,
carInfo
},
customerInfo
}
=
this
,
{
shopMerchantId
}
=
uni
.
$storage
.
get
(
"userInfo"
),
validateStatus
=
await
this
.
validate
()
validateStatus
=
await
this
.
validate
(),
checkCouponAmount
=
await
this
.
checkCouponAmount
(
couponId
,
[
shopMerchantId
])
if
(
!
checkCouponAmount
.
length
)
throw
'该门店礼券已使用完,请联系管理员配置。'
if
(
!
validateStatus
)
return
uni
.
showLoading
()
let
{
staffName
,
salesUuid
}
=
customerInfo
,
...
...
@@ -451,6 +453,13 @@ export default {
},
resetFocusIndex
()
{
this
.
focusIndex
=
-
1
},
async
checkCouponAmount
(
merchantCouponId
,
merchantIdList
)
{
const
{
list
}
=
await
uni
.
$api
.
boutiqueApi
.
findCouponList
({
merchantCouponId
,
merchantIdList
})
return
list
||
[]
}
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment