Commit fca1022d authored by Mac's avatar Mac

1

parent 3409077f
......@@ -92,6 +92,12 @@
};
},
onLoad(options) {
if(options && options.id){
this.msg.BrandClassId = options.id
}
this.GetBrandClassList()
},
created() {
this.mainColor = this.$uiConfig.mainColor;
},
......@@ -99,7 +105,7 @@
uni.setNavigationBarTitle({
title: '品牌列表',
});
this.GetBrandClassList()
},
methods: {
......@@ -111,7 +117,17 @@
(res) => {
if (res.resultCode == 1) {
this.typeList = res.data
this.msg.BrandClassId = this.typeList[0].ID
if(this.msg.BrandClassId ==0){
this.msg.BrandClassId = this.typeList[0].ID
}else{//指定跳入分类
this.typeList.map((x,i)=>{
if(x.ID== this.msg.BrandClassId){
this.active = i;
return
}
})
}
}
}
);
......@@ -202,7 +218,7 @@
bottom: 0;
right: 0;
width: 100%;
height: 100%;
height: 338rpx;
overflow: hidden;
}
......@@ -220,6 +236,7 @@
.good_study_two .good-info {
padding: 15rpx;
height: 112rpx;
}
.good_study_two .good-info .good-name {
......
......@@ -114,7 +114,7 @@
Developers:"",
StartOpenTime:"",
EndOpenTime:"",
ProjectType:"",
ProjectType:0,
OrderBy:0
},
loading: false,
......@@ -127,10 +127,17 @@
},
};
},
onLoad(options) {
if(options && options.id){
this.msg.ProjectType = options.id
}
this.getTypeList()
},
created() {
this.mainColor = this.$uiConfig.mainColor;
this.getTypeList()
this.getCarrierPageList()
},
mounted() {
uni.setNavigationBarTitle({
......@@ -145,10 +152,21 @@
}
this.request2(parms, (res) => {
if (res.resultCode == 1) {
this.pageCount = res.data.pageCount
// this.pageCount = res.data.pageCount
this.typeList = res.data
if(this.msg.ProjectType ==0){
this.msg.ProjectType = this.typeList[0].Id
}else{//指定跳入分类
this.typeList.map((x,i)=>{
if(x.Id== this.msg.ProjectType){
this.active = i;
return
}
})
}
}
})
this.getCarrierPageList()
},
// 获取载体分页列表
getCarrierPageList(){
......@@ -168,7 +186,9 @@
},
changeHandler(i) {
this.active = i;
this.msg.ProjectType=i
this.msg.ProjectType = this.typeList[i].Id;
this.msg.pageIndex = 1;
this.g= [];
this.getCarrierPageList()
},
openGood(id,type) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment