2022-11-22 07:45:36 +00:00
|
|
|
<template>
|
|
|
|
<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
|
2023-11-08 13:10:04 +00:00
|
|
|
v-if="item.iconUrl"
|
2022-11-22 07:45:36 +00:00
|
|
|
class="list-icon"
|
2023-11-08 13:10:04 +00:00
|
|
|
:src="sheep.$url.cdn(item.iconUrl)"
|
2022-11-22 07:45:36 +00:00
|
|
|
mode="aspectFit"
|
|
|
|
></image>
|
|
|
|
<view
|
|
|
|
class="title-text ss-flex ss-row-center ss-col-center ss-m-l-20"
|
2023-11-08 13:10:04 +00:00
|
|
|
:style="[{ color: item.titleColor }]"
|
2022-11-22 07:45:36 +00:00
|
|
|
>
|
2023-11-08 13:10:04 +00:00
|
|
|
{{ item.title }}
|
2022-11-22 07:45:36 +00:00
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
<template v-slot:footer>
|
|
|
|
<view
|
|
|
|
class="notice-text ss-flex ss-row-center ss-col-center"
|
2023-11-08 13:10:04 +00:00
|
|
|
:style="[{ color: item.subtitleColor }]"
|
2022-11-22 07:45:36 +00:00
|
|
|
>
|
2023-11-08 13:10:04 +00:00
|
|
|
{{ item.subtitle }}
|
2022-11-22 07:45:36 +00:00
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
</uni-list-item>
|
|
|
|
</uni-list>
|
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
/**
|
|
|
|
* cell
|
|
|
|
*/
|
|
|
|
import sheep from '@/sheep';
|
|
|
|
const props = defineProps({
|
|
|
|
data: {
|
|
|
|
type: Object,
|
|
|
|
default: () => ({}),
|
|
|
|
},
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
.list-icon {
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
}
|
|
|
|
.notice-text {
|
|
|
|
}
|
|
|
|
.menu-list-wrap {
|
|
|
|
::v-deep .uni-list {
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|