浏览代码

fix:修改竹子热点的一些细节

aamin 1 年之前
父节点
当前提交
b29326cd3e
共有 2 个文件被更改,包括 30 次插入0 次删除
  1. 1 0
      src/router/index.js
  2. 29 0
      src/views/BambooHotView.vue

+ 1 - 0
src/router/index.js

@@ -40,6 +40,7 @@ const routes = [
     name: 'PaintingDetailList',
     component: PaintingDetailList,
   },
+  // 游戏
   {
     path: '/game',
     name: 'Game',

+ 29 - 0
src/views/BambooHotView.vue

@@ -139,6 +139,10 @@ const scrollFn = () => {
   }
 }
 
+const goBack = () => {
+  window.history.back()
+}
+
 
 onMounted(() => {
   window.addEventListener(
@@ -191,6 +195,17 @@ onMounted(() => {
         </div>
       </div>
     </div>
+    <div class="system-btns">
+      <BtnBack
+        @click="goBack"
+      />
+
+      <img
+        class="operation-h"
+        src="@/assets/images/icon_operation_h_white.png"
+        alt=""
+      >
+    </div>
   </div>
 </template>
 
@@ -260,5 +275,19 @@ onMounted(() => {
     }
 
   }
+
+  .system-btns {
+      width: 100%;
+      padding: 0 calc(20 / v-bind(windowSizeWhenDesignForRef) * v-bind(windowSizeInCssForRef));
+      display: flex;
+      // flex-direction: column;
+      justify-content: flex-end;
+      position: absolute;
+      bottom: calc(20 /v-bind(windowSizeWhenDesignForRef) * v-bind(windowSizeInCssForRef));
+      z-index: 2;
+      .operation-h{
+        width: calc(36 /v-bind('windowSizeWhenDesignForRef')* v-bind('windowSizeInCssForRef'));
+      }
+    }
 }
 </style>