Commit a420e504 authored by agping's avatar agping

代码优化

parent 451e7685
...@@ -86,6 +86,7 @@ class Basic extends Controller ...@@ -86,6 +86,7 @@ class Basic extends Controller
'index/checkReferrer', 'index/checkReferrer',
'index/getActivityCoupon', 'index/getActivityCoupon',
'index/ceshi', 'index/ceshi',
'index/baiduText',
); );
/** /**
......
...@@ -38,7 +38,6 @@ ...@@ -38,7 +38,6 @@
//新增 置空内容 //新增 置空内容
window.addEventListener('message', function (e) { window.addEventListener('message', function (e) {
if(e.data*1 == 2){ if(e.data*1 == 2){
console.log(555)
ue.ready(function() { ue.ready(function() {
ue.setContent(''); ue.setContent('');
}); });
......
...@@ -223,7 +223,7 @@ define (['doT', 'text!temp/opensquareList_template_tpl.html','ckfinder','ckfinde ...@@ -223,7 +223,7 @@ define (['doT', 'text!temp/opensquareList_template_tpl.html','ckfinder','ckfinde
iFrame.onload = function(){ iFrame.onload = function(){
//iframe加载完立即发送一条消息 //iframe加载完立即发送一条消息
iFrame.contentWindow.postMessage(data.data.content,'*'); iFrame.contentWindow.postMessage(data.data.content,'*');
console.log(data.data.content); // console.log(data.data.content);
} }
var _data = data['data']; var _data = data['data'];
...@@ -249,7 +249,7 @@ define (['doT', 'text!temp/opensquareList_template_tpl.html','ckfinder','ckfinde ...@@ -249,7 +249,7 @@ define (['doT', 'text!temp/opensquareList_template_tpl.html','ckfinder','ckfinde
dataType: "json", dataType: "json",
success: function(data) { success: function(data) {
if(data.code == 200) { if(data.code == 200) {
console.log(555) // console.log(555)
$(".detail-title").html(data.data.title); $(".detail-title").html(data.data.title);
$(".detail-time").html(data.data.create_time); $(".detail-time").html(data.data.create_time);
$(".detail-content").html(data.data.content); $(".detail-content").html(data.data.content);
......
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