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
49c1e490
Commit
49c1e490
authored
Mar 18, 2020
by
Z
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Z: Dot: 演示版本存档:20200317-170000
parent
89fa64fb
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
18 deletions
+19
-18
index.js
ybf_wx/src/router/index.js
+1
-2
aCommon.js
ybf_wx/src/utils/aCommon.js
+4
-4
aRequest.js
ybf_wx/src/utils/aRequest.js
+4
-4
aWxRequest.js
ybf_wx/src/utils/aWxRequest.js
+4
-4
home.vue
ybf_wx/src/views/home.vue
+6
-4
No files found.
ybf_wx/src/router/index.js
View file @
49c1e490
...
@@ -153,9 +153,8 @@ const router = new VueRouter({
...
@@ -153,9 +153,8 @@ const router = new VueRouter({
routes
routes
})
})
// const whiteList = ['/', '/home','/home/']
const
whiteList
=
[
'/discount'
,
'discount'
]
const
whiteList
=
[
'/discount'
,
'discount'
]
// const whiteList = ['/discount', 'discount', '/voucherInfo', 'voucherInfo']
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
// alert(`--->route: beforeEach: to =${JSON.stringify(to)}. from =${from}. next =${JSON.stringify(next)}`)
// alert(`--->route: beforeEach: to =${JSON.stringify(to)}. from =${from}. next =${JSON.stringify(next)}`)
if
(
whiteList
.
indexOf
(
to
.
path
)
!=
-
1
)
{
if
(
whiteList
.
indexOf
(
to
.
path
)
!=
-
1
)
{
...
...
ybf_wx/src/utils/aCommon.js
View file @
49c1e490
...
@@ -7,10 +7,10 @@ const zlog = console.log.bind(console)
...
@@ -7,10 +7,10 @@ const zlog = console.log.bind(console)
// Z-BasicInfo
// Z-BasicInfo
let
INFO
=
{
let
INFO
=
{
//
corpId: 'wwd1cdbca7b8b2b6c4',
corpId
:
'wwd1cdbca7b8b2b6c4'
,
//
agentId: '1000015',
agentId
:
'1000015'
,
corpId
:
'ww4df265003b43fa0d'
,
//
corpId: 'ww4df265003b43fa0d',
agentId
:
'1000032'
,
//
agentId: '1000032',
}
}
async
function
getXToken
()
{
async
function
getXToken
()
{
...
...
ybf_wx/src/utils/aRequest.js
View file @
49c1e490
...
@@ -8,10 +8,10 @@ import envConfig from '@/config/env-config'
...
@@ -8,10 +8,10 @@ import envConfig from '@/config/env-config'
// const testEnv = require('../../config/dev.env')
// const testEnv = require('../../config/dev.env')
// Z-BasicInfo
// Z-BasicInfo
let
INFO
=
{
let
INFO
=
{
//
corpId: 'wwd1cdbca7b8b2b6c4',
corpId
:
'wwd1cdbca7b8b2b6c4'
,
//
agentId: '1000015',
agentId
:
'1000015'
,
corpId
:
'ww4df265003b43fa0d'
,
//
corpId: 'ww4df265003b43fa0d',
agentId
:
'1000032'
,
//
agentId: '1000032',
// url: 'http://139.155.48.151:8085',
// url: 'http://139.155.48.151:8085',
url
:
envConfig
.
appBaseUrlA
,
url
:
envConfig
.
appBaseUrlA
,
}
}
...
...
ybf_wx/src/utils/aWxRequest.js
View file @
49c1e490
...
@@ -6,10 +6,10 @@ export function wxRequest(inUrl, data = {}, header = {}, method = 'post') {
...
@@ -6,10 +6,10 @@ export function wxRequest(inUrl, data = {}, header = {}, method = 'post') {
// Z-BasicInfo
// Z-BasicInfo
let
INFO
=
{
let
INFO
=
{
//
corpId: 'wwd1cdbca7b8b2b6c4',
corpId
:
'wwd1cdbca7b8b2b6c4'
,
//
agentId: '1000015',
agentId
:
'1000015'
,
corpId
:
'ww4df265003b43fa0d'
,
//
corpId: 'ww4df265003b43fa0d',
agentId
:
'1000032'
,
//
agentId: '1000032',
// url: 'http://139.155.48.151:8085' + inUrl,
// url: 'http://139.155.48.151:8085' + inUrl,
url
:
envConfig
.
appBaseUrlA
+
inUrl
,
url
:
envConfig
.
appBaseUrlA
+
inUrl
,
}
}
...
...
ybf_wx/src/views/home.vue
View file @
49c1e490
...
@@ -167,10 +167,10 @@ export default {
...
@@ -167,10 +167,10 @@ export default {
code
:
this
.
zcache
.
code
code
:
this
.
zcache
.
code
};
};
let
headerData
=
{
let
headerData
=
{
//
agentId: "1000015",
agentId
:
"1000015"
,
//
corpId: "wwd1cdbca7b8b2b6c4",
corpId
:
"wwd1cdbca7b8b2b6c4"
,
agentId
:
"1000032"
,
//
agentId: "1000032",
corpId
:
"ww4df265003b43fa0d"
//
corpId: "ww4df265003b43fa0d"
};
};
// url: "http://139.155.48.151:8085/workWx/auth/oauth2/getUserInfo",
// url: "http://139.155.48.151:8085/workWx/auth/oauth2/getUserInfo",
...
@@ -228,6 +228,8 @@ export default {
...
@@ -228,6 +228,8 @@ export default {
listClick
(
inData
)
{
listClick
(
inData
)
{
// this.$router.push(inData);
// this.$router.push(inData);
// this.$router.push({name: inData, transData: {userId: this.zcache.code}})
// this.$router.push({name: inData, transData: {userId: this.zcache.code}})
// alert(`--->listClick: IN.`)
// alert(`--->listClick: indata =${inData}. userId =${this.zcache.userId}`)
this
.
$router
.
push
({
name
:
inData
,
params
:
{
userId
:
this
.
zcache
.
userId
}})
this
.
$router
.
push
({
name
:
inData
,
params
:
{
userId
:
this
.
zcache
.
userId
}})
// this.$router.push({name: inData, params: {userId: 'SEGA'}})
// this.$router.push({name: inData, params: {userId: 'SEGA'}})
},
},
...
...
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