tj
2025-05-15 cf6f4e903d4db9e81dea91e6c8d2b58c60a9441c
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<template>
<view class="section">
  <u-row>
    <u-col span="6">
      <view class="row">
        <u-icon v-if="iconName" :name="iconName" :size="iconSize" :color="iconColor" />
        <text class="theme-text left-text">{{ title }}</text>
      </view>
    </u-col>
    <u-col span="3"></u-col>
    <u-col span="3">
      <view class="row-right" @click="go(goUrl)">
        <text class="theme-text right-text ">{{ optitle }} </text>
        <u-icon name="arrow-rightward" size="25" :color="'var(--icon-color)'" />
      </view>
    </u-col>
  </u-row>
</view>
</template>
 
<script>
export default {
  name: 'SectionTitle',
  props: {
    iconName: {
      type: String,
      default: ''
    },
    iconSize: {
      type: [String, Number],
      default: 40
    },
    iconColor: {
      type: String,
      default: 'yellow'
    },
    title: {
      type: String,
      default: ''
    },
    optitle: {
      type: String,
      default: ''
    },
    opIconColor: {
      type: String,
      default: 'white'
    },
    goUrl: {
      type: String,
      default: ''
    }
  },
 
 
  methods: {
    go(url) {
      if (url) {
        uni.navigateTo({
          url
        });
      }
    }
  }
}
</script>
 
<style scoped>
 
.section{
  margin-top: 30rpx;
}
 
.space-between {
  justify-content: space-between;
}
 
.row {
  display: flex;
  align-items: center;
  padding: 20rpx 0;
}
.row-right{
  display: flex;
  align-items: center;
  padding: 20rpx 0;
  justify-content: end;
}
 
.left-text{
  font-size: 40rpx;
  font-weight: bold;
  color: var(--icon-color);
  letter-spacing: 5rpx;
}
 
.right-text{
  font-size: 25rpx;
  margin-right: 10rpx;
}
 
.theme-text {
  margin-left: 10rpx;
}
</style>