|
|
|
@ -15,9 +15,9 @@ |
|
|
|
|
<view |
|
|
|
|
class="tab-list u-flex-col u-col-center u-row-center" |
|
|
|
|
:style="{ width: 100 / 4 + '%' }" |
|
|
|
|
v-for="(item, index) in itemList" |
|
|
|
|
:key="index" |
|
|
|
|
@tap="$tools.routerTo(item.path)" |
|
|
|
|
v-for="(item, i) in itemList" |
|
|
|
|
:key="i" |
|
|
|
|
@tap="getjump(item)" |
|
|
|
|
> |
|
|
|
|
<image class="tab-img" :src="item.image"></image> |
|
|
|
|
<text class="">{{ item.name }}</text> |
|
|
|
@ -61,6 +61,10 @@ export default { |
|
|
|
|
scroll:{ |
|
|
|
|
type: Boolean, |
|
|
|
|
default: true |
|
|
|
|
}, |
|
|
|
|
isIndex:{ |
|
|
|
|
type:Boolean, |
|
|
|
|
default:true, |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
computed: { |
|
|
|
@ -74,6 +78,7 @@ export default { |
|
|
|
|
} |
|
|
|
|
// let data = this.$tools.splitData(this.list, this.oneRowNum * 1); |
|
|
|
|
// let data = this.list |
|
|
|
|
console.log(data,"999999") |
|
|
|
|
return data; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -88,6 +93,15 @@ export default { |
|
|
|
|
path: path, |
|
|
|
|
query: query |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
getjump(item,index){ |
|
|
|
|
console.log(item,index) |
|
|
|
|
// if(this.isIndex){ |
|
|
|
|
// this.$tools.routerTo(val) |
|
|
|
|
// }else{ |
|
|
|
|
this.$emit("catagory",item) |
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
@ -107,7 +121,7 @@ export default { |
|
|
|
|
} |
|
|
|
|
.menu-tab-box { |
|
|
|
|
.tab-list { |
|
|
|
|
font-size: 26rpx; |
|
|
|
|
font-size: 22rpx; |
|
|
|
|
font-weight: 500; |
|
|
|
|
color: rgba(51, 51, 51, 1); |
|
|
|
|
margin: 20rpx 0; |
|
|
|
|