去掉log打印和临时{{index}}

This commit is contained in:
jqtmviyu@gmail.com 2021-02-25 11:05:47 +08:00
parent 25610727b7
commit a8082b2761

View File

@ -9,7 +9,7 @@
<view class="category_content">
<!-- 2.1 左列表: 大家电,热门推荐,海外购... -->
<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>
<!-- 2.2 右列表: 电视,空调... -->
<view class="category_list">
@ -58,7 +58,7 @@ export default {
// console.log(this.menu)
//
this.goods = message[this.menuCurrent].children
console.log(this.goods);
// console.log(this.goods);
},
onMenuTap(menuCurrent) {
this.menuCurrent = menuCurrent