This commit is contained in:
曹辉 2022-10-17 11:21:23 +08:00
parent 5320d45a36
commit 17555f37c0
22 changed files with 949 additions and 287 deletions

58
App.vue
View File

@ -1,16 +1,10 @@
<style lang="scss">
@import "uview-ui/index.scss";
</style>
<script>
export default {
onLaunch: function() {
console.log('App Launch')
},
onShow: function() {
console.log('App Show')
},
onHide: function() {
console.log('App Hide')
}
}
</script>
@ -18,4 +12,54 @@
<style lang="scss">
/*每个页面公共css */
@import "uview-ui/index.scss";
.app {
background-color: #F4F5F7;
width: 100%;
height: 100vh;
position: relative;
color: #000000;
.cards {
width: 94%;
box-shadow: 0px 0px 30rpx 0px rgba(108, 99, 255, 0.16);
background-color: #fff;
position: absolute;
top: 3%;
left: 3%;
display: flex;
justify-content: space-evenly;
flex-wrap: wrap;
padding: 40rpx 0 200rpx 0;
border-radius: 25rpx;
.item {
width: 43%;
height: 300rpx;
margin-bottom: 40rpx;
border-radius: 25rpx;
position: relative;
.title {
width: 70%;
text-align: center;
font-size: 46rpx;
color: #FCFCFC;
position: absolute;
top: 58%;
left: 50%;
transform: translateX(-50%);
}
image {
width: 100rpx;
height: 100rpx;
position: absolute;
top: 20%;
left: 50%;
transform: translateX(-50%);
}
}
}
}
</style>

View File

@ -1,2 +1,2 @@
var baseurl = "http://192.168.16.94:8080";
var baseurl = "http://192.168.16.94:8081";
export default baseurl

8
api/disease/index.js Normal file
View File

@ -0,0 +1,8 @@
import request from "../request.js"
export function getDiseaseInfo() {
return request({
url: `/nurseApplet/login/getDiseaseInfo`,
method: 'GET'
})
}

19
api/information/index.js Normal file
View File

@ -0,0 +1,19 @@
import request from "../request.js"
//区街道list
export function getRegionAndStreetInfo() {
return request({
url: `/nurseApplet/login/getRegionAndStreetInfo`,
method: 'GET'
})
}
//查询护理类型信息
export function getNurseType() {
return request({
url: `/nurseApplet/login/getNurseTypeInfo`,
method: 'GET'
})
}

View File

@ -17,9 +17,7 @@
"delay" : 0
},
/* */
"modules" : {
"Geolocation" : {}
},
"modules" : {},
/* */
"distribute" : {
/* android */
@ -42,14 +40,21 @@
"maps" : {
"amap" : {
"appkey_ios" : "",
"appkey_android" : ""
"appkey_android" : "b38c6aa0cb9a6323f48b05ea6462aed5"
}
},
"geolocation" : {
"amap" : {
"__platform__" : [ "android" ],
"appkey_ios" : "",
"appkey_android" : "b38c6aa0cb9a6323f48b05ea6462aed5"
},
"system" : {
"__platform__" : [ "ios", "android" ]
"__platform__" : [ "android" ]
}
}
},
"push" : {},
"payment" : {}
},
"splashscreen" : {
"androidStyle" : "default",
@ -84,5 +89,16 @@
"uniStatistics" : {
"enable" : false
},
"vueVersion" : "2"
"vueVersion" : "2",
"h5" : {
"sdkConfigs" : {
"maps" : {
"amap" : {
"key" : "08e138f3f5e8595453526cbbeed38124",
"securityJsCode" : "e50d5cf4e75c0a2b3f5cbfcc96cc4d8f",
"serviceHost" : ""
}
}
}
}
}

View File

