Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
37b7309f
Commit
37b7309f
authored
Jul 30, 2019
by
duxinyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
度心愿
parent
db9d2e55
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
6 deletions
+21
-6
new_text.html
application/index/view/news/new_text.html
+14
-3
ueditor.config.js
public/resource/lib/ueditor/ueditor.config.js
+7
-3
1564452829664764.png
...ic/ueditor/php/upload/image/20190730/1564452829664764.png
+0
-0
No files found.
application/index/view/news/new_text.html
View file @
37b7309f
...
...
@@ -324,7 +324,7 @@
<label
class=
"col-sm-2 control-label"
>
内容:
</label>
<div
class=
"col-sm-9"
>
<div
class=
""
style=
"width: 100%;"
>
<iframe
id=
'dajiangtang'
style=
"width: 100%;height: 402px;border: 0;"
src=
"
baiduText
"
></iframe>
<iframe
id=
'dajiangtang'
style=
"width: 100%;height: 402px;border: 0;"
src=
""
></iframe>
<!--<div class="input-group" style="width: 100%;" id="dajiangtang">
<?php
if (CURRENT_URL == 'https://pre2.tonglianjituan.com/') {
...
...
@@ -400,4 +400,15 @@
<div
id=
"img_mask_area"
title=
"点击任意位置可关闭"
>
<img
/>
</div>
d
\ No newline at end of file
<script>
window
.
onload
=
function
(){
let
ServerHostImageLiu
=
'https://pre2.tonglianjituan.com'
;
//测试 本地 用 测试域名
// let ServerHostImageLiu = 'https://images.tonglianjituan.com';//测试 本地 暂时用正式域名
if
(
location
.
origin
===
'https://api.tonglianjituan.com'
)
{
ServerHostImageLiu
=
'https://images.tonglianjituan.com'
;
//正式用正式域名
};
let
a
=
ServerHostImageLiu
+
'/index/baiduText'
;
let
iframe
=
document
.
getElementById
(
'dajiangtang'
).
setAttribute
(
'src'
,
a
)
console
.
log
(
a
);
}
</script>
\ No newline at end of file
public/resource/lib/ueditor/ueditor.config.js
View file @
37b7309f
...
...
@@ -21,6 +21,7 @@
*/
var
URL
=
window
.
UEDITOR_HOME_URL
||
getUEBasePath
();
// var URL = 'https://images.tonglianjituan.com';
/**
* 配置项主体。注意,此处所有涉及到路径的配置别遗漏URL变量。
*/
...
...
@@ -432,6 +433,8 @@
function
getUEBasePath
(
docUrl
,
confUrl
)
{
// console.log(docUrl,confUrl,self.document.URL,self.location.href,getConfigFilePath())
return
getBasePath
(
docUrl
||
self
.
document
.
URL
||
self
.
location
.
href
,
confUrl
||
getConfigFilePath
());
}
...
...
@@ -448,7 +451,7 @@
var
basePath
=
confUrl
;
console
.
log
(
docUrl
,
confUrl
)
if
(
/^
(\/
|
\\\\)
/
.
test
(
confUrl
))
{
basePath
=
/^.+
?\w(\/
|
\\\\)
/
.
exec
(
docUrl
)[
0
]
+
confUrl
.
replace
(
/^
(\/
|
\\\\)
/
,
''
);
...
...
@@ -486,7 +489,8 @@
}
}
// https://images.tonglianjituan.com
console
.
log
(
protocol
+
res
.
join
(
"/"
))
return
protocol
+
res
.
join
(
"/"
);
}
...
...
@@ -494,5 +498,5 @@
window
.
UE
=
{
getUEBasePath
:
getUEBasePath
};
console
.
log
(
window
.
UE
)
})();
public/ueditor/php/upload/image/20190730/1564452829664764.png
0 → 100644
View file @
37b7309f
6.77 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment