Liuyi
2024-09-25 21222d0795e3cb26a6116311e367022687298ea3
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
<template>
    <view class="navbar">
        <image src="../../static/images/addCard/back.png" alt="" @click="navBackTo()"></image>
        <text>{{title}}</text>
    </view>
</template>
 
<script setup>
    import { ref } from 'vue'
    function navBackTo(){
        uni.navigateBack()
    }
    const props = defineProps({
        title:{
            type:String,
            default:''
        }
    })
    const title = ref(props.title)
</script>
 
<style lang="scss">
   .navbar{
       width:100%;
       height:176rpx;
       background: linear-gradient(to bottom,#5EA1FA,#8BC1FC);
       display: flex;
       align-items: flex-end;
       padding-bottom:24rpx;
       box-sizing: border-box;
       image{
           width:20rpx;
           height:40rpx;
           margin-left:32rpx;
       }
       text{
           font-weight: 400;
           font-size: 36rpx;
           color: #000000;
           margin-left: 234rpx;
           
       }
   }
</style>