<income :getStandards="getStandards" :index="index" ref="refIncome"></income>
clickPurchase: function (index) {
this.$refs.refIncome.handleStatePromptContent()
}
这是父组件引用的子组件
handleStatePromptContent () {
if ((this.$parent.details.isFirst === 0) && (this.$parent.details.isNovice === 1)) { // this.showDialog = true
// this.message = '仅限新手投资'
this.statePromptContent = '仅限新手投资'
return false
} if ((this.$parent.details.isNovice === 1) && (this.Total > 50000)) { // this.showDialog = true
this.statePromptContent = '新手标投资不能超过50000'
// this.message = '新手标投资不能超过50000'
return false
} if (this.count <= 0) { // this.showDialog = true
this.statePromptContent = '请选择投资份数'
// this.message = '请选择投资份数'
return false
}
}
这里是子组件的方法
然后就报这个错误。求教是怎么回事。
慕标5832272
紫衣仙女
哆啦的时光机
随时随地看视频慕课网APP
相关分类