#在研发APP首页的时候,hbuilder在渲染期间访问了属性“name”"pprice""oprice""discount",但未在实例上定义。以下为我的报错图片:

以下为我的CommodityList.vue
<template>
<view class='commodity-list'>
<!-- 商品列表组件(里面包含单个商品组件) -->
<Commodity :dataList='commodityList'></Commodity>
</view>
</template>
<script>
import Commodity from './Commodity.vue'
export default {
data () {
return {
commodityList:[
{
id:1,
imgUrl:"../../static/img/commodity1.jpeg",
name:"快来开启智悦之旅!",
pprice:"299",
oprice:"1299",
discount:"5.2"
},
{
id:2,
imgUrl:"../../static/img/commodity2.jpg",
name:"快来开启智悦之旅!",
pprice:"299",
oprice:"1299",
discount:"5.2"
},
{
id:3,
imgUrl:"../../static/img/commodity3.jpeg",
name:"快来开启智悦之旅!",
pprice:"299",
oprice:"1299",
discount:"5.2"
},
{
id:4,
imgUrl:"../../static/img/commodity4.png",
name:"快来开启智悦之旅!",
pprice:"299",
oprice:"1299",
discount:"5.2"
}
]
}
},
components:{
Commodity
}
}
</script>
<style>
</style>
#运行环境为.vue
#试过data那里把属性设为0 return输出默认值(没用),但是我commodityList数组里已经包含了呀,不知道要怎么定义,上网搜又有点看不懂,request help