From 34362eb928dc3bc0f23bb961b2181782a924ce18 Mon Sep 17 00:00:00 2001 From: libowei <3423564950@qq.com> Date: Tue, 5 Dec 2023 18:17:41 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/http.interceptor.js | 2 +- .../teacher_teachers/components/slander.vue | 0 .../teacher_teachers/teacher_writeadd.vue | 93 +------------------ 3 files changed, 5 insertions(+), 90 deletions(-) create mode 100644 pages_teacher/teacher_teachers/components/slander.vue diff --git a/common/http.interceptor.js b/common/http.interceptor.js index 8f0ee75..3b938a3 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 b85a1a24553c4f6fa374e18539daf70d" + const token = "Bearer 8005fb2dde6e44a3aff61d67e8ef5bcf" // console.log("我是token", token) config.header.Authorization = token; // #ifdef H5 diff --git a/pages_teacher/teacher_teachers/components/slander.vue b/pages_teacher/teacher_teachers/components/slander.vue new file mode 100644 index 0000000..e69de29 diff --git a/pages_teacher/teacher_teachers/teacher_writeadd.vue b/pages_teacher/teacher_teachers/teacher_writeadd.vue index 6f63652..08c2d40 100644 --- a/pages_teacher/teacher_teachers/teacher_writeadd.vue +++ b/pages_teacher/teacher_teachers/teacher_writeadd.vue @@ -15,6 +15,7 @@ + @@ -166,23 +167,10 @@ + + diff --git a/pages_teacher/teacher_teachers/teacher_writeadd.vue b/pages_teacher/teacher_teachers/teacher_writeadd.vue index 08c2d40..7c9ef60 100644 --- a/pages_teacher/teacher_teachers/teacher_writeadd.vue +++ b/pages_teacher/teacher_teachers/teacher_writeadd.vue @@ -207,8 +207,7 @@ slander }, onLoad() { - this.getList() - this.getCompose() + // this.getCompose() }, methods: { upType(index, num) { @@ -218,15 +217,15 @@ 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) - } - }) - }, + // 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) {