|
@@ -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>
|