修改
This commit is contained in:
parent
b4e080db92
commit
1f105b7655
@ -1,8 +1,8 @@
|
|||||||
import request from "../request.js"
|
import request from "../request.js"
|
||||||
|
|
||||||
export function nearbyList(pageSize, pageNum, longitude, latitude,nurseClassId,itemClassId) {
|
export function nearbyList(pageSize, pageNum, longitude, latitude,ClassifyInfoId,itemClassId,searchName) {
|
||||||
return request({
|
return request({
|
||||||
url: `/nurseApplet/nearbyNursingStation/getNearbyNursingStationInfoList?pageSize=${pageSize}&pageNum=${pageNum}&homeLongitude=${longitude}&homeLatitude=${latitude}&nurseClassId=${nurseClassId}&itemClassId=${itemClassId}`,
|
url: `/nurseApplet/nearbyNursingStation/nearbyList?pageSize=${pageSize}&pageNum=${pageNum}&homeLongitude=${longitude}&homeLatitude=${latitude}&nurseClassifyInfoId=${ClassifyInfoId}&nurseItemClassifyInfoId=${itemClassId}&searchName=${searchName}`,
|
||||||
method: 'GET'
|
method: 'GET'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3,6 +3,7 @@
|
|||||||
color: #C3C1C1;
|
color: #C3C1C1;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
height:100vh;
|
height:100vh;
|
||||||
|
background-color: #ffffff;
|
||||||
.title{
|
.title{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top:20%;
|
top:20%;
|
||||||
@ -17,7 +18,7 @@
|
|||||||
}
|
}
|
||||||
image{
|
image{
|
||||||
width: 200rpx;
|
width: 200rpx;
|
||||||
height: 100rpx;
|
height: 200rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -94,6 +94,20 @@
|
|||||||
padding: 30rpx 0 50rpx;
|
padding: 30rpx 0 50rpx;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
.noorder{
|
||||||
|
margin-top: 90rpx;
|
||||||
|
image{
|
||||||
|
display: block;
|
||||||
|
margin: 0 auto;
|
||||||
|
width: 100rpx;
|
||||||
|
height: 120rpx;
|
||||||
|
}
|
||||||
|
view{
|
||||||
|
text-align: center;
|
||||||
|
font-size: 36rpx;
|
||||||
|
color: #BFBFBF;
|
||||||
|
}
|
||||||
|
}
|
||||||
.title{
|
.title{
|
||||||
font-size: 32rpx;
|
font-size: 32rpx;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
<view class="app">
|
<view class="app">
|
||||||
<view class="inputs">
|
<view class="inputs">
|
||||||
<i class="icon"></i>
|
<i class="icon"></i>
|
||||||
<input v-model="goodsName" type="text" name="" id="" class="input" placeholder="请输入">
|
<input v-model="searchName" type="text" name="" id="" class="input" placeholder="请输入">
|
||||||
</view>
|
</view>
|
||||||
<view class="Classificationlist">
|
<view class="Classificationlist">
|
||||||
<view v-for="(item,index) in nurseItemClassifyInfoList" :key="index" @tap='tapitemclass(item)'
|
<view v-for="(item,index) in nurseItemClassifyInfoList" :key="index" @tap='tapitemclass(item)'
|
||||||
@ -25,6 +25,7 @@
|
|||||||
周边医养机构
|
周边医养机构
|
||||||
</view>
|
</view>
|
||||||
<u-tabs :list="nurseAgencyClassifyInfoList" :current="conNewcurrent" @change="change"></u-tabs>
|
<u-tabs :list="nurseAgencyClassifyInfoList" :current="conNewcurrent" @change="change"></u-tabs>
|
||||||
|
<view class="" v-if="nursestationlist.length>0">
|
||||||
<view class="addressContent" v-for="(item,index) in nursestationlist" :key="index">
|
<view class="addressContent" v-for="(item,index) in nursestationlist" :key="index">
|
||||||
<view class="lists" @tap='godetails(item)'>
|
<view class="lists" @tap='godetails(item)'>
|
||||||
<view class="nurse">{{item.nurseStationName}}</view>
|
<view class="nurse">{{item.nurseStationName}}</view>
|
||||||
@ -33,13 +34,20 @@
|
|||||||
距离您{{item.distance}}KM</view>
|
距离您{{item.distance}}KM</view>
|
||||||
<image class="background" :src="item.stationPictureUrl" mode=""></image>
|
<image class="background" :src="item.stationPictureUrl" mode=""></image>
|
||||||
<view class="tags">
|
<view class="tags">
|
||||||
<view class="tag" v-for="uitem in item.nurseStationClassifyList">
|
<view class="tag" v-for="uitem in item.classifyInfoList">
|
||||||
{{uitem.classifyName}}
|
{{uitem.classifyName}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="noorder" v-else>
|
||||||
|
<image src="../../static/noorder.png" mode=""></image>
|
||||||
|
<view class="">
|
||||||
|
暂无护理站
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
<view class="masks" style="" v-if="mask">
|
<view class="masks" style="" v-if="mask">
|
||||||
<view class="mask">
|
<view class="mask">
|
||||||
<view class="picture">
|
<view class="picture">
|
||||||
@ -69,16 +77,7 @@
|
|||||||
nurseAgencyClassifyInfoList: [], //护理站分类
|
nurseAgencyClassifyInfoList: [], //护理站分类
|
||||||
conNewcurrent: 0,
|
conNewcurrent: 0,
|
||||||
nurseItemClassifyInfoList: [], //护理项目分类
|
nurseItemClassifyInfoList: [], //护理项目分类
|
||||||
lbinfo: [{
|
lbinfo: [], //轮播list
|
||||||
image: 'http://192.168.16.30:8088/profile/goodsPictureUrl/2023/02/15/2ff771a32e9e218b7a375437f3912a4_20230215094755A00126dbdd9a1d.png',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
image: 'http://192.168.16.30:8088/profile/goodsPictureUrl/2023/02/15/2ff771a32e9e218b7a375437f3912a4_20230215094755A00126dbdd9a1d.png',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
image: 'http://192.168.16.30:8088/profile/goodsPictureUrl/2023/02/15/2ff771a32e9e218b7a375437f3912a4_20230215094755A00126dbdd9a1d.png',
|
|
||||||
}
|
|
||||||
], //轮播list
|
|
||||||
nursestationlist: [],
|
nursestationlist: [],
|
||||||
mask: false,
|
mask: false,
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
@ -89,6 +88,7 @@
|
|||||||
homeLatitudeLongitude: null,
|
homeLatitudeLongitude: null,
|
||||||
nurseClassId: '', //护理站分类id
|
nurseClassId: '', //护理站分类id
|
||||||
itemClassId: '', //护理项目分类id
|
itemClassId: '', //护理项目分类id
|
||||||
|
searchName: '', //通用名称
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@ -115,6 +115,12 @@
|
|||||||
res.data.nurseItemClassifyInfoList.forEach(e => {
|
res.data.nurseItemClassifyInfoList.forEach(e => {
|
||||||
e.classifyPictureUrl = baseurl + e.classifyPictureUrl
|
e.classifyPictureUrl = baseurl + e.classifyPictureUrl
|
||||||
})
|
})
|
||||||
|
res.data.poserInfoList.forEach(e => {
|
||||||
|
var obj = {
|
||||||
|
image: baseurl + e.posterPictureUrl
|
||||||
|
}
|
||||||
|
this.lbinfo.push(obj)
|
||||||
|
})
|
||||||
this.nurseItemClassifyInfoList = res.data.nurseItemClassifyInfoList.slice(0, 7)
|
this.nurseItemClassifyInfoList = res.data.nurseItemClassifyInfoList.slice(0, 7)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@ -142,18 +148,19 @@
|
|||||||
},
|
},
|
||||||
requestinfo() {
|
requestinfo() {
|
||||||
this.pageNum = 1;
|
this.pageNum = 1;
|
||||||
nearbyList(this.pageSize, this.pageNum, this.longitude, this.latitude, this.nurseClassId, this.itemClassId)
|
nearbyList(this.pageSize, this.pageNum, this.longitude, this.latitude, this.nurseClassId, this.itemClassId,
|
||||||
|
this.searchName)
|
||||||
.then(res => {
|
.then(res => {
|
||||||
if (res.total > 0) {
|
|
||||||
uni.removeStorageSync('Refresh');
|
uni.removeStorageSync('Refresh');
|
||||||
res.rows.forEach(e => {
|
res.rows.forEach(e => {
|
||||||
e.stationPictureUrl = baseurl + e.stationPictureUrl
|
e.stationPictureUrl = baseurl + e.stationPictureUrl
|
||||||
e.nurseStationClassifyList = e.nurseStationClassifyList.slice(0, 2)
|
if (e.classifyInfoList.length >= 1) {
|
||||||
|
e.classifyInfoList = e.classifyInfoList.slice(0, 2)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
this.nursestationlist = res.rows
|
this.nursestationlist = res.rows
|
||||||
this.mask = false
|
this.mask = false
|
||||||
this.total = res.total
|
this.total = res.total
|
||||||
}
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
godetails(item) {
|
godetails(item) {
|
||||||
@ -171,26 +178,29 @@
|
|||||||
onReachBottom() { //上滑加载
|
onReachBottom() { //上滑加载
|
||||||
if (this.nursestationlist.length >= this.total) {} else {
|
if (this.nursestationlist.length >= this.total) {} else {
|
||||||
this.pageNum++;
|
this.pageNum++;
|
||||||
nearbyList(this.pageSize, this.pageNum, this.longitude, this.latitude, this.nurseClassId, this.itemClassId)
|
// nearbyList(this.pageSize, this.pageNum, this.longitude, this.latitude, this.nurseClassId, this.itemClassId,
|
||||||
.then(res => {
|
// this.searchName)
|
||||||
res.rows.forEach(e => {
|
// .then(res => {
|
||||||
e.stationPictureUrl = baseurl + e.stationPictureUrl
|
// res.rows.forEach(e => {
|
||||||
e.nurseStationClassifyList = e.nurseStationClassifyList.slice(0, 2)
|
// e.stationPictureUrl = baseurl + e.stationPictureUrl
|
||||||
this.nursestationlist.push(e)
|
// if (e.classifyInfoList.length >= 1) {
|
||||||
})
|
// e.classifyInfoList = e.classifyInfoList.slice(0, 2)
|
||||||
})
|
// }
|
||||||
|
// this.nursestationlist.push(e)
|
||||||
|
// })
|
||||||
|
// })
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onPullDownRefresh() { //下拉刷新
|
onPullDownRefresh() { //下拉刷新
|
||||||
this.pageNum = 1;
|
this.pageNum = 1;
|
||||||
this.requestinfo()
|
// this.requestinfo()
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
uni.stopPullDownRefresh();
|
uni.stopPullDownRefresh();
|
||||||
}, 1000);
|
}, 1000);
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
iptVal() {
|
searchName() {
|
||||||
// this.requestinfo()
|
this.requestinfo()
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user