@ -4,12 +4,61 @@
},
"pages": [ //pageshttps://uniapp.dcloud.io/collocation/pages
{
"path": "pages/information/information",
"style": {
"navigationBarTitleText": "请完善个人信息",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff"
}
},{
"path": "pages/Doctordetails/Doctordetails",
"style": {
"navigationBarTitleText": "医生信息",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff"
}
}, {
"path": "pages/login/login",
"style": {
"navigationBarTitleText": "",
"navigationStyle": "custom"
// "enablePullDownRefresh": false
}
},{
"path": "pages/shopping/shopping",
"style": {
"navigationBarTitleText": "医路优品",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff"
}
}, {
"path": "pages/doctorslist/doctorslist",
"style": {
"navigationBarTitleText": "预约医生",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff"
}
}, {
"path": "pages/homepage/homepage",
"style": {
"navigationBarTitleText": "泉医到家",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff"
}
}, {
"path": "pages/disease/disease",
"style": {
"navigationBarTitleText": "疾病信息选择",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff"
}
}, {
"path": "pages/CommodityDetails/CommodityDetails",
"style": {
"navigationBarTitleText": "商品详情",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff"
}
}, {
"path": "pages/register/register",
"style": {
@ -24,29 +73,13 @@
"navigationBarBackgroundColor": "#ffffff" //
}
}, {
"path": "pages/homepage/homepage",
"style": {
"navigationBarTitleText": "泉医到家",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff"
}
}, {
"path": "pages/CommodityDetails/CommodityDetails",
"style": {
"navigationBarTitleText": "商品详情",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff"
}
},
{
"path": "pages/detail/detail",
"style": {
"navigationBarTitleText": "护理站简介",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff" //
}
},
{
}, {
"path": "pages/homepage/homepage",
"style": {
"navigationBarTitleText": "商品详情",
@ -66,13 +99,6 @@
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff"
}
}, {
"path": "pages/shopping/shopping",
"style": {
"navigationBarTitleText": "医路优品",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff"
}
}, {
"path": "pages/ProductList/ProductList",
"style": {
@ -87,6 +113,13 @@
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff"
}
}, {
"path": "pages/medicine/medicine",
"style": {
"navigationBarTitleText": "就医",
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#ffffff"
}
}
],
"globalStyle": {

View File

@ -8,12 +8,6 @@
<swiper-item>
<image style='width:100%;height:750rpx' src="../../static/spjtcs.png" mode=""></image>
</swiper-item>
<swiper-item>
<image style='width:100%;height:750rpx' src="../../static/spjtcs.png" mode=""></image>
</swiper-item>
<swiper-item>
<image style='width:100%;height:750rpx' src="../../static/spjtcs.png" mode=""></image>
</swiper-item>
</swiper>
</uni-swiper-dot>
<view class="Commodity common">
@ -115,10 +109,6 @@
//
info: [{
content: '内容 A'
}, {
content: '内容 B'
}, {
content: '内容 C'
}],
current: 0, //
mode: 'dot', //
@ -141,19 +131,7 @@
<style lang="scss">
.app {
background-color: #F4F5F7;
width: 100%;
position: relative;
color: #000000;
.mask {
width: 100%;
height: 100%;
position: fixed;
top: 0;
background-color: #000000;
background: rgba(0, 0, 0, 0.6);
.PurchasePage {
position: fixed;
top: 40%;

View File

@ -0,0 +1,104 @@
<template>
<view class="app">
<view class="info">
<view class="image">
</view>
<view class="name">
某某某
</view>
<view class="position">
主任医师
</view>
<view class="border">
</view>
<view class="text">
熟悉呼吸系统疾病的诊治尤其擅 长肺栓塞肺动脉高压和慢性气道疾 病的研究
</view>
</view>
<view class="price">
</view>
</view>
</template>
<script>
export default {
data() {
return {
};
}
}
</script>
<style lang="scss">
.app {
padding-top: 20rpx;
.price {
width: 94%;
height: 105rpx;
background: #FFFFFF;
box-shadow: 0px 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03);
border-radius: 20rpx;
margin: 0 auto;
margin-top: 15rpx;
}
.info {
width: 94%;
height: 651rpx;
margin: 0 auto;
background: #FFFFFF;
box-shadow: 0px 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03);
border-radius: 20rpx;
position: relative;
font-size: 36rpx;
.text {
width: 90%;
line-height: 67rpx;
position: absolute;
left: 5%;
top: 263rpx;
text-indent: 1em;
}
.border {
width: 90%;
margin: 0 auto;
height: 1rpx;
background: #D8D4D4;
position: absolute;
left: 5%;
top: 209rpx;
}
.position {
font-size: 35rpx;
color: #969394;
position: absolute;
left: 264rpx;
top: 122rpx;
}
.name {
position: absolute;
left: 264rpx;
top: 68rpx;
}
.image {
width: 147rpx;
height: 150rpx;
background: #BFBFBF;
border-radius: 25rpx;
position: absolute;
left: 74rpx;
top: 32rpx;
}
}
}
</style>

View File

@ -36,49 +36,12 @@
<style lang="scss">
.app {
background-color: #F4F5F7;
width: 100%;
height: 100vh;
position: relative;
.cards {
width: 94%;
box-shadow: 0px 0px 30rpx 0px rgba(108, 99, 255, 0.16);
background-color: #fff;
position: absolute;
top: 3%;
left: 3%;
display: flex;
justify-content: space-evenly;
flex-wrap: wrap;
padding: 40rpx 0 200rpx 0;
border-radius: 25rpx;
.item {
width: 43%;
height: 295rpx;
margin-bottom: 40rpx;
border-radius: 25rpx;
position: relative;
.title {
width: 80%;
text-align: center;
font-size: 46rpx;
color: #FCFCFC;
position: absolute;
top: 60%;
left: 50%;
transform: translateX(-50%);
}
image {
width: 100rpx;
height: 100rpx;
position: absolute;
top: 20%;
left: 50%;
transform: translateX(-50%);
}
}
}

View File

@ -71,11 +71,6 @@
<style lang="scss">
.app {
background-color: #F4F5F7;
width: 100%;
height: 100vh;
position: relative;
.productlist {
width: 100%;
margin: 0 auto;

122
pages/disease/disease.vue Normal file
View File

@ -0,0 +1,122 @@
<template>
<view class="app">
<view style="height: 20rpx;background-color: #F4F5F7;">
</view>
<view class="items">
<view class="item" style="background-color: #4C7BC9;color: #ffffff;">
</view>
<view class="item" v-for='(item,index) in diseaselist' :key="index">
{{item.diseaseName}}
</view>
<view class="other">
<span>其他:</span>
<!-- <input type="text"> -->
<u-input type="text" placeholder='请填写' />
</view>
<view class="btn">
提交
</view>
</view>
</view>
</template>
<script>
import {
getDiseaseInfo
} from '@/api/disease/index.js'
export default {
data() {
return {
diseaselist: [],
};
},
onLoad() {
this.diseaseinfo()
},
methods: {
diseaseinfo() {
getDiseaseInfo().then(res => {
this.diseaselist = res.data;
})
},
}
}
</script>
<style lang="scss">
.app {
height: 100%;
padding-bottom: 70rpx;
.btn {
width: 217rpx;
height: 68rpx;
background: #4C7BC9;
border-radius: 26rpx;
font-size: 32rpx;
color: #FFFFFF;
line-height: 68rpx;
margin: 100rpx 0 0 60%;
}
.items {
width: 90%;
margin: 0 auto;
text-align: center;
color: #000000;
.other {
margin: 0 auto;
height: 93rpx;
display: flex;
background-color: #fff;
border-radius: 20rpx;
width: 100%;
box-shadow: 0px 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03);
margin: 20rpx auto;
line-height: 93rpx;
view {
height: 93rpx;
font-size: 32rpx;
line-height: 93rpx;
}
span {
display: inline-block;
line-height: 93rpx;
height: 93rpx;
width: 30%;
font-size: 32rpx;
}
::v-deep .u-input__input {
height: 93rpx;
font-size: 32rpx;
}
::v-deep .uni-input-wrapper {
height: 93rpx;
line-height: 93rpx;
}
::v-deep .u-input {
width: 70%;
height: 93rpx;
line-height: 93rpx;
}
}
.item {
width: 100%;
height: 93rpx;
background: #ffffff;
box-shadow: 0px 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03);
border-radius: 20rpx;
margin: 20rpx auto;
line-height: 93rpx;
}
}
}
</style>

View File

@ -0,0 +1,111 @@
<template>
<view class="app">
<view class="visual">
<view class="department">
<view class="item" v-for="(item,index) in departmentlist" :key="index"
:class="aindex == index ?'departmentitem':''">
{{item.name}}
</view>
</view>
<view class="list">
<view class="information">
<view class="image">
</view>
<view class="name">
某某某
</view>
</view>
<view class="information">
<view class="image">
</view>
<view class="name">
某某某
</view>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
aindex: 1,
departmentlist: [{
name: '内科',
},
{
name: '外科',
},
{
name: '皮肤科',
},
],
};
}
}
</script>
<style lang="scss">
.app {
.visual {
text-align: center;
width: 94%;
margin: 0 auto;
background-color: #F4F5F7;
padding-top: 20rpx;
display: flex;
.list {
width: 72%;
background: #FFFFFF;
box-shadow: 0px 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03);
border-radius: 0px 20rpx 20rpx 0px;
padding-bottom: 100rpx;
.information {
width: 90%;
position: relative;
margin: 37rpx auto 0;
padding-bottom: 60rpx;
border-bottom: 1rpx solid #D8D4D4;
.name {
font-size: 36rpx;
position: absolute;
left: 45%;
top: 10%;
}
.image {
width: 135rpx;
height: 138rpx;
background: #BFBFBF;
border-radius: 25rpx;
margin-left: 6%;
}
}
}
.department {
width: 28%;
.item {
line-height: 100rpx;
width: 100%;
height: 100rpx;
background: #ffffff;
box-shadow: 0px 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03);
border-radius: 20rpx 0px 0px 20rpx;
margin-bottom: 6rpx;
}
.departmentitem {
background: #4C7BC9;
color: #ffffff;
}
}
}
}
</style>

