Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
wmsMin
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
11b1b712
authored
Aug 11, 2022
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
js
parent
9172c69c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
4 deletions
pages/home/index.vue
pages/mine/auth.vue
util/api.js
pages/home/index.vue
View file @
11b1b712
...
...
@@ -179,7 +179,7 @@ export default {
},
toUrl
()
{
uni
.
navigateTo
({
url
:
'/pages/mine/
login
'
url
:
'/pages/mine/
auth
'
});
},
gridClick
(
item
,
index
)
{
...
...
pages/mine/auth.vue
View file @
11b1b712
<
template
>
<view
class=
"page-auth column rowCenter verCenter"
>
<text
class=
"logo"
></text>
<text
class=
"title"
>
SCM
商务系统
</text>
<text
class=
"title"
>
SCM
WMS
</text>
<button
class=
"share row rowCenter verCenter"
@
tap=
"getUserProfileChange"
>
<text
class=
"iconfont icon-jinggao1"
></text>
<text
class=
"t1"
>
微信授权登录
</text>
...
...
@@ -47,12 +47,13 @@ export default {
wx
.
getUserProfile
({
desc
:
'用于完善会员资料'
,
success
:
res
=>
{
self
.
request
(
API
.
getOpenId
,
'GET'
,
{
code
:
self
.
code
},
true
).
then
(
data
=>
{
self
.
request
(
API
.
getWechatInfo
,
'GET'
,
{
code
:
self
.
code
},
true
).
then
(
data
=>
{
console
.
log
(
data
);
if
(
data
.
err_code
===
0
)
{
uni
.
setStorageSync
(
'openid'
,
data
.
data
.
openid
);
uni
.
setStorageSync
(
'session_key'
,
data
.
data
.
session_key
);
uni
.
setStorageSync
(
'unionid'
,
data
.
data
.
unionid
);
uni
.
navigateTo
({
url
:
'/pages/mine/login'
});
...
...
util/api.js
View file @
11b1b712
...
...
@@ -14,6 +14,10 @@ const API = {
* */
login
:
API_BASE
+
'/supplywechatsignfor/login'
,
/**
* 获取用户微信信息
* */
getWechatInfo
:
API_BASE
+
'/supplywechatwms/getWechatInfo'
,
/**
* 上传文件
* */
upload
:
API_BASE
+
'/oss/upload'
,
...
...
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