From 3169e5b8e64b7b289d5c0cc124e3def983bafd65 Mon Sep 17 00:00:00 2001
From: libowei <3423564950@qq.com>
Date: Wed, 6 Dec 2023 10:20:18 +0800
Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9token?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
common/http.interceptor.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/common/http.interceptor.js b/common/http.interceptor.js
index 221de4d..e39bbe9 100644
--- a/common/http.interceptor.js
+++ b/common/http.interceptor.js
@@ -41,7 +41,7 @@ const install = (Vue, vm) => {
// 方式四,如果token放在了Storage本地存储中,拦截是每次请求都执行的
// 所以哪怕您重新登录修改了Storage,下一次的请求将会是最新值
// const token = uni.getStorageSync('token');
- const token = "Bearer e33c7c66dd374ea3a07312503d548978"
+ const token = "Bearer cd3f47ecdcb0411c867d3cb4df961f40"
// console.log("我是token", token)
config.header.Authorization = token;
// #ifdef H5
From e150f9584b1025e25b19f0d334c4ebda6294e605 Mon Sep 17 00:00:00 2001
From: libowei <3423564950@qq.com>
Date: Wed, 6 Dec 2023 16:55:07 +0800
Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=85=8D=E7=BD=AE?=
=?UTF-8?q?=E6=96=87=E4=BB=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
common/http.interceptor.js | 2 +-
pages.json | 133 ++++++++--------
.../teacher_teachers/teacher_writeadd.vue | 142 +-----------------
3 files changed, 75 insertions(+), 202 deletions(-)
diff --git a/common/http.interceptor.js b/common/http.interceptor.js
index 5dc3230..c0daeb6 100644
--- a/common/http.interceptor.js
+++ b/common/http.interceptor.js
@@ -41,7 +41,7 @@ const install = (Vue, vm) => {
// 方式四,如果token放在了Storage本地存储中,拦截是每次请求都执行的
// 所以哪怕您重新登录修改了Storage,下一次的请求将会是最新值
// const token = uni.getStorageSync('token');
- const token = " Bearer a75c44e23b7740c48740c95ae3b7b427"
+ const token = " Bearer 6ecfb3a42c3d43b3b950c6e911e46223"
// console.log("我是token", token)
config.header.Authorization = token;
// config.header.Tenant-Id=1
diff --git a/pages.json b/pages.json
index c9c45a4..33d5d2d 100644
--- a/pages.json
+++ b/pages.json
@@ -43,69 +43,7 @@
"navigationStyle": "custom"
}
},
- {
- "path" : "pages_teacher/teacher_class/class_detail",
- "style" :
- {
- "navigationBarTitleText": "班级详情",
- "navigationBarBackgroundColor": "#4473f6",
- "enablePullDownRefresh": false,
- "navigationStyle": "custom"
- }
- },
- {
- "path" : "pages_teacher/pages_add/add_operation",
- "style" :
- {
- "navigationBarTitleText": "添加听力",
- "navigationBarBackgroundColor": "#4473f6",
- "enablePullDownRefresh": false,
- "navigationStyle": "custom"
- }
- },
- {
- "path":"pages_teacher/teacher_teachers/teacher_addOperation",
- "style" :
- {
- "navigationBarTitleText": "添加作业",
- "navigationBarBackgroundColor": "#4473f6",
- "enablePullDownRefresh": false,
- "navigationStyle": "custom"
- }
- },
-
- {
- "path":"pages_teacher/teacher_teachers/teacher_speechadd",
- "style" :
- {
- "navigationBarTitleText": "添加口语",
- "navigationBarBackgroundColor": "#4473f6",
- "enablePullDownRefresh": false,
- "navigationStyle": "custom"
- }
- },
- {
- "path":"pages_teacher/teacher_teachers/teacher_writeadd",
- "style" :
- {
- "navigationBarTitleText": "添加写作",
- "navigationBarBackgroundColor": "#4473f6",
- "enablePullDownRefresh": false,
- "navigationStyle": "custom"
- }
-
- },
- {
- "path":"pages_teacher/teacher_teachers/operation_detail",
- "style" :
- {
- "navigationBarTitleText": "作业详情",
- "navigationBarBackgroundColor": "#4473f6",
- "enablePullDownRefresh": false,
- "navigationStyle": "custom"
- }
-
- },
+
{
@@ -190,6 +128,73 @@
}
}
],
+ "subPackages": [
+ {
+ "root": "pages_teacher",
+ "pages": [
+ {
+ "path":"teacher_teachers/teacher_writeadd",
+ "style" :
+ {
+ "navigationBarTitleText": "添加写作",
+ "navigationBarBackgroundColor": "#4473f6",
+ "enablePullDownRefresh": false,
+ "navigationStyle": "custom"
+ }
+
+ },
+ {
+ "path":"teacher_teachers/operation_detail",
+ "style" :
+ {
+ "navigationBarTitleText": "作业详情",
+ "navigationBarBackgroundColor": "#4473f6",
+ "enablePullDownRefresh": false,
+ "navigationStyle": "custom"
+ }
+
+ },
+ {
+ "path":"teacher_teachers/teacher_addOperation",
+ "style" :
+ {
+ "navigationBarTitleText": "添加作业",
+ "navigationBarBackgroundColor": "#4473f6",
+ "enablePullDownRefresh": false,
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path" : "pages_add/add_operation",
+ "style" :
+ {
+ "navigationBarTitleText": "添加听力",
+ "navigationBarBackgroundColor": "#4473f6",
+ "enablePullDownRefresh": false,
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path" : "teacher_class/class_detail",
+ "style" :
+ {
+ "navigationBarTitleText": "班级详情",
+ "navigationBarBackgroundColor": "#4473f6",
+ "enablePullDownRefresh": false,
+ "navigationStyle": "custom"
+ }
+ }
+
+ ]
+ }
+
+
+
+
+
+
+
+ ],
"globalStyle": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "uni-app",
@@ -197,5 +202,7 @@
"backgroundColor": "#F8F8F8"
},
"uniIdRouter": {}
+
+
}
diff --git a/pages_teacher/teacher_teachers/teacher_writeadd.vue b/pages_teacher/teacher_teachers/teacher_writeadd.vue
index f5fa67f..e948bc8 100644
--- a/pages_teacher/teacher_teachers/teacher_writeadd.vue
+++ b/pages_teacher/teacher_teachers/teacher_writeadd.vue
@@ -19,127 +19,7 @@
-
-
- {{item.examName}}
- test1
- test2
- test3
- test4
-
-
-
-
-
- Test 1
-
- 曲线图
- 政府
-
-
-
-
-
-
-
-
-
- Test 1
-
- 曲线图
- 政府
-
-
-
-
-
-
-
-
-
-
-
- Test 2
-
- 曲线图
- 政府
-
-
-
-
-
-
-
-
-
- Test 2
-
- 曲线图
- 政府
-
-
-
-
-
-
-
-
-
-
-
- Test 3
-
- 曲线图
- 政府
-
-
-
-
-
-
-
-
-
- Test 3
-
- 曲线图
- 政府
-
-
-
-
-
-
-
-
-
-
-
- Test 4
-
- 曲线图
- 政府
-
-
-
-
-
-
-
-
-
- Test 4
-
- 曲线图
- 政府
-
-
-
-
-
-
-
-
+
@@ -166,6 +46,7 @@
import audiology from './components/audiology.vue'
import reading from './components/reading.vue'
import slander from './components/slander.vue'
+ import compose from './components/compose.vue'
export default {
data() {
return {
@@ -187,40 +68,25 @@
name: '1',
disabled: false
}],
- // 写作
- Compose: [],
num:0,
// 下拉框的v-if布尔值
radioValue: '',
part1: true,
current: 0,
search: true,
- listType: [],
idList: [],
}
},
components:{
audiology,
reading,
- slander
+ slander,
+ compose
},
methods: {
- upType(index, num) {
- this.listType.splice(index, 1, num)
- },
change(index) {
this.current = index;
},
- //写作接口
- // getCompose() {
- // this.$u.post('https://api.admin-v2.langsi.online/admin-api/speaking/topic/home/list').then(res => {
- // this.Compose = res.data
- // console.log(this.Compose)
- // for (let i = 0; i < res.data.length; i++) {
- // this.listType.push(1)
- // }
- // })
- // },
// 选中某个单选框时,由radio时触发
radioCheck(index) {
if (this.radioValue == this.list2[index].id) {