View File

@ -7,7 +7,7 @@
护理站
</view>
</view>
<view class="expert item">
<view class="expert item" @tap='gomedicine'>
<image src="../../static/zhuanjia.png" mode=""></image>
<view class="title">
就医
@ -34,38 +34,35 @@
<view style="width:56% ;">
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
};
return {};
},
methods: {
//
gomedicine() {
uni.navigateTo({
url: '/pages/medicine/medicine'
})
},
}
}
</script>
<style lang="scss">
.app {
background-color: #F4F5F7;
width: 100%;
height: 100vh;
position: relative;
// background-color: #F4F5F7;
// width: 100%;
// height: 100vh;
// position: relative;
.cards {
width: 94%;
box-shadow: 0px 0px 30rpx 0px rgba(108, 99, 255, 0.16);
background-color: #fff;
position: absolute;
top: 3%;
left: 3%;
display: flex;
justify-content: space-evenly;
flex-wrap: wrap;
padding: 40rpx 0 0 0;
border-radius: 25rpx;
.smallitem {
width: 30%;
@ -96,34 +93,6 @@
}
}
.item {
width: 43%;
height: 310rpx;
margin-bottom: 40rpx;
border-radius: 25rpx;
position: relative;
.title {
width: 80%;
text-align: center;
font-size: 46rpx;
color: #FCFCFC;
position: absolute;
top: 55%;
left: 50%;
transform: translateX(-50%);
}
image {
width: 100rpx;
height: 100rpx;
position: absolute;
top: 20%;
left: 50%;
transform: translateX(-50%);
}
}
.knowledge {
background-color: #E1AE3C;
}

View File

@ -0,0 +1,287 @@
<template>
<view class="app">
<u-mask :show="usershow" class='mask'>
<view class="information">
<image src="../../static/information.png" mode=""></image>
<view class="title">
请完善个人信息
</view>
<view class="cancel">
取消
</view>
<view class="determine">
去完善
</view>
</view>
</u-mask>
<view class="" style="background-color: #F4F5F7;height: 20rpx;width:100%">
</view>
<view class="userinfo info">
<view class="item">
<span>姓名:</span>
<!-- <input type="text"> -->
<u-input v-model="query.patientName" type="text" placeholder='' maxlength='5' />
</view>
<view class="item">
<span>电话:</span>
<u-input v-model="query.phone" maxlength='11' type="text" placeholder='' />
</view>
<view class="item">
<span>身份证号:</span>
<u-input v-model="query.cardNo" type="text" placeholder='' maxlength='18' />
</view>
<view class="item" @tap='areashow=true'>
<span>所属区域:</span>
<view></view>
<u-select v-model="areashow" label-name='areaName' value-name='areaCode' mode="mutil-column-auto"
:list="arealist" @confirm="areaconfirm"></u-select>
</view>
<view class="item">
<span>详细地址:</span>
<u-input v-model="query.address" type="text" placeholder='' />
</view>
<view class="item" @tap='getAddress()'>
<span>所在位置:</span>
<view></view>
<!-- <u-input type="text" placeholder='' /> -->
</view>
</view>
<view class="info">
<view class="service">
<view class="title">
所属服务
</view>
<view class="Multiplechoice">
<view class="choice" @tap="gondisease">
服务1
</view>
<view class="choice" v-for="(item,index) in getNurseTypelist" :key="index">
{{item.nurseTypeName}}
</view>
</view>
</view>
</view>
<u-button type="primary" @tap='a'>主要按钮</u-button>
</view>
</template>
<script>
import {
getRegionAndStreetInfo,
getNurseType
} from '@/api/information/index.js'
export default {
data() {
return {
usershow: false, //
arealist: [], //list
areashow: false, //
getNurseTypelist: [], //
query: { //
patientName: "",
cardNo: "",
phone: "",
address: "",
areaCode: "",
nurseTypeIdList: [],
diseaseInfoList: [],
}
};
},
//
onLoad() {
this.areaInfo()
this.getNurseTypeInfo();
},
methods: {
a() {
console.log(this.query)
},
//
getAddress() {
uni.chooseLocation({
success: function(res) {
console.log('位置名称:' + res.name);
console.log('详细地址:' + res.address);
console.log('纬度:' + res.latitude);
console.log('经度:' + res.longitude);
}
});
},
//
getNurseTypeInfo() {
getNurseType().then(res => {
this.getNurseTypelist = res.data
})
},
//
areaInfo() {
getRegionAndStreetInfo().then(res => {
res.data.forEach(e => {
if (e.children.length == 0) {
e.children.push({
areaCode: "",
areaName: "暂无街道",
children: null,
id: '',
})
}
})
this.arealist = res.data;
console.log(this.arealist)
})
},
//
areaconfirm(e) {
console.log(e)
// this.form.areaCode = e[e.length - 1].value
// this.address = e[0].label + '-' + e[1].label
// this.address = e[0].label + '-' + e[1].label + '-' + e[2].label
// console.log(this.address);
},
//
gondisease() {
uni.navigateTo({
url: '/pages/disease/disease'
})
},
},
}
</script>
<style lang="scss">
.app {
.service {
width: 90%;
margin: 0 auto;
padding-bottom: 15rpx;
.Multiplechoice {
font-size: 32rpx;
color: #FFFFFF;
width: 100%;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
.choice {
text-align: center;
line-height: 70rpx;
width: 190rpx;
height: 70rpx;
background: #BFBFBF;
border-radius: 26rpx;
margin-top: 30rpx;
}
}
.title {
font-size: 36rpx;
padding-top: 36rpx;
}
}
.info {
width: 90%;
margin: 0 auto 20rpx;
background-color: #FFFFFF;
border-radius: 20rpx;
padding-bottom: 5rpx;
box-shadow: 0px 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03);
}
.userinfo {
.item {
width: 90%;
margin: 0 auto;
height: 120rpx;
line-height: 120rpx;
border-bottom: 1rpx solid #D8D4D4;
display: flex;
view {
height: 120rpx;
font-size: 32rpx;
line-height: 120rpx;
}
span {
display: inline-block;
line-height: 120rpx;
height: 120rpx;
width: 30%;
font-size: 32rpx;
}
::v-deep .u-input__input {
height: 120rpx;
font-size: 32rpx;
}
::v-deep .uni-input-wrapper {
height: 120rpx;
line-height: 120rpx;
}
::v-deep .u-input {
width: 70%;
height: 120rpx;
line-height: 120rpx;
}
}
.item:nth-child(6) {
border: 0;
}
}
.mask {
.information {
width: 70%;
height: 400rpx;
margin: 50% auto;
background: #FFFFFF;
border-radius: 30rpx;
text-align: center;
color: #FFFFFF;
position: relative;
.determine,
.cancel {
width: 200rpx;
height: 70rpx;
border-radius: 26rpx;
font-size: 34rpx;
line-height: 70rpx;
position: absolute;
top: 74%;
}
.determine {
background: #4C7BC9;
right: 36rpx;
}
.cancel {
background: #C5BFBF;
left: 36rpx;
}
.title {
font-size: 42rpx;
margin-top: 40rpx;
color: #000000;
}
image {
width: 100rpx;
height: 100rpx;
margin: 10% 0 0 0;
}
}
}
}
</style>

