页面渲染 数据添加
This commit is contained in:
		
							parent
							
								
									cd12bae74f
								
							
						
					
					
						commit
						61b20268dc
					
				
							
								
								
									
										20
									
								
								pages.json
									
									
									
									
									
								
							
							
						
						
									
										20
									
								
								pages.json
									
									
									
									
									
								
							| 
						 | 
				
			
			@ -151,11 +151,13 @@
 | 
			
		|||
			}
 | 
			
		||||
		},
 | 
			
		||||
		{
 | 
			
		||||
			"path" : "pages/Mystudent/all_arrange/all_arrange",
 | 
			
		||||
			"path" : "pages/Mystudent/all_arrange",
 | 
			
		||||
			"style" : 
 | 
			
		||||
			{
 | 
			
		||||
				"navigationBarTitleText" : "",
 | 
			
		||||
				"enablePullDownRefresh" : false
 | 
			
		||||
				"navigationBarTitleText": "",
 | 
			
		||||
				"navigationBarBackgroundColor": "#4473f6",
 | 
			
		||||
				"enablePullDownRefresh": false,
 | 
			
		||||
				"navigationStyle": "custom"
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		
 | 
			
		||||
| 
						 | 
				
			
			@ -265,20 +267,20 @@
 | 
			
		|||
				"backgroundColor": "#ffffff",
 | 
			
		||||
				"list": [
 | 
			
		||||
					{
 | 
			
		||||
						"selectedIconPath": "/static/tabbar/home.png",
 | 
			
		||||
						"iconPath": "/static/tabbar/home-active.png",
 | 
			
		||||
						"selectedIconPath": "/static/tabbar/home-active.png",
 | 
			
		||||
						"iconPath": "/static/tabbar/home.png",
 | 
			
		||||
						"pagePath": "pages/index/index",
 | 
			
		||||
						"text": "首页"
 | 
			
		||||
					},
 | 
			
		||||
					{
 | 
			
		||||
						"selectedIconPath": "/static/tabbar/tiku.png",
 | 
			
		||||
						"iconPath": "/static/tabbar/tiku-act.png",
 | 
			
		||||
						"selectedIconPath": "/static/tabbar/tiku-act.png",
 | 
			
		||||
						"iconPath": "/static/tabbar/tiku.png",
 | 
			
		||||
						"pagePath": "pages/Mystudent/student",
 | 
			
		||||
						"text": "班级"
 | 
			
		||||
					}
 | 
			
		||||
					,{
 | 
			
		||||
						"selectedIconPath": "/static/tabbar/my.png",
 | 
			
		||||
						"iconPath": "/static/tabbar/my-active.png",
 | 
			
		||||
						"selectedIconPath": "/static/tabbar/my-active.png",
 | 
			
		||||
						"iconPath": "/static/tabbar/my.png",
 | 
			
		||||
						"pagePath": "pages/user/user",
 | 
			
		||||
						"text": "我的"
 | 
			
		||||
					}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -110,7 +110,7 @@
 | 
			
		|||
		<view class="zhanwei" style="width: 100%;height: 60rpx;">
 | 
			
		||||
			
 | 
			
		||||
		</view>
 | 
			
		||||
		<view class="botbtn">
 | 
			
		||||
		<view class="botbtn" @click="addwork()">
 | 
			
		||||
			<view class="btn">
 | 
			
		||||
				添加作业
 | 
			
		||||
			</view>
 | 
			
		||||
| 
						 | 
				
			
			@ -145,13 +145,26 @@
 | 
			
		|||
				searchKeyword: '',
 | 
			
		||||
			}
 | 
			
		||||
		},
 | 
			
		||||
		onLoad(option) {
 | 
			
		||||
		onLoad() {
 | 
			
		||||
			// console.log(option);
 | 
			
		||||
			// this.classid = option.classId
 | 
			
		||||
			// this.classid=15
 | 
			
		||||
			this.getworklist()
 | 
			
		||||
		},
 | 
			
		||||
		onShow() {
 | 
			
		||||
			this.getworklist()
 | 
			
		||||
		},
 | 
			
		||||
		methods: {
 | 
			
		||||
			addwork(){
 | 
			
		||||
				
 | 
			
		||||
				uni.navigateTo({
 | 
			
		||||
					url: "/pages_teacher/teacher_teachers/teacher_addOperation" 
 | 
			
		||||
				}).then(res => {
 | 
			
		||||
				
 | 
			
		||||
				}).catch(err => {
 | 
			
		||||
				
 | 
			
		||||
				});
 | 
			
		||||
			},
 | 
			
		||||
			toworkdetail(id){
 | 
			
		||||
				uni.navigateTo({
 | 
			
		||||
					url: "/pages_teacher/teacher_teachers/operation_detail?id=" + id
 | 
			
		||||
| 
						 | 
				
			
			@ -181,6 +194,7 @@
 | 
			
		|||
			},
 | 
			
		||||
 | 
			
		||||
			getworklist() {
 | 
			
		||||
				console.log('调用看了');
 | 
			
		||||
				this.$u.get(`https://api.admin-v2.langsi.online/admin-api/classroom/work-record/all-list`).then(res => {
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -110,7 +110,7 @@
 | 
			
		|||
		<view class="zhanwei" style="width: 100%;height: 60rpx;">
 | 
			
		||||
			
 | 
			
		||||
		</view>
 | 
			
		||||
		<view class="botbtn">
 | 
			
		||||
		<view class="botbtn" @click="addwork()">
 | 
			
		||||
			<view class="btn">
 | 
			
		||||
				添加作业
 | 
			
		||||
			</view>
 | 
			
		||||
| 
						 | 
				
			
			@ -152,6 +152,16 @@
 | 
			
		|||
			this.getworklist()
 | 
			
		||||
		},
 | 
			
		||||
		methods: {
 | 
			
		||||
			addwork(){
 | 
			
		||||
				
 | 
			
		||||
				uni.navigateTo({
 | 
			
		||||
					url: "/pages_teacher/teacher_teachers/teacher_addOperation" 
 | 
			
		||||
				}).then(res => {
 | 
			
		||||
				
 | 
			
		||||
				}).catch(err => {
 | 
			
		||||
				
 | 
			
		||||
				});
 | 
			
		||||
			},
 | 
			
		||||
			toworkdetail(id){
 | 
			
		||||
				uni.navigateTo({
 | 
			
		||||
					url: "/pages_teacher/teacher_teachers/operation_detail?id=" + id
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -65,9 +65,9 @@
 | 
			
		|||
					<view class="check" :class="checkindex == 1 ? 'act1' : ''" @click="checkindex = 1">
 | 
			
		||||
						班级
 | 
			
		||||
					</view>
 | 
			
		||||
					<view class="check" :class="checkindex == 0 ? 'act1' : ''" @click="checkindex = 0">
 | 
			
		||||
					<!-- <view class="check" :class="checkindex == 0 ? 'act1' : ''" @click="checkindex = 0">
 | 
			
		||||
						学生
 | 
			
		||||
					</view>
 | 
			
		||||
					</view> -->
 | 
			
		||||
 | 
			
		||||
					<view class="add" @click="addsmt()">
 | 
			
		||||
						+ 添加
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -37,29 +37,29 @@
 | 
			
		|||
			</view>
 | 
			
		||||
			<view class="view_centre">
 | 
			
		||||
				<view>
 | 
			
		||||
					<view class="view_centre_images">
 | 
			
		||||
					<view class="view_centre_images" @click="topage(1)">
 | 
			
		||||
						<image src="https://file.langsi.online/yasiimg/web/static/uif1JIGCJXguCEO3Mdqx" mode=""></image>
 | 
			
		||||
					</view>
 | 
			
		||||
					<text>作业安排</text>
 | 
			
		||||
				</view>
 | 
			
		||||
				<view>
 | 
			
		||||
				<!-- <view>
 | 
			
		||||
					<view class="view_centre_images">
 | 
			
		||||
						<image src="https://file.langsi.online/yasiimg/web/static/u4BHxtTvVDGUDFaKPHz2" mode=""></image>
 | 
			
		||||
					</view>
 | 
			
		||||
					<text>学生管理</text>
 | 
			
		||||
				</view>
 | 
			
		||||
				</view> -->
 | 
			
		||||
				<view>
 | 
			
		||||
					<view class="view_centre_images">
 | 
			
		||||
						<image src="https://file.langsi.online/yasiimg/web/static/uPqAU9hXDLOa1zrX4xJX" mode=""></image>
 | 
			
		||||
					</view>
 | 
			
		||||
					<text>班级管理</text>
 | 
			
		||||
				</view>
 | 
			
		||||
				<view>
 | 
			
		||||
				<!-- <view>
 | 
			
		||||
					<view class="view_centre_images">
 | 
			
		||||
						<image src="https://file.langsi.online/yasiimg/web/static/uWHKotvBvHfXxwFzHiMP" mode=""></image>
 | 
			
		||||
					</view>
 | 
			
		||||
					<text>切换题库</text>
 | 
			
		||||
				</view>
 | 
			
		||||
				</view> -->
 | 
			
		||||
			</view>
 | 
			
		||||
			<view class="view_footer">
 | 
			
		||||
				<view>
 | 
			
		||||
| 
						 | 
				
			
			@ -109,7 +109,17 @@
 | 
			
		|||
			}
 | 
			
		||||
		},
 | 
			
		||||
		methods: {
 | 
			
		||||
 | 
			
		||||
			topage(num){
 | 
			
		||||
				if(num==1){
 | 
			
		||||
					uni.navigateTo({
 | 
			
		||||
						url: "/pages/Mystudent/all_arrange"
 | 
			
		||||
					}).then(res => {
 | 
			
		||||
					
 | 
			
		||||
					}).catch(err => {
 | 
			
		||||
					
 | 
			
		||||
					});
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
</script>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -303,15 +303,15 @@
 | 
			
		|||
				selectwritelist: [],
 | 
			
		||||
				selectlistenlist: [],
 | 
			
		||||
				selectreadlist: [],
 | 
			
		||||
				classword: 'aaa',
 | 
			
		||||
				classword: '',
 | 
			
		||||
				mocktype:'0'
 | 
			
		||||
 | 
			
		||||
			}
 | 
			
		||||
		},
 | 
			
		||||
		onLoad(option) {
 | 
			
		||||
			// uni.removeStorageSync('selectedClassInfo');
 | 
			
		||||
			// uni.removeStorageSync('selectedStuInfo');
 | 
			
		||||
			// uni.removeStorageSync('selectforwork');
 | 
			
		||||
			uni.removeStorageSync('selectedClassInfo');
 | 
			
		||||
			uni.removeStorageSync('selectedStuInfo');
 | 
			
		||||
			uni.removeStorageSync('selectforwork');
 | 
			
		||||
			this.classinfo = JSON.parse(decodeURIComponent(option.classinfo))
 | 
			
		||||
			// let classinofs = [{
 | 
			
		||||
			// 	name: '阅读5班',
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user