Commit 94b5e19c authored by Facius's avatar Facius

fix: 领取奖励接口增加传入机构id

parent 8375ed39
......@@ -174,7 +174,7 @@ export default {
this.$emit('action', this.questionData, this.type)
},
handleClickCell() {
this.$emit('click', this.questionData, this.info.echoMap && this.info.echoMap.cardId)
this.$emit('click', this.questionData, this.info.echoMap && this.info.echoMap.cardId, this.info.echoMap && this.info.echoMap.institutionId)
},
getTodayDate() {
let day = new Date()
......
......@@ -64,7 +64,7 @@ export default {
{ text: '抖音/快手', checked: false },
{ text: '培训机构', checked: false },
{ text: '他人推荐', checked: false },
{ text: '他人推荐', checked: false },
{ text: '其他', checked: false },
],
},
{
......
......@@ -52,6 +52,7 @@ export default {
loading: false,
selectedData: {},
cardData: {},
institutionData: {},
surveyId: 1, // 问卷id
}
},
......@@ -91,9 +92,10 @@ export default {
this.loadList() // 获取已选题库列表
},
methods: {
handleClickCell(questionData, cardData) {
handleClickCell(questionData, cardData, institutionData) {
this.selectedData = questionData
this.cardData = cardData || {}
this.institutionData = institutionData || {}
},
handleClick() {
if (!this.selected) return
......@@ -104,6 +106,7 @@ export default {
cardId: this.cardData.id,
sourse: 'SURVEY', // 问卷调查
bizId: this.surveyId, // 问卷id
institutionData: this.institutionData.id // 机构id
}
let trackParams = {
openId: this.openId,
......@@ -136,6 +139,7 @@ export default {
if (this.list.length == 1) {
this.selectedData = this.list[0].echoMap.questionWarehouseId
this.cardData = this.list[0].echoMap.cardId || {}
this.institutionData = this.list[0].echoMap.institutionData || {}
}
})
.catch((err) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment