页面渲染 数据添加

This commit is contained in:
taoxu 2024-01-11 22:19:54 +08:00
parent cd12bae74f
commit 61b20268dc
6 changed files with 60 additions and 24 deletions

View File

@ -151,11 +151,13 @@
} }
}, },
{ {
"path" : "pages/Mystudent/all_arrange/all_arrange", "path" : "pages/Mystudent/all_arrange",
"style" : "style" :
{ {
"navigationBarTitleText" : "", "navigationBarTitleText": "",
"enablePullDownRefresh" : false "navigationBarBackgroundColor": "#4473f6",
"enablePullDownRefresh": false,
"navigationStyle": "custom"
} }
} }
@ -265,20 +267,20 @@
"backgroundColor": "#ffffff", "backgroundColor": "#ffffff",
"list": [ "list": [
{ {
"selectedIconPath": "/static/tabbar/home.png", "selectedIconPath": "/static/tabbar/home-active.png",
"iconPath": "/static/tabbar/home-active.png", "iconPath": "/static/tabbar/home.png",
"pagePath": "pages/index/index", "pagePath": "pages/index/index",
"text": "首页" "text": "首页"
}, },
{ {
"selectedIconPath": "/static/tabbar/tiku.png", "selectedIconPath": "/static/tabbar/tiku-act.png",
"iconPath": "/static/tabbar/tiku-act.png", "iconPath": "/static/tabbar/tiku.png",
"pagePath": "pages/Mystudent/student", "pagePath": "pages/Mystudent/student",
"text": "班级" "text": "班级"
} }
,{ ,{
"selectedIconPath": "/static/tabbar/my.png", "selectedIconPath": "/static/tabbar/my-active.png",
"iconPath": "/static/tabbar/my-active.png", "iconPath": "/static/tabbar/my.png",
"pagePath": "pages/user/user", "pagePath": "pages/user/user",
"text": "我的" "text": "我的"
} }

View File

@ -110,7 +110,7 @@
<view class="zhanwei" style="width: 100%;height: 60rpx;"> <view class="zhanwei" style="width: 100%;height: 60rpx;">
</view> </view>
<view class="botbtn"> <view class="botbtn" @click="addwork()">
<view class="btn"> <view class="btn">
添加作业 添加作业
</view> </view>
@ -145,13 +145,26 @@
searchKeyword: '', searchKeyword: '',
} }
}, },
onLoad(option) { onLoad() {
// console.log(option); // console.log(option);
// this.classid = option.classId // this.classid = option.classId
// this.classid=15 // this.classid=15
this.getworklist() this.getworklist()
}, },
onShow() {
this.getworklist()
},
methods: { methods: {
addwork(){
uni.navigateTo({
url: "/pages_teacher/teacher_teachers/teacher_addOperation"
}).then(res => {
}).catch(err => {
});
},
toworkdetail(id){ toworkdetail(id){
uni.navigateTo({ uni.navigateTo({
url: "/pages_teacher/teacher_teachers/operation_detail?id=" + id url: "/pages_teacher/teacher_teachers/operation_detail?id=" + id
@ -181,6 +194,7 @@
}, },
getworklist() { getworklist() {
console.log('调用看了');
this.$u.get(`https://api.admin-v2.langsi.online/admin-api/classroom/work-record/all-list`).then(res => { this.$u.get(`https://api.admin-v2.langsi.online/admin-api/classroom/work-record/all-list`).then(res => {

View File

@ -110,7 +110,7 @@
<view class="zhanwei" style="width: 100%;height: 60rpx;"> <view class="zhanwei" style="width: 100%;height: 60rpx;">
</view> </view>
<view class="botbtn"> <view class="botbtn" @click="addwork()">
<view class="btn"> <view class="btn">
添加作业 添加作业
</view> </view>
@ -152,6 +152,16 @@
this.getworklist() this.getworklist()
}, },
methods: { methods: {
addwork(){
uni.navigateTo({
url: "/pages_teacher/teacher_teachers/teacher_addOperation"
}).then(res => {
}).catch(err => {
});
},
toworkdetail(id){ toworkdetail(id){
uni.navigateTo({ uni.navigateTo({
url: "/pages_teacher/teacher_teachers/operation_detail?id=" + id url: "/pages_teacher/teacher_teachers/operation_detail?id=" + id

View File

@ -65,9 +65,9 @@
<view class="check" :class="checkindex == 1 ? 'act1' : ''" @click="checkindex = 1"> <view class="check" :class="checkindex == 1 ? 'act1' : ''" @click="checkindex = 1">
班级 班级
</view> </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()"> <view class="add" @click="addsmt()">
+ 添加 + 添加

View File

@ -37,29 +37,29 @@
</view> </view>
<view class="view_centre"> <view class="view_centre">
<view> <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> <image src="https://file.langsi.online/yasiimg/web/static/uif1JIGCJXguCEO3Mdqx" mode=""></image>
</view> </view>
<text>作业安排</text> <text>作业安排</text>
</view> </view>
<view> <!-- <view>
<view class="view_centre_images"> <view class="view_centre_images">
<image src="https://file.langsi.online/yasiimg/web/static/u4BHxtTvVDGUDFaKPHz2" mode=""></image> <image src="https://file.langsi.online/yasiimg/web/static/u4BHxtTvVDGUDFaKPHz2" mode=""></image>
</view> </view>
<text>学生管理</text> <text>学生管理</text>
</view> </view> -->
<view> <view>
<view class="view_centre_images"> <view class="view_centre_images">
<image src="https://file.langsi.online/yasiimg/web/static/uPqAU9hXDLOa1zrX4xJX" mode=""></image> <image src="https://file.langsi.online/yasiimg/web/static/uPqAU9hXDLOa1zrX4xJX" mode=""></image>
</view> </view>
<text>班级管理</text> <text>班级管理</text>
</view> </view>
<view> <!-- <view>
<view class="view_centre_images"> <view class="view_centre_images">
<image src="https://file.langsi.online/yasiimg/web/static/uWHKotvBvHfXxwFzHiMP" mode=""></image> <image src="https://file.langsi.online/yasiimg/web/static/uWHKotvBvHfXxwFzHiMP" mode=""></image>
</view> </view>
<text>切换题库</text> <text>切换题库</text>
</view> </view> -->
</view> </view>
<view class="view_footer"> <view class="view_footer">
<view> <view>
@ -109,7 +109,17 @@
} }
}, },
methods: { methods: {
topage(num){
if(num==1){
uni.navigateTo({
url: "/pages/Mystudent/all_arrange"
}).then(res => {
}).catch(err => {
});
}
}
} }
} }
</script> </script>

View File

@ -303,15 +303,15 @@
selectwritelist: [], selectwritelist: [],
selectlistenlist: [], selectlistenlist: [],
selectreadlist: [], selectreadlist: [],
classword: 'aaa', classword: '',
mocktype:'0' mocktype:'0'
} }
}, },
onLoad(option) { onLoad(option) {
// uni.removeStorageSync('selectedClassInfo'); uni.removeStorageSync('selectedClassInfo');
// uni.removeStorageSync('selectedStuInfo'); uni.removeStorageSync('selectedStuInfo');
// uni.removeStorageSync('selectforwork'); uni.removeStorageSync('selectforwork');
this.classinfo = JSON.parse(decodeURIComponent(option.classinfo)) this.classinfo = JSON.parse(decodeURIComponent(option.classinfo))
// let classinofs = [{ // let classinofs = [{
// name: '5', // name: '5',