2024-08-07 10:31:42 +08:00
|
|
|
|
<!-- 装修基础组件:列表导航 -->
|
|
|
|
|
<template>
|
2024-09-26 11:10:58 +08:00
|
|
|
|
<view class="menu-list-wrap">
|
|
|
|
|
<uni-list :border="true">
|
|
|
|
|
<uni-list-item v-for="(item, index) in data.list" :key="index" showArrow clickable
|
|
|
|
|
@tap="sheep.$router.go(item.url)">
|
|
|
|
|
<template v-slot:header>
|
|
|
|
|
<view class="ss-flex ss-col-center">
|
|
|
|
|
<image v-if="item.iconUrl" class="list-icon" :src="sheep.$url.cdn(item.iconUrl)"
|
|
|
|
|
mode="aspectFit"></image>
|
|
|
|
|
<view class="title-text ss-flex ss-row-center ss-col-center ss-m-l-20"
|
|
|
|
|
:style="[{ color: item.titleColor }]">
|
|
|
|
|
{{ item.title }}
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-slot:footer>
|
2024-10-16 18:09:51 +08:00
|
|
|
|
<view class="notice-text ss-flex ss-row-center ss-col-center new-color"
|
2024-09-26 11:10:58 +08:00
|
|
|
|
:style="[{ color: item.subtitleColor }]">
|
|
|
|
|
{{ item.subtitle }}
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
</uni-list-item>
|
|
|
|
|
</uni-list>
|
|
|
|
|
</view>
|
2024-08-07 10:31:42 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup>
|
2024-09-26 11:10:58 +08:00
|
|
|
|
/**
|
|
|
|
|
* cell
|
|
|
|
|
*/
|
|
|
|
|
import sheep from '@/sheep';
|
|
|
|
|
const props = defineProps({
|
|
|
|
|
data: {
|
|
|
|
|
type: Object,
|
|
|
|
|
default: () => ({}),
|
|
|
|
|
},
|
|
|
|
|
});
|
2024-08-07 10:31:42 +08:00
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss">
|
2024-09-26 11:10:58 +08:00
|
|
|
|
:deep(.container--right){
|
|
|
|
|
padding-left: 5px !important;
|
|
|
|
|
}
|
2024-10-16 18:09:51 +08:00
|
|
|
|
.new-color{
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
}
|
2024-09-26 11:10:58 +08:00
|
|
|
|
.ss-col-center{
|
|
|
|
|
.list-icon {
|
|
|
|
|
position: relative;
|
|
|
|
|
width: 100px;
|
|
|
|
|
height: 40px;
|
|
|
|
|
padding-right: 10px;
|
|
|
|
|
&::after{
|
|
|
|
|
position:absolute;
|
|
|
|
|
content:'';
|
|
|
|
|
top:50%;
|
|
|
|
|
right:0;
|
|
|
|
|
width:1px;
|
|
|
|
|
height:57%;
|
|
|
|
|
border-right:1px solid #ababab;
|
|
|
|
|
transform: translateY(-50%);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.notice-text {}
|
|
|
|
|
|
|
|
|
|
.menu-list-wrap {
|
|
|
|
|
::v-deep .uni-list {
|
|
|
|
|
background-color: transparent;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|