Commit 572f010b by kun

pc账户

parent 7a19ff3a
......@@ -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},'*');
}
}
}
......
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)
}
var BASE_URL = "http://core.xoado.com/";
var BUSINESS_URL="http://account.xoado.com/";
var BUSINESS_URL="https://account.xoado.com/";
export default {
BASE_URL,
BUSINESS_URL
......
......@@ -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;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment