From fb596b2f848fa36b1119409f4106b9c645970336 Mon Sep 17 00:00:00 2001 From: "liujw155@outlook.com" Date: Tue, 2 Mar 2021 18:06:51 +0800 Subject: [PATCH] add api --- src/js/api.js | 1 + src/js/server.js | 6 +- src/pages/course/roll_call/roll_call.vue | 2 +- src/pages/course/task/task.vue | 2 +- src/pages/course/task_finish/task_finish.vue | 3 +- src/pages/course/task_info/task_info.vue | 31 ++++---- src/pages/time/select/select.vue | 109 +++++++++++++++++++++++++-- 7 files changed, 128 insertions(+), 26 deletions(-) diff --git a/src/js/api.js b/src/js/api.js index de7b290..1f623c7 100644 --- a/src/js/api.js +++ b/src/js/api.js @@ -1,4 +1,5 @@ export const ORIGIN = `https://test.ouxuanzhineng.cn`; // 测试 +// export const ORIGIN = `http://testmanager.ouxuanzhineng.cn`; // 测试 // export const ORIGIN = `http://kahing.local:9090`; // 本地测试 // export const ORIGIN = `https://coach.ouxuanzhineng.cn`; // 正式 diff --git a/src/js/server.js b/src/js/server.js index c14b2bc..b905ec7 100644 --- a/src/js/server.js +++ b/src/js/server.js @@ -1,6 +1,6 @@ import util from '../utils/util'; // import { app as vm } from '../main'; -const islog = false; +const islog = true; export class Server { request(url,data,method,header,isDefaultGet,failMsg){ @@ -16,8 +16,8 @@ export class Server { } if(_loginInfo){ data = Object.assign({ - coach_token: _loginInfo.coach_token || '7a04dc20-62c0-11eb-8979-00e04c0166b9', - brand_id: _loginInfo.brand_id || '63', + coach_token: _loginInfo.coach_token, + brand_id: _loginInfo.brand_id, }, data); } diff --git a/src/pages/course/roll_call/roll_call.vue b/src/pages/course/roll_call/roll_call.vue index 4d6e73e..a78c70c 100644 --- a/src/pages/course/roll_call/roll_call.vue +++ b/src/pages/course/roll_call/roll_call.vue @@ -1,6 +1,6 @@