添加token

This commit is contained in:
闫晓茹 2023-10-12 13:39:34 +08:00
parent 1ce4c97c9f
commit d11b8b6c07
7 changed files with 44 additions and 14 deletions

View File

@ -2,6 +2,9 @@ import request from "../../request.js"
export function appServiceOrder(id,pageSize,pageNum) {
return request({
url: `/nurseApp/login/appServiceOrder?pageSize=${pageSize}&pageNum=${pageNum}&patientId=${id}`,
method: 'GET'
method: 'GET',
header: {
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
},
})
}

View File

@ -3,7 +3,10 @@ import request from "../../request.js"
export function goodsList(pageSize, pageNum, goodsCategoryId, goodsName) {
return request({
url: `/nurseApplet/nursingStationGoods/goodsList?pageSize=${pageSize}&pageNum=${pageNum}&goodsCategoryId=${goodsCategoryId}&goodsName=${goodsName}`,
method: 'GET'
method: 'GET',
header: {
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
},
})
}
@ -11,6 +14,9 @@ export function goodsList(pageSize, pageNum, goodsCategoryId, goodsName) {
export function getGoodsCategoryNameList(goodsCategoryId) {
return request({
url: `/nurseApplet/nursingStationGoods/getGoodsCategoryNameList?goodsCategoryId=${goodsCategoryId}`,
method: 'GET'
method: 'GET',
header: {
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
},
})
}

View File

@ -4,7 +4,10 @@ import request from "../../request.js"
export function introductionList(id, longitude, latitude) {
return request({
url: `/nurseApplet/nearbyNursingStation/introductionList?nurseStationId=${id}&homeLongitude=${longitude}&homeLatitude=${latitude}`,
method: 'GET'
method: 'GET',
header: {
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
},
})
}
@ -12,13 +15,19 @@ export function introductionList(id, longitude, latitude) {
export function itemList(id, pageSize, pageNum, nurseClassifyInfoId) {
return request({
url: `/nurseApplet/nearbyNursingStation/itemList?pageSize=${pageSize}&pageNum=${pageNum}&nurseStationId=${id}&nurseClassifyInfoId=${nurseClassifyInfoId}`,
method: 'GET'
method: 'GET',
header: {
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
},
})
}
export function productInformation(id, pageNum, pageSize) {
return request({
url: `/nurseApplet/nearbyNursingStation/productInformation?pageSize=${pageSize}&pageNum=${pageNum}&nurseStationId=${id}`,
method: 'GET'
method: 'GET',
header: {
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
},
})
}

View File

@ -3,6 +3,9 @@ import request from "../../request.js"
export function screeningResultList(patientId,pageNum,pageSize) {
return request({
url: `/nurseApplet/screening/record/record?patientId=${patientId}&pageNum=${pageNum}&pageSize=${pageSize}`,
method: 'GET'
method: 'GET',
header: {
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
},
})
}
}

View File

@ -3,6 +3,9 @@ import request from "../../request.js"
export function goodsCategoryList(pageSize, pageNum) {
return request({
url: `/nurseApplet/nursingStationGoods/goodsCategoryList?pageSize=${pageSize}&pageNum=${pageNum}&categoryLevel=${1}`,
method: 'GET'
method: 'GET',
header: {
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
},
})
}

View File

@ -3,7 +3,10 @@ import request from "../../request.js"
export function nearbyList(pageSize, pageNum, longitude, latitude,ClassifyInfoId,itemClassId,searchName) {
return request({
url: `/nurseApplet/nearbyNursingStation/nearbyList?pageSize=${pageSize}&pageNum=${pageNum}&homeLongitude=${longitude}&homeLatitude=${latitude}&nurseClassifyInfoId=${ClassifyInfoId}&nurseItemClassifyInfoId=${itemClassId}&searchName=${searchName}`,
method: 'GET'
method: 'GET',
header: {
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
},
})
}
@ -19,6 +22,9 @@ export function getPatientInfo(id) {
export function getNurseClassifyList() {
return request({
url: `/nurseApplet/nearbyNursingStation/getNurseClassifyList?moduleType=NURSE_AGENCY_INTRODUCE_MODULE`,
method: 'GET'
method: 'GET',
header: {
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
},
})
}

View File

@ -83,7 +83,7 @@
width: 50rpx;
height: 50rpx;
border-radius: 70%;
border: 2rpx solid #178ffb;
border: 2rpx solid #26A888;
position: absolute;
top: 50%;
left: 5%;
@ -93,7 +93,7 @@
width: 16rpx;
height: 16rpx;
border-radius: 50%;
background-color: #178ffb;
background-color: #26A888;
position: absolute;
top: 50%;
left: 50%;
@ -106,7 +106,7 @@
.finish {
width: 70%;
height: 71rpx;
background: #557BC2;
background: #26A888;
border-radius: 36rpx;
text-align: center;
line-height: 71rpx;