瀏覽代碼

课程中心添加荔园返回按钮

11wqe1 3 周之前
父節點
當前提交
18d2db1aba
共有 1 個文件被更改,包括 14 次插入2 次删除
  1. 14 2
      src/components/index.vue

+ 14 - 2
src/components/index.vue

@@ -1,8 +1,12 @@
 <template>
   <div class="pb_content">
     <div class="pb_content_body">
-      <div class="student_head">
+      <div class="student_head" style="position: relative;">
+        <div v-if="$route.query.gotype == 1" 
+        class="backBtn"
+        @click.stop="$router.go(-1)">返回</div>
         <!-- <img src="../assets/banner.png" alt="" /> -->
+         <!-- //pbl.cocorobo.cn/pbl-teacher-table/dist -->
         <el-carousel trigger="click" style="width: 100%; height: 100%">
           <el-carousel-item v-for="item in bannerList" :key="item.id">
             <!-- <h3 class="small">{{ item }}</h3> -->
@@ -1314,5 +1318,13 @@ export default {
   -webkit-box-shadow: none !important;
   box-shadow: none !important;
 }
-
+.backBtn{
+  font-size: 16px;
+  font-weight: normal;
+  cursor: pointer;
+  position: absolute;
+  top: 20px;
+  right: 20px;
+  z-index: 999999;
+}
 </style>