营销:适配商城装修组件【宫格导航】

This commit is contained in:
owen
2023-11-09 09:21:45 +08:00
parent b050edae8d
commit a40aa1218d
2 changed files with 8 additions and 8 deletions
+7 -7
View File
@@ -1,5 +1,5 @@
<template>
<uni-grid :showBorder="Boolean(data.border)" :column="data.col">
<uni-grid :showBorder="Boolean(data.border)" :column="data.column">
<uni-grid-item
v-for="(item, index) in data.list"
:key="index"
@@ -10,19 +10,19 @@
<view
class="tag-box"
v-if="item.badge.show"
:style="[{ background: item.badge.bgColor, color: item.badge.color }]"
:style="[{ background: item.badge.bgColor, color: item.badge.textColor }]"
>
{{ item.badge.text }}
</view>
<image class="menu-image" :src="sheep.$url.cdn(item.src)"></image>
<image class="menu-image" :src="sheep.$url.cdn(item.iconUrl)"></image>
</view>
<view class="title-box ss-flex ss-flex-col ss-row-center ss-col-center">
<view class="grid-text" :style="[{ color: item.title.color }]">
{{ item.title.text }}
<view class="grid-text" :style="[{ color: item.titleColor }]">
{{ item.title }}
</view>
<view class="grid-tip" :style="[{ color: item.tip.color }]">
{{ item.tip.text }}
<view class="grid-tip" :style="[{ color: item.subtitleColor }]">
{{ item.subtitle }}
</view>
</view>
</view>