askbot-dragon 1.5.49-beta → 1.5.51-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -5041,8 +5041,7 @@ export default {
|
|
|
5041
5041
|
]
|
|
5042
5042
|
}
|
|
5043
5043
|
},
|
|
5044
|
-
answerRadios:{"
|
|
5045
|
-
// answerRadios: { "content": { "options": [{ "scope": "KNOWLEDGE", "name": "本文提供了什么内容?", "value": "64915d6e098ec248701da267" }, { "scope": "KNOWLEDGE", "name": "什么是街舞穿搭指南?", "value": "64915d6e098ec248701da267" }, { "scope": "KNOWLEDGE", "name": "为什么街舞爱好者需要关注本文?", "value": "64915d6e098ec248701da267" }], "description": "了解更多", "isKnowledgeSummary": true }, "id": "knowledgeRecdNodeId", "type": "answer_radio", "sessionId": 1687251699065, "keyId": "139480f2-5af1-44fd-a7bd-a73dd7b566b7_________", "isKnowledgeSummary": true },
|
|
5044
|
+
answerRadios: { "content": { "options": [{ "scope": "KNOWLEDGE", "name": "本文提供了什么内容?", "value": "64915d6e098ec248701da267" }, { "scope": "KNOWLEDGE", "name": "什么是街舞穿搭指南?", "value": "64915d6e098ec248701da267" }, { "scope": "KNOWLEDGE", "name": "为什么街舞爱好者需要关注本文?", "value": "64915d6e098ec248701da267" }], "description": "了解更多", "isKnowledgeSummary": true }, "id": "knowledgeRecdNodeId", "type": "answer_radio", "sessionId": 1687251699065, "keyId": "139480f2-5af1-44fd-a7bd-a73dd7b566b7_________", "isKnowledgeSummary": true },
|
|
5046
5045
|
htmlContainer: '<input placeholder="请输入"></input>',
|
|
5047
5046
|
isOpen: true
|
|
5048
5047
|
}
|
|
@@ -47,8 +47,6 @@ export default {
|
|
|
47
47
|
console.log(this.isMobile,'this.isMobile');
|
|
48
48
|
},
|
|
49
49
|
radioClick(msg,option,index){
|
|
50
|
-
console.log(msg,option,index);
|
|
51
|
-
console.log(msg.id +'_' + index + '_' + option.value + '_' + option.name,option.name, msg.apiKey,msg.actionCategory, msg.msgId?msg.msgId:'',option.apiKey);
|
|
52
50
|
this.$emit('onRadioClick',msg.id +'_' + index + '_' + option.value + '_' + option.name,option.name, msg.apiKey,msg.actionCategory, msg.msgId?msg.msgId:'',option.apiKey)
|
|
53
51
|
}
|
|
54
52
|
}
|
|
@@ -229,8 +229,8 @@
|
|
|
229
229
|
index + 1
|
|
230
230
|
}.png" align="middle">`;
|
|
231
231
|
},
|
|
232
|
-
onRadioClickReco(id, name, apikey) {
|
|
233
|
-
this.$emit("onRadioClick", id, name, apikey);
|
|
232
|
+
onRadioClickReco(id, name, apikey,optionApiKey) {
|
|
233
|
+
this.$emit("onRadioClick", id, name, apikey,optionApiKey);
|
|
234
234
|
},
|
|
235
235
|
onImageClick(url){
|
|
236
236
|
this.$emit('onImageClick', encodeURI(url))
|
|
@@ -8,20 +8,7 @@
|
|
|
8
8
|
class="options-item"
|
|
9
9
|
:class="index!==msg.recommend.list.length -1?'recommend-item':'last-item'"
|
|
10
10
|
:key="msg.nodeId + '_' + index"
|
|
11
|
-
@click="
|
|
12
|
-
$emit(
|
|
13
|
-
'onRadioClickReco',
|
|
14
|
-
'recdNodeId' +
|
|
15
|
-
'_' +
|
|
16
|
-
index +
|
|
17
|
-
'_' +
|
|
18
|
-
option.id +
|
|
19
|
-
'_' +
|
|
20
|
-
option.text,
|
|
21
|
-
option.text,
|
|
22
|
-
msg.apiKey
|
|
23
|
-
)
|
|
24
|
-
"
|
|
11
|
+
@click="radioClick(option,index,msg)">
|
|
25
12
|
>
|
|
26
13
|
{{ option.text
|
|
27
14
|
}}<i class="arsenal_icon arsenalangle-right-solid"></i>
|
|
@@ -35,7 +22,12 @@
|
|
|
35
22
|
|
|
36
23
|
export default {
|
|
37
24
|
name: "recommend",
|
|
38
|
-
props: ["msg"]
|
|
25
|
+
props: ["msg"],
|
|
26
|
+
methods:{
|
|
27
|
+
radioClick(option,index,msg){
|
|
28
|
+
this.$emit('onRadioClickReco','recdNodeId' + '_' + index + '_' + option.id + '_' + option.text, option.text, msg.apiKey,option.apiKey)
|
|
29
|
+
},
|
|
30
|
+
}
|
|
39
31
|
}
|
|
40
32
|
</script>
|
|
41
33
|
|