View File

@ -258,10 +258,6 @@
<style lang="scss">
.app {
background-color: #F4F5F7;
position: relative;
height: 100vh;
width: 100%;
font-family: DengXian;
color: #C3C1C1;
font-weight: 400;

View File

@ -0,0 +1,49 @@
<template>
<view class="app">
<view class="cards">
<view class="item" style="background: #4C7BC9;" @tap='godoctorslist'>
<image src="../../static/yuyue.png" mode=""></image>
<view class="title" style="font-size: 42rpx;">
预约医生
</view>
</view>
<view class="item" style="background-color: #E1AE3C;">
<image src="../../static/chaxun.png" mode=""></image>
<view class="title" style="font-size: 42rpx;">
查看结果
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {};
},
methods: {
//
godoctorslist() {
uni.navigateTo({
url: '/pages/doctorslist/doctorslist'
})
},
},
}
</script>
<style lang="scss">
.app {
.cards {
padding: 40rpx 0 500rpx 0;
.item {
image {
width: 80rpx;
height: 80rpx;
}
}
}
}
</style>

View File

@ -62,10 +62,6 @@
<style lang="scss">
.app {
background-color: #F4F5F7;
position: relative;
height: 100vh;
width: 100%;
font-family: DengXian;
color: #C3C1C1;
font-weight: 400;

View File

@ -51,51 +51,11 @@
<style lang="scss">
.app {
background-color: #F4F5F7;
width: 100%;
height: 100vh;
position: relative;
// background-color: #F4F5F7;
// width: 100%;
// height: 100vh;
// position: relative;
.cards {
width: 94%;
box-shadow: 0px 0px 30rpx 0px rgba(108, 99, 255, 0.16);
background-color: #fff;
position: absolute;
top: 3%;
left: 3%;
display: flex;
justify-content: space-evenly;
flex-wrap: wrap;
padding: 40rpx 0 200rpx 0;
border-radius: 25rpx;
.item {
width: 43%;
height: 300rpx;
margin-bottom: 40rpx;
border-radius: 25rpx;
position: relative;
.title {
width: 70%;
text-align: center;
font-size: 46rpx;
color: #FCFCFC;
position: absolute;
top: 58%;
left: 50%;
transform: translateX(-50%);
}
image {
width: 100rpx;
height: 100rpx;
position: absolute;
top: 20%;
left: 50%;
transform: translateX(-50%);
}
}
}
}
</style>

View File

@ -1,13 +1,18 @@
<template>
<view class="concent">
<view class="nursstation" @tap='detailed()'>
<text class="what" >什么是护理站</text>
<text class="what">什么是护理站</text>
<u-icon class="icon" name="arrow-right"></u-icon>
</view>
<view class="page-body" style="margin-top: -80rpx;">
<view class="page-section page-section-gap" >
<view class="page-section page-section-gap">
<map style="width: 100%; height: 300px;" :latitude="latitude" :longitude="longitude" :markers="covers">
</map>
<!--
<map style="width:100%; height:40vh;" scale="17" :latitude="latitude" :longitude="longitude"
:markers="markers"></map>
:markers="markers"></map> -->
</view>
</view>
@ -15,15 +20,11 @@
<text class="nurse">济南护万家护理有限公司</text>
<text class="distance">距离您800米</text>
<view class="background">
<view class="picture">
<image src="/static/logo.png" mode=""></image>
</view>
<text class="qyttext">泉医通</text>
<text class="lianmeng">济卫护理联盟NO.1</text>
<view class="picture">
<image src="/static/logo.png" mode=""></image>
</view>
<text class="qyttext">泉医通</text>
<text class="lianmeng">济卫护理联盟NO.1</text>
</view>
<view class="click">点击了解</view>
@ -57,11 +58,9 @@
<view class="picture2">
<image src="../../static/locatinsmall.png"></image>
</view>
<view class="title">
请打开系统定位
</view>
<view class="btns">
<view class="btn1" @tap='cancel()'>取消</view>
<view class="btn2" @tap='getsite()'>去打开</view>
@ -99,87 +98,100 @@
pageNum: 1,
pageSize: 10,
mask: false,
id: 0, // 使 marker id
title: 'map',
latitude: 36.661634,
longitude: 117.025323,
covers: [{
latitude: 39.909,
longitude: 116.39742,
}, {
latitude: 39.90,
longitude: 116.39,
}]
}
},
onReachBottom() {
this.pageNum++;
if (this.nurseTypeCode != undefined) {
nearbyList(this.pageSize, this.pageNum, this.longitude, this.latitude, this.nurseTypeCode, this.iptVal)
.then(res => {
if (res.total == this.nearbylist.length) {
// this.pageNum++;
// if (this.nurseTypeCode != undefined) {
// nearbyList(this.pageSize, this.pageNum, this.longitude, this.latitude, this.nurseTypeCode, this.iptVal)
// .then(res => {
// if (res.total == this.nearbylist.length) {
} else {
res.rows.forEach(e => {
this.nearbylist.push(e)
})
}
})
} else {
uni.request({
url: baseurl +
`/nurseApplet/nearbyNursingStation/nearbyList?pageSize=${this.pageSize}&pageNum=${this.pageNum}&homeLongitude=${this.longitude}&homeLatitude=${this.latitude}&nurseStationName=${this.iptVal}`, //
success: (res) => {
if (res.data.total == this.nearbylist.length) {} else {
res.data.rows.forEach(e => {
this.nearbylist.push(e)
})
}
console.log(this.nearbylist)
}
});
}
// } else {
// res.rows.forEach(e => {
// this.nearbylist.push(e)
// })
// }
// })
// } else {
// uni.request({
// url: baseurl +
// `/nurseApplet/nearbyNursingStation/nearbyList?pageSize=${this.pageSize}&pageNum=${this.pageNum}&homeLongitude=${this.longitude}&homeLatitude=${this.latitude}&nurseStationName=${this.iptVal}`, //
// success: (res) => {
// if (res.data.total == this.nearbylist.length) {} else {
// res.data.rows.forEach(e => {
// this.nearbylist.push(e)
// })
// }
// console.log(this.nearbylist)
// }
// });
// }
},
watch: {
iptVal() {
this.requestinfo()
},
// iptVal() {
// this.requestinfo()
// },
},
onShow() {},
onLoad(options) {
console.log(options)
console.log(baseurl)
this.baseurl = baseurl;
this.nurseTypeCode = options.nurseTypeCode
var that = this
uni.getStorage({
key: 'openid',
success(res) {
console.log(res)
that.openid = res.data
getPatientInfo(that.openid).then(res => {
// console.log(res)
if (res.code == 200) {
that.latitude = res.data.homeLatitude
that.longitude = res.data.homeLongitude
console.log(that.latitude, that.longitude)
if (!that.latitude) {
that.latitude = 36.661634
}
if (!that.longitude) {
that.longitude = 117.025323
}
that.markers.push({
id: 3,
latitude: res.data.homeLatitude,
longitude: res.data.homeLongitude,
width: 20,
height: 25,
iconPath: "../../static/location.png"
})
}
})
}
})
that.requestinfo()
// console.log(options)
// console.log(baseurl)
// this.baseurl = baseurl;
// this.nurseTypeCode = options.nurseTypeCode
// var that = this
// uni.getStorage({
// key: 'openid',
// success(res) {
// console.log(res)
// that.openid = res.data
// getPatientInfo(that.openid).then(res => {
// // console.log(res)
// if (res.code == 200) {
// that.latitude = res.data.homeLatitude
// that.longitude = res.data.homeLongitude
// console.log(that.latitude, that.longitude)
// if (!that.latitude) {
// that.latitude = 36.661634
// }
// if (!that.longitude) {
// that.longitude = 117.025323
// }
// that.markers.push({
// id: 3,
// latitude: res.data.homeLatitude,
// longitude: res.data.homeLongitude,
// width: 20,
// height: 25,
// iconPath: "../../static/location.png"
// })
// }
// })
// }
// })
// that.requestinfo()
},
methods: {
detailed(){
uni.navigateTo({
url: `/pages/detail/detail`
})
},
detailed() {
uni.navigateTo({
url: `/pages/detail/detail`
})
},
// getsite() {
// let data={};
@ -218,8 +230,8 @@
url: `/pages/details/details?id=${item.nurseStationId}`
})
},
}
},
}
</script>
<style lang="scss">

BIN
static/chaxun.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

BIN
static/information.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

BIN
static/yuyue.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB