Commit 1cb3d982 authored by hanfeng zhang's avatar hanfeng zhang

321

parent cffb5ab2
...@@ -10,16 +10,17 @@ import service from './service' ...@@ -10,16 +10,17 @@ import service from './service'
import {global} from '@/const/Global' import {global} from '@/const/Global'
import dsbridge from 'dsbridge' import dsbridge from 'dsbridge'
import { Dialog, Toast, Notify }from 'vant' import { Dialog, Toast, Notify }from 'vant'
import VConsole from 'vconsole' // import VConsole from 'vconsole'
Vue.config.productionTip = false Vue.config.productionTip = false
Vue.use(Dialog).use(Toast).use(Notify) Vue.use(Dialog).use(Toast).use(Notify)
Vue.use(utils).use(service) Vue.use(utils).use(service)
Vue.prototype.$dsbridge = dsbridge Vue.prototype.$dsbridge = dsbridge
Vue.prototype.$global = global Vue.prototype.$global = global
if (process.env.NODE_ENV === 'development') {
new VConsole() // if (process.env.NODE_ENV === 'development') {
} // new VConsole()
// }
new Vue({ new Vue({
router, router,
store, store,
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
// 扫描二维码:scanCode // 扫描二维码:scanCode
// 打开企业联系人详情页面:openCompanyUserInfo 参数:联系人地址,企业id // 打开企业联系人详情页面:openCompanyUserInfo 参数:联系人地址,企业id
import router from '@/router';
import { AcceptJoinDTO } from '@/service/moudles/service.dto' import { AcceptJoinDTO } from '@/service/moudles/service.dto'
import dsbridge from 'dsbridge' import dsbridge from 'dsbridge'
...@@ -26,6 +27,16 @@ export function isAppEnv(){ ...@@ -26,6 +27,16 @@ export function isAppEnv(){
} }
export function appNavBack(){
const isApp = isAppEnv()
if(isApp){
goBack
}else{
router.go(-1)
}
}
/** /**
* 获取用户的资料 * 获取用户的资料
* @returns * @returns
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
header-bg="bg-white" header-bg="bg-white"
:loading="loading" :loading="loading"
left-arrow left-arrow
@click-left="$router.go(-1)" @click-left="appNavBack"
> >
<template slot="right"> <template slot="right">
<app-icon <app-icon
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
<script lang="ts"> <script lang="ts">
import Vue from 'vue' import Vue from 'vue'
import {useLocalStorageState} from 'ahooks-vue' import {useLocalStorageState} from 'ahooks-vue'
import { getUserInfo } from '@/util/Bridge' import { appNavBack, getUserInfo } from '@/util/Bridge'
import { getContacts } from '@/util/Contact' import { getContacts } from '@/util/Contact'
import {Department, Staff} from '@/Interface' import {Department, Staff} from '@/Interface'
...@@ -97,6 +97,9 @@ export default Vue.extend({ ...@@ -97,6 +97,9 @@ export default Vue.extend({
this.getStaff() this.getStaff()
}, },
methods: { methods: {
appNavBack(){
appNavBack()
},
getEntInfo() { getEntInfo() {
this.loading = true this.loading = true
this.$service.enterprise.getEnterpriseInfo({ this.$service.enterprise.getEnterpriseInfo({
......
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