目录
1.把标题写在视图上
<view class="head-left">
<view :class="index == 0 ? 'left-text' : 'left-title'" @click="load(0)">英皇</view>
<view :class="index == 1 ? 'left-text' : 'left-title'" @click="load(1)">上音</view>
<view :class="index == 2 ? 'left-text' : 'left-title'" @click="load(2)">音协</view>
</view>
load(e) {
this.index = e;
gradeList(this.num,{ gradeType: this.index }).then(res => {
console.log(res);
this.list1 = res.rows;
});
}