Commit 73db0c40 authored by zhengke's avatar zhengke

no message

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