askbot-dragon 0.6.29 → 0.7.2
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 +1 -1
- package/src/App.vue +0 -1
- package/src/assets/less/iconfont.css +5 -5
- package/src/components/ActionAlertIframe.vue +0 -5
- package/src/components/ConversationContainer.vue +5 -1
- package/src/components/FileType.vue +0 -2
- package/src/components/actionSendToBot.vue +8 -1
- package/src/components/answerRadio.vue +8 -1
- package/src/components/askVideo.vue +1 -1
- package/src/components/associationIntention.vue +5 -10
- package/src/components/feedBack.vue +0 -2
- package/src/components/file/AliyunOssComponents.vue +0 -1
- package/src/components/formTemplate.vue +10 -65
- package/src/components/loadingProcess.vue +0 -11
- package/src/components/message/ActionAlertIframe.vue +0 -4
- package/src/components/message/ShopMessage.vue +4 -8
- package/src/components/message/TextMessage.vue +15 -21
- package/src/components/message/TicketMessage.vue +0 -2
- package/src/components/message/swiper/ticketSwiper.vue +1 -3
- package/src/components/recommend.vue +2 -1
- package/src/components/voiceComponent.vue +2 -2
package/package.json
CHANGED
package/src/App.vue
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@font-face {
|
|
2
2
|
font-family: 'iconfont'; /* Project id 2913049 */
|
|
3
|
-
src: url('//at.alicdn.com/t/
|
|
4
|
-
url('//at.alicdn.com/t/
|
|
5
|
-
url('//at.alicdn.com/t/
|
|
3
|
+
src: url('//at.alicdn.com/t/font_2913049_fhimnf31slu.woff2?t=1644465476099') format('woff2'),
|
|
4
|
+
url('//at.alicdn.com/t/font_2913049_fhimnf31slu.woff?t=1644465476099') format('woff'),
|
|
5
|
+
url('//at.alicdn.com/t/font_2913049_fhimnf31slu.ttf?t=1644465476099') format('truetype');
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.iconfont {
|
|
@@ -12,6 +12,6 @@
|
|
|
12
12
|
-webkit-font-smoothing: antialiased;
|
|
13
13
|
-moz-osx-font-smoothing: grayscale;
|
|
14
14
|
}
|
|
15
|
-
.arsenalchess-pawn-
|
|
16
|
-
content: "\
|
|
15
|
+
.guoran-arsenalchess-pawn-solid1:before {
|
|
16
|
+
content: "\e77f";
|
|
17
17
|
}
|
|
@@ -44,12 +44,9 @@ export default {
|
|
|
44
44
|
mounted() {
|
|
45
45
|
this.tampId = 'iframeId++' + new Date().getTime();
|
|
46
46
|
let tampUrl = this.actionAlertIframe.template;
|
|
47
|
-
console.log(tampUrl);
|
|
48
|
-
console.log('actionAlertIframe',this.actionAlertIframe)
|
|
49
47
|
function GetRequest() {
|
|
50
48
|
var url = tampUrl.split("?")[1]; //获取url中"?"符后的字串
|
|
51
49
|
var theRequest = new Object();
|
|
52
|
-
console.log(url);
|
|
53
50
|
if (url) {
|
|
54
51
|
// var str = url.substr(1);
|
|
55
52
|
let strs = url.split("&");
|
|
@@ -66,8 +63,6 @@ export default {
|
|
|
66
63
|
} else {
|
|
67
64
|
this.actionAlertIframe.template = this.actionAlertIframe.template + "&iframeId=" + this.tampId
|
|
68
65
|
}
|
|
69
|
-
|
|
70
|
-
console.log(this.tampId, this.actionAlertIframe.template)
|
|
71
66
|
},
|
|
72
67
|
};
|
|
73
68
|
</script>
|
|
@@ -19,6 +19,8 @@
|
|
|
19
19
|
</div>
|
|
20
20
|
</voice-component>-->
|
|
21
21
|
<!-- 点选 -->
|
|
22
|
+
<div v-html="htmlContainer">
|
|
23
|
+
</div>
|
|
22
24
|
<answer-radio :msg="answerRadios"></answer-radio>
|
|
23
25
|
<action-send-to-bot :msg="answerRadios"></action-send-to-bot>
|
|
24
26
|
<ticket-message :content="contents"></ticket-message>
|
|
@@ -33,6 +35,7 @@
|
|
|
33
35
|
<answer-dissatisfaction :msg="answerDiss"></answer-dissatisfaction>
|
|
34
36
|
<feed-back :feedBack="feedBack"></feed-back>
|
|
35
37
|
<voice-compontent></voice-compontent>
|
|
38
|
+
|
|
36
39
|
<!-- <FileType :urls="urls" :color="black"></FileType>-->
|
|
37
40
|
<!-- <FileType :urls="urls" :color="black"></FileType>
|
|
38
41
|
<chat-content :messageList="messageList"></chat-content>-->
|
|
@@ -1157,7 +1160,8 @@ export default {
|
|
|
1157
1160
|
}
|
|
1158
1161
|
},
|
|
1159
1162
|
type:'answer_radio'
|
|
1160
|
-
}
|
|
1163
|
+
},
|
|
1164
|
+
htmlContainer:'<input placeholder="请输入"></input>'
|
|
1161
1165
|
};
|
|
1162
1166
|
},
|
|
1163
1167
|
methods: {
|
|
@@ -35,14 +35,12 @@ name: "FileType",
|
|
|
35
35
|
for (let i=0;i<this.urls.length;i++)
|
|
36
36
|
{
|
|
37
37
|
let type=this.urls[i].name
|
|
38
|
-
console.log(type)
|
|
39
38
|
let nameType=type.split('.')
|
|
40
39
|
let suffix=nameType[nameType.length - 1]
|
|
41
40
|
/* let fileType=['pdf','ppt','doc','docx','xls','zip','txt','xlsx','pptx']*/
|
|
42
41
|
this.fileType[i]=suffix
|
|
43
42
|
|
|
44
43
|
}
|
|
45
|
-
console.log(this.fileType)
|
|
46
44
|
},
|
|
47
45
|
matchType(){
|
|
48
46
|
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
<p
|
|
8
8
|
v-for="(option, index) in msg.content.options"
|
|
9
9
|
class="options-item"
|
|
10
|
+
:class="index!==msg.content.options.length -1?'recommend-item':'last-item'"
|
|
10
11
|
:key="msg.nodeId + '_' + index"
|
|
11
12
|
@click="$emit('onRadioClick2', option.content, option.name, msg.apiKey)"
|
|
12
13
|
>
|
|
@@ -35,10 +36,10 @@
|
|
|
35
36
|
border-bottom: 1px solid #EEEEEE;
|
|
36
37
|
}
|
|
37
38
|
.options-list{
|
|
39
|
+
padding-top: 4px;
|
|
38
40
|
/* padding-top: 10px;*/
|
|
39
41
|
/*padding-right: 10px;*/
|
|
40
42
|
.options-item{
|
|
41
|
-
padding: 8px 0;
|
|
42
43
|
height: 25px;
|
|
43
44
|
line-height: 25px;
|
|
44
45
|
background-color: #ffffff;
|
|
@@ -51,6 +52,12 @@
|
|
|
51
52
|
padding-left: 10px;
|
|
52
53
|
}
|
|
53
54
|
}
|
|
55
|
+
.recommend-item{
|
|
56
|
+
padding: 8px 0;
|
|
57
|
+
}
|
|
58
|
+
.last-item{
|
|
59
|
+
padding-top: 8px;
|
|
60
|
+
}
|
|
54
61
|
}
|
|
55
62
|
}
|
|
56
63
|
</style>
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
<div
|
|
6
6
|
v-for="(option, index) in msg.content.options"
|
|
7
7
|
class="options-item"
|
|
8
|
+
:class="index!==msg.content.options.length -1?'recommend-item':'last-item'"
|
|
8
9
|
:key="msg.nodeId + '_' + index"
|
|
9
10
|
@click="
|
|
10
11
|
$emit(
|
|
@@ -40,10 +41,10 @@ export default {
|
|
|
40
41
|
border-bottom: 1px solid #EEEEEE;
|
|
41
42
|
}
|
|
42
43
|
.options-list{
|
|
44
|
+
padding-top: 4px;
|
|
43
45
|
/* padding-top: 10px;*/
|
|
44
46
|
/*padding-right: 10px;*/
|
|
45
47
|
.options-item{
|
|
46
|
-
padding: 8px 0;
|
|
47
48
|
height: 25px;
|
|
48
49
|
line-height: 25px;
|
|
49
50
|
background-color: #ffffff;
|
|
@@ -56,6 +57,12 @@ export default {
|
|
|
56
57
|
padding-left: 10px;
|
|
57
58
|
}
|
|
58
59
|
}
|
|
60
|
+
.recommend-item{
|
|
61
|
+
padding: 8px 0;
|
|
62
|
+
}
|
|
63
|
+
.last-item{
|
|
64
|
+
padding-top: 8px;
|
|
65
|
+
}
|
|
59
66
|
.end{
|
|
60
67
|
border-bottom-left-radius: 25px !important;
|
|
61
68
|
border-bottom-right-radius: 25px !important;
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
:src="src"
|
|
13
13
|
controls="controls"
|
|
14
14
|
x5-video-player-type="h5-page"
|
|
15
|
-
style="object-fit: contain;width:
|
|
15
|
+
style="object-fit: contain;width: calc(100vw - 139px);height: 160px;background-color: black;border-radius: 17px;max-width: 230px;"
|
|
16
16
|
class="video-player vjs-custom-skin"
|
|
17
17
|
:id="msg.keyId"/>
|
|
18
18
|
</div>
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
<!-- LPY 原生宽度适配有bug,弃用 -->
|
|
22
22
|
<img
|
|
23
23
|
:src="msg.content.url"
|
|
24
|
-
style="height: auto; width:
|
|
24
|
+
style="height: auto; width: calc(100vw - 137px);border-radius: 17px;max-width: 230px"
|
|
25
25
|
@click="onImageClick(msg.content.url)"
|
|
26
26
|
class="img-class"
|
|
27
27
|
/>
|
|
@@ -56,14 +56,11 @@
|
|
|
56
56
|
},
|
|
57
57
|
},
|
|
58
58
|
mounted() {
|
|
59
|
-
console.debug('msg',this.msg)
|
|
60
59
|
},
|
|
61
60
|
methods:{
|
|
62
61
|
// 将匹配结果替换表情图片
|
|
63
62
|
emotion (res) {
|
|
64
|
-
console.log('res:'+res);
|
|
65
63
|
let word = res.replace(/\/#|\/;/gi,'')
|
|
66
|
-
console.log('word:'+word);
|
|
67
64
|
const list = ['微笑', '撇嘴', '色', '发呆', '得意', '流泪', '害羞', '闭嘴', '睡', '大哭', '尴尬', '发怒', '调皮', '呲牙', '惊讶', '难过', '酷', '冷汗', '抓狂', '吐', '偷笑', '可爱', '白眼', '傲慢', '饥饿', '困', '惊恐', '流汗', '憨笑', '大兵', '奋斗', '咒骂', '疑问', '嘘', '晕', '折磨', '衰', '骷髅', '敲打', '再见', '擦汗', '抠鼻', '鼓掌', '糗大了', '坏笑', '左哼哼', '右哼哼', '哈欠', '鄙视', '委屈', '快哭了', '阴险', '亲亲', '吓', '可怜', '菜刀', '西瓜', '啤酒', '篮球', '乒乓', '咖啡', '饭', '猪头', '玫瑰', '凋谢', '示爱', '爱心', '心碎', '蛋糕', '闪电', '炸弹', '刀', '足球', '瓢虫', '便便', '月亮', '太阳', '礼物', '拥抱', '强', '弱', '握手', '胜利', '抱拳', '勾引', '拳头', '差劲', '爱你', '不', '可以', '爱情', '飞吻', '跳跳', '发抖', '怄火', '转圈', '磕头', '回头', '跳绳', '挥手', '激动', '街舞', '献吻', '左太极', '右太极']
|
|
68
65
|
let index = list.indexOf(word)
|
|
69
66
|
return `<img height="20px" src="https://guoranim.oss-cn-beijing.aliyuncs.com/emoji/${index+1}.png" align="middle">`
|
|
@@ -72,7 +69,7 @@
|
|
|
72
69
|
this.$emit("onRadioClick", id, name, apikey);
|
|
73
70
|
},
|
|
74
71
|
onImageClick(url){
|
|
75
|
-
|
|
72
|
+
this.$emit('onImageClick',url)
|
|
76
73
|
},
|
|
77
74
|
}
|
|
78
75
|
}
|
|
@@ -86,13 +83,11 @@
|
|
|
86
83
|
/*display: flex;
|
|
87
84
|
align-items: center;
|
|
88
85
|
justify-content: center;*/
|
|
89
|
-
|
|
90
|
-
padding-top: 8px;
|
|
91
|
-
}
|
|
86
|
+
|
|
92
87
|
}
|
|
93
88
|
.answer-rich-text{
|
|
94
|
-
padding-bottom:
|
|
95
|
-
border-bottom: 1px solid #EEEEEE
|
|
89
|
+
/*padding-bottom: 10px;
|
|
90
|
+
border-bottom: 1px solid #EEEEEE;*/
|
|
96
91
|
}
|
|
97
92
|
}
|
|
98
93
|
|
|
@@ -39,7 +39,6 @@ name: "feedBack",
|
|
|
39
39
|
},
|
|
40
40
|
mounted() {
|
|
41
41
|
this.isMobile()
|
|
42
|
-
console.log(this.disable)
|
|
43
42
|
},
|
|
44
43
|
methods:{
|
|
45
44
|
isMobile() {
|
|
@@ -72,7 +71,6 @@ name: "feedBack",
|
|
|
72
71
|
this.negativeClick=true
|
|
73
72
|
}
|
|
74
73
|
feedback.feedbackUid = this.feedBack.feedbackUid;
|
|
75
|
-
console.log(feedback)
|
|
76
74
|
feedback.apiKey=this.feedBack.apiKey
|
|
77
75
|
this.$emit('positiveFeedback',feedback,this.feedBack.apiKey);
|
|
78
76
|
this.isDisabled=true
|
|
@@ -578,7 +578,6 @@ export default {
|
|
|
578
578
|
return '.jpg,.jpeg,.png,.gif,.JPG,.JPEG,.PBG,.GIF'
|
|
579
579
|
},
|
|
580
580
|
formFieldRelation:function (){
|
|
581
|
-
console.log('this.formShow.form.formFieldRelation',this.formShow.form.formFieldRelation)
|
|
582
581
|
let arr = [];
|
|
583
582
|
this.formShow.form.formFieldRelation.forEach(item=> {
|
|
584
583
|
if (item.fieldId!=='workorder_name'&&item.display) {
|
|
@@ -590,8 +589,6 @@ export default {
|
|
|
590
589
|
|
|
591
590
|
},
|
|
592
591
|
mounted() {
|
|
593
|
-
console.log(this.formList)
|
|
594
|
-
console.log(this.disable)
|
|
595
592
|
this.isMobile()
|
|
596
593
|
},
|
|
597
594
|
beforeCreate() {
|
|
@@ -625,11 +622,10 @@ export default {
|
|
|
625
622
|
},
|
|
626
623
|
methods: {
|
|
627
624
|
beforeRead(file){
|
|
628
|
-
console.
|
|
629
|
-
console.
|
|
625
|
+
console.debug('file',file)
|
|
626
|
+
console.debug('fileType',!Array.isArray(file))
|
|
630
627
|
if (!Array.isArray(file)){
|
|
631
628
|
const isLte2M = file.size / 1024 / 1024 <= 8;
|
|
632
|
-
console.log(file.type.indexOf('image')!==-1)
|
|
633
629
|
const isSupportedFormat =file.type.indexOf('image')!==-1
|
|
634
630
|
if (!isSupportedFormat){
|
|
635
631
|
this.$message.error("只能上传图片格式");
|
|
@@ -649,7 +645,6 @@ export default {
|
|
|
649
645
|
if (file.length<=this.limitNum-length){
|
|
650
646
|
for (let i=0;i<file.length;i++){
|
|
651
647
|
const isLte2M = file[i].size / 1024 / 1024 <= 8;
|
|
652
|
-
console.log(file[i].type.indexOf('image')!==-1)
|
|
653
648
|
const isSupportedFormat =file[i].type.indexOf('image')!==-1
|
|
654
649
|
if (!isSupportedFormat){
|
|
655
650
|
this.$message.error("只能上传图片格式");
|
|
@@ -678,13 +673,12 @@ export default {
|
|
|
678
673
|
//文件上传至服务器
|
|
679
674
|
afterRead(file){
|
|
680
675
|
this.fileUpload=true
|
|
681
|
-
console.
|
|
682
|
-
console.
|
|
676
|
+
console.debug(file)
|
|
677
|
+
console.debug(!Array.isArray(file))
|
|
683
678
|
if (!Array.isArray(file)){
|
|
684
679
|
this.uploadImgFun(file.content,file.file.name,file,file.file);
|
|
685
680
|
}
|
|
686
681
|
else {
|
|
687
|
-
console.log(file.length)
|
|
688
682
|
let num = 1
|
|
689
683
|
if (this.limitNum){
|
|
690
684
|
num = this.limitNum
|
|
@@ -699,9 +693,6 @@ export default {
|
|
|
699
693
|
}
|
|
700
694
|
}
|
|
701
695
|
}
|
|
702
|
-
|
|
703
|
-
console.log(file)
|
|
704
|
-
console.log(this.fileListList[this.filedId])
|
|
705
696
|
},
|
|
706
697
|
uploadImgFun(content,name,fileCon,file){
|
|
707
698
|
console.log(fileCon)
|
|
@@ -730,8 +721,6 @@ export default {
|
|
|
730
721
|
imageInfo.url = ossFileUrl(this.ossConfig, res.name)
|
|
731
722
|
imageInfo.status='success'
|
|
732
723
|
imageInfo.name=res.name
|
|
733
|
-
console.log(this.fileListList[this.filedId])
|
|
734
|
-
console.log(imageData)
|
|
735
724
|
for (let j=0;j<this.fileListList[this.filedId].length;j++){
|
|
736
725
|
if (this.fileListList[this.filedId][j].content&&this.fileListList[this.filedId][j].content===content){
|
|
737
726
|
this.fileListList[this.filedId][j].name=res.name
|
|
@@ -742,7 +731,7 @@ export default {
|
|
|
742
731
|
}
|
|
743
732
|
this.fileUpload=false
|
|
744
733
|
}).catch((err) => {
|
|
745
|
-
console.
|
|
734
|
+
console.debug("upload err", err);
|
|
746
735
|
});
|
|
747
736
|
|
|
748
737
|
},
|
|
@@ -876,9 +865,6 @@ export default {
|
|
|
876
865
|
if (bool){
|
|
877
866
|
this.fileListList[this.formList.form.formFieldRelation[i].fieldId]=valueList
|
|
878
867
|
}
|
|
879
|
-
|
|
880
|
-
console.log(bool)
|
|
881
|
-
console.log(this.fileListList[this.formList.form.formFieldRelation[i].fieldId])
|
|
882
868
|
}
|
|
883
869
|
}
|
|
884
870
|
}
|
|
@@ -888,13 +874,11 @@ export default {
|
|
|
888
874
|
}
|
|
889
875
|
|
|
890
876
|
}
|
|
891
|
-
console.log(this.formList)
|
|
892
877
|
let test = []
|
|
893
878
|
for (let i = 0; i < this.formList.form.formFieldRelation.length; i++) {
|
|
894
879
|
if (this.formList.form.formFieldRelation[i].formField.type === 'CASCADER') {
|
|
895
880
|
test.push(this.formList.form.formFieldRelation[i])
|
|
896
881
|
let cascader=''
|
|
897
|
-
console.log(this.formList.form.formFieldRelation[i])
|
|
898
882
|
if(this.formList.form.formFieldRelation[i].value)
|
|
899
883
|
{
|
|
900
884
|
if(this.formList.form.formFieldRelation[i].value.length > 0)
|
|
@@ -940,7 +924,6 @@ export default {
|
|
|
940
924
|
}
|
|
941
925
|
if(this.formList.form.formFieldRelation[i].value)
|
|
942
926
|
{
|
|
943
|
-
console.log(this.formList.form.formFieldRelation[i].formField.extInfo.option)
|
|
944
927
|
for (let j=0;j<this.formList.form.formFieldRelation[i].formField.extInfo.option.length;j++)
|
|
945
928
|
{
|
|
946
929
|
if (this.formList.form.formFieldRelation[i].value === this.formList.form.formFieldRelation[i].formField.extInfo.option[j].value)
|
|
@@ -993,7 +976,6 @@ export default {
|
|
|
993
976
|
}
|
|
994
977
|
}
|
|
995
978
|
this.formShow=this.formList
|
|
996
|
-
console.log(this.formList.form.formFieldRelation)
|
|
997
979
|
},
|
|
998
980
|
addZero(i) {
|
|
999
981
|
if (i < 10) {
|
|
@@ -1066,7 +1048,6 @@ export default {
|
|
|
1066
1048
|
},
|
|
1067
1049
|
//下拉的选择器
|
|
1068
1050
|
onConfirmSelect(value, id) {
|
|
1069
|
-
console.log(value)
|
|
1070
1051
|
for (let i = 0; i < this.formShow.form.formFieldRelation.length; i++) {
|
|
1071
1052
|
if (this.formShow.form.formFieldRelation[i].fieldId === id) {
|
|
1072
1053
|
this.selectValues[this.formShow.form.formFieldRelation[i].fieldId] = value
|
|
@@ -1144,9 +1125,6 @@ export default {
|
|
|
1144
1125
|
}
|
|
1145
1126
|
}
|
|
1146
1127
|
})
|
|
1147
|
-
|
|
1148
|
-
let test=[]
|
|
1149
|
-
console.log(typeof test)
|
|
1150
1128
|
}
|
|
1151
1129
|
if (this.fileListList[this.formShow.form.formFieldRelation[i].fieldId]!==undefined){
|
|
1152
1130
|
let value=[]
|
|
@@ -1157,7 +1135,6 @@ export default {
|
|
|
1157
1135
|
file.url=item.url
|
|
1158
1136
|
value.push(file)
|
|
1159
1137
|
})
|
|
1160
|
-
console.log(value)
|
|
1161
1138
|
this.formShow.form.formFieldRelation[i].value=value
|
|
1162
1139
|
}
|
|
1163
1140
|
|
|
@@ -1170,10 +1147,7 @@ export default {
|
|
|
1170
1147
|
return
|
|
1171
1148
|
}
|
|
1172
1149
|
}
|
|
1173
|
-
|
|
1174
|
-
console.log( this.fileListList)
|
|
1175
1150
|
}
|
|
1176
|
-
console.log(this.formShow)
|
|
1177
1151
|
this.$emit('submitClick',this.formShow)
|
|
1178
1152
|
this.disableds = true
|
|
1179
1153
|
this.submitValue = '已提交'
|
|
@@ -1216,7 +1190,6 @@ export default {
|
|
|
1216
1190
|
},
|
|
1217
1191
|
//下拉的点击事件
|
|
1218
1192
|
selectClick(id) {
|
|
1219
|
-
console.log(id)
|
|
1220
1193
|
if(this.disableds === false){
|
|
1221
1194
|
let selectOption
|
|
1222
1195
|
this.selectValue=[]
|
|
@@ -1232,7 +1205,6 @@ export default {
|
|
|
1232
1205
|
}
|
|
1233
1206
|
}
|
|
1234
1207
|
}
|
|
1235
|
-
console.log(this.selectValue)
|
|
1236
1208
|
this.selectId = id
|
|
1237
1209
|
this.showPicker = true
|
|
1238
1210
|
}
|
|
@@ -1246,7 +1218,6 @@ export default {
|
|
|
1246
1218
|
{
|
|
1247
1219
|
for (let i = 0; i < this.formShow.form.formFieldRelation.length; i++) {
|
|
1248
1220
|
if (this.formShow.form.formFieldRelation[i].fieldId === id) {
|
|
1249
|
-
console.log(this.formShow.form.formFieldRelation[i].value)
|
|
1250
1221
|
this.keyValue=''
|
|
1251
1222
|
if(this.formShow.form.formFieldRelation[i].value.length!==undefined)
|
|
1252
1223
|
{
|
|
@@ -1292,16 +1263,10 @@ export default {
|
|
|
1292
1263
|
// 因为vant的 van-picker 回调只会返回你修改的那一列,比如现在为 [北京,北京,东城区],你修改了省为[天津市,天津市,和平区],但是vant的change回调会得到[天津市,北京,东城区],后面两个在回调中没有修改,不知道我的渲染方法有问题还是什么问题。
|
|
1293
1264
|
// 所以我在这里判断change事件触发后,如果你修改了省份的话,回调里面省份会改变,但是市和区还是上一个省份的 市和区,这时我们执行回调修改省,市,区的时候,因为回调只有省改变了,市和区DOM改变了,但是回调里面没改变的问题(不晓得什么问题),这时我们去找省下面的 市,我们取回调的市名称,如果在省下面没有找到这个市,默认展示第一个市,区也默认展示第一个市下面的区,如果遍历市能查到,就去展示对应的市。
|
|
1294
1265
|
// 回调时修改第2列数据
|
|
1295
|
-
console.log(index)
|
|
1296
1266
|
if (index == 0){
|
|
1297
1267
|
picker.setColumnValues(2, []); // 防止突然选中第一个,第二个是更新的,但第三个联级不更新,我暂时强制清空
|
|
1298
1268
|
}
|
|
1299
1269
|
let ColumnIndexss=picker.getIndexes()
|
|
1300
|
-
let getValues=picker.getValues()
|
|
1301
|
-
console.log(getValues)
|
|
1302
|
-
console.log(ColumnIndexss)
|
|
1303
|
-
|
|
1304
|
-
console.log(this.data)
|
|
1305
1270
|
let testValue=''
|
|
1306
1271
|
this.$nextTick(()=>{
|
|
1307
1272
|
if(index == 0)
|
|
@@ -1345,7 +1310,6 @@ export default {
|
|
|
1345
1310
|
that.cityDates = res;
|
|
1346
1311
|
}
|
|
1347
1312
|
});
|
|
1348
|
-
console.log(that.cityDates.children)
|
|
1349
1313
|
if (that.cityDates.children !== undefined&&that.cityDates.children.length > 0) {
|
|
1350
1314
|
return that.cityDates.children.map(function (res) {
|
|
1351
1315
|
return {text: res.value, code: res.value};
|
|
@@ -1371,14 +1335,12 @@ export default {
|
|
|
1371
1335
|
});
|
|
1372
1336
|
// 这里如果没有找到对应的县
|
|
1373
1337
|
if (countyDate == '') {
|
|
1374
|
-
console.log(that.cityDates.children.length)
|
|
1375
1338
|
if(that.cityDates.children.length > 0)
|
|
1376
1339
|
{
|
|
1377
1340
|
countyDate = that.cityDates.children[0];
|
|
1378
1341
|
}
|
|
1379
1342
|
|
|
1380
1343
|
}
|
|
1381
|
-
console.log(countyDate.children)
|
|
1382
1344
|
// return 县
|
|
1383
1345
|
if (countyDate.children === undefined) {
|
|
1384
1346
|
this.$set(countyDate, 'children', [])
|
|
@@ -1420,8 +1382,6 @@ export default {
|
|
|
1420
1382
|
this.showArea = false;
|
|
1421
1383
|
},
|
|
1422
1384
|
aliyunOssRequest(data){
|
|
1423
|
-
console.log("upload request data", data);
|
|
1424
|
-
console.log(this.fileListList)
|
|
1425
1385
|
|
|
1426
1386
|
this.loading = this.$loading({
|
|
1427
1387
|
lock: true,
|
|
@@ -1430,7 +1390,7 @@ export default {
|
|
|
1430
1390
|
background: 'rgba(0, 0, 0, 0.8)'
|
|
1431
1391
|
});
|
|
1432
1392
|
let file = data.file;
|
|
1433
|
-
console.
|
|
1393
|
+
console.debug("upload file:", file);
|
|
1434
1394
|
let imgInfo = {
|
|
1435
1395
|
status:'',
|
|
1436
1396
|
url:'',
|
|
@@ -1452,7 +1412,7 @@ export default {
|
|
|
1452
1412
|
imgInfo
|
|
1453
1413
|
);
|
|
1454
1414
|
res.then((res) => {
|
|
1455
|
-
console.
|
|
1415
|
+
console.debug("upload result:", res);
|
|
1456
1416
|
// let filePath = res.name;
|
|
1457
1417
|
/* imageData.content.progress = 1;
|
|
1458
1418
|
imageData.content.urls.push(
|
|
@@ -1472,13 +1432,10 @@ export default {
|
|
|
1472
1432
|
this.fileListList[this.filedId].push(imgInfo)
|
|
1473
1433
|
this.loading.close()
|
|
1474
1434
|
}).catch((err) => {
|
|
1475
|
-
console.
|
|
1435
|
+
console.debug("upload err", err);
|
|
1476
1436
|
});
|
|
1477
|
-
console.log('fileListList',this.fileListList[this.filedId])
|
|
1478
|
-
console.log('imgInfo',imgInfo)
|
|
1479
1437
|
},
|
|
1480
1438
|
successUpload(response,file,fileList){
|
|
1481
|
-
console.log('fileList',fileList)
|
|
1482
1439
|
if (!this.fileListList[this.filedId]){
|
|
1483
1440
|
this.fileListList[this.filedId] = []
|
|
1484
1441
|
}
|
|
@@ -1490,10 +1447,8 @@ export default {
|
|
|
1490
1447
|
this.fileListList[this.filedId][i].name=fileList[i].name
|
|
1491
1448
|
this.fileListList[this.filedId][i].status=fileList[i].status
|
|
1492
1449
|
}
|
|
1493
|
-
console.log('successUpload',this.fileListList)
|
|
1494
1450
|
},
|
|
1495
|
-
uploadProgress(
|
|
1496
|
-
console.log(e,res,response)
|
|
1451
|
+
uploadProgress(){
|
|
1497
1452
|
this.loading = this.$loading({
|
|
1498
1453
|
lock: true,
|
|
1499
1454
|
text: 'Loading',
|
|
@@ -1501,10 +1456,7 @@ export default {
|
|
|
1501
1456
|
background: 'rgba(0, 0, 0, 0.7)'
|
|
1502
1457
|
});
|
|
1503
1458
|
},
|
|
1504
|
-
handleRemove(file
|
|
1505
|
-
console.log(file);
|
|
1506
|
-
console.log(fileList)
|
|
1507
|
-
console.log(this.fileListList)
|
|
1459
|
+
handleRemove(file) {
|
|
1508
1460
|
if (this.fileListList[this.filedId]){
|
|
1509
1461
|
for (let i=0;i<this.fileListList[this.filedId].length;i++)
|
|
1510
1462
|
{
|
|
@@ -1540,10 +1492,7 @@ export default {
|
|
|
1540
1492
|
/*this.fileListList = [...this.fileListList]*/
|
|
1541
1493
|
},
|
|
1542
1494
|
handleEditChange(file,fileList){
|
|
1543
|
-
console.log(file)
|
|
1544
1495
|
this.hideUploadEdit=fileList.length >= this.limitNum
|
|
1545
|
-
console.log(this.hideUploadEdit)
|
|
1546
|
-
console.log(fileList)
|
|
1547
1496
|
},
|
|
1548
1497
|
|
|
1549
1498
|
onUploadProgress: function (progress, point, file, videoData) {
|
|
@@ -1557,12 +1506,9 @@ export default {
|
|
|
1557
1506
|
videoData.content.progress = progress;
|
|
1558
1507
|
|
|
1559
1508
|
}
|
|
1560
|
-
console.log('1234',videoData)
|
|
1561
1509
|
},
|
|
1562
1510
|
checkUpload(id,limitNum){
|
|
1563
1511
|
this.filedId=id
|
|
1564
|
-
console.log(this.filedId)
|
|
1565
|
-
console.log(limitNum)
|
|
1566
1512
|
this.limitNum = limitNum
|
|
1567
1513
|
|
|
1568
1514
|
},
|
|
@@ -1584,7 +1530,6 @@ export default {
|
|
|
1584
1530
|
},
|
|
1585
1531
|
|
|
1586
1532
|
handlePictureCardPreview(file) {
|
|
1587
|
-
console.log(file)
|
|
1588
1533
|
this.videoFlag = true;
|
|
1589
1534
|
this.videoUploadPercent = file.percentage.toFixed(0);
|
|
1590
1535
|
},
|
|
@@ -62,16 +62,6 @@
|
|
|
62
62
|
/* this.increaseNumber(display, dec, 'dec');*/
|
|
63
63
|
})
|
|
64
64
|
},1000)
|
|
65
|
-
/* const displays = document.querySelectorAll('.note-display');
|
|
66
|
-
displays.forEach(display => {
|
|
67
|
-
let note = parseFloat(display.dataset.note);
|
|
68
|
-
let [int, dec] = display.dataset.note.split('.');
|
|
69
|
-
[int, dec] = [Number(int), Number(dec)];
|
|
70
|
-
this.strokeTransition(display, note);
|
|
71
|
-
this.increaseNumber(display, this.dataNote, 'int');
|
|
72
|
-
/!* this.increaseNumber(display, dec, 'dec');*!/
|
|
73
|
-
})*/
|
|
74
|
-
|
|
75
65
|
},
|
|
76
66
|
watch:{
|
|
77
67
|
dataNote:{
|
|
@@ -101,7 +91,6 @@
|
|
|
101
91
|
#loading-process{
|
|
102
92
|
height: 100px;
|
|
103
93
|
width: 100px;
|
|
104
|
-
position: relative;
|
|
105
94
|
.bg-color{
|
|
106
95
|
background-color:#000000 ;
|
|
107
96
|
opacity: 0.4;
|
|
@@ -44,11 +44,9 @@ export default {
|
|
|
44
44
|
mounted() {
|
|
45
45
|
this.tampId = 'iframeId++' + new Date().getTime();
|
|
46
46
|
let tampUrl = this.actionAlertIframe.template;
|
|
47
|
-
console.log(tampUrl);
|
|
48
47
|
function GetRequest() {
|
|
49
48
|
var url = tampUrl.split("?")[1]; //获取url中"?"符后的字串
|
|
50
49
|
var theRequest = new Object();
|
|
51
|
-
console.log(url);
|
|
52
50
|
if (url) {
|
|
53
51
|
// var str = url.substr(1);
|
|
54
52
|
let strs = url.split("&");
|
|
@@ -65,8 +63,6 @@ export default {
|
|
|
65
63
|
} else {
|
|
66
64
|
this.actionAlertIframe.template = this.actionAlertIframe.template + "&iframeId=" + this.tampId
|
|
67
65
|
}
|
|
68
|
-
|
|
69
|
-
console.log(this.tampId, this.actionAlertIframe.template)
|
|
70
66
|
},
|
|
71
67
|
};
|
|
72
68
|
</script>
|
|
@@ -117,17 +117,13 @@
|
|
|
117
117
|
slideLoadOn() {
|
|
118
118
|
this.$refs.swiper.slideOn();
|
|
119
119
|
},
|
|
120
|
-
preClickTest(
|
|
120
|
+
preClickTest(){
|
|
121
121
|
let swiperEl = document.querySelector(".swiper");
|
|
122
|
-
console.
|
|
123
|
-
console.log(e)
|
|
124
|
-
console.log('aaa')
|
|
122
|
+
console.debug('swiperEl',swiperEl.offsetWidth)
|
|
125
123
|
},
|
|
126
|
-
nextClickTest(
|
|
124
|
+
nextClickTest(){
|
|
127
125
|
let swiperEl = document.querySelector(".swiper");
|
|
128
|
-
console.
|
|
129
|
-
console.log(e)
|
|
130
|
-
console.log('aaa')
|
|
126
|
+
console.debug('swiperEl',swiperEl.offsetWidth)
|
|
131
127
|
}
|
|
132
128
|
}
|
|
133
129
|
}
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
<el-button plain size="small" @click="submitClick" :disabled="disableds" >{{submitValue}}</el-button>
|
|
12
12
|
</div>
|
|
13
13
|
<div v-if="isCompany">
|
|
14
|
-
<div v-if="single === true"
|
|
14
|
+
<div v-if="single === true" class="editMessage">
|
|
15
15
|
<el-input v-model="input" placeholder="请输入内容" class="inputClass" @input="testClick" @blur="inputBlur"></el-input>
|
|
16
16
|
<!-- <span @click="quedingClick" style="display: flex;align-items: center"><i class="el-icon-success" style="color: #4C61E1;font-size: 32px;cursor: pointer"></i></span>
|
|
17
17
|
--> </div>
|
|
18
|
-
<div v-if="date"
|
|
18
|
+
<div v-if="date" class="editMessage">
|
|
19
19
|
<el-date-picker
|
|
20
20
|
v-model="dateValue"
|
|
21
21
|
type="date"
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
</el-date-picker>
|
|
29
29
|
<!-- <span @click="quedingClick" style="display: flex;align-items: center"><i class="el-icon-success" style="color: #4C61E1;font-size: 32px;cursor: pointer"></i></span>
|
|
30
30
|
--> </div>
|
|
31
|
-
<div v-if="time"
|
|
31
|
+
<div v-if="time" class="editMessage">
|
|
32
32
|
<el-time-picker
|
|
33
33
|
v-model="timeValue"
|
|
34
34
|
placeholder="任意时间点"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
</el-time-picker>
|
|
40
40
|
<!-- <span @click="quedingClick" style="display: flex;align-items: center"><i class="el-icon-success" style="color: #4C61E1;font-size: 32px;cursor: pointer"></i></span>
|
|
41
41
|
--> </div>
|
|
42
|
-
<div v-if="dateTime"
|
|
42
|
+
<div v-if="dateTime" class="editMessage">
|
|
43
43
|
<el-date-picker
|
|
44
44
|
v-model="dateTimeValue"
|
|
45
45
|
type="datetime"
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
</div>-->
|
|
92
92
|
</div>
|
|
93
93
|
<div v-if="isPhone">
|
|
94
|
-
<div v-if="single"
|
|
94
|
+
<div v-if="single" class="editMessage">
|
|
95
95
|
<el-input v-model="input" placeholder="请输入内容" class="inputClass" @input="testClick" @blur="inputBlur"></el-input>
|
|
96
96
|
<!-- <span @click="quedingClick" style="display: flex;align-items: center"><i class="el-icon-success" style="color: #4C61E1;font-size: 32px;cursor: pointer"></i></span>
|
|
97
97
|
--> </div>
|
|
@@ -305,7 +305,6 @@ export default {
|
|
|
305
305
|
},
|
|
306
306
|
mounted() {
|
|
307
307
|
this.isMobile()
|
|
308
|
-
console.log(this.disable)
|
|
309
308
|
let span=this.$el
|
|
310
309
|
let defaults=span.getElementsByClassName('ask-component-placeholder-span')
|
|
311
310
|
for (let i=0;i<defaults.length;i++)
|
|
@@ -316,7 +315,6 @@ export default {
|
|
|
316
315
|
this.values[i]['type']=defaults[i].getAttribute('type')
|
|
317
316
|
}
|
|
318
317
|
let text=this.$el
|
|
319
|
-
console.log('dom',text)
|
|
320
318
|
let test=text.getElementsByClassName('ask-component-placeholder-span')
|
|
321
319
|
let cpntain=text.getElementsByClassName('ask-component-placeholder-container')
|
|
322
320
|
let icon=text.getElementsByClassName('arsenalkebianji')
|
|
@@ -568,9 +566,7 @@ export default {
|
|
|
568
566
|
obj[item.key] = item
|
|
569
567
|
})
|
|
570
568
|
let result = Object.values(obj)
|
|
571
|
-
console.log(result)
|
|
572
569
|
let text=this.$el
|
|
573
|
-
console.log(text)
|
|
574
570
|
let test=text.getElementsByClassName('ask-component-placeholder-span')
|
|
575
571
|
for (let i=0;i<test.length;i++)
|
|
576
572
|
{
|
|
@@ -578,7 +574,6 @@ export default {
|
|
|
578
574
|
{
|
|
579
575
|
if(test[i].getAttribute('data')===result[i].key)
|
|
580
576
|
{
|
|
581
|
-
console.log(typeof result[i].value)
|
|
582
577
|
if(typeof result[i].value =='number'){
|
|
583
578
|
result[i].value/=1000
|
|
584
579
|
let resu=String(result[i].value)
|
|
@@ -690,7 +685,6 @@ export default {
|
|
|
690
685
|
{
|
|
691
686
|
this.checkValue.innerText=this.input
|
|
692
687
|
}
|
|
693
|
-
console.log(this.checkValue.innerText)
|
|
694
688
|
this.values[i].value=this.checkValue.innerText
|
|
695
689
|
}
|
|
696
690
|
}
|
|
@@ -773,8 +767,7 @@ export default {
|
|
|
773
767
|
|
|
774
768
|
}
|
|
775
769
|
},
|
|
776
|
-
onConfirmDateTime(
|
|
777
|
-
console.log(date)
|
|
770
|
+
onConfirmDateTime(){
|
|
778
771
|
if(this.checkValue.getAttribute('type') === 'DATE_TIME_PICKER')
|
|
779
772
|
{
|
|
780
773
|
for (let i=0;i<this.values.length;i++)
|
|
@@ -791,7 +784,6 @@ export default {
|
|
|
791
784
|
{
|
|
792
785
|
this.values[i].value=this.checkValue.innerText
|
|
793
786
|
}
|
|
794
|
-
console.log(this.values[i].value)
|
|
795
787
|
}
|
|
796
788
|
}
|
|
797
789
|
}
|
|
@@ -799,7 +791,6 @@ export default {
|
|
|
799
791
|
},
|
|
800
792
|
|
|
801
793
|
onConfirm(date) {
|
|
802
|
-
console.log(date)
|
|
803
794
|
this.show = false;
|
|
804
795
|
if(this.checkValue.getAttribute('type') === 'DATE_PICKER')
|
|
805
796
|
|
|
@@ -824,8 +815,7 @@ export default {
|
|
|
824
815
|
}
|
|
825
816
|
|
|
826
817
|
},
|
|
827
|
-
onConfirmTime(
|
|
828
|
-
console.log(time)
|
|
818
|
+
onConfirmTime(){
|
|
829
819
|
this.showTimePicker=false
|
|
830
820
|
if(this.checkValue.getAttribute('type') === 'TIME_PICKER')
|
|
831
821
|
{
|
|
@@ -855,6 +845,13 @@ export default {
|
|
|
855
845
|
<style lang="less">
|
|
856
846
|
@import "../../assets/less/common.css";
|
|
857
847
|
#textMessage{
|
|
848
|
+
min-width: 200px;
|
|
849
|
+
.editMessage{
|
|
850
|
+
display: flex;
|
|
851
|
+
justify-content: space-between;
|
|
852
|
+
margin-top: 10px;
|
|
853
|
+
border-top: 1px dashed #ebebeb;
|
|
854
|
+
}
|
|
858
855
|
#submit{
|
|
859
856
|
margin-top: 10px;
|
|
860
857
|
display: flex;
|
|
@@ -913,10 +910,7 @@ export default {
|
|
|
913
910
|
}
|
|
914
911
|
}
|
|
915
912
|
|
|
916
|
-
|
|
917
|
-
display: flex;
|
|
918
|
-
justify-content: space-between;
|
|
919
|
-
}
|
|
913
|
+
|
|
920
914
|
}
|
|
921
915
|
.van-cell::after{
|
|
922
916
|
content: none!important;
|
|
@@ -123,7 +123,6 @@
|
|
|
123
123
|
},
|
|
124
124
|
btnClick(items){
|
|
125
125
|
items.apiKey=this.content.apiKey
|
|
126
|
-
console.log(items)
|
|
127
126
|
this.$emit('btnClick',items,this.content.apiKey)
|
|
128
127
|
},
|
|
129
128
|
|
|
@@ -152,7 +151,6 @@
|
|
|
152
151
|
|
|
153
152
|
},
|
|
154
153
|
touchEnd(index){
|
|
155
|
-
console.log(index)
|
|
156
154
|
this.$emit('touchEnd',index)
|
|
157
155
|
}
|
|
158
156
|
|
|
@@ -342,7 +342,6 @@ export default {
|
|
|
342
342
|
for (let i=0;i<swiper.length;i++)
|
|
343
343
|
{
|
|
344
344
|
swiper[i].style.width='calc(100vw - 120px)'
|
|
345
|
-
console.log(swiper[i].style.width)
|
|
346
345
|
}
|
|
347
346
|
|
|
348
347
|
|
|
@@ -353,8 +352,7 @@ export default {
|
|
|
353
352
|
el.style.width='300px'
|
|
354
353
|
let swiper=document.getElementsByClassName('swiper')
|
|
355
354
|
|
|
356
|
-
|
|
357
|
-
console.log(pnm_swiper)
|
|
355
|
+
/* let pnm_swiper=document.getElementById('pnm_swiper')*/
|
|
358
356
|
/*pnm_swiper.style.width='300px'*/
|
|
359
357
|
for (let i=0;i<swiper.length;i++)
|
|
360
358
|
{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="text-recommed-intent">
|
|
3
3
|
<p class="intent-des" v-if="msg.recommend&&msg.recommend.description" v-html="msg.recommend.description"></p>
|
|
4
|
-
<div v-if="msg.recommend.list" class="options-list">
|
|
4
|
+
<div v-if="msg.recommend&&msg.recommend.list" class="options-list">
|
|
5
5
|
<p
|
|
6
6
|
v-for="(option, index) in msg.recommend.list"
|
|
7
7
|
class="options-item"
|
|
@@ -54,6 +54,7 @@ export default {
|
|
|
54
54
|
background-color: white;
|
|
55
55
|
}
|
|
56
56
|
.options-list{
|
|
57
|
+
padding-top: 4px;
|
|
57
58
|
/*padding-top: 8px;*/
|
|
58
59
|
/*padding-right: 10px;*/
|
|
59
60
|
.options-item{
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<div id="voice-component-container">
|
|
4
4
|
<div id="voice-component-c">
|
|
5
5
|
<div class="voice-btn">
|
|
6
|
-
<i class="iconfont arsenalchess-pawn-
|
|
6
|
+
<i class="iconfont guoran-arsenalchess-pawn-solid1"></i>
|
|
7
7
|
</div>
|
|
8
8
|
</div>
|
|
9
9
|
<div class="close-voice" @click="closeVoice">
|
|
@@ -62,7 +62,7 @@ export default {
|
|
|
62
62
|
justify-content: center;
|
|
63
63
|
i{
|
|
64
64
|
color: #366aff;
|
|
65
|
-
font-size:
|
|
65
|
+
font-size: 38px;
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
}
|