diff --git a/src/pages/exchangepage/edittemplate/couponCard/goodsPage/config/title.js b/src/pages/exchangepage/edittemplate/couponCard/goodsPage/config/title.js
index ed7062e3..5e073c37 100644
--- a/src/pages/exchangepage/edittemplate/couponCard/goodsPage/config/title.js
+++ b/src/pages/exchangepage/edittemplate/couponCard/goodsPage/config/title.js
@@ -27,7 +27,6 @@ export default class Title extends React.Component {
}
}
changeConfig(attr,value){
- console.log(36,attr,value);
this.setState({ [attr]: value })
Bus.emit('titleBarConfig', {attr,value})
}
@@ -78,7 +77,6 @@ export default class Title extends React.Component {
count += 2;
report(count);
setTimeout(update, 500);
- console.log("上传中")
}
else {
diff --git a/src/pages/exchangepage/edittemplate/couponCard/landPage.js b/src/pages/exchangepage/edittemplate/couponCard/landPage.js
index f00d4bf4..e9d23c3c 100644
--- a/src/pages/exchangepage/edittemplate/couponCard/landPage.js
+++ b/src/pages/exchangepage/edittemplate/couponCard/landPage.js
@@ -122,7 +122,6 @@ export default class couponLandpage extends React.Component {
count += 2;
report(count);
setTimeout(update, 500);
- console.log("上传中")
}
else {
diff --git a/src/pages/exchangepage/edittemplate/exchange/detailsPage.js b/src/pages/exchangepage/edittemplate/exchange/detailsPage.js
index 43b0f991..096208e6 100644
--- a/src/pages/exchangepage/edittemplate/exchange/detailsPage.js
+++ b/src/pages/exchangepage/edittemplate/exchange/detailsPage.js
@@ -82,7 +82,6 @@ export default class edittemplate extends React.Component {
count += 2;
report(count);
setTimeout(update, 500);
- console.log("上传中")
}
else {
reject();
diff --git a/src/pages/exchangepage/edittemplate/exchange/goodsPage.js b/src/pages/exchangepage/edittemplate/exchange/goodsPage.js
index bfea8f0c..ed598ed6 100644
--- a/src/pages/exchangepage/edittemplate/exchange/goodsPage.js
+++ b/src/pages/exchangepage/edittemplate/exchange/goodsPage.js
@@ -120,7 +120,6 @@ export default class edittemplate extends React.Component {
count += 2;
report(count);
setTimeout(update, 500);
- console.log("上传中")
}
else {
diff --git a/src/pages/exchangepage/edittemplate/exchange/landingPage.js b/src/pages/exchangepage/edittemplate/exchange/landingPage.js
index b22683e7..dae6850d 100644
--- a/src/pages/exchangepage/edittemplate/exchange/landingPage.js
+++ b/src/pages/exchangepage/edittemplate/exchange/landingPage.js
@@ -173,7 +173,6 @@ export default class edittemplate extends React.Component {
count += 2;
report(count);
setTimeout(update, 500);
- console.log("上传中")
}
else {
diff --git a/src/pages/exchangepage/edittemplate/goodstemplate.js b/src/pages/exchangepage/edittemplate/goodstemplate.js
index b698e240..327942f4 100644
--- a/src/pages/exchangepage/edittemplate/goodstemplate.js
+++ b/src/pages/exchangepage/edittemplate/goodstemplate.js
@@ -23,7 +23,6 @@ export default class edittemplate extends React.Component {
customComponent(e, name, icon, comName) {
//getBoundingClientRect().top ;获取div最顶边距离浏览器的位置
let offset_top = this.refs[name].getBoundingClientRect().top;
- console.log(25, offset_top - 125);
this.setState({ clientY: (offset_top - 125), selectDom: name, icon: icon, comName });
if (name == 'searchBar') {
this.setState({ clientY: 0 });
diff --git a/src/pages/exchangepage/edittemplate/main.js b/src/pages/exchangepage/edittemplate/main.js
index c1e7f9f3..958540c4 100644
--- a/src/pages/exchangepage/edittemplate/main.js
+++ b/src/pages/exchangepage/edittemplate/main.js
@@ -173,8 +173,6 @@ export default class edittemplate extends React.Component {
Bus.addListener('componentLib', (prop) => {
let couponEditorInfo = _.cloneDeep(JSON.parse(sessionStorage.getItem('editorConfig')))
let coupongoodsConfig = this.state.product_list
- console.log('coupongoodsConfig',coupongoodsConfig);
- console.log('prop.attr',prop.attr);
coupongoodsConfig[prop.attr].iswitch = prop.value
this.setState({ product_list: coupongoodsConfig })
if(prop.value==0){
@@ -212,7 +210,6 @@ export default class edittemplate extends React.Component {
})
//底部栏
Bus.addListener('bottomBarConfig', (prop) => {
- console.log(203,prop);
let bottomConfig = this.state.product_list
bottomConfig.bottomBar[prop.attr] = prop.value;
this.setState({ product_list: bottomConfig })
@@ -379,7 +376,6 @@ export default class edittemplate extends React.Component {
formdata.exchange = _.omit(infoExchange,['land[sort]','land[title]','thumb'])//优惠券
formdata.access_conf = infoWhite
formdata.coupon = infoCoupon
- console.log(387,formdata);
if (myInfoData) {
//编辑
putSystemTemplate(myInfoData.id, formdata).then((res) => {
@@ -517,7 +513,6 @@ export default class edittemplate extends React.Component {
}
//获取落地页数据
getlandConfig(c) {
- console.log(578);
let landConfig = this.state.model
landConfig[c.attr] = c.value;
this.setState({ model: landConfig })
@@ -687,7 +682,6 @@ export default class edittemplate extends React.Component {
}
componentWillUnmount() {
- console.log('组件销毁');
if (document.querySelector('canvas')) {
document.querySelector('canvas').remove()
}
@@ -698,7 +692,6 @@ export default class edittemplate extends React.Component {
this.setState({ componentOfconfig: c });
}
render() {
- console.log(761, this.state);
return (
diff --git a/src/pages/exchangepage/edittemplate/reduce.js b/src/pages/exchangepage/edittemplate/reduce.js
index ca9d8a74..da940841 100644
--- a/src/pages/exchangepage/edittemplate/reduce.js
+++ b/src/pages/exchangepage/edittemplate/reduce.js
@@ -13,7 +13,6 @@ export default class edittemplate extends React.Component {
this.props.opendesc(true)
}
render() {
- console.log(16,this.props.detaildata);
return (
diff --git a/src/pages/exchangepage/edittemplate/whiteList/whiteLand.js b/src/pages/exchangepage/edittemplate/whiteList/whiteLand.js
index f0f302bb..35e3a3f9 100644
--- a/src/pages/exchangepage/edittemplate/whiteList/whiteLand.js
+++ b/src/pages/exchangepage/edittemplate/whiteList/whiteLand.js
@@ -116,7 +116,6 @@ export default class edittemplate extends React.Component {
count += 2;
report(count);
setTimeout(update, 500);
- console.log("上传中")
}
else {
reject();
diff --git a/src/pages/exchangepage/edittemplate/whiteList/whitedetails.js b/src/pages/exchangepage/edittemplate/whiteList/whitedetails.js
index f91e6c50..a1592076 100644
--- a/src/pages/exchangepage/edittemplate/whiteList/whitedetails.js
+++ b/src/pages/exchangepage/edittemplate/whiteList/whitedetails.js
@@ -86,7 +86,6 @@ export default class edittemplate extends React.Component {
count += 2;
report(count);
setTimeout(update, 500);
- console.log("上传中")
}
else {
diff --git a/src/pages/exchangepage/edittemplate/whiteList/whitegoods.js b/src/pages/exchangepage/edittemplate/whiteList/whitegoods.js
index 2f1215d6..3741faf1 100644
--- a/src/pages/exchangepage/edittemplate/whiteList/whitegoods.js
+++ b/src/pages/exchangepage/edittemplate/whiteList/whitegoods.js
@@ -117,7 +117,6 @@ export default class edittemplate extends React.Component {
count += 2;
report(count);
setTimeout(update, 500);
- console.log("上传中")
}
else {
diff --git a/src/pages/exchangepage/main/main.js b/src/pages/exchangepage/main/main.js
index 4a67c4d3..20fbbcc8 100644
--- a/src/pages/exchangepage/main/main.js
+++ b/src/pages/exchangepage/main/main.js
@@ -317,13 +317,9 @@ export default class acclist extends React.Component {
width={'260px'}
alignment={'left'}
onClearItem={(e) => {
- console.log('清空')
-
this.setState({ key_word: '' })
}}
onChange={(e) => {
- console.log(777777)
- console.log(e)
this.setState({ key_word: e })
}}
wordSearch={(e) => {
@@ -350,7 +346,7 @@ export default class acclist extends React.Component {
this.pageChange(e)
}}
checkChange={(selection) => {
- console.log(selection)
+
}}
ComponentHandler={(com, rowData) => {
if (com == 'thumb') {
diff --git a/src/pages/exchangepage/template/main.js b/src/pages/exchangepage/template/main.js
index 2d427cc8..cfec1ff6 100644
--- a/src/pages/exchangepage/template/main.js
+++ b/src/pages/exchangepage/template/main.js
@@ -154,7 +154,6 @@ export default class mytemplate extends React.Component {
if(e) data.type_id=e;
getSystemTemplate(data).then(res => {
handelResponse(res, (req) => {
- console.log(req)
this.setState({ system_template: req.data })
if (req.data.length < 10) {
this.setState({ endreq: false });
@@ -209,7 +208,6 @@ export default class mytemplate extends React.Component {
}
}
}
- console.log(14,previewInfo);
this.setState({ preview_visible: true,previewData:previewInfo, showType: row.page,moudleData: row, showPage: 1, pageStep: 1, activeHeight: 667, setStyle: { width: '375px', height: '667px', transform: 'scale(0.75)' } });
}
onUse(row, type) {
@@ -224,6 +222,12 @@ export default class mytemplate extends React.Component {
sessionStorage.setItem("pageInfo", JSON.stringify(row))
sessionStorage.setItem("isSort", 0)
sessionStorage.setItem('pageChange', 0);
+ sessionStorage.setItem('mouldType', 1);
+ if (type) {
+ window.location.href = "/#/edittemplate?type=" + type;
+ } else {
+ window.location.href = "/#/edittemplate?type=" + row.page;
+ }
}, () => {
})
}).catch(() => {
@@ -231,13 +235,12 @@ export default class mytemplate extends React.Component {
}else {
sessionStorage.setItem("pageInfo", JSON.stringify(row))
sessionStorage.setItem('pageChange', 1);
- }
-
- sessionStorage.setItem('mouldType', 1);
- if (type) {
- window.location.href = "/#/edittemplate?type=" + type;
- } else {
- window.location.href = "/#/edittemplate?type=" + row.page;
+ sessionStorage.setItem('mouldType', 1);
+ if (type) {
+ window.location.href = "/#/edittemplate?type=" + type;
+ } else {
+ window.location.href = "/#/edittemplate?type=" + row.page;
+ }
}
}
toTop() {
diff --git a/src/pages/exchangepage/template/preview.js b/src/pages/exchangepage/template/preview.js
index d38aff5a..0a57ea4a 100644
--- a/src/pages/exchangepage/template/preview.js
+++ b/src/pages/exchangepage/template/preview.js
@@ -53,7 +53,6 @@ export default class preview extends React.Component {
render() {
let propsData = this.props.data;
let goodsConfig = propsData.product_list;
- console.log(56,goodsConfig);
let naVisual = [];
if (goodsConfig&&goodsConfig.bottomBar) {
naVisual = goodsConfig.bottomBar.navlist.filter((item) => item.iswitch==1);
diff --git a/src/pages/login/loginform.js b/src/pages/login/loginform.js
index 0ce5a4b8..35de9f4b 100644
--- a/src/pages/login/loginform.js
+++ b/src/pages/login/loginform.js
@@ -83,7 +83,6 @@ const getAccountList = () => {
sessionStorage.setItem("showflag", true);
let menuList = response.menu;
if (response.menu && response.menu.length > 0) {
- console.log(105,menuList);
sessionStorage.setItem(
"activeMenu",
JSON.stringify(response.menu)