819527061@qq.com
2024-05-11 f73ed7862edc9c3cb78a2610486643a2fa079fde
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<template>
    <view class="content-title">
        <!-- <view class="titleName">{{title}}</view> -->
        <slot></slot>
        <!-- <image v-if="isHavBack" @click="goback" class="backIcon" src="../../static/image/backIcon.png" mode="aspectFill"></image> -->
    </view>
</template>
 
<script>
    export default {
        props:{
            title: String,
            isHavBack: Boolean
        },
        data() {
            return {
                
            }
        },
        methods: {
            goback() {
                uni.navigateBack()
            }
        },
        mounted() {
            console.log('title',this.title)
        }
    }
</script>
 
<style lang="scss" scoped>
  .content-title{
        width: 100%;
        height: 176rpx;
        background-color: #1F9F4C;
        position: relative;
        .titleName{
            color: #FFFFFF;
            line-height: 88rpx;
            padding-top: 88rpx;
            padding-left: 32rpx;
            letter-spacing: 3rpx;
            font-weight: lighter;
            text-align: center;
        }
        .backIcon{
            position: absolute;
            left: 20rpx;
            top:100rpx;
            width: 48rpx;
            height: 48rpx;
        }
    }
    
</style>