提交 5715125e authored 作者: huaxinzhu's avatar huaxinzhu

bug修复

上级 ca0a1c3b
...@@ -228,7 +228,7 @@ ...@@ -228,7 +228,7 @@
} }
} }
}; };
xhttp.open("GET", 'http://192.168.26.179:6601/api/v1/oem/webSite/domainChannel?domain='+ssa+'&field='+op, true); xhttp.open("GET", '//sysapi.jxhh.com/api/v1/oem/webSite/domainChannel?domain='+ssa+'&field='+op, true); // 直接上正式,以防上线忘改
xhttp.send(); xhttp.send();
} }
</script> </script>
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<img style="width:114px;height:35px;" :src="settitle.topLogo" alt=""> <img style="width:114px;height:35px;" :src="settitle.topLogo" alt="">
</li> </li>
<li> <li>
<a href="">首页</a> <a href="/">首页</a>
</li> </li>
<li v-if="navigationObj.open"> <li v-if="navigationObj.open">
<a :href=" '//' + navigationObj.open" target="_blank">开放平台</a> <a :href=" '//' + navigationObj.open" target="_blank">开放平台</a>
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
<!-- </el-carousel>--> <!-- </el-carousel>-->
<swiper :options="swiperOption" v-if="bannerList && bannerList.length > 0"> <swiper :options="swiperOption" v-if="bannerList && bannerList.length > 0">
<swiper-slide v-for="(item,index) in bannerList" :key="index"> <swiper-slide v-for="(item,index) in bannerList" :key="index">
<a :href="item.redirect_url" target="_blank"><img style="width: 100%;height: 562px;" :src="item.image_url" <a :href=" '//' + item.redirect_url" target="_blank"><img style="width: 100%;height: 562px;" :src="item.image_url"
alt=""></a> alt=""></a>
</swiper-slide> </swiper-slide>
</swiper> </swiper>
...@@ -404,6 +404,7 @@ ...@@ -404,6 +404,7 @@
} }
}) })
}, },
/** 获取 云仓 banner图信息、核心优势、入驻logo图片集 */
getAllcloud() { getAllcloud() {
let data = { let data = {
new_channel_id: this.channel_id new_channel_id: this.channel_id
...@@ -453,14 +454,11 @@ ...@@ -453,14 +454,11 @@
}, },
/** 底部 路由跳转 */ /** 底部 路由跳转 */
goToUser(id) { goToUser(id) {
debugger
let completeWebsite = '' let completeWebsite = ''
if (this.navigationObj.aboutUs) { if (this.navigationObj.aboutUs) {
// completeWebsite = this.navigationObj.aboutUs + '/user' completeWebsite = this.navigationObj.aboutUs + '/user?id=' + id
// console.log(11111,completeWebsite); window.location.href = '//' + completeWebsite
// this.$router.push({path: completeWebsite ,query:{id:id} })
} }
}, },
// 去注册 // 去注册
toRegister() { toRegister() {
...@@ -899,7 +897,7 @@ ...@@ -899,7 +897,7 @@
display: flex; display: flex;
justify-content: center; justify-content: center;
flex-direction: row; flex-direction: row;
margin: 0 auto; margin: 20px auto;
} }
.card-show { .card-show {
...@@ -936,7 +934,6 @@ ...@@ -936,7 +934,6 @@
width:169px; width:169px;
height:75px; height:75px;
margin:20px 10px; margin:20px 10px;
background-color: #eee;
overflow : hidden; overflow : hidden;
} }
......
...@@ -411,10 +411,16 @@ ...@@ -411,10 +411,16 @@
this.$refs.addInvoiceForm.validate((valid)=> { this.$refs.addInvoiceForm.validate((valid)=> {
if (valid) { if (valid) {
params.id = this.withdrawId; params.id = this.withdrawId;
params.express_company = this.addInvoiceForm.express_name; //params.express_company = this.addInvoiceForm.express_name;
params.express_no = this.addInvoiceForm.express_sn; params.express_no = this.addInvoiceForm.express_sn;
params.invoice_img = this.invoiceImgBase64List params.invoice_img = this.invoiceImgBase64List
for(let i = 0; i < this.expressLists.length; i++) {
if(this.addInvoiceForm.express_name == this.expressLists[i].value) {
params.express_company = this.expressLists[i].label
}
}
addInvoiceData(params).then(res=> { addInvoiceData(params).then(res=> {
if(res.code == 1) { if(res.code == 1) {
this.$message({type:'success',message: '补充发票信息成功'}); this.$message({type:'success',message: '补充发票信息成功'});
......
...@@ -360,7 +360,7 @@ ...@@ -360,7 +360,7 @@
return file; return file;
}, ()=>{ }, ()=>{
this.$message({ this.$message({
message:'商品图片尺寸必须为800 * 800,请重新选择!', message:'商品图片尺寸必须为800 * 800像素,请重新选择!',
type: 'warning' type: 'warning'
}); });
return Promise.reject(); return Promise.reject();
...@@ -380,7 +380,7 @@ ...@@ -380,7 +380,7 @@
urlObj.url = res.data.image_url; urlObj.url = res.data.image_url;
this.goodsImgFileList.push(urlObj); this.goodsImgFileList.push(urlObj);
this.goodsImgFileList.forEach(item=> { this.goodsImgFileList.forEach(item=> {
this.goodsInfoForm.imgs.push(item.url) //this.goodsInfoForm.imgs.push(item.url)
}) })
this.$message({type:'success',message:'图片上传成功'}); this.$message({type:'success',message:'图片上传成功'});
// 只清除一次,不浪费哦 // 只清除一次,不浪费哦
......
...@@ -320,7 +320,7 @@ export default { ...@@ -320,7 +320,7 @@ export default {
}, },
// 如果保存失败,将乘以100的价格还原 // 如果保存失败,将乘以100的价格还原
priceReduce() { priceReduce() {
debugger // debugger
if(this.parameterdata.pamTableList && this.parameterdata.pamTableList.length > 0) { if(this.parameterdata.pamTableList && this.parameterdata.pamTableList.length > 0) {
this.parameterdata.pamTableList.forEach((item)=> { this.parameterdata.pamTableList.forEach((item)=> {
if(item[0].js_price) { if(item[0].js_price) {
......
...@@ -577,7 +577,7 @@ ...@@ -577,7 +577,7 @@
delete this.goodsAllData.specs_group; delete this.goodsAllData.specs_group;
} }
// 商品id 不为 0 是修改 // 修改 商品id不为 0
if( this.goodsAllData.goods_id ) { if( this.goodsAllData.goods_id ) {
// 商品id 为 0 是新增 // 商品id 为 0 是新增
let goodsStatus = 1; let goodsStatus = 1;
...@@ -587,6 +587,7 @@ ...@@ -587,6 +587,7 @@
goodsStatus = 3; goodsStatus = 3;
} }
updateGoodsNew(this.goodsAllData).then(res=> { updateGoodsNew(this.goodsAllData).then(res=> {
//debugger
if( res.code === 1 ) { if( res.code === 1 ) {
this.$message({type: 'success', message:'编辑成功'}); this.$message({type: 'success', message:'编辑成功'});
this.initAllGoodsInfo(); this.initAllGoodsInfo();
...@@ -594,15 +595,15 @@ ...@@ -594,15 +595,15 @@
path: '/system/goods/management', path: '/system/goods/management',
query: { goodsStatus: goodsStatus } query: { goodsStatus: goodsStatus }
}); });
} } else {
if(res.code === 0) { //this.$refs.goodsparameter.priceReduce()
this.$refs.goodsparameter.priceReduce()
let msg = res.message ? res.message : '编辑失败' let msg = res.message ? res.message : '编辑失败'
this.$message({type: 'error', message: msg}); this.$message({type: 'error', message: msg});
} }
}); });
}else { }else {
// 商品id 为 0 是新增 //debugger
// 新增 商品id 为 0
let goodsStatus = 1; let goodsStatus = 1;
if ( this.goodsAllData.submit === 0 ) { if ( this.goodsAllData.submit === 0 ) {
goodsStatus = 2; goodsStatus = 2;
...@@ -617,10 +618,9 @@ ...@@ -617,10 +618,9 @@
path: '/system/goods/management', path: '/system/goods/management',
query: { goodsStatus: goodsStatus } query: { goodsStatus: goodsStatus }
}); });
} }else {
if(res.code === 0) {
// 如果保存失败,将价格还原 // 如果保存失败,将价格还原
this.$refs.goodsparameter.priceReduce() //this.$refs.goodsparameter.priceReduce()
let msg = res.message ? res.message : '新增失败' let msg = res.message ? res.message : '新增失败'
this.$message({type: 'error', message: msg}); this.$message({type: 'error', message: msg});
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论