askbot-dragon 0.6.26 → 0.6.27

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "askbot-dragon",
3
- "version": "0.6.26",
3
+ "version": "0.6.27",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -13,6 +13,26 @@
13
13
  .button-item:last-child{
14
14
  margin-bottom: 0!important;
15
15
  }
16
+ .buttonClassItem{
17
+ width: 178px;
18
+ /* padding: 0px 30px;*/
19
+ height: 30px;
20
+ background: #FFFFFF;
21
+ border: 1px solid #BBCDFF;
22
+ border-radius: 14px;
23
+ color: #366aff;
24
+ display: flex;
25
+ align-content: center;
26
+ justify-content: center;
27
+ overflow: hidden;
28
+ text-overflow: ellipsis;
29
+ white-space: nowrap;
30
+ cursor: pointer;
31
+ .btn-name{
32
+ display: flex;
33
+ align-items: center;
34
+ }
35
+ }
16
36
  .isCompayClass{
17
37
  .el-divider--horizontal{
18
38
  margin: 8px 0 0 0 !important;
@@ -28,14 +48,6 @@
28
48
  }
29
49
  }
30
50
  }
31
- .buttonClassItem{
32
- font-weight: 600;
33
- text-align: center;
34
- border-top: 1.5px solid #DCDFE6;
35
- padding: 8px 0;
36
- color: #366aff;
37
- cursor: pointer;
38
- }
39
51
  .singleClass{
40
52
  padding: 8px 0;
41
53
  div, h1, h2, h3, h4, h5, h6, li, dt, dd, p, blockquote, pre, form, fieldset, table, th, td{
@@ -71,7 +83,7 @@
71
83
  overflow: hidden;
72
84
  img{
73
85
  width: 100%;
74
- height:calc(80vw / 2.35);
86
+ height:calc((100vw - 120px) / 2.35);
75
87
  object-fit: contain;
76
88
  }
77
89
  }
@@ -127,22 +139,6 @@
127
139
  }
128
140
  }
129
141
  }
130
- .buttonClassItem{
131
- /* width: 178px;*/
132
- padding: 0px 30px;
133
- height: 30px;
134
- background: #FFFFFF;
135
- border: 1px solid #BBCDFF;
136
- border-radius: 14px;
137
- color: #366aff;
138
- display: flex;
139
- align-content: center;
140
- justify-content: center;
141
- .btn-name{
142
- display: flex;
143
- align-items: center;
144
- }
145
- }
146
142
  }
