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
1f3e66a1
Commit
1f3e66a1
authored
May 18, 2021
by
张卓
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'nativehome_tst' of
http://code.mayi888.com/chengmo/mayi-mp-shop
into nativehome_tst
parents
86bb3b82
5221a9f5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
src/utils/mayi.js
+14
-3
No files found.
src/utils/mayi.js
View file @
1f3e66a1
...
...
@@ -288,15 +288,18 @@ export function themeMemberCardClick (item) {
cardData
=
innerItem
;
}
});
let
cardId
=
cardData
.
id
;
let
userInfo
=
wx
.
getStorageSync
(
"userInfo"
)
?
JSON
.
parse
(
wx
.
getStorageSync
(
"userInfo"
))
:
""
;
if
(
cardData
.
receiveWay
==
0
)
{
// 无门槛
let
cardId
=
cardData
.
id
;
let
userInfo
=
wx
.
getStorageSync
(
"userInfo"
)
?
JSON
.
parse
(
wx
.
getStorageSync
(
"userInfo"
))
:
""
;
shop
.
drawV3Card
(
cardId
).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
wx
.
showToast
({
title
:
`开通【
${
cardData
.
title
}
】成功`
,
icon
:
"none"
}).
then
(
res
=>
{
let
backParams
=
`&cardId=
${
cardData
.
id
}
&userTel=
${
userInfo
.
mobilephone
}
`
;
toPage
(
"/personalCenter/membershipCard"
,
backParams
);
});
}
else
{
if
(
res
.
data
.
msg
==
"不能重复领卡"
)
{
...
...
@@ -326,7 +329,14 @@ export function themeMemberCardClick (item) {
console
.
error
(
"无效的领取方式"
);
}
}
else
{
wx
.
showToast
({
title
:
res
.
data
.
msg
,
icon
:
"none"
});
wx
.
showToast
({
title
:
res
.
data
.
msg
,
icon
:
"none"
});
if
(
res
.
data
.
code
==
300
)
{
console
.
log
(
'----------334'
)
// 未登录
const
url
=
`/pages/login/main?back=
${
encodeURIComponent
(
'/'
)}
`
;
wx
.
navigateTo
({
url
:
url
});
}
}
});
};
\ No newline at end of file
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