Commit 1f5e7ee5 authored by 黄奎's avatar 黄奎

样式修改

parent b7e27080
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
'border-color': classification == i ? 'mainColor' : '#F0F0F0', 'border-color': classification == i ? 'mainColor' : '#F0F0F0',
}" v-for="(item, i) in Theclass" :key="i" @click="subjects(item,i)"> }" v-for="(item, i) in Theclass" :key="i" @click="subjects(item,i)">
<view class="classification-text">{{item.name}}</view> <view class="classification-text">{{item.name}}</view>
<u-icon name="arrow" size="32" color="#444"></u-icon> <u-icon name="arrow-down" size="32" ></u-icon>
</view> </view>
</view> </view>
<!-- 内容 --> <!-- 内容 -->
...@@ -21,10 +21,17 @@ ...@@ -21,10 +21,17 @@
}"> }">
<view class="content-tetx">不限</view> <view class="content-tetx">不限</view>
</view> </view>
<view class="content-box" :style="{ <view class="content-box" v-show="classification==0" :style="{
color: index2 == i ? mainColor : '', color: index2 == i ? mainColor : '',
'border-color': index2 == i ? 'mainColor' : '#F0F0F0', 'border-color': index2 == i ? 'mainColor' : '#F0F0F0',
}" v-for="(item, i) in subjectslist" @click="content2(item,i)"> }" v-for="(item, i) in d" :key='i'@click="content2(item,i)">
<view class="content-tetx">{{item.Name}}</view>
</view>
<view class="content-box" v-show="classification==1" :style="{
color: index2 == i ? mainColor : '',
'border-color': index2 == i ? 'mainColor' : '#F0F0F0',
}" v-for="(item, i) in subjectslist" @click="content3(item,i)">
<view class="content-tetx">{{item.CateName}}</view> <view class="content-tetx">{{item.CateName}}</view>
</view> </view>
...@@ -35,10 +42,10 @@ ...@@ -35,10 +42,10 @@
</view> </view>
<!-- 新增分类科目结束 --> <!-- 新增分类科目结束 -->
<view class="catstyle4" style="height: 100%;"> <view class="catstyle4" style="height: 100%;">
<div class="left-slider"> <!-- <div class="left-slider">
<sidebar :active="tid" name="Name" :active-color="mainColor" :border="false" :list="d" <sidebar :active="tid" name="Name" :active-color="mainColor" :border="false" :list="d"
@change="changeHandler" @change2="changeHandler2"></sidebar> @change="changeHandler" @change2="changeHandler2"></sidebar>
</div> </div> -->
<div class="right-slider"> <div class="right-slider">
<scroll-view :scroll-y="true" @scrolltolower="lower" :enable-back-to-top="true" :enable-flex="true" <scroll-view :scroll-y="true" @scrolltolower="lower" :enable-back-to-top="true" :enable-flex="true"
:style="{ height: '100%' }"> :style="{ height: '100%' }">
...@@ -126,7 +133,7 @@ ...@@ -126,7 +133,7 @@
</view> </view>
</div> </div>
<u-divider v-if="isover" :margin-top="20" :margin-bottom="20">没有更多商品了44</u-divider> <u-divider v-if="isover" :margin-top="20" :margin-bottom="20">没有更多商品了</u-divider>
</scroll-view> </scroll-view>
</div> </div>
<template v-if="u&&u.TenantId==27"> <template v-if="u&&u.TenantId==27">
...@@ -246,7 +253,7 @@ ...@@ -246,7 +253,7 @@
OrderBy: this.msg.OrderBy, OrderBy: this.msg.OrderBy,
UserId: this.msg.UserId, UserId: this.msg.UserId,
StoreId: this.msg.StoreId, StoreId: this.msg.StoreId,
EduClassTypeId: i, EduClassTypeId: 0,
}; };
this.request2({ this.request2({
url: '/api/AppletGoods/GetClassTypeList', url: '/api/AppletGoods/GetClassTypeList',
...@@ -270,35 +277,14 @@ ...@@ -270,35 +277,14 @@
// 科目类型点击 // 科目类型点击
subjects(item, i) { subjects(item, i) {
this.classification = i this.classification = i
// this.mask =!this.mask
// if(!this.mask) {
// this.classification = -1
// // this.mask = true
// } else {
// this.classification = i
// }
if (this.classification == i) { if (this.classification == i) {
this.mask = true this.mask = true
} else { } else {
this.mask = false this.mask = false
} }
if (i == 1) {
this.initlist(i) this.initlist(i)
// this.mask = !this.mask }
// if(this.mask) {
// this.classification = i
// this.mask = true
// } else {
// this.classification = -1
// this.mask = false
// }
// if(this.classification = i) {
// this.mask= true
// } else {
// this.mask=!this.mask
// }
}, },
// 内容点击 // 内容点击
content() { content() {
...@@ -306,6 +292,9 @@ ...@@ -306,6 +292,9 @@
if (this.index) { if (this.index) {
this.index2 = -1 this.index2 = -1
this.msg.CategoryIds = '' this.msg.CategoryIds = ''
this.msg.page = 1;
this.subjectslist = [];
this.g = [];
this.init() this.init()
} }
}, },
...@@ -314,6 +303,19 @@ ...@@ -314,6 +303,19 @@
this.index = false this.index = false
this.classification = -1 this.classification = -1
this.mask = false this.mask = false
this.msg.page = 1;
this.g = [];
this.msg.CategoryIds = item.Id
this.init()
},
content3(item, i) {
this.index2 = i
this.index = false
this.classification = -1
this.mask = false
this.msg.page = 1;
this.g = [];
this.msg.CategoryIds = item.CateId this.msg.CategoryIds = item.CateId
this.init() this.init()
......
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