Commit 73db0c40 authored by zhengke's avatar zhengke

no message

parent f735bdf9
......@@ -22,7 +22,7 @@
style="height: calc(100vh - 0px);width: calc(100vw);overflow: hidden;margin-top: 105rpx;">
<view class="right-box">
<uni-indexed-list :options="list" :show-select="true" @click="bindClick"/>
<view style="height: calc(100vh - 0px); background: #fff;" v-if="list.length == 0">
<view style="height: calc(100vh - 0px); background: #fff;" v-if="!listShow">
<u-empty text="没有找到相关品牌信息" mode="order"></u-empty>
</view>
</view>
......@@ -175,7 +175,8 @@
letter: '#',
data: []
}],
u:{}
u:{},
listShow:true
};
},
watch: {
......@@ -186,24 +187,33 @@
arr = arr.filter(item=>{
return item.Name.indexOf(value)!=-1
})
this.list.forEach(i=>{
return i.data = []
})
if(arr.length>0){
let arrList = this.list.map(item=>{
return item.Name
})
arr.forEach(item=>{
this.list.forEach(i=>{
// i.data = []
if(item.IsHot==0){
if(item.PinYin==i.letter){
i.data.push(item)
}
}else{
}if(item.IsHot==1){
if(i.letter=='*'){
i.data.push(item)
}
}
})
})
this.listShow = true
}else{
this.list.forEach(item=>{
item.data = []
})
this.listShow = false
}
}else{
......@@ -220,6 +230,7 @@
}
})
})
this.listShow = true
}
},
......
......@@ -11,7 +11,7 @@
</view>
<view class="class-name" @click="goBack(2)">
<text>{{datas.CategoryName}}</text>
<u-icon class="name-icon" name="arrow" color="#B2B2B2" size="40" ></u-icon>
<!-- <u-icon class="name-icon" name="arrow" color="#B2B2B2" size="40" ></u-icon> -->
</view>
</view>
<view style="width: 100%;height: 1px;background: #E5E5E5;"/>
......@@ -250,12 +250,16 @@
},
methods: {
goBack(type){
if(type==2){
if(type==1){
uni.navigateTo({
url: '/pages/Luxury/ClassList'
url: '/pages/Luxury/ClassList?Id=' + this.datas.CategoryId
});
}
// if(type==2){
// uni.navigateTo({
// url: '/pages/index/index?page_id=2644'
// });
// }
},
// 提交
setMsg(){
......
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