[更新发现]
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user