|
|
@@ -196,7 +196,7 @@ const state = {
|
|
|
"price": "",//价格
|
|
|
"introduce":"",//介绍
|
|
|
"website_id": "",//网站id
|
|
|
- "thumb": "http://img.bjzxtw.org.cn/pre/image/png/20250527/1748332370111555.png",//示例图 - 默认值
|
|
|
+ "thumb": "http://192.168.1.234:19000/pre/image/jpeg/20251226/1766715237727691.jpg",//示例图 - 默认值
|
|
|
"typeid": 2,//广告类型 - 2 图片
|
|
|
"ad_tag": ""//广告标识 - 网站标识 + 页面名称 + sort
|
|
|
},
|
|
|
@@ -923,7 +923,7 @@ const mutations = {
|
|
|
saveTemplate(state) {
|
|
|
//1.保存网站id和模板风格id
|
|
|
state.webSiteData.base.websiteId = state.editWebsiteId;
|
|
|
- state.webSiteData.style.styleId = state.editWebsiteClass;
|
|
|
+ state.webSiteData.style.styleId = parseFloat(state.editWebsiteClass);
|
|
|
//2.格式化数据
|
|
|
//2.1 清理广告位数据
|
|
|
this.commit('template/clearAd');
|
|
|
@@ -1120,10 +1120,10 @@ const mutations = {
|
|
|
}
|
|
|
//如果处于预览模式,可能无法获取到website_id和style_id,需要从router中获取
|
|
|
if(state.editWebsiteId == undefined || state.editWebsiteId == "" || state.editWebsiteId == null){
|
|
|
- state.editWebsiteId = router.currentRoute.query.website_id;
|
|
|
+ state.editWebsiteId = parseFloat(router.currentRoute.query.website_id);
|
|
|
}
|
|
|
if(state.editWebsiteClass == undefined || state.editWebsiteClass == "" || state.editWebsiteClass == null){
|
|
|
- state.editWebsiteClass = router.currentRoute.query.style;
|
|
|
+ state.editWebsiteClass = parseFloat(router.currentRoute.query.style);
|
|
|
}
|
|
|
// console.log(state.editWebsiteId)
|
|
|
// console.log(state.editWebsiteClass)
|