| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <template>
- <view>
- <view class="d-flex py2 border-bottom a-center" @tap='handleLubrication'>
- <view class="iconfont mr-3 icon main-color-text" :class="icon" :style="colorStyle"></view>
- <view class="f-size-32 text-color-3">{{title}}</view>
- <view class="d-flex a-center ml-auto">
- <view v-if="tipNum" class="f-size-24 text-color-white" style="background-color: red;border-radius: 50%;padding: 0rpx 10rpx;">{{tipNum}}</view>
- <view class="ml-2 text-color-9"> <u-icon name="arrow-right"></u-icon> </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- };
- },
- computed:{
- colorStyle(){
- return `color:${this.iColor}`
- }
- },
- props:{
- title:{
- type:String,
- default:''
- },
- tipNum:{
- type:Number,
- default:0
- },
- icon:{
- type:String,
- default:'icon-icon_jishiben-'
- },
- iColor:{
- type:String,
- default:''
- }
- },
- methods:{
- handleLubrication(){
- this.$emit('handleLubrication',this.title)
- }
- }
- }
- </script>
- <style scoped>
- .icon{
- font-size: 50rpx;
- }
- </style>
|