去掉log打印和临时{{index}}
This commit is contained in:
parent
25610727b7
commit
a8082b2761
@ -9,7 +9,7 @@
|
|||||||
<view class="category_content">
|
<view class="category_content">
|
||||||
<!-- 2.1 左列表: 大家电,热门推荐,海外购... -->
|
<!-- 2.1 左列表: 大家电,热门推荐,海外购... -->
|
||||||
<view class="menu">
|
<view class="menu">
|
||||||
<view @tap="onMenuTap(index)" :class="['menu_list', menuCurrent===index?'active':'']" v-for="(item,index) in menus" :key="item">{{item}}{{index}}</view>
|
<view @tap="onMenuTap(index)" :class="['menu_list', menuCurrent===index?'active':'']" v-for="(item,index) in menus" :key="item">{{item}}</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- 2.2 右列表: 电视,空调... -->
|
<!-- 2.2 右列表: 电视,空调... -->
|
||||||
<view class="category_list">
|
<view class="category_list">
|
||||||
@ -58,7 +58,7 @@ export default {
|
|||||||
// console.log(this.menu)
|
// console.log(this.menu)
|
||||||
// 右列表获取
|
// 右列表获取
|
||||||
this.goods = message[this.menuCurrent].children
|
this.goods = message[this.menuCurrent].children
|
||||||
console.log(this.goods);
|
// console.log(this.goods);
|
||||||
},
|
},
|
||||||
onMenuTap(menuCurrent) {
|
onMenuTap(menuCurrent) {
|
||||||
this.menuCurrent = menuCurrent
|
this.menuCurrent = menuCurrent
|
||||||
|
Loading…
Reference in New Issue
Block a user