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
68406db2
Commit
68406db2
authored
Jun 22, 2020
by
程默
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
c1751751
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
4 deletions
+19
-4
src/pages/login/index.vue
+15
-3
src/pages/wxPay/index.vue
+4
-1
No files found.
src/pages/login/index.vue
View file @
68406db2
...
@@ -158,10 +158,22 @@ export default {
...
@@ -158,10 +158,22 @@ export default {
.
then
(
res
=>
{
.
then
(
res
=>
{
console
.
log
(
"promise"
,
res
);
console
.
log
(
"promise"
,
res
);
//存入openid
//存入openid
wx
.
setStorage
({
try
{
wx
.
setStorageSync
(
'openid'
,
res
.
data
.
data
.
openid
)
}
catch
(
e
)
{
console
.
log
(
'存入openid失败'
,
e
)
}
wx
.
getStorage
({
key
:
"openid"
,
key
:
"openid"
,
data
:
res
.
data
.
data
.
openid
success
(
res
)
{
});
console
.
log
(
"promise_openid1"
,
res
)
},
fail
(
err
){
console
.
log
(
"promise_openid2"
,
err
)
}
})
//
if
(
res
.
data
.
data
.
isHaveUnion
==
"true"
)
{
if
(
res
.
data
.
data
.
isHaveUnion
==
"true"
)
{
//有账号
//有账号
this
.
backParams
+=
`&sessionid=
${
this
.
backParams
+=
`&sessionid=
${
...
...
src/pages/wxPay/index.vue
View file @
68406db2
...
@@ -26,7 +26,7 @@ export default {
...
@@ -26,7 +26,7 @@ export default {
title
:
"加载中"
title
:
"加载中"
});
});
Object
.
assign
(
this
.
$data
,
this
.
$options
.
data
());
//mpvue 的混合周期 使用小程序生命周期数据未初始化
Object
.
assign
(
this
.
$data
,
this
.
$options
.
data
());
//mpvue 的混合周期 使用小程序生命周期数据未初始化
console
.
log
(
"onload//"
);
console
.
log
(
"onload//"
,
options
);
this
.
options
=
JSON
.
parse
(
options
.
ordercode
);
this
.
options
=
JSON
.
parse
(
options
.
ordercode
);
this
.
options_orderType
=
options
.
orderType
;
this
.
options_orderType
=
options
.
orderType
;
this
.
options_isCard
=
options
.
isCard
;
this
.
options_isCard
=
options
.
isCard
;
...
@@ -41,6 +41,9 @@ export default {
...
@@ -41,6 +41,9 @@ export default {
that
.
options
.
tradeType
=
"Mini"
;
that
.
options
.
tradeType
=
"Mini"
;
console
.
log
(
"支付开始"
,
that
.
options
);
console
.
log
(
"支付开始"
,
that
.
options
);
that
.
toPay
();
that
.
toPay
();
},
fail
(
err
){
console
.
log
(
'获取err'
,
err
)
}
}
});
});
},
},
...
...
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