askbot-dragon 1.6.76-beta → 1.6.77-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/README.md +27 -27
- package/babel.config.js +6 -6
- package/dragon.iml +7 -7
- package/package.json +55 -55
- package/public/index.html +72 -72
- package/src/App.vue +31 -31
- package/src/api/index.js +1 -1
- package/src/api/mock.http +2 -2
- package/src/api/requestUrl.js +185 -185
- package/src/assets/js/AliyunlssUtil.js +92 -92
- package/src/assets/js/Base64Util.js +22 -22
- package/src/assets/js/common.js +252 -252
- package/src/assets/js/hammer.js +100 -100
- package/src/assets/js/script.js +36 -36
- package/src/assets/less/common.css +6773 -6773
- package/src/assets/less/converSationContainer/common.less +199 -199
- package/src/assets/less/converSationContainer/converSatonContainer.less +493 -493
- package/src/assets/less/iconfont.css +37 -37
- package/src/assets/less/ticketMessage.less +294 -294
- package/src/components/ActionAlertIframe.vue +177 -177
- package/src/components/AiGuide.vue +466 -466
- package/src/components/AnswerDocknowledge.vue +1059 -1059
- package/src/components/AnswerVoice.vue +285 -285
- package/src/components/AskIFrame.vue +15 -15
- package/src/components/ConversationContainer.vue +4934 -4934
- package/src/components/FileType.vue +86 -86
- package/src/components/Message.vue +27 -27
- package/src/components/MyEditor.vue +351 -351
- package/src/components/actionSatisfaction.vue +107 -107
- package/src/components/actionSendToBot.vue +62 -62
- package/src/components/answerDissatisfaction.vue +62 -62
- package/src/components/answerRadio.vue +186 -186
- package/src/components/ask-components/DissatisfactionOptions.vue +57 -57
- package/src/components/ask-components/Msgloading.vue +37 -37
- package/src/components/ask-components/SatisfactionV2.vue +15 -15
- package/src/components/askVideo.vue +162 -162
- package/src/components/assetDetails.vue +378 -378
- package/src/components/assetMessage.vue +228 -228
- package/src/components/associationIntention.vue +355 -355
- package/src/components/attachmentPreview.vue +90 -90
- package/src/components/botActionSatisfactor.vue +68 -68
- package/src/components/chatContent.vue +513 -513
- package/src/components/feedBack.vue +136 -136
- package/src/components/fielListView.vue +351 -351
- package/src/components/file/AliyunOssComponents.vue +108 -108
- package/src/components/formTemplate.vue +3572 -3572
- package/src/components/intelligentSummary.vue +227 -227
- package/src/components/kkview.vue +1138 -1138
- package/src/components/loadingProcess.vue +164 -164
- package/src/components/message/ActionAlertIframe.vue +112 -112
- package/src/components/message/ShopMessage.vue +164 -164
- package/src/components/message/TextMessage.vue +924 -924
- package/src/components/message/TicketMessage.vue +201 -201
- package/src/components/message/swiper/index.js +4 -4
- package/src/components/message/swiper/ticketSwiper.vue +503 -503
- package/src/components/message/swiper/ticketSwiperItem.vue +61 -61
- package/src/components/msgLoading.vue +231 -231
- package/src/components/myPopup.vue +70 -70
- package/src/components/newPdfPosition.vue +877 -877
- package/src/components/pdfPosition.vue +1508 -1506
- package/src/components/popup.vue +227 -227
- package/src/components/previewDoc.vue +247 -247
- package/src/components/previewPdf.vue +788 -757
- package/src/components/receiverMessagePlatform.vue +65 -65
- package/src/components/recommend.vue +80 -80
- package/src/components/selector/hOption.vue +20 -20
- package/src/components/selector/hSelector.vue +199 -199
- package/src/components/selector/hWrapper.vue +216 -216
- package/src/components/senderMessagePlatform.vue +50 -50
- package/src/components/source/BotMessage.vue +24 -24
- package/src/components/source/CustomMessage.vue +24 -24
- package/src/components/test.vue +260 -260
- package/src/components/tree.vue +294 -294
- package/src/components/utils/AliyunIssUtil.js +81 -81
- package/src/components/utils/ckeditor.js +174 -174
- package/src/components/utils/format_date.js +25 -25
- package/src/components/utils/index.js +6 -6
- package/src/components/utils/math_utils.js +29 -29
- package/src/components/voiceComponent.vue +119 -119
- package/src/components/welcomeKnowledgeFile.vue +340 -340
- package/src/components/welcomeLlmCard.vue +140 -140
- package/src/components/welcomeSuggest.vue +97 -97
- package/src/main.js +57 -57
- package/vue.config.js +54 -54
|
@@ -1,178 +1,178 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div id="action_alert_iframe">
|
|
3
|
-
<div class="iframe-full-screen">
|
|
4
|
-
<span @click="showAskFullScreen = true" class="el-icon-full-screen"></span>
|
|
5
|
-
</div>
|
|
6
|
-
<iframe
|
|
7
|
-
class="grzh-iframe"
|
|
8
|
-
:id="tampId"
|
|
9
|
-
:data-name="tampId"
|
|
10
|
-
:src="actionAlertIframe.template"
|
|
11
|
-
:width="(actionAlertIframe.version == 1 && !phoneWidth100)?actionAlertIframe.width:'100%'"
|
|
12
|
-
:height="showAskFullScreen?'90%':actionAlertIframe.height"
|
|
13
|
-
:scrolling="actionAlertIframe.scrolling"
|
|
14
|
-
frameborder="no"
|
|
15
|
-
border="0"
|
|
16
|
-
></iframe>
|
|
17
|
-
|
|
18
|
-
<div v-if="showAskFullScreen" class="ask-full-screen">
|
|
19
|
-
<div class="iframe-full-screen">
|
|
20
|
-
<br>
|
|
21
|
-
<span @click="showAskFullScreen = false" style="cursor: pointer;">
|
|
22
|
-
<svg t="1702295921525" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="39588" width="20" height="20"><path d="M257.706667 376.32H128c-11.946667 0-21.333333-9.386667-21.333333-21.333333s9.386667-21.333333 21.333333-21.333334h129.706667c35.413333 0 64-28.586667 64-64V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333a106.666667 106.666667 0 0 1-106.666666 106.666667zM896 376.32h-129.706667a106.666667 106.666667 0 0 1-106.666666-106.666667V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333c0 35.413333 28.586667 64 64 64H896c11.946667 0 21.333333 9.386667 21.333333 21.333334s-9.386667 21.333333-21.333333 21.333333z" fill="#666666" p-id="39589"></path><path d="M896 376.32h-129.706667a106.666667 106.666667 0 0 1-106.666666-106.666667V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333c0 35.413333 28.586667 64 64 64H896c11.946667 0 21.333333 9.386667 21.333333 21.333334s-9.386667 21.333333-21.333333 21.333333zM257.706667 376.32H128c-11.946667 0-21.333333-9.386667-21.333333-21.333333s9.386667-21.333333 21.333333-21.333334h129.706667c35.413333 0 64-28.586667 64-64V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333a106.666667 106.666667 0 0 1-106.666666 106.666667zM680.96 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333a106.666667 106.666667 0 0 1 106.666666-106.666667H896c11.946667 0 21.333333 9.386667 21.333333 21.333333s-9.386667 21.333333-21.333333 21.333334h-129.706667c-35.413333 0-64 28.586667-64 64V896c0 11.946667-9.386667 21.333333-21.333333 21.333333zM343.04 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333c0-35.413333-28.586667-64-64-64H128c-11.946667 0-21.333333-9.386667-21.333333-21.333334s9.386667-21.333333 21.333333-21.333333h129.706667a106.666667 106.666667 0 0 1 106.666666 106.666667V896c0 11.946667-9.813333 21.333333-21.333333 21.333333z" fill="#666666" p-id="39590"></path><path d="M343.04 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333c0-35.413333-28.586667-64-64-64H128c-11.946667 0-21.333333-9.386667-21.333333-21.333334s9.386667-21.333333 21.333333-21.333333h129.706667a106.666667 106.666667 0 0 1 106.666666 106.666667V896c0 11.946667-9.813333 21.333333-21.333333 21.333333zM680.96 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333a106.666667 106.666667 0 0 1 106.666666-106.666667H896c11.946667 0 21.333333 9.386667 21.333333 21.333333s-9.386667 21.333333-21.333333 21.333334h-129.706667c-35.413333 0-64 28.586667-64 64V896c0 11.946667-9.386667 21.333333-21.333333 21.333333z" fill="#666666" p-id="39591"></path></svg>
|
|
23
|
-
</span>
|
|
24
|
-
</div>
|
|
25
|
-
<iframe
|
|
26
|
-
class="grzh-iframe"
|
|
27
|
-
:src="actionAlertIframe.template"
|
|
28
|
-
width="100%"
|
|
29
|
-
height="90%"
|
|
30
|
-
:scrolling="actionAlertIframe.scrolling"
|
|
31
|
-
frameborder="no"
|
|
32
|
-
border="0"
|
|
33
|
-
></iframe>
|
|
34
|
-
</div>
|
|
35
|
-
</div>
|
|
36
|
-
<!-- https://blog.csdn.net/qq_16992475/article/details/130633117 -->
|
|
37
|
-
</template>
|
|
38
|
-
<script>
|
|
39
|
-
export default {
|
|
40
|
-
name: "action_alert_iframe",
|
|
41
|
-
props: ["actionAlertIframe", "phoneWidth100"],
|
|
42
|
-
data() {
|
|
43
|
-
return {
|
|
44
|
-
name: "action_alert_iframe",
|
|
45
|
-
dataName: "",
|
|
46
|
-
tampId:'',
|
|
47
|
-
// 组件接收数据
|
|
48
|
-
actionAlertIframeObj: {
|
|
49
|
-
template: "url地址(可插入变量)",
|
|
50
|
-
description: "描述",
|
|
51
|
-
height: "frame高度",
|
|
52
|
-
width: "iframe 的宽度",
|
|
53
|
-
scrolling: "yes/no/auto(是否在 iframe 中显示滚动条)",
|
|
54
|
-
sandbox: [
|
|
55
|
-
"预留",
|
|
56
|
-
"启用一系列对 <iframe> 中内容的额外限制",
|
|
57
|
-
"参考 https://www.w3school.com.cn/tags/att_iframe_sandbox.asp",
|
|
58
|
-
],
|
|
59
|
-
frameborder: "0/1(是否显示框架周围的边框)",
|
|
60
|
-
displayStyle:
|
|
61
|
-
"iframe 样式(点击弹出/嵌入iframe 字符串类型后端未做限制)",
|
|
62
|
-
},
|
|
63
|
-
showAskFullScreen: false,
|
|
64
|
-
};
|
|
65
|
-
},
|
|
66
|
-
methods: {},
|
|
67
|
-
mounted() {
|
|
68
|
-
this.tampId = 'iframeId++' + new Date().getTime();
|
|
69
|
-
let tampUrl = this.actionAlertIframe.template;
|
|
70
|
-
function GetRequest() {
|
|
71
|
-
var url = tampUrl.split("?")[1]; //获取url中"?"符后的字串
|
|
72
|
-
var theRequest = new Object();
|
|
73
|
-
if (url) {
|
|
74
|
-
// var str = url.substr(1);
|
|
75
|
-
let strs = url.split("&");
|
|
76
|
-
for (var i = 0; i < strs.length; i++) {
|
|
77
|
-
theRequest[strs[i].split("=")[0]] = unescape(
|
|
78
|
-
strs[i].split("=")[1]
|
|
79
|
-
);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
return theRequest;
|
|
83
|
-
}
|
|
84
|
-
if (JSON.stringify(GetRequest()) == "{}") {
|
|
85
|
-
this.actionAlertIframe.template = this.actionAlertIframe.template + "?iframeId=" + this.tampId
|
|
86
|
-
} else {
|
|
87
|
-
this.actionAlertIframe.template = this.actionAlertIframe.template + "&iframeId=" + this.tampId
|
|
88
|
-
}
|
|
89
|
-
this.actionAlertIframe.template = this.actionAlertIframe.template.split("&").join("&")
|
|
90
|
-
|
|
91
|
-
// 监听回退事件
|
|
92
|
-
let _that = this;
|
|
93
|
-
|
|
94
|
-
(function () {
|
|
95
|
-
console.log(95, 'addEventListener window.onpopstate');
|
|
96
|
-
if (window.history && window.history.pushState) {
|
|
97
|
-
console.log(97, 'window.history && window.history.pushState');
|
|
98
|
-
window.onpopstate = function (e) {
|
|
99
|
-
console.log(9999, 'window.onpopstate innner', e);
|
|
100
|
-
if (_that.showAskFullScreen) {
|
|
101
|
-
window.history.go(1);
|
|
102
|
-
}
|
|
103
|
-
// window.history.pushState('forward', null, '');
|
|
104
|
-
// window.history.forward(1);
|
|
105
|
-
_that.showAskFullScreen = false;
|
|
106
|
-
if ( e && e.stopPropagation ) {
|
|
107
|
-
console.log(105, 'e.stopPropagation');
|
|
108
|
-
e.stopPropagation();
|
|
109
|
-
}
|
|
110
|
-
};
|
|
111
|
-
}
|
|
112
|
-
})();
|
|
113
|
-
},
|
|
114
|
-
};
|
|
115
|
-
</script>
|
|
116
|
-
<style lang="less" scoped>
|
|
117
|
-
// <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
118
|
-
|
|
119
|
-
#action_alert_iframe {
|
|
120
|
-
width: 100%;
|
|
121
|
-
margin: 0 auto;
|
|
122
|
-
overflow-x: auto;
|
|
123
|
-
|
|
124
|
-
.iframe-full-screen{
|
|
125
|
-
text-align: right;
|
|
126
|
-
padding-right: 12px;
|
|
127
|
-
.el-icon-full-screen{
|
|
128
|
-
cursor: pointer;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.ask-full-screen{
|
|
133
|
-
background-color: white;
|
|
134
|
-
position: fixed;
|
|
135
|
-
top: 0;
|
|
136
|
-
left: 0;
|
|
137
|
-
width: 100vw;
|
|
138
|
-
height: 100vh;
|
|
139
|
-
z-index: 9999999999999999999;
|
|
140
|
-
}
|
|
141
|
-
.grzh-iframe {
|
|
142
|
-
scrollbar-face-color: #9aa1c4;
|
|
143
|
-
/* 滚动条滑块按钮的颜色 */
|
|
144
|
-
scrollbar-highlight-color: #f60;
|
|
145
|
-
/* 滚动条整体颜色 */
|
|
146
|
-
scrollbar-3dlight-color: #f00;
|
|
147
|
-
scrollbar-darkshadow-color: #000;
|
|
148
|
-
/* 滚动条阴影 */
|
|
149
|
-
scrollbar-shadow-color: #000;
|
|
150
|
-
/* 三角箭头颜色 */
|
|
151
|
-
scrollbar-arrow-color: #394264;
|
|
152
|
-
/* 滚动条轨道颜色 */
|
|
153
|
-
scrollbar-track-color: #394264;
|
|
154
|
-
|
|
155
|
-
::-webkit-scrollbar {
|
|
156
|
-
width: 5px;
|
|
157
|
-
height: 5px;
|
|
158
|
-
}
|
|
159
|
-
::-webkit-scrollbar-thumb {
|
|
160
|
-
background-color: #999;
|
|
161
|
-
-webkit-border-radius: 5px;
|
|
162
|
-
border-radius: 5px;
|
|
163
|
-
}
|
|
164
|
-
::-webkit-scrollbar-thumb:vertical:hover {
|
|
165
|
-
background-color: #666;
|
|
166
|
-
}
|
|
167
|
-
::-webkit-scrollbar-thumb:vertical:active {
|
|
168
|
-
background-color: #333;
|
|
169
|
-
}
|
|
170
|
-
::-webkit-scrollbar-button {
|
|
171
|
-
display: none;
|
|
172
|
-
}
|
|
173
|
-
::-webkit-scrollbar-track {
|
|
174
|
-
background-color: #f1f1f1;
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
}
|
|
1
|
+
<template>
|
|
2
|
+
<div id="action_alert_iframe">
|
|
3
|
+
<div class="iframe-full-screen">
|
|
4
|
+
<span @click="showAskFullScreen = true" class="el-icon-full-screen"></span>
|
|
5
|
+
</div>
|
|
6
|
+
<iframe
|
|
7
|
+
class="grzh-iframe"
|
|
8
|
+
:id="tampId"
|
|
9
|
+
:data-name="tampId"
|
|
10
|
+
:src="actionAlertIframe.template"
|
|
11
|
+
:width="(actionAlertIframe.version == 1 && !phoneWidth100)?actionAlertIframe.width:'100%'"
|
|
12
|
+
:height="showAskFullScreen?'90%':actionAlertIframe.height"
|
|
13
|
+
:scrolling="actionAlertIframe.scrolling"
|
|
14
|
+
frameborder="no"
|
|
15
|
+
border="0"
|
|
16
|
+
></iframe>
|
|
17
|
+
|
|
18
|
+
<div v-if="showAskFullScreen" class="ask-full-screen">
|
|
19
|
+
<div class="iframe-full-screen">
|
|
20
|
+
<br>
|
|
21
|
+
<span @click="showAskFullScreen = false" style="cursor: pointer;">
|
|
22
|
+
<svg t="1702295921525" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="39588" width="20" height="20"><path d="M257.706667 376.32H128c-11.946667 0-21.333333-9.386667-21.333333-21.333333s9.386667-21.333333 21.333333-21.333334h129.706667c35.413333 0 64-28.586667 64-64V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333a106.666667 106.666667 0 0 1-106.666666 106.666667zM896 376.32h-129.706667a106.666667 106.666667 0 0 1-106.666666-106.666667V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333c0 35.413333 28.586667 64 64 64H896c11.946667 0 21.333333 9.386667 21.333333 21.333334s-9.386667 21.333333-21.333333 21.333333z" fill="#666666" p-id="39589"></path><path d="M896 376.32h-129.706667a106.666667 106.666667 0 0 1-106.666666-106.666667V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333c0 35.413333 28.586667 64 64 64H896c11.946667 0 21.333333 9.386667 21.333333 21.333334s-9.386667 21.333333-21.333333 21.333333zM257.706667 376.32H128c-11.946667 0-21.333333-9.386667-21.333333-21.333333s9.386667-21.333333 21.333333-21.333334h129.706667c35.413333 0 64-28.586667 64-64V128c0-11.946667 9.386667-21.333333 21.333333-21.333333s21.333333 9.386667 21.333333 21.333333v141.653333a106.666667 106.666667 0 0 1-106.666666 106.666667zM680.96 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333a106.666667 106.666667 0 0 1 106.666666-106.666667H896c11.946667 0 21.333333 9.386667 21.333333 21.333333s-9.386667 21.333333-21.333333 21.333334h-129.706667c-35.413333 0-64 28.586667-64 64V896c0 11.946667-9.386667 21.333333-21.333333 21.333333zM343.04 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333c0-35.413333-28.586667-64-64-64H128c-11.946667 0-21.333333-9.386667-21.333333-21.333334s9.386667-21.333333 21.333333-21.333333h129.706667a106.666667 106.666667 0 0 1 106.666666 106.666667V896c0 11.946667-9.813333 21.333333-21.333333 21.333333z" fill="#666666" p-id="39590"></path><path d="M343.04 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333c0-35.413333-28.586667-64-64-64H128c-11.946667 0-21.333333-9.386667-21.333333-21.333334s9.386667-21.333333 21.333333-21.333333h129.706667a106.666667 106.666667 0 0 1 106.666666 106.666667V896c0 11.946667-9.813333 21.333333-21.333333 21.333333zM680.96 917.333333c-11.946667 0-21.333333-9.386667-21.333333-21.333333v-141.653333a106.666667 106.666667 0 0 1 106.666666-106.666667H896c11.946667 0 21.333333 9.386667 21.333333 21.333333s-9.386667 21.333333-21.333333 21.333334h-129.706667c-35.413333 0-64 28.586667-64 64V896c0 11.946667-9.386667 21.333333-21.333333 21.333333z" fill="#666666" p-id="39591"></path></svg>
|
|
23
|
+
</span>
|
|
24
|
+
</div>
|
|
25
|
+
<iframe
|
|
26
|
+
class="grzh-iframe"
|
|
27
|
+
:src="actionAlertIframe.template"
|
|
28
|
+
width="100%"
|
|
29
|
+
height="90%"
|
|
30
|
+
:scrolling="actionAlertIframe.scrolling"
|
|
31
|
+
frameborder="no"
|
|
32
|
+
border="0"
|
|
33
|
+
></iframe>
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
<!-- https://blog.csdn.net/qq_16992475/article/details/130633117 -->
|
|
37
|
+
</template>
|
|
38
|
+
<script>
|
|
39
|
+
export default {
|
|
40
|
+
name: "action_alert_iframe",
|
|
41
|
+
props: ["actionAlertIframe", "phoneWidth100"],
|
|
42
|
+
data() {
|
|
43
|
+
return {
|
|
44
|
+
name: "action_alert_iframe",
|
|
45
|
+
dataName: "",
|
|
46
|
+
tampId:'',
|
|
47
|
+
// 组件接收数据
|
|
48
|
+
actionAlertIframeObj: {
|
|
49
|
+
template: "url地址(可插入变量)",
|
|
50
|
+
description: "描述",
|
|
51
|
+
height: "frame高度",
|
|
52
|
+
width: "iframe 的宽度",
|
|
53
|
+
scrolling: "yes/no/auto(是否在 iframe 中显示滚动条)",
|
|
54
|
+
sandbox: [
|
|
55
|
+
"预留",
|
|
56
|
+
"启用一系列对 <iframe> 中内容的额外限制",
|
|
57
|
+
"参考 https://www.w3school.com.cn/tags/att_iframe_sandbox.asp",
|
|
58
|
+
],
|
|
59
|
+
frameborder: "0/1(是否显示框架周围的边框)",
|
|
60
|
+
displayStyle:
|
|
61
|
+
"iframe 样式(点击弹出/嵌入iframe 字符串类型后端未做限制)",
|
|
62
|
+
},
|
|
63
|
+
showAskFullScreen: false,
|
|
64
|
+
};
|
|
65
|
+
},
|
|
66
|
+
methods: {},
|
|
67
|
+
mounted() {
|
|
68
|
+
this.tampId = 'iframeId++' + new Date().getTime();
|
|
69
|
+
let tampUrl = this.actionAlertIframe.template;
|
|
70
|
+
function GetRequest() {
|
|
71
|
+
var url = tampUrl.split("?")[1]; //获取url中"?"符后的字串
|
|
72
|
+
var theRequest = new Object();
|
|
73
|
+
if (url) {
|
|
74
|
+
// var str = url.substr(1);
|
|
75
|
+
let strs = url.split("&");
|
|
76
|
+
for (var i = 0; i < strs.length; i++) {
|
|
77
|
+
theRequest[strs[i].split("=")[0]] = unescape(
|
|
78
|
+
strs[i].split("=")[1]
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
return theRequest;
|
|
83
|
+
}
|
|
84
|
+
if (JSON.stringify(GetRequest()) == "{}") {
|
|
85
|
+
this.actionAlertIframe.template = this.actionAlertIframe.template + "?iframeId=" + this.tampId
|
|
86
|
+
} else {
|
|
87
|
+
this.actionAlertIframe.template = this.actionAlertIframe.template + "&iframeId=" + this.tampId
|
|
88
|
+
}
|
|
89
|
+
this.actionAlertIframe.template = this.actionAlertIframe.template.split("&").join("&")
|
|
90
|
+
|
|
91
|
+
// 监听回退事件
|
|
92
|
+
let _that = this;
|
|
93
|
+
|
|
94
|
+
(function () {
|
|
95
|
+
console.log(95, 'addEventListener window.onpopstate');
|
|
96
|
+
if (window.history && window.history.pushState) {
|
|
97
|
+
console.log(97, 'window.history && window.history.pushState');
|
|
98
|
+
window.onpopstate = function (e) {
|
|
99
|
+
console.log(9999, 'window.onpopstate innner', e);
|
|
100
|
+
if (_that.showAskFullScreen) {
|
|
101
|
+
window.history.go(1);
|
|
102
|
+
}
|
|
103
|
+
// window.history.pushState('forward', null, '');
|
|
104
|
+
// window.history.forward(1);
|
|
105
|
+
_that.showAskFullScreen = false;
|
|
106
|
+
if ( e && e.stopPropagation ) {
|
|
107
|
+
console.log(105, 'e.stopPropagation');
|
|
108
|
+
e.stopPropagation();
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
})();
|
|
113
|
+
},
|
|
114
|
+
};
|
|
115
|
+
</script>
|
|
116
|
+
<style lang="less" scoped>
|
|
117
|
+
// <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
118
|
+
|
|
119
|
+
#action_alert_iframe {
|
|
120
|
+
width: 100%;
|
|
121
|
+
margin: 0 auto;
|
|
122
|
+
overflow-x: auto;
|
|
123
|
+
|
|
124
|
+
.iframe-full-screen{
|
|
125
|
+
text-align: right;
|
|
126
|
+
padding-right: 12px;
|
|
127
|
+
.el-icon-full-screen{
|
|
128
|
+
cursor: pointer;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.ask-full-screen{
|
|
133
|
+
background-color: white;
|
|
134
|
+
position: fixed;
|
|
135
|
+
top: 0;
|
|
136
|
+
left: 0;
|
|
137
|
+
width: 100vw;
|
|
138
|
+
height: 100vh;
|
|
139
|
+
z-index: 9999999999999999999;
|
|
140
|
+
}
|
|
141
|
+
.grzh-iframe {
|
|
142
|
+
scrollbar-face-color: #9aa1c4;
|
|
143
|
+
/* 滚动条滑块按钮的颜色 */
|
|
144
|
+
scrollbar-highlight-color: #f60;
|
|
145
|
+
/* 滚动条整体颜色 */
|
|
146
|
+
scrollbar-3dlight-color: #f00;
|
|
147
|
+
scrollbar-darkshadow-color: #000;
|
|
148
|
+
/* 滚动条阴影 */
|
|
149
|
+
scrollbar-shadow-color: #000;
|
|
150
|
+
/* 三角箭头颜色 */
|
|
151
|
+
scrollbar-arrow-color: #394264;
|
|
152
|
+
/* 滚动条轨道颜色 */
|
|
153
|
+
scrollbar-track-color: #394264;
|
|
154
|
+
|
|
155
|
+
::-webkit-scrollbar {
|
|
156
|
+
width: 5px;
|
|
157
|
+
height: 5px;
|
|
158
|
+
}
|
|
159
|
+
::-webkit-scrollbar-thumb {
|
|
160
|
+
background-color: #999;
|
|
161
|
+
-webkit-border-radius: 5px;
|
|
162
|
+
border-radius: 5px;
|
|
163
|
+
}
|
|
164
|
+
::-webkit-scrollbar-thumb:vertical:hover {
|
|
165
|
+
background-color: #666;
|
|
166
|
+
}
|
|
167
|
+
::-webkit-scrollbar-thumb:vertical:active {
|
|
168
|
+
background-color: #333;
|
|
169
|
+
}
|
|
170
|
+
::-webkit-scrollbar-button {
|
|
171
|
+
display: none;
|
|
172
|
+
}
|
|
173
|
+
::-webkit-scrollbar-track {
|
|
174
|
+
background-color: #f1f1f1;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
178
|
</style>
|