Ver Fonte

新增返回按钮

xuqiaoying há 3 anos atrás
pai
commit
7e77225034

+ 18 - 0
src/pages/bank-report/index.vue

@@ -2,6 +2,17 @@
   <div class="bank-report">
     <Header></Header>
     <section class="section">
+      <!-- <div class="re_back">
+        <el-button
+          type="primary"
+          plain
+          round
+          size="mini"
+          class="back-btn"
+          @click="$router.back(-1)"
+          >返回</el-button
+        >
+      </div> -->
       <div class="container">
         <div
           class="section__header section__header--warm"
@@ -430,6 +441,13 @@ export default {
 <!-- Add "scoped" attribute to limit CSS to this component only -->
 <style scoped lang="scss">
 .bank-report {
+  .re_back {
+    text-align: right;
+    margin: 10px 0px;
+    .back-btn {
+      width: 100px;
+    }
+  }
   .section {
     &__header {
       height: 120px;

+ 18 - 0
src/pages/course-report/index.vue

@@ -3,6 +3,17 @@
     <Header></Header>
     <section class="section">
       <div class="container">
+        <div class="re_back">
+          <el-button
+            type="primary"
+            plain
+            round
+            size="mini"
+            class="back-btn"
+            @click="$router.back(-1)"
+            >返回</el-button
+          >
+        </div>
         <div
           class="section__header section__header--warm"
           v-if="!examResult.reportStatus"
@@ -195,6 +206,13 @@ export default {
 <!-- Add "scoped" attribute to limit CSS to this component only -->
 <style scoped lang="scss">
 .bank-report {
+  .re_back {
+    text-align: right;
+    margin: 10px 0px;
+    .back-btn {
+      width: 100px;
+    }
+  }
   .section {
     &__header {
       height: 120px;

+ 19 - 0
src/pages/mock-report/index.vue

@@ -2,6 +2,18 @@
   <div class="bank-report">
     <Header></Header>
     <section class="section">
+      <!-- <div class="re_back">
+        <el-button
+          type="primary"
+          plain
+          round
+          size="mini"
+          class="back-btn"
+          @click="$router.back(-1)"
+          >返回</el-button
+        >
+      </div> -->
+
       <template
         v-if="
           subscribeInfo.liveStartTime <= sysTime &&
@@ -510,6 +522,13 @@ export default {
 <!-- Add "scoped" attribute to limit CSS to this component only -->
 <style scoped lang="scss">
 .bank-report {
+  .re_back {
+    text-align: right;
+    margin: 10px 0px;
+    .back-btn {
+      width: 100px;
+    }
+  }
   .section {
     &__top {
       height: 72px;