From dc6ab6a28942b2efb08678de93a9d902034be2cd Mon Sep 17 00:00:00 2001
From: unknown <331404948@qq.com>
Date: Fri, 3 Nov 2023 14:36:04 +0800
Subject: [PATCH] =?UTF-8?q?=E5=87=86=E5=A4=87=E4=B8=8Bqs?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../appointItem-student/appointItem-student.vue | 2 +-
config/request.js | 31 ++++++++++++++++++++-
manifest.json | 2 +-
pages.json | 3 --
pages/login/login.vue | 2 +-
pages/tabbar/student/index.vue | 9 +++++-
static/images/index/newSatus.png | Bin 0 -> 1120 bytes
7 files changed, 41 insertions(+), 8 deletions(-)
create mode 100644 static/images/index/newSatus.png
diff --git a/components/appointItem-student/appointItem-student.vue b/components/appointItem-student/appointItem-student.vue
index 4edca22..c811fbb 100644
--- a/components/appointItem-student/appointItem-student.vue
+++ b/components/appointItem-student/appointItem-student.vue
@@ -33,7 +33,7 @@
-
+
最新状态:就先放着不做
diff --git a/config/request.js b/config/request.js
index ae56f9f..a227d54 100644
--- a/config/request.js
+++ b/config/request.js
@@ -28,7 +28,7 @@ module.exports = (vm) => {
// alert(contentTypeIndex)
config.header['content-type'] = ContentType[contentTypeIndex]
}
- // config.header['content-type'] = 'application/x-www-form-urlencoded; charset=UTF-8'
+ config.header['content-type'] = 'application/json;charset=utf-8'
// 初始化请求拦截器时,会执行此方法,此时data为undefined,赋予默认{}
config.data = config.data || {}
// 根据custom参数中配置的是否需要token,添加对应的请求头
@@ -40,6 +40,35 @@ module.exports = (vm) => {
if(noToken&&config.header.Authorization) {
delete config.header.Authorization
}
+
+ // get请求映射params参数
+ console.log(config.method)
+ // if (config.method === 'GET' && config.params) {
+ // let url = config.url + '?';
+ // for (const propName of Object.keys(config.params)) {
+ // const value = config.params[propName];
+ // const part = encodeURIComponent(propName) + '='
+ // if (value !== null && typeof(value) !== "undefined") {
+
+ // if (typeof value === 'object') {
+ // for (const key of Object.keys(value)) {
+ // let params = propName + '[' + key + ']';
+ // const subPart = params + '='
+ // // console.log(subPart + (value[key]) + '&')
+ // url += subPart + decodeURIComponent(value[key]) + "&";
+
+ // }
+
+ // } else {
+ // url += part + encodeURI(value) + "&";
+ // }
+ // }
+ // }
+ // url = url.slice(0, -1);
+ // console.log(url)
+ // config.params = {};
+ // config.url = url;
+ // }
return config
}, config => { // 可使用async await 做异步操作
return Promise.reject(config)
diff --git a/manifest.json b/manifest.json
index 4cdbdbe..de2d416 100644
--- a/manifest.json
+++ b/manifest.json
@@ -82,7 +82,7 @@
"disableHostCheck" : true,
"proxy" : {
"/api" : {
- "target" : "http://192.168.1.39:48080/",
+ "target" : "http://192.168.1.36:48080/",
"changeOrigin" : true,
"secure" : true,
"pathRewrite" : {
diff --git a/pages.json b/pages.json
index 0e33eda..6c1cbfa 100644
--- a/pages.json
+++ b/pages.json
@@ -297,9 +297,6 @@
]
}
-
-
-
],
"globalStyle": {
"navigationBarTextStyle": "black",
diff --git a/pages/login/login.vue b/pages/login/login.vue
index 1179cc8..df70428 100644
--- a/pages/login/login.vue
+++ b/pages/login/login.vue
@@ -33,7 +33,7 @@
-->
-
+
diff --git a/pages/tabbar/student/index.vue b/pages/tabbar/student/index.vue
index efcffcf..96ca94a 100644
--- a/pages/tabbar/student/index.vue
+++ b/pages/tabbar/student/index.vue
@@ -143,7 +143,14 @@
methods: {
confirmDatePicker(val) {
this.showDatePicker = false
- this.params.applyDate = this.screen.timer = uni.$u.date(val.value, 'yyyy-mm-dd')
+
+ // this.params.applyDate = this.screen.timer = uni.$u.date(val.value, 'yyyy-mm-dd')
+ this.screen.timer = uni.$u.date(val.value, 'yyyy-mm-dd')
+ let startTimer = this.screen.timer + ' 00:00:00'
+ let endTimer = this.screen.timer+ ' 23:59:59'
+ this.params.applyDate = [startTimer, endTimer]
+ // this.params['applyDate[0]'] = encodeURI(startTimer)
+ // this.params['applyDate[1]'] = encodeURI(endTimer)
this.listInit()
},
confirmCar(val) {
diff --git a/static/images/index/newSatus.png b/static/images/index/newSatus.png
new file mode 100644
index 0000000000000000000000000000000000000000..32d1269ef0b7a5c0cb4db4772577807245027760
GIT binary patch
literal 1120
zcmV-m1fTnfP)Px#L}ge>W=%~1DgXcg2mk?xX#fNO00031000^Q000001E2u_0{{R30RRC20H6W@
z1ONa40RR91BA^2R1ONa40RR919smFU0A{Q7(*OVi%1J~)R9Fe^mQ6@hQ545@96u5?
zG^mYAi(K@D)g~fWk_1CYi?9|U%s6VBR8Yu3L4y(stq6&kaUw0D1dUcfiwgP>TSW_t
zT4bA`2vi(#f*I|1rhDbhdoyolY*x{OJLleW{^x)G_r81Yo1C2gPy7nx#t$7QtdXk*45#@cV626NWY=BoGMH!FEy@5%8$Bwbdn!;k5V=(%|>|k4Zn>Cu1R#
zlaqOCYil=DfnNye(!~l23c47FWsI2Xg4MB9He(@+i;HcL?pMS^?1eA7h}-R+N63&G
z?^{}0I;Uf)Y(_#RCML?5=_Mhh;J31}vO#l!!otEqiHTpZqobqcW=x`SMnXcNP(LKw
z6j4uOV`GS74)(*CH0g76R}gYRFpSH2jROjAYtlZxY|!11zK6|8n`Ltzq2M|*J{pZi
zUrCj`yu4bk*ZUd)xd@xVb(j{(&(E*%csz50N%o|@B9LE)#3{wG9m>kAi#56KOAJx%
z3ge7KB6@RcsKurwgxQ^-$Z?f@zpbrp*1}|RurhCP-4i#t^>8$pAaTQ#LO6m25DiNf
zGhAV&J#h>+1F#nfhZJN;xRSwB3gNi6lUywX2)WYS+#EX*$q0>p!Ag$!n9MGYbB8f*
z?Ar>F?+FBbDq-H~bjDW3NRX;uQBg6BnAlyzX76Rw??{wmD}?XKWs*uI5wdPBtk|uY
zh$xxQ<#NgG+pXfIOiVZ}Pf{Tq%Y&djk^#{Rj_Z^q8wazDXuq+qePX$Nr!mi^j}W)d
z=Q|{QgHGYXAvJ|N?n!u|@g7ej
z39PO#_bbZB``4g|IWM)I$xitO!SJ3nH!x01=BM_G)k<%Q6?!?oi|!
z*n|_)dBppKQ^rz5YU!9o2**`kLzMtX8sPH!sliEXEq*sey4hDdlVD*CrAC+#{tBgBH<;Q>Z=*>m*XnorpZzMpt&qUP}xs#3eZ;U
zU0#pIX4O(BN*mCmmOa9edQ9*vO@FL3Hft6E%Thztit$?Zh^`h4221!KQA1LR_GQDe
m(#!nCd?)|zvcdQ7a{LD3(T6?EH3wV(0000