1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <template>
- <view class="header">
- <view class="back" @click="back"></view>
- <view class="title">
- <slot></slot>
- </view>
- </view>
- </template>
- <script>
- export default {
- props: {
- backTo: {
- type: String,
- required: false,
- default: null,
- }
- },
- data() {
- return {
-
- }
- },
- methods: {
- back() {
- this.$emit('back')
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .header {
- background: url('~@/static/login-bg-top.jpg') no-repeat;
- color: white;
- height: 80px;
- display: flex;
- flex-direction: row;
- justify-content: flex-start;
- align-items: center;
- font-size: 20px;
- .title {
- width: 100%;
- text-align: center;
- }
- .back {
- background: url('~@/static/back.png') no-repeat;
- background-size: 100% 100%;
- height: 15px;
- width: 15px;
- margin-left: 10px;
- }
- }
- </style>
|