Commit ccf14a5d authored by 黄奎's avatar 黄奎

页面修改

parent c33bfb8b
...@@ -57,7 +57,6 @@ ...@@ -57,7 +57,6 @@
} }
} }
this.$refs.WebSiteEdit.initData(this.postMsg.AboutDataList); this.$refs.WebSiteEdit.initData(this.postMsg.AboutDataList);
console.log("this.postMsg", this.postMsg);
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
......
...@@ -339,7 +339,6 @@ ...@@ -339,7 +339,6 @@
}, },
methods: { methods: {
dragendLeft(e, item) { dragendLeft(e, item) {
console.log("dragendLeft", e);
var obj = { var obj = {
Id: item.TemplateKey, Id: item.TemplateKey,
plugData: item.TemplateData, plugData: item.TemplateData,
...@@ -350,26 +349,22 @@ ...@@ -350,26 +349,22 @@
}, },
//右边上下拖动开始 //右边上下拖动开始
handleDragStart(e, item) { handleDragStart(e, item) {
console.log("handleDragStart")
if (this.isDraggable) { if (this.isDraggable) {
this.dragging = item; this.dragging = item;
} }
}, },
handleDragEnd(e, item) { handleDragEnd(e, item) {
console.log("handleDragEnd")
if (this.isDraggable) { if (this.isDraggable) {
this.dragging = null this.dragging = null
} }
}, },
//首先把div变成可以放置的元素,即重写dragenter/dragover //首先把div变成可以放置的元素,即重写dragenter/dragover
handleDragOver(e) { handleDragOver(e) {
console.log("handleDragOver")
if (this.isDraggable) { if (this.isDraggable) {
e.dataTransfer.dropEffect = 'move' // e.dataTransfer.dropEffect="move";//在dragenter中针对放置目标来设置! e.dataTransfer.dropEffect = 'move' // e.dataTransfer.dropEffect="move";//在dragenter中针对放置目标来设置!
} }
}, },
handleDragEnter(e, item) { handleDragEnter(e, item) {
console.log("handleDragEnter")
if (this.isDraggable) { if (this.isDraggable) {
e.dataTransfer.effectAllowed = "move" //为需要移动的元素设置dragstart事件 e.dataTransfer.effectAllowed = "move" //为需要移动的元素设置dragstart事件
if (item === this.dragging) { if (item === this.dragging) {
...@@ -413,7 +408,6 @@ ...@@ -413,7 +408,6 @@
}, },
//从左拖动到右边开始 //从左拖动到右边开始
dragLeftStart(ev, item) { dragLeftStart(ev, item) {
console.log("dragLeftStart")
this.isDraggable = false; this.isDraggable = false;
var obj = { var obj = {
Id: item.TemplateKey, Id: item.TemplateKey,
...@@ -430,8 +424,6 @@ ...@@ -430,8 +424,6 @@
}, },
//从左拖动到右边结束 //从左拖动到右边结束
drop(ev, index) { drop(ev, index) {
console.log("ev", ev);
console.log("index", index);
if (!this.isDraggable) { if (!this.isDraggable) {
this.dataList.splice(index, 0, JSON.parse(JSON.stringify(this.dragObj))); this.dataList.splice(index, 0, JSON.parse(JSON.stringify(this.dragObj)));
} }
......
...@@ -57,7 +57,6 @@ ...@@ -57,7 +57,6 @@
} }
} }
this.$refs.WebSiteEdit.initData(this.postMsg.HomeDataList); this.$refs.WebSiteEdit.initData(this.postMsg.HomeDataList);
console.log("this.postMsg", this.postMsg);
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
......
...@@ -401,9 +401,6 @@ ...@@ -401,9 +401,6 @@
} }
}); });
} }
console.log("this.TripBgImgItem", this.TripBgImgItem);
console.log("this.TripBottonItem", this.TripBottonItem);
console.log("this.OtherList", this.OtherList);
} }
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
......
...@@ -54,7 +54,6 @@ ...@@ -54,7 +54,6 @@
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
var tempData = res.data.data; var tempData = res.data.data;
console.log(tempData,'data');
this.postMsg.PageDataList = tempData.PageDataList; this.postMsg.PageDataList = tempData.PageDataList;
this.postMsg.Id = tempData.Id; this.postMsg.Id = tempData.Id;
this.postMsg.PageName = tempData.PageName; this.postMsg.PageName = tempData.PageName;
...@@ -91,7 +90,6 @@ ...@@ -91,7 +90,6 @@
err => {} err => {}
); );
}, },
//获取模板数据 //获取模板数据
getNewTemplateData(templateDataList) { getNewTemplateData(templateDataList) {
this.postMsg.PageDataList = templateDataList; this.postMsg.PageDataList = templateDataList;
......
...@@ -199,7 +199,6 @@ ...@@ -199,7 +199,6 @@
DayNum: item.DayNum, DayNum: item.DayNum,
Price: item.B2BPrice, Price: item.B2BPrice,
}; };
console.log(obj);
this.plugData.Details[this.clickIndex].TripImageUrl = obj.imgUrl; this.plugData.Details[this.clickIndex].TripImageUrl = obj.imgUrl;
this.plugData.Details[this.clickIndex].Price = obj.Price; this.plugData.Details[this.clickIndex].Price = obj.Price;
this.plugData.Details[this.clickIndex].DayNum = obj.DayNum; this.plugData.Details[this.clickIndex].DayNum = obj.DayNum;
...@@ -210,7 +209,6 @@ ...@@ -210,7 +209,6 @@
}, },
}, },
mounted() { mounted() {
console.log(this.plugData, 'plugData');
}, },
}; };
......
...@@ -105,7 +105,7 @@ ...@@ -105,7 +105,7 @@
} }
}, },
mounted() { mounted() {
console.log(this.plugData, 'plugin');
}, },
}; };
......
...@@ -139,10 +139,8 @@ ...@@ -139,10 +139,8 @@
this.plugData.Details[this.checkIndex].ImageUrl=imgUrl; this.plugData.Details[this.checkIndex].ImageUrl=imgUrl;
}); });
} }
}, },
mounted() { mounted() {
console.log(this.plugData, 'plugData');
}, },
}; };
......
...@@ -121,10 +121,8 @@ ...@@ -121,10 +121,8 @@
}); });
} }
}, },
}, },
mounted() { mounted() {
console.log(this.plugData, 'plugData');
}, },
}; };
......
...@@ -103,10 +103,8 @@ ...@@ -103,10 +103,8 @@
this.plugData.Details[this.checkIndex].ImageUrl = imgUrl; this.plugData.Details[this.checkIndex].ImageUrl = imgUrl;
}); });
} }
}, },
mounted() { mounted() {
console.log(this.plugData, 'plugData');
}, },
}; };
......
...@@ -103,10 +103,8 @@ ...@@ -103,10 +103,8 @@
this.plugData.Details[this.checkIndex].ImageUrl=imgUrl; this.plugData.Details[this.checkIndex].ImageUrl=imgUrl;
}); });
} }
}, },
mounted() { mounted() {
console.log(this.plugData, 'plugData');
}, },
}; };
......
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
}; };
}, },
created() { created() {
console.log("plugData", this.plugData);
}, },
methods: { methods: {
//上传图片 //上传图片
......
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