diff --git a/src/router/index.js b/src/router/index.js old mode 100644 new mode 100755 index 1551249..3057cbf --- a/src/router/index.js +++ b/src/router/index.js @@ -3,6 +3,7 @@ import VueRouter from 'vue-router' import Marketplace from '../views/Marketplace.vue' import Application from '../views/Application.vue' import AppBling from '../views/apps/AppBling.vue' +import AppTrustvox from '../views/apps/AppTrustvox.vue' Vue.use(VueRouter) @@ -21,6 +22,11 @@ const routes = [ path: '/apps/edit/1247/:objectId?', name: 'app-bling', component: AppBling + }, + { + path: '/apps/edit/1255/:objectId?', + name: 'app-trustvox', + component: AppTrustvox } ] @@ -34,6 +40,12 @@ router.beforeEach((to, from, next) => { case 1247: router.push({ ...to, name: 'app-bling' }) break + case 1247: + router.push({ ...to, name: 'app-bling' }) + break + case 1255: + router.push({ ...to, name: 'app-trustvox' }) + break } } next() diff --git a/src/views/apps/AppTrustvox.vue b/src/views/apps/AppTrustvox.vue new file mode 100755 index 0000000..9b430e9 --- /dev/null +++ b/src/views/apps/AppTrustvox.vue @@ -0,0 +1,16 @@ + + + diff --git a/src/views/apps/js/AppTrustvox.js b/src/views/apps/js/AppTrustvox.js new file mode 100755 index 0000000..c7f5176 --- /dev/null +++ b/src/views/apps/js/AppTrustvox.js @@ -0,0 +1,16 @@ +import Application from '../../Application.vue' +import { $ecomConfig } from '@ecomplus/utils' +export default { + name: 'AppTrustvox', + + components: { + Application + }, + + methods: { + handlerClick () { + const authUrl = `https://trustvox.ecomplus.biz/trustvox/auth-callback?x_store_id=${$ecomConfig.get('store_id')}` + window.open(authUrl, "_blank") + } + } +}