|
@@ -54,7 +54,10 @@ var releaseContainer = new Vue({
|
|
|
twoClassifyName:'',
|
|
|
threeClassifyName:'',
|
|
|
brandName:'',
|
|
|
- commodityType:1
|
|
|
+ commodityType:1,
|
|
|
+ trainType:1,// 线上培训方式
|
|
|
+ expensesType:1,// 售价包含培训费用
|
|
|
+ expensesMoney:''
|
|
|
},
|
|
|
params:{
|
|
|
param:[],//相关参数
|
|
@@ -136,14 +139,6 @@ var releaseContainer = new Vue({
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
- getclass:function(val){
|
|
|
- this.selectText.bigTypeID='请选择一级分类';
|
|
|
- this.selectText.smallTypeID = '请选择二级分类';
|
|
|
- this.releaseParams.bigTypeId ='';
|
|
|
- this.classificationTwoList=[];
|
|
|
- this.classificationThreeList =[];
|
|
|
- this.GetFistClassFn(val);
|
|
|
- },
|
|
|
GetEditReleaseProductInfo: function(productId){
|
|
|
var _this = this;
|
|
|
SupplierApi.EditReleaseProductInfo({productId:productId},function(response){
|
|
@@ -223,6 +218,14 @@ var releaseContainer = new Vue({
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ getclass:function(val){
|
|
|
+ this.selectText.bigTypeID='请选择一级分类';
|
|
|
+ this.selectText.smallTypeID = '请选择二级分类';
|
|
|
+ this.releaseParams.bigTypeId ='';
|
|
|
+ this.classificationTwoList=[];
|
|
|
+ this.classificationThreeList =[];
|
|
|
+ this.GetFistClassFn(val);
|
|
|
+ },
|
|
|
EchoProductFn : function(type) {
|
|
|
switch (type) {
|
|
|
case 0 && null:
|
|
@@ -249,6 +252,14 @@ var releaseContainer = new Vue({
|
|
|
break;
|
|
|
}
|
|
|
},
|
|
|
+ choiceTrain : function(val){
|
|
|
+ var _this = this;
|
|
|
+ _this.releaseParams.trainType = Number(val);
|
|
|
+ },
|
|
|
+ choiceTrainOutlay : function(val){
|
|
|
+ var _this = this;
|
|
|
+ _this.releaseParams.expensesType = Number(val);
|
|
|
+ },
|
|
|
EchoGoodsImagesListFn: function(arr){//处理商品主图回显
|
|
|
var newArray =[];
|
|
|
arr.forEach( function(el){ newArray.push(el.image) });
|