Commit 572f010b by kun

pc账户

parent 7a19ff3a
...@@ -30,10 +30,10 @@ ...@@ -30,10 +30,10 @@
}, },
methods: { methods: {
rollOut(){ rollOut(){
this.$router.go('-1'); window.parent.postMessage({data:false},'*');
}, },
goBackAccount(){ 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 BASE_URL = "http://core.xoado.com/";
var BUSINESS_URL="http://account.xoado.com/"; var BUSINESS_URL="https://account.xoado.com/";
export default { export default {
BASE_URL, BASE_URL,
BUSINESS_URL BUSINESS_URL
......
...@@ -67,22 +67,33 @@ var router = new VueRouter({ ...@@ -67,22 +67,33 @@ var router = new VueRouter({
routes: routes routes: routes
}); });
router.beforeEach((to, from, next) => { router.beforeEach((to, from, next) => {
// var platform = oneValues("platform"); var platform = oneValues("platform");
// console.log(platform) console.log(platform)
// if (!isEmpty(oneValues("platform"))) { if (!isEmpty(oneValues("platform"))) {
// if (platform == "driver") { if (platform == "driver") {
// if (to.path === '/') { if (to.path === '/') {
// console.log(oneValues("token")+"__________________") console.log(oneValues("token")+"__________________")
// return next({ return next({
// path: '/m_index', query: { path: '/m_index', query: {
// token: oneValues("token") token: oneValues("token")
// } }
// }); });
// } else { } else {
// return next(); return next();
// } }
// } }else {
// } if (to.path === '/') {
console.log(oneValues("token")+"__________________")
return next({
path: '/pc_index', query: {
token: oneValues("token")
}
});
} else {
return next();
}
}
}
next() next()
}); });
export default router; 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