Ver código fonte

添加返回按钮

小王 1 ano atrás
pai
commit
d1c45be82d
2 arquivos alterados com 39 adições e 32 exclusões
  1. 36 32
      src/views/fdjh/fdjh.vue
  2. 3 0
      src/views/ssdd/ssdd.vue

+ 36 - 32
src/views/fdjh/fdjh.vue

@@ -1,56 +1,60 @@
 <template>
 <template>
-  <div class="page">
-    <div id="iframe0" class="pos_2" style="">
-      <iframe  style="width: 100%;height: 100%" src="/#/fdjhnav">
-      </iframe>
+    <div class="page">
+        <div style="position: absolute;right: 19%;top: 12px">
+            <img alt="" onclick="window.open('/path#/rqdd','_self')" src="../ssddjk/img/返回首页.png">
+        </div>
+        <div id="iframe0" class="pos_2" style="">
+            <iframe src="/#/fdjhnav" style="width: 100%;height: 100%">
+            </iframe>
+        </div>
+        <div id="iframe1" class="pos_3" style="">
+            <iframe id="showcontent" style="width: 100%;height: 100%">
+            </iframe>
+        </div>
     </div>
     </div>
-    <div id="iframe1" class="pos_3" style="">
-    <iframe id="showcontent" style="width: 100%;height: 100%" >
-    </iframe>
-    </div>
-  </div>
 </template>
 </template>
 
 
 <script>
 <script>
 export default {
 export default {
-  name: 'fdjh-name'
+    name: 'fdjh-name'
 }
 }
 </script>
 </script>
 
 
-<style scoped lang="css">
+<style lang="css" scoped>
 .page {
 .page {
-  background: url('./img/fdjh-bj.png') no-repeat;
-  width: 100%;
-  height: calc(100vh);
-  background-size: 100% 100%;
+    background: url('./img/fdjh-bj.png') no-repeat;
+    width: 100%;
+    height: calc(100vh);
+    background-size: 100% 100%;
 }
 }
 
 
-iframe{
-  border: 0;
+iframe {
+    border: 0;
 }
 }
-#iframe0{
-  background: url(./img/img.png) no-repeat;
+
+#iframe0 {
+    background: url(./img/img.png) no-repeat;
 }
 }
 
 
-#iframe1{
-  background: url(./img/img.png) no-repeat;
+#iframe1 {
+    background: url(./img/img.png) no-repeat;
 }
 }
 
 
 
 
 .pos_2 {
 .pos_2 {
-  position: absolute;
-  width: 20%;
-  height: 89%;
-  left: 1%;
-  top: 10%;
+    position: absolute;
+    width: 20%;
+    height: 89%;
+    left: 1%;
+    top: 10%;
 }
 }
 
 
 .pos_3 {
 .pos_3 {
-  position: absolute;
-  width: 79%;
-  height: 89%;
-  left: 21%;
-  right: 33px;
-  top: 10%;
+    position: absolute;
+    width: 79%;
+    height: 89%;
+    left: 21%;
+    right: 33px;
+    top: 10%;
 }
 }
 </style>
 </style>

+ 3 - 0
src/views/ssdd/ssdd.vue

@@ -1,5 +1,8 @@
 <template>
 <template>
     <div class="page">
     <div class="page">
+        <div style="position: absolute;right: 19%;top: 12px">
+            <img alt="" onclick="window.open('/path#/ssddjk','_self')" src="../ssddjk/img/返回首页.png">
+        </div>
         <div id="iframe0" class="pos_2" style="">
         <div id="iframe0" class="pos_2" style="">
             <iframe src="/#/ssddnav" style="width: 100%;height: 100%">
             <iframe src="/#/ssddnav" style="width: 100%;height: 100%">
             </iframe>
             </iframe>