07d091d72c06709d59fb9f48bd9aee5186e0222c.svn-base 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. <template>
  2. <div style="width: 100%;height:100%;">
  3. <div id="tabSys" v-if="isShow">
  4. <div class="tabDiv">
  5. <div class="dcItem" @click="appTab('dc')">水利督查</div>
  6. <div class="jcItem" @click="appTab('jc')">水利稽察</div>
  7. <div class="ygItem" @click="appTab('yg')" v-if="GetQueryString('accessId')">水利遥感</div>
  8. </div>
  9. </div>
  10. </div>
  11. </template>
  12. <script>
  13. import orgStatus from '../../store/orgChange.js'
  14. export default {
  15. name: '',
  16. data() {
  17. return {
  18. isShow:false
  19. }
  20. },
  21. computed:{
  22. },
  23. mounted() {
  24. if(this.GetQueryString("ticket")){
  25. this.isShow = false;
  26. localStorage.setItem('ownApp', '2')
  27. orgStatus.commit('changeSystem', '2')
  28. this.$router.push('/jchome');
  29. }else{
  30. this.isShow = true;
  31. }
  32. },
  33. methods:{
  34. GetQueryString(name) {
  35. var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
  36. var r = window.location.search.substr(1).match(reg);
  37. if (r != null) return unescape(r[2]);
  38. return null;
  39. },
  40. appTab(type){
  41. if(type=='dc'){
  42. localStorage.setItem('ownApp','1')
  43. orgStatus.commit('changeSystem', '1')
  44. this.$router.push('/home');
  45. }
  46. if(type=='jc'){
  47. localStorage.setItem('ownApp','2')
  48. orgStatus.commit('changeSystem', '2')
  49. this.$router.push('/jchome');
  50. }
  51. if(type=='yg'){
  52. if(this.GetQueryString("accessId")){
  53. window.location.href="http://139.170.150.123:7010?adCode=063&accessToken="+this.GetQueryString("accessId");
  54. }
  55. }
  56. }
  57. },
  58. watch:{
  59. }
  60. }
  61. </script>
  62. <style scoped>
  63. #tabSys{
  64. width: 100%;
  65. height:100%;
  66. margin: 0;
  67. padding: 0;
  68. background-image: url('../../assets/images/login_bj.jpg');
  69. background-size: 100% 100%;
  70. display: flex;
  71. justify-content: center;
  72. align-items: center;
  73. }
  74. .tabDiv{
  75. width: 500px;
  76. height:200px;
  77. display: flex;
  78. justify-content: center;
  79. align-items: center;
  80. }
  81. .dcItem{
  82. width: 100px;
  83. height:200px;
  84. box-shadow: 0 6px 10px 15px rgb(255, 29, 60);
  85. background: #e40640;
  86. font-size: 49px;
  87. display: flex;
  88. align-items: center;
  89. border-radius: 70px;
  90. padding-left: 10px;
  91. padding-right: 10px;
  92. color:white;
  93. font-weight: bold;
  94. cursor:pointer;
  95. margin: 20px;
  96. }
  97. .imgItem{
  98. width: 200px;
  99. height:200px;
  100. background-image: url('../../assets/images/province_logo.png');
  101. background-size: 183px 200px;
  102. }
  103. .jcItem{
  104. width: 100px;
  105. height:200px;
  106. box-shadow: 0 6px 10px 15px rgb(255, 138, 27);
  107. background: #fbac53;
  108. font-size: 49px;
  109. border-radius: 50px;
  110. display: flex;
  111. align-items: center;
  112. border-radius: 50px;
  113. padding-left: 10px;
  114. padding-right: 10px;
  115. color:white;
  116. font-weight: bold;
  117. cursor:pointer;
  118. margin: 20px;
  119. }
  120. .ygItem{
  121. width: 100px;
  122. height:200px;
  123. box-shadow: 0 6px 10px 15px rgb(64, 170, 231);
  124. background: #5de0fe;
  125. font-size: 49px;
  126. border-radius: 50px;
  127. display: flex;
  128. align-items: center;
  129. border-radius: 50px;
  130. padding-left: 10px;
  131. padding-right: 10px;
  132. color:white;
  133. font-weight: bold;
  134. cursor:pointer;
  135. margin: 20px;
  136. }
  137. </style>