baid222u 5 years ago
parent
commit
af9321fdeb
2 changed files with 32 additions and 1 deletions
  1. 1 1
      assets/new.scss
  2. 31 0
      components/titles.vue

+ 1 - 1
assets/new.scss

@@ -876,7 +876,7 @@ $f0f0f0:#f0f0f0;
                      top: 50%;
                      right: 0;
                      margin-top: -0.6rem;
-                     background-image: url('../static/img/arr_tototo.png');
+                     background-image: url('../static/img/to.png');
                      background-size: 60%;
                      background-position: center;
                      background-repeat: no-repeat;

+ 31 - 0
components/titles.vue

@@ -0,0 +1,31 @@
+<template>
+  <section class="head">
+    <img src="~/static/img/back.png" alt @click="go">
+    <span>{{tname}}</span>
+  </section>
+</template>
+<script>
+export default {
+  props: {
+    tname: String, //定义传值的类型<br>
+    required: true
+  },
+  methods: {
+    go(e) {
+      this.$router.go(-1)
+    }
+  },
+  watch: {}
+}
+</script>
+<style>
+.head img {
+  float: left;
+  padding-left: 6px;
+}
+.head span {
+  width: auto;
+  padding: 0;
+  padding-right: 20px;
+}
+</style>