This commit is contained in:
fan 2021-06-29 10:24:30 +08:00
commit bd962d5320
3 changed files with 29 additions and 9 deletions

View File

@ -115,7 +115,7 @@ export default {
} }
}, },
mounted() { mounted() {
this.thirdLogin = getSessionStorage('thirdLogin'); this.thirdLogin = getSessionStorage('project') == 'richor';
this.routes = this.$router.options.routes; this.routes = this.$router.options.routes;
if (this.$route.fullPath.indexOf('design/usermap') >= 0) { if (this.$route.fullPath.indexOf('design/usermap') >= 0) {
this.activePath = '/design/usermap/home'; this.activePath = '/design/usermap/home';

View File

@ -5,6 +5,18 @@
width="400px" width="400px"
:before-close="handleClose" :before-close="handleClose"
> >
<div v-if="thirdLogin">
<div><span class="el-icon-user" style="font-size:15px;margin-right:8px;" />联系人欧阳炜椿</div>
<div class="eachInfo"><span class="el-icon-mobile-phone" style="font-size:15px;margin-right:7px;" />&nbsp;&nbsp;&nbsp;&nbsp;4000500081</div>
<div class="eachInfo"><span class="el-icon-message" style="font-size:15px;margin-right:7px;" />&nbsp;&nbsp;&nbsp;&nbsp;zhrc@richortech.com</div>
<div class="eachInfo"><span class="el-icon-connection" style="font-size:15px;margin-right:7px;" />&nbsp;&nbsp;&nbsp;&nbsp;www.richortech.com</div>
<!-- <div class="eachInfo">
<span class="el-icon-chat-round" style="font-size:15px;margin-right:3px;vertical-align:top;" />
<span style="vertical-align: top;">&nbsp;&nbsp;&nbsp;&nbsp;</span>
<img :src="wchatImg" width="80" height="80">
</div> -->
</div>
<div v-else>
<div><span class="el-icon-user" style="font-size:15px;margin-right:8px;" />联系人小九</div> <div><span class="el-icon-user" style="font-size:15px;margin-right:8px;" />联系人小九</div>
<div class="eachInfo"><span class="el-icon-mobile-phone" style="font-size:15px;margin-right:7px;" />&nbsp;&nbsp;&nbsp;&nbsp;13289398171</div> <div class="eachInfo"><span class="el-icon-mobile-phone" style="font-size:15px;margin-right:7px;" />&nbsp;&nbsp;&nbsp;&nbsp;13289398171</div>
<div class="eachInfo"><span class="el-icon-message" style="font-size:15px;margin-right:7px;" />&nbsp;&nbsp;&nbsp;&nbsp;ServiceEmail@joylink.club</div> <div class="eachInfo"><span class="el-icon-message" style="font-size:15px;margin-right:7px;" />&nbsp;&nbsp;&nbsp;&nbsp;ServiceEmail@joylink.club</div>
@ -13,6 +25,8 @@
<span style="vertical-align: top;">&nbsp;&nbsp;&nbsp;&nbsp;</span> <span style="vertical-align: top;">&nbsp;&nbsp;&nbsp;&nbsp;</span>
<img :src="wchatImg" width="80" height="80"> <img :src="wchatImg" width="80" height="80">
</div> </div>
</div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button type="primary" @click="dialogVisible = false"> </el-button> <el-button type="primary" @click="dialogVisible = false"> </el-button>
</span> </span>
@ -20,6 +34,7 @@
</template> </template>
<script> <script>
import wchat from '@/assets/wchat.png'; import wchat from '@/assets/wchat.png';
import { getSessionStorage } from '@/utils/auth';
export default { export default {
name:'', name:'',
data() { data() {
@ -28,6 +43,11 @@ export default {
wchatImg: wchat wchatImg: wchat
}; };
}, },
computed:{
thirdLogin() {
return getSessionStorage('project') == 'richor';
}
},
methods:{ methods:{
handleClose() { handleClose() {
this.dialogVisible = false; this.dialogVisible = false;

View File

@ -62,7 +62,7 @@ export default {
this.$store.dispatch('setToken', token); this.$store.dispatch('setToken', token);
this.$store.dispatch('subscribe', {header, type:'class'}); this.$store.dispatch('subscribe', {header, type:'class'});
this.$router.replace({path:'/trainingPlatform'}); this.$router.replace({path:'/trainingPlatform'});
setSessionStorage('thirdLogin', true); // setSessionStorage('thirdLogin', true);
}).catch(() => { }).catch(() => {
this.message = '参数有误,请检查'; this.message = '参数有误,请检查';
}); });