Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
Y
ybf
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xulili
ybf
Commits
f309e747
Commit
f309e747
authored
Apr 05, 2020
by
xd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
专柜切换和我的
parent
3a8494b2
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
92 deletions
+3
-92
changeCounter.vue
wx_application/src/views/counter/changeCounter.vue
+2
-2
index.vue
wx_application/src/views/mainSale/active/main/index.vue
+0
-1
index.vue
wx_application/src/views/mainSale/me/main/index.vue
+1
-89
No files found.
wx_application/src/views/counter/changeCounter.vue
View file @
f309e747
...
@@ -31,7 +31,7 @@ export default {
...
@@ -31,7 +31,7 @@ export default {
}
}
},
},
created
()
{
created
()
{
this
.
radio
=
this
.
$route
.
query
.
userId
this
.
radio
=
sessionStorage
.
getItem
(
'oyStallCode'
)
this
.
getList
()
this
.
getList
()
},
},
methods
:
{
methods
:
{
...
...
wx_application/src/views/mainSale/active/main/index.vue
View file @
f309e747
...
@@ -278,7 +278,6 @@ export default {
...
@@ -278,7 +278,6 @@ export default {
this
.
$router
.
push
(
"counterInfo"
);
this
.
$router
.
push
(
"counterInfo"
);
},
},
switchBarClick
()
{
switchBarClick
()
{
// this.$router.push("ChangeCounter");
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'ChangeCounter'
,
path
:
'ChangeCounter'
,
query
:{
query
:{
...
...
wx_application/src/views/mainSale/me/main/index.vue
View file @
f309e747
...
@@ -131,8 +131,6 @@
...
@@ -131,8 +131,6 @@
},
},
mounted
()
{
mounted
()
{
this
.
checkNowMenuBar
()
this
.
checkNowMenuBar
()
// this.zReadyUserId()
this
.
zTestGetNowUrlInfo
()
},
},
methods
:
{
methods
:
{
...
@@ -155,92 +153,6 @@
...
@@ -155,92 +153,6 @@
},
},
menuCase
()
{
menuCase
()
{
this
.
$router
.
push
({
path
:
"/case"
});
this
.
$router
.
push
({
path
:
"/case"
});
},
// 获取code
zReadyUserId
()
{
if
(
this
.
$route
.
query
.
code
===
undefined
){
// alert('没code')
this
.
zTestPreAuthCode
()
}
else
{
// alert('有code')
this
.
zTestGetNowUrlInfo
();
this
.
zTestGetUserInfoByOldToken
();
}
},
// 测试-获取当前Url信息
zTestGetNowUrlInfo
()
{
this
.
zcache
.
nowUrl
=
JSON
.
stringify
(
this
.
$route
.
query
);
this
.
zcache
.
code
=
String
(
this
.
$route
.
query
.
code
);
this
.
url
=
this
.
zcache
.
nowUrl
},
zTestPreAuthCode
()
{
// alert('获取code')
const
basicInfo
=
{
head
:
"https://open.weixin.qq.com/connect/oauth2/authorize?"
,
// appId: "wwd1cdbca7b8b2b6c4",
appId
:
"ww4df265003b43fa0d"
,
redirectUrI
:
encodeURIComponent
(
"oysales.oywanhao.com:8087"
),
responseType
:
"code"
,
scope
:
"snsapi_base"
,
state
:
"ztest"
,
tail
:
"#wechat_redirect"
};
let
url
=
basicInfo
.
head
+
"appid="
+
basicInfo
.
appId
+
"&redirect_uri="
+
basicInfo
.
redirectUrI
+
"&response_type="
+
basicInfo
.
responseType
+
"&scope="
+
basicInfo
.
scope
+
"&state="
+
basicInfo
.
state
+
basicInfo
.
tail
;
this
.
zcache
.
preAuthCodeUrl
=
url
;
window
.
location
.
href
=
url
;
},
// 测试-获取用户信息
zTestGetUserInfoByOldToken
()
{
let
postData
=
{
code
:
this
.
zcache
.
code
,
};
let
headerData
=
{
agentId
:
"1000033"
,
corpId
:
"ww4df265003b43fa0d"
};
this
.
zcache
.
userInfoResOld
=
"PostData:"
+
JSON
.
stringify
(
postData
)
axios
({
url
:
"http://139.155.48.151:8085/workWx/auth/oauth2/getUserInfo?code="
+
this
.
zcache
.
code
,
method
:
"post"
,
headers
:
headerData
,
})
.
then
(
res
=>
{
// alert('获取用户信息接口成功')
sessionStorage
.
setItem
(
"userId"
,
String
(
res
.
data
.
data
.
userId
))
this
.
zcache
.
userId
=
String
(
res
.
data
.
data
.
userId
)
this
.
getUserFromId
(
this
.
zcache
.
userId
)
})
.
catch
(
err
=>
{
console
.
log
(
err
)
});
},
getUserFromId
(
id
)
{
let
userName
=
id
getUserInfoByUserId
({
userName
}).
then
(
res
=>
{
// alert('获取成功')
sessionStorage
.
setItem
(
"oyStallCode"
,
res
.
data
[
0
].
oyStallCode
)
this
.
storeCode
=
res
.
data
[
0
].
oyStallCode
})
.
catch
(
err
=>
{
})
},
handleDetail
(
type
){
if
(
type
===
'message'
){
this
.
$router
.
push
(
'/message'
)
}
}
}
}
}
};
};
...
...
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