Commit e2472077 authored by duxinyuan's avatar duxinyuan

修改商学院。。。。

parent 533032ad
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<script type="text/javascript" charset="utf-8" src="/resource/lib/ueditor/lang/zh-cn/zh-cn.js"></script> <script type="text/javascript" charset="utf-8" src="/resource/lib/ueditor/lang/zh-cn/zh-cn.js"></script>
<div> <div>
<script type="text/plain" id="myEditor" style="width:760px;height:376px;"> <script type="text/plain" id="myEditor" style="width:100%;height:376px;">
</script> </script>
</div> </div>
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
//编辑 新增 提交内容 //编辑 新增 提交内容
window.addEventListener('message', function (e) { window.addEventListener('message', function (e) {
if(e.data*1 == 1){ if(e.data*1 == 1){
console.log(window.parent)
window.parent.postMessage(ue.getContent(),'*'); window.parent.postMessage(ue.getContent(),'*');
} }
}, false); }, false);
...@@ -43,6 +44,11 @@ ...@@ -43,6 +44,11 @@
}); });
} }
}, false); }, false);
window.onload = function(a){
document.getElementById('edui1').style.width = '100%';
document.getElementById('edui1_iframeholder').style.width = '100%'
}
</script> </script>
</body> </body>
......
...@@ -288,6 +288,7 @@ ...@@ -288,6 +288,7 @@
</ul> </ul>
</div>--> </div>-->
<div class="col-xs-9"> <div class="col-xs-9">
<ul class="list-group"> <ul class="list-group">
<li class="list-group-item"> <li class="list-group-item">
...@@ -318,11 +319,13 @@ ...@@ -318,11 +319,13 @@
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-2 control-label">内容:</label> <label class="col-sm-2 control-label">内容:</label>
<div class="col-sm-9"> <div class="col-sm-9">
<div class="" style="width: 100%;"> <div class="" style="width: 100%;">
<div class="input-group" style="width: 100%;" id="dajiangtang"> <iframe id='dajiangtang' style="width: 100%;height: 402px;border: 0;" src="baiduText"></iframe>
<!--<div class="input-group" style="width: 100%;" id="dajiangtang">
<?php <?php
if (CURRENT_URL == 'https://pre2.tonglianjituan.com/') { if (CURRENT_URL == 'https://pre2.tonglianjituan.com/') {
$url = 'https://pre2.tonglianjituan.com/'; $url = 'https://pre2.tonglianjituan.com/';
...@@ -331,7 +334,7 @@ ...@@ -331,7 +334,7 @@
} }
create_editor('goods_sup_id','',['filebrowserUploadUrl'=>$url.'index/uploadEditor?type=business_school']); create_editor('goods_sup_id','',['filebrowserUploadUrl'=>$url.'index/uploadEditor?type=business_school']);
?> ?>
</div> </div>-->
</div> </div>
</div> </div>
...@@ -397,3 +400,4 @@ ...@@ -397,3 +400,4 @@
<div id="img_mask_area" title="点击任意位置可关闭"> <div id="img_mask_area" title="点击任意位置可关闭">
<img /> <img />
</div> </div>
d
\ No newline at end of file
...@@ -499,7 +499,7 @@ ...@@ -499,7 +499,7 @@
<label class="col-sm-2 control-label">内容:</label> <label class="col-sm-2 control-label">内容:</label>
<div class="col-sm-9"> <div class="col-sm-9">
<div> <div>
<iframe id='ifram-kaipan' style="width: 782px;height: 402px;border: 0;"></iframe> <iframe id='ifram-kaipan' style="width: 782px;height: 402px;border: 0;" src="baiduText"></iframe>
<!--加载编辑器的容器--> <!--加载编辑器的容器-->
<!--<script type="text/plain" id="myEditor" style="width:716px;height:300px;"> <!--<script type="text/plain" id="myEditor" style="width:716px;height:300px;">
</script> </script>
......
...@@ -23,4 +23,4 @@ ...@@ -23,4 +23,4 @@
if(!doc.addEventListener) return; if(!doc.addEventListener) return;
win.addEventListener(resizeEvt, recalc, false); win.addEventListener(resizeEvt, recalc, false);
doc.addEventListener('DOMContentLoaded', recalc, false); doc.addEventListener('DOMContentLoaded', recalc, false);
})(document, window);</script><link href=./static/css/app.6cd03a207b1077bd0caf48cd7df40c33.css rel=stylesheet></head><body><div id=app></div><script src=https://api.tonglianjituan.com/app/js/libs/vue.min.js></script><script src=https://api.tonglianjituan.com/app/js/libs/vue-router.min.js></script><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.1b35a927314506fe4a4f.js></script><script type=text/javascript src=./static/js/app.ad0e0d131a0261acd8c6.js></script></body></html> })(document, window);</script><link href=./static/css/app.9ddeca9c5d719cc60e2686573e525ac9.css rel=stylesheet></head><body><div id=app></div><script src=https://api.tonglianjituan.com/app/js/libs/vue.min.js></script><script src=https://api.tonglianjituan.com/app/js/libs/vue-router.min.js></script><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.1b35a927314506fe4a4f.js></script><script type=text/javascript src=./static/js/app.208ae12f6ff101858775.js></script></body></html>
\ No newline at end of file \ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -26,7 +26,8 @@ ...@@ -26,7 +26,8 @@
<span>经纪人</span> <span>经纪人</span>
</div> </div>
<div class="border_line_right left" style="width:1.46rem;" v-if="index==0 "> <div class="border_line_right left" style="width:1.46rem;" v-if="index==0 ">
<span>{{ userType == 0 ? "客户ID" : "房东编号"}}</span> <!--<span>{{ userType == 0 ? "客户ID" : "房东编号"}}</span>-->
<span>客户ID/房东编号</span>
</div> </div>
<div class="left" style="width:1.46rem" v-if="index==0 "> <div class="left" style="width:1.46rem" v-if="index==0 ">
<span>通话时长</span> <span>通话时长</span>
...@@ -222,15 +223,16 @@ ...@@ -222,15 +223,16 @@
console.log(status); console.log(status);
that.agent_status = status ; that.agent_status = status ;
that.pageNo = 1 ; that.pageNo = 1 ;
if ( status == 1 ){ // if ( status == 1 ){
that.startTime0 = that.thisday; // that.startTime0 = that.thisday;
} // }
this.initData(); this.initData();
}, },
handleScroll(){ handleScroll(){
this.a = document.body.scrollHeight || document.documentElement.scrollHeight; this.a = document.body.scrollHeight || document.documentElement.scrollHeight;
this.b = document.body.scrollTop || document.documentElement.scrollTop; this.b = document.body.scrollTop || document.documentElement.scrollTop;
//通过判断滚动条的top位置与可视网页之和与整个网页的高度是否相等来决定是否加载内容; //通过判断滚动条的top位置与可视网页之和与整个网页的高度是否相等来决定是否加载内容;
if ( this.items >= this.pageSize ){
if (this.b + this.c > this.a - 20) { if (this.b + this.c > this.a - 20) {
// this.$router.push('./intelligenceb'); // this.$router.push('./intelligenceb');
setTimeout(()=> { setTimeout(()=> {
...@@ -239,6 +241,7 @@ ...@@ -239,6 +241,7 @@
this.initData(); this.initData();
},800); },800);
} }
}
}, },
searchInfo : function(){ searchInfo : function(){
var that = this ; var that = this ;
...@@ -339,11 +342,13 @@ ...@@ -339,11 +342,13 @@
// return false // return false
// } // }
//agent_status //agent_status
console.log(that.agent_status)
var params = { var params = {
// 'start_date' : that.agent_status == 1 ? that.thisday : startTime , // 'start_date' : that.agent_status == 1 ? that.thisday : startTime ,
'start_date' : startTime , 'start_date' : startTime ,
// 'end_date' : endTime, // 'end_date' : endTime,
"agents_id" : that.urlParams.agents_id , "agents_id" : that.agent_status == 0 ? '' : that.urlParams.agents_id ,
'AuthToken' : that.urlParams.token, 'AuthToken' : that.urlParams.token,
// "users_id" : that.agent_status == 1 ? '' : id, // "users_id" : that.agent_status == 1 ? '' : id,
"users_id" : id, "users_id" : id,
......
...@@ -75,7 +75,7 @@ define (['doT', 'text!temp/opensquareList_template_tpl.html','ckfinder','ckfinde ...@@ -75,7 +75,7 @@ define (['doT', 'text!temp/opensquareList_template_tpl.html','ckfinder','ckfinde
$('.is-add').html('发布开盘') $('.is-add').html('发布开盘')
var iFrame2 = document.getElementById('ifram-kaipan'); var iFrame2 = document.getElementById('ifram-kaipan');
iFrame2.contentWindow.postMessage('2','*'); iFrame2.contentWindow.postMessage('2','*');
$('#ifram-kaipan').attr('src',ServerHostImageLiu + '/index/baiduText'); // $('#ifram-kaipan').attr('src',ServerHostImageLiu + '/index/baiduText');
user.getDistrict(); user.getDistrict();
user.switchUrl = '/index/addSquare'; user.switchUrl = '/index/addSquare';
}); });
...@@ -206,7 +206,7 @@ define (['doT', 'text!temp/opensquareList_template_tpl.html','ckfinder','ckfinde ...@@ -206,7 +206,7 @@ define (['doT', 'text!temp/opensquareList_template_tpl.html','ckfinder','ckfinde
_doc.on('click','.edit_modal_btn' ,function(e){//点击编辑 _doc.on('click','.edit_modal_btn' ,function(e){//点击编辑
user.announcementdel_id = $ (this).attr ("data-id"); user.announcementdel_id = $ (this).attr ("data-id");
user.is_add = 0; user.is_add = 0;
$('#ifram-kaipan').attr('src',ServerHostImageLiu + '/index/baiduText'); // $('#ifram-kaipan').attr('src',ServerHostImageLiu + '/index/baiduText');
user.text_details(); user.text_details();
}); });
......
...@@ -84,7 +84,16 @@ define(['doT', 'text!temp/schoolBusiness_template_tpl.html', 'ckfinder', 'ckfind ...@@ -84,7 +84,16 @@ define(['doT', 'text!temp/schoolBusiness_template_tpl.html', 'ckfinder', 'ckfind
// 新增文章 // 新增文章
$(document).delegate("#add_news", "click", function() { //保存新增文章 $(document).delegate("#add_news", "click", function() { //保存新增文章
user.user_id = $(this).attr("data-id"); user.user_id = $(this).attr("data-id");
user.add_news(); // window.onmessage = function(e){
// console.log(e);
window.onmessage = function(r){
console.log(r);
console.log(user)
user.add_news123(r.data);
}
document.getElementById('dajiangtang').contentWindow.postMessage('1','*')
// user.add_news();
}); });
_doc.on('click', '.jian_class>ul>li', function() { _doc.on('click', '.jian_class>ul>li', function() {
var _this = $(this); var _this = $(this);
...@@ -338,7 +347,8 @@ define(['doT', 'text!temp/schoolBusiness_template_tpl.html', 'ckfinder', 'ckfind ...@@ -338,7 +347,8 @@ define(['doT', 'text!temp/schoolBusiness_template_tpl.html', 'ckfinder', 'ckfind
}; };
//获取编辑器里的内容 //获取编辑器里的内容
// setCKeditorValue(id,content) // setCKeditorValue(id,content)
setCKeditorValue("goods_sup_id", _data['content']); // setCKeditorValue("goods_sup_id", _data['content']);
document.getElementById('dajiangtang').contentWindow.postMessage(_data['content'],'*')
//附件 //附件
...@@ -396,7 +406,8 @@ define(['doT', 'text!temp/schoolBusiness_template_tpl.html', 'ckfinder', 'ckfind ...@@ -396,7 +406,8 @@ define(['doT', 'text!temp/schoolBusiness_template_tpl.html', 'ckfinder', 'ckfind
} }
}); });
}, },
add_news: function() { //新增文章 编辑文章
add_news123: function(test) { //新增文章 编辑文章
if ($('.titleImg')) { if ($('.titleImg')) {
var pic = $('.titleImg').attr("data-name"); var pic = $('.titleImg').attr("data-name");
} }
...@@ -405,7 +416,9 @@ define(['doT', 'text!temp/schoolBusiness_template_tpl.html', 'ckfinder', 'ckfind ...@@ -405,7 +416,9 @@ define(['doT', 'text!temp/schoolBusiness_template_tpl.html', 'ckfinder', 'ckfind
var _liebiaoPicObj = $('.titleImg'); var _liebiaoPicObj = $('.titleImg');
var _urlCut = location.origin + '/resource/lib/Attachments/images/'; //要截取的部分url var _urlCut = location.origin + '/resource/lib/Attachments/images/'; //要截取的部分url
var _dajiangtangObj = $('#dajiangtang'); //大讲堂 var _dajiangtangObj = $('#dajiangtang'); //大讲堂
var _dajiangtangVal = getCKeditorValue("goods_sup_id"); // var _dajiangtangVal = getCKeditorValue("goods_sup_id");
// var _dajiangtangVal = document.getElementById('dajiangtang').contentWindow.postMessage('1','*');
var _dajiangtangVal = test;
console.log(_dajiangtangVal); console.log(_dajiangtangVal);
if(_liebiaoPicObj.length < 1) { if(_liebiaoPicObj.length < 1) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment