Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
程默
mayi-mp-shop
Commits
62e4aa15
Commit
62e4aa15
authored
Apr 13, 2023
by
howie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:会员卡定制化判断权限
parent
bce0d24e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
src/utils/mayi.js
+14
-0
No files found.
src/utils/mayi.js
View file @
62e4aa15
...
...
@@ -363,6 +363,7 @@ export function themeMemberCardClick(item) {
};
shop
.
getV3CardList
(
query
).
then
(
res
=>
{
console
.
log
(
res
,
"--------------------282"
);
// item是当前点击的链接中会员卡详情,res.data是所有的会员卡列表,其中包含该用户是否开启了这个卡
if
(
res
.
data
.
code
==
200
)
{
let
cardData
=
""
;
res
.
data
.
data
.
forEach
(
innerItem
=>
{
...
...
@@ -374,6 +375,19 @@ export function themeMemberCardClick(item) {
let
userInfo
=
wx
.
getStorageSync
(
"userInfo"
)
?
JSON
.
parse
(
wx
.
getStorageSync
(
"userInfo"
))
:
""
;
// ---------------LLGW客户定制化开始,用户没有会员卡权限,不让其进入会员卡详情 ---------------
let
appData
=
getApp
();
console
.
log
(
"app.globalData.shopInfo.shopCode"
,
appData
.
globalData
.
shopInfo
.
shopCode
);
// this.$store.state.mixid
if
(
appData
.
globalData
.
shopInfo
.
shopCode
==
'LLGW'
)
{
// console.log("当前的店铺",$nuxt.$route.query.mixid);
if
(
cardData
.
receiveStatus
!=
1
)
{
wx
.
showToast
({
title
:
'非该会员无法查看'
,
icon
:
"none"
});
return
}
}
// ---------------LLGW 客户定制化结束---------------
if
(
cardData
.
receiveWay
==
0
)
{
// 无门槛
shop
.
drawV3Card
(
cardId
).
then
(
res
=>
{
...
...
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