askbot-dragon 1.0.29 → 1.1.1

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": "1.0.29",
3
+ "version": "1.1.1",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
package/public/index.html CHANGED
@@ -10,7 +10,7 @@
10
10
  <!-- 项目图标 -->
11
11
  <link rel="stylesheet" href="//at.alicdn.com/t/font_1566110_3hu6pyd938i.css"/>
12
12
  <!-- guoran图标 -->
13
- <link rel="stylesheet" href="//at.alicdn.com/t/font_2913049_aukej8oi7nm.css"/>
13
+ <link rel="stylesheet" href="//at.alicdn.com/t/c/font_2913049_v0wnepni1r.css"/>
14
14
  <script src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
15
15
  <script src="https://static.guoranbot.com/ckeditor5-build-classic/0.3.7/build/ckeditor.js"></script>
16
16
 
@@ -2,7 +2,7 @@
2
2
  <div class="association-intention">
3
3
  <div v-if=" (msgType === 'answer_welcofmetext' || msgType === 'answer_text') && !(msg.recommend&& msg.recommend.status)">
4
4
  <!-- <p v-html="msg.content.replace(/\#[\u4E00-\u9FA5]{1,3}\;/gi, emotion)"></p>-->
5
- <template v-if="msgContent(msg.content)">
5
+ <template v-if="msg.dispatchServiceType === 'CHATGPT'">
6
6
  <p style="white-space: pre-wrap;">
7
7
  {{msg.content | msgHtmlContent}}
8
8
  </p>
@@ -12,7 +12,7 @@
12
12
  </template>
13
13
  </div>
14
14
  <div v-if=" (msgType === 'answer_welcofmetext' || msgType === 'answer_text') && (msg.recommend&& msg.recommend.status)">
15
- <template v-if="msgContent(msg.content)">
15
+ <template v-if="msg.dispatchServiceType === 'CHATGPT'">
16
16
  <p style="white-space: pre-wrap;">
17
17
  {{msg.content | msgHtmlContent}}
18
18
  </p>
@@ -1,5 +1,11 @@
1
1
  <template>
2
- <van-popup v-model="previewShowPopup" position="bottom" :style="{ height: '100%', background:'#FFFFFF'}">
2
+ <van-popup v-model="previewShowPopup" position="bottom" :style="{ height: '90%', background:'#FFFFFF'}">
3
+ <div class="footer">
4
+ <span>查看详情</span>
5
+ <section @click="close">
6
+ <i class="iconfont guoran-shanchu"></i>
7
+ </section>
8
+ </div>
3
9
  <div v-if="fileType == 'VIDEO'" style="width: 100%;height: calc(100% - 70px)">
4
10
  <video :src="url" controls width="100%;" height="98%"></video>
5
11
  </div>
@@ -15,11 +21,6 @@
15
21
  <template v-else>
16
22
  <iframe class="preview_iframe" :src="previewUrl" style="border:none;"></iframe>
17
23
  </template>
18
- <div class="footer">
19
- <section class="close_btn" @click="close">
20
- 关闭
21
- </section>
22
- </div>
23
24
  </van-popup>
24
25
  </template>
25
26
 
@@ -38,7 +39,7 @@ export default {
38
39
  },
39
40
  computed:{
40
41
  previewUrl() {
41
- let url = 'https://test.open.askbot.cn/kkfileview/onlinePreview?url='
42
+ let url = process.env.NODE_ENV === 'production' ? 'https://kkfileview.askbot.cn/onlinePreview?url=' : 'https://test.open.askbot.cn/kkfileview/onlinePreview?url='
42
43
  if(this.url != '') {
43
44
  if(/[\u4E00-\u9FA5]+/g.test(this.url)) {
44
45
  console.log('123123');
@@ -71,24 +72,16 @@ export default {
71
72
  <style lang="less" scoped>
72
73
  .preview_iframe {
73
74
  width: 100%;
74
- height: calc(100% - 60px);
75
+ height: calc(100% - 52px);
75
76
  }
76
77
  .footer {
77
- width: 100%;
78
+ width: calc(100% - 40px);
78
79
  height: 50px;
79
80
  display: flex;
80
- align-items: start ;
81
- justify-content: center;
81
+ align-items: center;
82
+ justify-content: space-between;
82
83
  cursor: pointer;
83
- .close_btn {
84
- width: 80%;
85
- height: 50px;
86
- border-radius: 50px;
87
- background: #EFF2F5;
88
- color: #999999;
89
- font-size: 14px;
90
- line-height: 50px;
91
- text-align: center;
92
- }
84
+ padding: 0 20px;
85
+ border-bottom: 1px solid #cccccc;
93
86
  }
94
87
  </style>