|
@@ -31,12 +31,12 @@ var fleaMarketForm = new Vue({
|
|
secondHandType:'',//一级分类
|
|
secondHandType:'',//一级分类
|
|
instrumentType:'',//二手仪器分类
|
|
instrumentType:'',//二手仪器分类
|
|
name:'',
|
|
name:'',
|
|
- brandID:'',//品牌ID
|
|
|
|
|
|
+ brandId:'',//品牌ID
|
|
brandName:'',//其他品牌
|
|
brandName:'',//其他品牌
|
|
fixedYears:null,//出厂
|
|
fixedYears:null,//出厂
|
|
companyName:'',//公司名称
|
|
companyName:'',//公司名称
|
|
// maturityYears:'',//产品到期
|
|
// maturityYears:'',//产品到期
|
|
- price1:'',//交易价
|
|
|
|
|
|
+ price:'',//交易价
|
|
detailTalkFlag:1,//是否启用详聊
|
|
detailTalkFlag:1,//是否启用详聊
|
|
// normalPrice:'',//市场价
|
|
// normalPrice:'',//市场价
|
|
// originalPrice:'',//采购价
|
|
// originalPrice:'',//采购价
|
|
@@ -47,7 +47,7 @@ var fleaMarketForm = new Vue({
|
|
secondProductType:'',//
|
|
secondProductType:'',//
|
|
townId:'',//县区地址
|
|
townId:'',//县区地址
|
|
address:'',//详细地址
|
|
address:'',//详细地址
|
|
- image1:'',//图片
|
|
|
|
|
|
+ image:'',//图片
|
|
productDetails:'',//商品详细信息
|
|
productDetails:'',//商品详细信息
|
|
source:1,
|
|
source:1,
|
|
dockingPeopleMobile:'',
|
|
dockingPeopleMobile:'',
|
|
@@ -122,8 +122,8 @@ var fleaMarketForm = new Vue({
|
|
ChangeBrand:function(item){ //品牌列表
|
|
ChangeBrand:function(item){ //品牌列表
|
|
var _this = this;
|
|
var _this = this;
|
|
_this.brandname = item.name;
|
|
_this.brandname = item.name;
|
|
- _this.secondParams.brandID = item.id;
|
|
|
|
- if(_this.secondParams.brandID==161){
|
|
|
|
|
|
+ _this.secondParams.brandId = item.id;
|
|
|
|
+ if(_this.secondParams.brandId==161){
|
|
_this.shoplogoTwo = true;
|
|
_this.shoplogoTwo = true;
|
|
}else {
|
|
}else {
|
|
_this.shoplogoTwo = false;
|
|
_this.shoplogoTwo = false;
|
|
@@ -149,14 +149,14 @@ var fleaMarketForm = new Vue({
|
|
_this.formData.append('file', file[0]);
|
|
_this.formData.append('file', file[0]);
|
|
SecondApi.uploadimg(_this.formData,function(response){
|
|
SecondApi.uploadimg(_this.formData,function(response){
|
|
_this.GoodsImagesList.push(response.data);
|
|
_this.GoodsImagesList.push(response.data);
|
|
- _this.secondParams.image1 =_this.GoodsImagesList.toString()+',';
|
|
|
|
|
|
+ _this.secondParams.image =_this.GoodsImagesList.toString()+',';
|
|
event.target.value = '';
|
|
event.target.value = '';
|
|
});
|
|
});
|
|
},
|
|
},
|
|
removeGoodsImagesFn: function(index){//删除商品图片
|
|
removeGoodsImagesFn: function(index){//删除商品图片
|
|
var _this = this;
|
|
var _this = this;
|
|
_this.GoodsImagesList.splice(index,1);
|
|
_this.GoodsImagesList.splice(index,1);
|
|
- _this.secondParams.image1 =_this.GoodsImagesList.toString()+',';
|
|
|
|
|
|
+ _this.secondParams.image =_this.GoodsImagesList.toString()+',';
|
|
},
|
|
},
|
|
getProductType:function(item){
|
|
getProductType:function(item){
|
|
var _this = this;
|
|
var _this = this;
|
|
@@ -204,7 +204,7 @@ var fleaMarketForm = new Vue({
|
|
},2000);
|
|
},2000);
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if(_this.secondParams.price1 == ''){
|
|
|
|
|
|
+ if(_this.secondParams.price == ''){
|
|
_this.vShow_Price = true;
|
|
_this.vShow_Price = true;
|
|
_this.fromMessage = '请输入交易价';
|
|
_this.fromMessage = '请输入交易价';
|
|
_this.scrollIntoView();
|
|
_this.scrollIntoView();
|