[更新发现]

This commit is contained in:
zhangmanman
2022-01-13 13:56:32 +08:00
parent 9af54bc24a
commit c82f40ee09
27 changed files with 1274 additions and 295 deletions

View File

@@ -12,7 +12,15 @@
{{ item.name }}
</view>
<view class="nowrap menu--text">
{{ isType ? item.weight + '克' : item.sub_title }}
<block v-if="isType == 'rank'">
{{ item.heat }}
</block>
<block v-else-if="isType == 'det'">
{{ item.weight }}
</block>
<block v-else>
{{ item.sub_title }}
</block>
</view>
</view>
</view>
@@ -41,14 +49,16 @@
default: false
},
// 是否是详情
// det是详情 rank为排行
isType: {
type: Boolean,
default: false
type:'',
default : () => {
return {}
}
}
},
mounted() {
// console.log(this.$props)
}
}
</script>