Commit 94b5e19c authored by Facius's avatar Facius

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

parent 8375ed39
...@@ -174,7 +174,7 @@ export default { ...@@ -174,7 +174,7 @@ export default {
this.$emit('action', this.questionData, this.type) this.$emit('action', this.questionData, this.type)
}, },
handleClickCell() { 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() { getTodayDate() {
let day = new Date() let day = new Date()
......
...@@ -64,7 +64,7 @@ export default { ...@@ -64,7 +64,7 @@ export default {
{ text: '抖音/快手', checked: false }, { text: '抖音/快手', checked: false },
{ text: '培训机构', checked: false }, { text: '培训机构', checked: false },
{ text: '他人推荐', checked: false }, { text: '他人推荐', checked: false },
{ text: '他人推荐', checked: false }, { text: '其他', checked: false },
], ],
}, },
{ {
......
...@@ -52,6 +52,7 @@ export default { ...@@ -52,6 +52,7 @@ export default {
loading: false, loading: false,
selectedData: {}, selectedData: {},
cardData: {}, cardData: {},
institutionData: {},
surveyId: 1, // 问卷id surveyId: 1, // 问卷id
} }
}, },
...@@ -91,9 +92,10 @@ export default { ...@@ -91,9 +92,10 @@ export default {
this.loadList() // 获取已选题库列表 this.loadList() // 获取已选题库列表
}, },
methods: { methods: {
handleClickCell(questionData, cardData) { handleClickCell(questionData, cardData, institutionData) {
this.selectedData = questionData this.selectedData = questionData
this.cardData = cardData || {} this.cardData = cardData || {}
this.institutionData = institutionData || {}
}, },
handleClick() { handleClick() {
if (!this.selected) return if (!this.selected) return
...@@ -104,6 +106,7 @@ export default { ...@@ -104,6 +106,7 @@ export default {
cardId: this.cardData.id, cardId: this.cardData.id,
sourse: 'SURVEY', // 问卷调查 sourse: 'SURVEY', // 问卷调查
bizId: this.surveyId, // 问卷id bizId: this.surveyId, // 问卷id
institutionData: this.institutionData.id // 机构id
} }
let trackParams = { let trackParams = {
openId: this.openId, openId: this.openId,
...@@ -136,6 +139,7 @@ export default { ...@@ -136,6 +139,7 @@ export default {
if (this.list.length == 1) { if (this.list.length == 1) {
this.selectedData = this.list[0].echoMap.questionWarehouseId this.selectedData = this.list[0].echoMap.questionWarehouseId
this.cardData = this.list[0].echoMap.cardId || {} this.cardData = this.list[0].echoMap.cardId || {}
this.institutionData = this.list[0].echoMap.institutionData || {}
} }
}) })
.catch((err) => { .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