暂存
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
<view class="classNewBtn" v-if="isDirector">
|
||||
<view class="box88 flex_box">
|
||||
<view class="" style="width: 60%; text-align: center;">
|
||||
<button type="primary" @click="pupShow = true">新开一个班级</button>
|
||||
<button type="primary" @click="goAddClasss">新开一个班级</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -36,7 +36,7 @@
|
||||
<image src="@/static/my_04.png" mode="aspectFit"></image>
|
||||
</view>
|
||||
<view class="buyItems">
|
||||
<view class="txt555" @click="onPageJump('/pages/miniClass/classInfo',item.id)">
|
||||
<view class="txt555" @click="onPageJump('/pages/miniClass/classInfoMan',item.id)">
|
||||
{{item.title}}
|
||||
</view>
|
||||
<view class="jianjie">
|
||||
@@ -46,7 +46,7 @@
|
||||
</view> -->
|
||||
<view class="btn_box" >
|
||||
<!-- <text @click="enterClass" v-show="item.state == '0'">一键加入</text> -->
|
||||
<text class="seeInfo" @click="onPageJump('/pages/miniClass/classInfo',item.id)">进入班级</text>
|
||||
<text class="seeInfo" @click="onPageJump('/pages/miniClass/classInfoMan',item.id)">进入班级</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -62,23 +62,7 @@
|
||||
:iconStyle="iconStyle"></u-back-top>
|
||||
</view>
|
||||
<z-navigation></z-navigation>
|
||||
<u-popup v-if="pupShow" key="1" :show="pupShow" :round="10" @close="closePup">
|
||||
<view style="padding: 40rpx;" class="flex_box box6">
|
||||
<view class="" style="width: 100%; text-align: center;">
|
||||
<text>请选择您要创建的班级类型</text>
|
||||
<uni-data-select
|
||||
class="addType"
|
||||
v-model="addType"
|
||||
:localdata="range"
|
||||
@change="selectChange"
|
||||
placement="top"
|
||||
></uni-data-select>
|
||||
<view class="btnBox flex_box" style="text-align: center; width: 100%;">
|
||||
<button size="" style="width: 40%;" type="primary" @click="goCreateClass">确定</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</u-popup>
|
||||
|
||||
<!-- <music-play :playData="playData"></music-play> -->
|
||||
</view>
|
||||
</view>
|
||||
@@ -96,11 +80,7 @@
|
||||
return {
|
||||
playData: {},
|
||||
addType:undefined, // 小班类型
|
||||
range:[
|
||||
{ value: '0', text: "普通小班",name:"普通小班"},
|
||||
{ value: '1', text: "联合班" ,name:"普通小班"},
|
||||
{ value: '2', text: "精英班" ,name:"普通小班"},
|
||||
],
|
||||
|
||||
tagId: null,
|
||||
pid:null,
|
||||
fixed: false,
|
||||
@@ -143,14 +123,13 @@
|
||||
onLoad(e) {
|
||||
// 隐藏原生的tabbar
|
||||
uni.hideTabBar();
|
||||
// this.tagId = e.id
|
||||
this.curTagId = this.range[0].value
|
||||
// this.tagId = e.id
|
||||
this.subTabId = this.subList[0].id
|
||||
this.pageTitle = e.title
|
||||
this.pid = e.pid
|
||||
console.log(e, '传入分类id')
|
||||
this.getUserInfo()
|
||||
this.getData()
|
||||
|
||||
// this.getCateList(this.tagId)
|
||||
},
|
||||
onPageScroll(e) {
|
||||
@@ -182,7 +161,8 @@
|
||||
},
|
||||
//页面显示
|
||||
onShow() {
|
||||
this.addType = undefined
|
||||
// this.addType = undefined
|
||||
this.getData()
|
||||
// 隐藏原生的tabbar
|
||||
// uni.hideTabBar();
|
||||
},
|
||||
@@ -191,6 +171,11 @@
|
||||
},
|
||||
//方法
|
||||
methods: {
|
||||
goAddClasss(){
|
||||
uni.navigateTo({
|
||||
url:'/pages/miniClass/addClass'
|
||||
})
|
||||
},
|
||||
getUserInfo() {
|
||||
// 获取个人信息
|
||||
if (this.userInfo.id != undefined) {
|
||||
@@ -219,24 +204,7 @@
|
||||
surl(imageurl) {
|
||||
return `url(${imageurl})`
|
||||
},
|
||||
goCreateClass(){
|
||||
console.log('this.addType',this.addType);
|
||||
if(this.addType != undefined){
|
||||
this.pupShow = false
|
||||
setTimeout(()=> {
|
||||
uni.navigateTo({
|
||||
url:`/pages/miniClass/addClass?type=${this.addType}`
|
||||
})
|
||||
},300)
|
||||
|
||||
}else{
|
||||
uni.showToast({
|
||||
title:'请选择班级的类型',
|
||||
icon:'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
},
|
||||
|
||||
fatherClick(e) {
|
||||
console.log('点击', e)
|
||||
this.page = 1
|
||||
|
||||
Reference in New Issue
Block a user