Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
scmMiniprogram
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
103a3163
authored
Sep 08, 2021
by
liangjianmin
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
css
parent
6b56de7b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
2 deletions
pages/mine/auth.vue
unpackage/dist/dev/.sourcemap/mp-weixin/pages/mine/auth.js.map
unpackage/dist/dev/mp-weixin/pages/mine/auth.js
pages/mine/auth.vue
View file @
103a3163
...
@@ -59,7 +59,14 @@ export default {
...
@@ -59,7 +59,14 @@ export default {
});
});
},
},
toLogin
()
{
toLogin
()
{
this
.
request
(
API
.
BindWechat
,
'POST'
,
{
wechat_unique_id
:
this
.
code
},
true
).
then
(
res
=>
{});
this
.
request
(
API
.
BindWechat
,
'POST'
,
{
wechat_unique_id
:
this
.
code
},
true
).
then
(
res
=>
{
if
(
res
.
err_code
===
0
)
{
uni
.
setStorageSync
(
'openid'
,
'122'
);
uni
.
navigateTo
({
url
:
'/pages/mine/login'
});
}
});
}
}
}
}
};
};
...
...
unpackage/dist/dev/.sourcemap/mp-weixin/pages/mine/auth.js.map
View file @
103a3163
This diff is collapsed.
Click to expand it.
unpackage/dist/dev/mp-weixin/pages/mine/auth.js
View file @
103a3163
...
@@ -191,7 +191,14 @@ var _default = { data: function data() {return { code: '' };}, onLoad: function
...
@@ -191,7 +191,14 @@ var _default = { data: function data() {return { code: '' };}, onLoad: function
},
},
toLogin
:
function
toLogin
()
{
toLogin
:
function
toLogin
()
{
this
.
request
(
_api
.
API
.
BindWechat
,
'POST'
,
{
wechat_unique_id
:
this
.
code
},
true
).
then
(
function
(
res
)
{});
this
.
request
(
_api
.
API
.
BindWechat
,
'POST'
,
{
wechat_unique_id
:
this
.
code
},
true
).
then
(
function
(
res
)
{
if
(
res
.
err_code
===
0
)
{
uni
.
setStorageSync
(
'openid'
,
'122'
);
uni
.
navigateTo
({
url
:
'/pages/mine/login'
});
}
});
}
}
};
exports
.
default
=
_default
;
}
}
};
exports
.
default
=
_default
;
/* WEBPACK VAR INJECTION */
}.
call
(
this
,
__webpack_require__
(
/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */
1
)[
"default"
]))
/* WEBPACK VAR INJECTION */
}.
call
(
this
,
__webpack_require__
(
/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */
1
)[
"default"
]))
...
...
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