147
143
  .singleClass{
148
144
  display: flex;
@@ -31,6 +31,7 @@
31
31
  <!-- 满意或不满意-->
32
32
  <bot-action-satisfactor :msg="botActionSatis"></bot-action-satisfactor>
33
33
  <answer-dissatisfaction :msg="answerDiss"></answer-dissatisfaction>
34
+ <feed-back :feedBack="feedBack"></feed-back>
34
35
 
35
36
  <!-- <FileType :urls="urls" :color="black"></FileType>-->
36
37
  <!-- <FileType :urls="urls" :color="black"></FileType>
@@ -63,7 +64,7 @@ import FeedBack from "@/components/feedBack";*/
63
64
  /*import ActionAlert from "@/components/message/ActionAlertIframe";*/
64
65
  /*import FileType from "@/components/FileType";
65
66
  import ChatContent from "./chatContent";*/
66
-
67
+ import FeedBack from "@/components/feedBack"
67
68
  export default {
68
69
  name: "ConversationContainer",
69
70
  components: {
@@ -80,7 +81,7 @@ export default {
80
81
  AnswerRadio,
81
82
  FormTemplate,
82
83
  TextMessage,
83
-
84
+ FeedBack
84
85
 
85
86
 
86
87
  },
@@ -5,14 +5,14 @@
5
5
  </div>
6
6
  <div v-if=" (msgType === 'answer_welcofmetext' || msgType === 'answer_text') && (msg.recommend&& msg.recommend.status)">
7
7
  <p v-html="msg.content.replace(/\#[\u4E00-\u9FA5]{1,3}\;/gi, emotion)"></p>
8
- <recommend :msg="msg"></recommend>
8
+ <Recommend :msg="msg" @onRadioClickReco="onRadioClickReco"></Recommend>
9
9
  </div>
10
10
  <div v-if="msg.type === 'answer_rich_text' && !(msg.content.recommend != undefined && msg.content.recommend.status)">
11
11
  <p v-html="$options.filters.imageStyle(msg.content.html)"></p>
12
12
  </div>
13
13
  <div v-else-if="msg.type == 'answer_rich_text' && (msg.content.recommend != undefined && msg.content.recommend.status)">
14
14
  <p v-html="$options.filters.imageStyle(msg.content.html)"></p>
15
- <recommend :msg="msg.content"></recommend>
15
+ <Recommend :msg="msg.content" @onRadioClickReco="onRadioClickReco"></Recommend>
16
16
  </div>
17
17
  <div v-else-if="msgType === 'answer_image'" >
18
18
  <div
@@ -26,16 +26,14 @@
26
26
  class="img-class"
27
27
  />
28
28
  </div>
29
- <recommend :msg="msg"></recommend>
29
+ <Recommend :msg="msg" @onRadioClickReco="onRadioClickReco"></Recommend>
30
30
  </div>
31
31
  <div v-else-if="msgType === 'answer_video' || msgType === 'user_video' || msgType === 'VIDEO'">
32
32
  <div class="association-img">
33
33
  <ask-video :msg="msg" :url="msg.content.url" :local-url="msg.content.localUrl"
34
34
  :progress="msg.content.progress"></ask-video>
35
35
  </div>
36
- <div class="media-body-ps" style="border-radius: 0 0 32px 32px;">
37
- <recommend :msg="msg"></recommend>
38
- </div>
36
+ <Recommend :msg="msg" @onRadioClickReco="onRadioClickReco"></Recommend>
39
37
  </div>
40
38
  </div>
41
39
  </template>
@@ -70,8 +68,12 @@
70
68
  let index = list.indexOf(word)
71
69
  return `<img height="20px" src="https://guoranim.oss-cn-beijing.aliyuncs.com/emoji/${index+1}.png" align="middle">`
72
70
  },
73
- onRadioClickReco(){},
74
- onImageClick(){},
71
+ onRadioClickReco(id, name, apikey) {
72
+ this.$emit("onRadioClick", id, name, apikey, "recommend");
73
+ },
74
+ onImageClick(url){
75
+ console.debug('onImageClick',url)
76
+ },
75
77
  }
76
78
  }
77
79
  </script>
@@ -80,6 +82,7 @@
80
82
  <style scoped lang="less">
81
83
  @import "../assets/less/converSationContainer/common";
