Commit fca1022d authored by Mac's avatar Mac

1

parent 3409077f
...@@ -92,6 +92,12 @@ ...@@ -92,6 +92,12 @@
}; };
}, },
onLoad(options) {
if(options && options.id){
this.msg.BrandClassId = options.id
}
this.GetBrandClassList()
},
created() { created() {
this.mainColor = this.$uiConfig.mainColor; this.mainColor = this.$uiConfig.mainColor;
}, },
...@@ -99,7 +105,7 @@ ...@@ -99,7 +105,7 @@
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
title: '品牌列表', title: '品牌列表',
}); });
this.GetBrandClassList()
}, },
methods: { methods: {
...@@ -111,7 +117,17 @@ ...@@ -111,7 +117,17 @@
(res) => { (res) => {
if (res.resultCode == 1) { if (res.resultCode == 1) {
this.typeList = res.data this.typeList = res.data
if(this.msg.BrandClassId ==0){
this.msg.BrandClassId = this.typeList[0].ID 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 @@ ...@@ -202,7 +218,7 @@
bottom: 0; bottom: 0;
right: 0; right: 0;
width: 100%; width: 100%;
height: 100%; height: 338rpx;
overflow: hidden; overflow: hidden;
} }
...@@ -220,6 +236,7 @@ ...@@ -220,6 +236,7 @@
.good_study_two .good-info { .good_study_two .good-info {
padding: 15rpx; padding: 15rpx;
height: 112rpx;
} }
.good_study_two .good-info .good-name { .good_study_two .good-info .good-name {
......
...@@ -114,7 +114,7 @@ ...@@ -114,7 +114,7 @@
Developers:"", Developers:"",
StartOpenTime:"", StartOpenTime:"",
EndOpenTime:"", EndOpenTime:"",
ProjectType:"", ProjectType:0,
OrderBy:0 OrderBy:0
}, },
loading: false, loading: false,
...@@ -127,10 +127,17 @@ ...@@ -127,10 +127,17 @@
}, },
}; };
}, },
onLoad(options) {
if(options && options.id){
this.msg.ProjectType = options.id
}
this.getTypeList()
},
created() { created() {
this.mainColor = this.$uiConfig.mainColor; this.mainColor = this.$uiConfig.mainColor;
this.getTypeList()
this.getCarrierPageList()
}, },
mounted() { mounted() {
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
...@@ -145,10 +152,21 @@ ...@@ -145,10 +152,21 @@
} }
this.request2(parms, (res) => { this.request2(parms, (res) => {
if (res.resultCode == 1) { if (res.resultCode == 1) {
this.pageCount = res.data.pageCount // this.pageCount = res.data.pageCount
this.typeList = res.data 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(){ getCarrierPageList(){
...@@ -168,7 +186,9 @@ ...@@ -168,7 +186,9 @@
}, },
changeHandler(i) { changeHandler(i) {
this.active = i; this.active = i;
this.msg.ProjectType=i this.msg.ProjectType = this.typeList[i].Id;
this.msg.pageIndex = 1;
this.g= [];
this.getCarrierPageList() this.getCarrierPageList()
}, },
openGood(id,type) { 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