123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <template>
- <section class="head">
- <img src="~/static/img/back.png" alt @click="go">
- <span>{{tname}}</span>
- <!-- <nuxt-link :to="tolink">{{todos}}</nuxt-link> -->
- </section>
- </template>
- <script>
- export default {
- props: {
- tname: String, //定义传值的类型<br>
- // todos: String, //定义传值的类型<br>
- // tolink 这里有多个值,最好做成数组
-
- },
- mounted(){
- // 所有数据铺完了。。。忘记了
- },
- methods: {
- go(e) {
- this.$router.go(-1)
- }
- },
- watch: {}
- }
- </script>
- <style scoped lang="scss">
- .head {
- background-color: #fff;
- border-bottom: 1px solid #f0f0f0;
- box-sizing: border-box;
- }
- .head img {
- float: left;
- padding-left: 6px;
- }
- .head span {
- width: auto;
- padding: 0;
- padding-right: 20px;
- }
- .head a{
- float: right;
- }
- </style>
|