82
84
  .association-intention{
85
+ background-color: white;
83
86
  .association-img{
84
87
  /*display: flex;
85
88
  align-items: center;
@@ -1,12 +1,12 @@
1
1
  <template>
2
2
  <div id="feedBack" class="companyNotRem" :class="{phoneClass:isPhone,companyClass:isCompany,notClick:isDisabled===true}">
3
- <span class="feed-positive-button" >
4
- <el-button round class="btnClass" @click="positiveFeedback(feedBack,1)" v-html="feedBack.positiveFeedback.text" v-if="positiveClick ===false">{{feedBack.positiveFeedback.text}}</el-button>
5
- <el-button round class="btnClassActive" v-html="feedBack.positiveFeedback.text" v-if="positiveClick ===true">{{feedBack.positiveFeedback.text}}</el-button>
3
+ <span :class="!positiveClick?'feed-positive-button':'feed-check-positive-button'">
4
+ <el-button round class="btnClass" @click="positiveFeedback(feedBack,1)" v-html="feedBack.positiveFeedback.text" v-if="!positiveClick">{{feedBack.positiveFeedback.text}}</el-button>
5
+ <el-button round class="btnClassActive" v-html="feedBack.positiveFeedback.text" v-else>{{feedBack.positiveFeedback.text}}</el-button>
6
6
  </span>
7
- <span class="feed-negative-button">
8
- <el-button round class="btnClass" @click="positiveFeedback(feedBack,2)" v-html="feedBack.negativeFeedback.text" v-if="negativeClick ===false">{{feedBack.negativeFeedback.text}}</el-button>
9
- <el-button round class="btnClassActive" v-html="feedBack.negativeFeedback.text" v-if="negativeClick ===true">{{feedBack.negativeFeedback.text}}</el-button>
7
+ <span :class="!negativeClick?'feed-negative-button':'feed-check-negative-button'">
8
+ <el-button round class="btnClass" @click="positiveFeedback(feedBack,2)" v-html="feedBack.negativeFeedback.text" v-if="!negativeClick">{{feedBack.negativeFeedback.text}}</el-button>
9
+ <el-button round class="btnClassActive" v-html="feedBack.negativeFeedback.text" v-else>{{feedBack.negativeFeedback.text}}</el-button>
10
10
  </span>
11
11
  </div>
12
12
  </template>
@@ -93,6 +93,25 @@ name: "feedBack",
93
93
  font-weight: 400;
94
94
  }
95
95
  }
96
+ .feed-check-positive-button{
97
+ margin-right: 8px;
98
+ /deep/.el-button{
99
+ border: 1px solid #4C61E1;
100
+ color: #FFFFFF;
101
+ background-color: #4C61E1;
102
+ border-radius: 14px;
103
+ font-weight: 400;
104
+ }
105
+ }
106
+ .feed-check-negative-button{
107
+ /deep/.el-button{
108
+ border: 1px solid #4C61E1;
109
+ color: #FFFFFF;
110
+ background-color: #4C61E1;
111
+ border-radius: 14px;
112
+ font-weight: 400;
113
+ }
114
+ }
96
115
  .feed-negative-button{
97
116
  background: #FFFFFF;
98
117
  /deep/.el-button{
@@ -117,10 +136,6 @@ name: "feedBack",
117
136
  line-height: 0.9;
118
137
  }
119
138
  }
120
- .btnClassActive{
121
- color: #ffffff;
122
- background-color: #4C61E1
123
- }
124
139
  .companyClass{
125
140
  /* min-width: 300px;*/
126
141
  width: 370px;
@@ -136,10 +151,4 @@ name: "feedBack",
136
151
  .notClick{
137
152
  pointer-events: none;
138
153
  }
139
- .positiveActive{
140
- color: red;
141
- }
142
- .negativeActive{
143
- color: red;
144
- }
145
154
  </style>
@@ -337,11 +337,11 @@ export default {
337
337
  if(flag){
338
338
  this.isPhone=true
339
339
  let el=this.$el
340
- el.style.width='80vw'
340
+ el.style.width='calc(100vw - 120px)'
341
341
  let swiper=document.getElementsByClassName('swiper')
342
342
  for (let i=0;i<swiper.length;i++)
343
343
  {
344
- swiper[i].style.width='80vw'
344
+ swiper[i].style.width='calc(100vw - 120px)'
345
345
  console.log(swiper[i].style.width)
346
346
  }
347
347
 
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="media-body-loading">
2
+ <div class="media-body-loadings">
3
3
  <svg viewBox="0 0 120 120" width="30px" height="30px" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
4
4
  <g id="circle" class="g-circles g-circles--v1">
5
5
  <circle id="12" transform="translate(35, 16.698730) rotate(-30) translate(-35, -16.698730) " cx="35" cy="16.6987298" r="10"></circle>
@@ -56,7 +56,7 @@ export default {
56
56
  .circle__svg {
57
57
  transform: rotate(-90deg);
58
58
  }
59
- .media-body-loading {
59
+ .media-body-loadings {
60
60
  background-color: #DEE3F0;
61
61
  /* background-color: #f4f8fc;*/
62
62
  /* border: 1px solid #f4f8fc;*/
@@ -45,7 +45,7 @@ export default {
45
45
  word-wrap: break-word;
46
46
  word-break: break-all;
47
47
  overflow: hidden;
48
- padding: 14px 0;
48
+ padding: 10px 0;
49
49
  height: auto;
50
50
  border-bottom: 1px solid #EEEEEE;
51
51
  color: #A9B3C6;