Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vueH5
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吕海涛
vueH5
Commits
572f010b
Commit
572f010b
authored
Oct 21, 2020
by
kun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pc账户
parent
7a19ff3a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
67 additions
and
19 deletions
+67
-19
pc_index.vue
src/components/pc_page/pc_index.vue
+0
-0
withdrawalRecord.vue
src/components/pc_page/withdrawalRecord.vue
+2
-2
pc_index.js
src/port/pc_index.js
+37
-0
globalAPI.js
src/request/globalAPI.js
+1
-1
index.js
src/router/index.js
+27
-16
No files found.
src/components/pc_page/pc_index.vue
View file @
572f010b
This diff is collapsed.
Click to expand it.
src/components/pc_page/withdrawalRecord.vue
View file @
572f010b
...
...
@@ -30,10 +30,10 @@
},
methods
:
{
rollOut
(){
this
.
$router
.
go
(
'-1
'
);
window
.
parent
.
postMessage
({
data
:
false
},
'*
'
);
},
goBackAccount
(){
this
.
$router
.
push
(
'account-information
'
);
window
.
parent
.
postMessage
({
data
:
false
},
'*
'
);
}
}
}
...
...
src/port/pc_index.js
0 → 100644
View file @
572f010b
import
{
get
,
post
}
from
'@/request/http'
import
globalAPI
from
'@/request/globalAPI'
//查询信息
export
function
getBusinessIndo
(
token
,
data
=
{})
{
const
url
=
globalAPI
.
BASE_URL
+
'auth/support/'
+
token
;
return
get
(
url
,
data
)
}
//修改密码
export
function
update
(
data
=
{})
{
const
url
=
globalAPI
.
BUSINESS_URL
+
'payment/v1/password/update'
;
return
post
(
url
,
data
)
}
//新增密码
export
function
activationNewPaw
(
data
=
{})
{
const
url
=
globalAPI
.
BUSINESS_URL
+
'payment/v1/password/activation'
;
return
post
(
url
,
data
)
}
//开通结算账户
export
function
cloneAccountplatform
(
data
=
{})
{
const
url
=
globalAPI
.
BUSINESS_URL
+
'http://account.xoado.com/payment/v1/xoado/cloneAccount'
;
return
post
(
url
,
data
)
}
//解绑银行卡
export
function
unBindingBank
(
data
=
{})
{
const
url
=
globalAPI
.
BUSINESS_URL
+
'payment/v1/manage/unBinding'
;
return
post
(
url
,
data
)
}
//绑定银行卡
export
function
cardBindingBank
(
data
)
{
const
url
=
globalAPI
.
BUSINESS_URL
+
'payment/v1/manage/cardBinding'
;
return
post
(
url
,
data
)
}
//提现
export
function
asynNotifyM
(
data
=
{})
{
const
url
=
globalAPI
.
BUSINESS_URL
+
'payment/v1/xoado/withdraw'
;
return
post
(
url
,
data
)
}
src/request/globalAPI.js
View file @
572f010b
var
BASE_URL
=
"http://core.xoado.com/"
;
var
BUSINESS_URL
=
"http://account.xoado.com/"
;
var
BUSINESS_URL
=
"http
s
://account.xoado.com/"
;
export
default
{
BASE_URL
,
BUSINESS_URL
...
...
src/router/index.js
View file @
572f010b
...
...
@@ -67,22 +67,33 @@ var router = new VueRouter({
routes
:
routes
});
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
// var platform = oneValues("platform");
// console.log(platform)
// if (!isEmpty(oneValues("platform"))) {
// if (platform == "driver") {
// if (to.path === '/') {
// console.log(oneValues("token")+"__________________")
// return next({
// path: '/m_index', query: {
// token: oneValues("token")
// }
// });
// } else {
// return next();
// }
// }
// }
var
platform
=
oneValues
(
"platform"
);
console
.
log
(
platform
)
if
(
!
isEmpty
(
oneValues
(
"platform"
)))
{
if
(
platform
==
"driver"
)
{
if
(
to
.
path
===
'/'
)
{
console
.
log
(
oneValues
(
"token"
)
+
"__________________"
)
return
next
({
path
:
'/m_index'
,
query
:
{
token
:
oneValues
(
"token"
)
}
});
}
else
{
return
next
();
}
}
else
{
if
(
to
.
path
===
'/'
)
{
console
.
log
(
oneValues
(
"token"
)
+
"__________________"
)
return
next
({
path
:
'/pc_index'
,
query
:
{
token
:
oneValues
(
"token"
)
}
});
}
else
{
return
next
();
}
}
}
next
()
});
export
default
router
;
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