This commit is contained in:
曹辉 2023-05-05 11:43:11 +08:00
parent 241fe1c13d
commit 6a0efd2e82
10 changed files with 141 additions and 27 deletions

View File

@ -304,7 +304,16 @@
"enablePullDownRefresh": false
}
}
],
,{
"path" : "pages/Moreoptions/Moreoptions",
"style" :
{
"navigationBarTitleText": "护理机构",
"enablePullDownRefresh": false
}
}
],
"globalStyle": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "",

View File

@ -816,6 +816,7 @@
that.updata.receiveAddress = useritem.areaName + useritem.receiveAddress
that.userid = useritem.id
}
uni.$off('updata')
})
},
//1.

View File

@ -0,0 +1,92 @@
<template>
<view class="app">
<view class="Classificationlist">
<view v-for="(item,index) in nurseItemClassifyInfoList" :key="index" @tap='tapitemclass(item)'
class="itemclass">
<image :src="item.classifyPictureUrl" mode=""></image>
<view class="title">
{{item.classifyName}}
</view>
</view>
</view>
</view>
</template>
<script>
import {
getNurseClassifyList
} from '@/api/site/site.js';
import baseurl from '@/api/baseurl.js'
export default {
data() {
return {
nurseItemClassifyInfoList: undefined,
};
},
methods: {
//
tapitemclass(item) {
uni.$emit('moreoptionitem', {
item: JSON.stringify(item)
})
uni.navigateBack({
delta: 1
});
},
//
getNurseClassifyinfo() {
getNurseClassifyList().then(res => {
res.data.nurseItemClassifyInfoList.forEach(e => {
e.classifyPictureUrl = baseurl + e.classifyPictureUrl
})
this.nurseItemClassifyInfoList = res.data.nurseItemClassifyInfoList
})
},
},
onLoad() {
this.getNurseClassifyinfo();
}
}
</script>
<style lang="scss">
page {}
.app {
padding: 10rpx 0;
.Classificationlist {
background-color: #fff;
width: 98%;
margin: 0 auto;
padding: 40rpx 0;
display: flex;
justify-content: flex-start;
flex-wrap: wrap;
text-align: center;
.itemclass {
width: 25%;
height: 230rpx;
padding: 20rpx 0;
image {
display: block;
margin: 0 auto;
width: 100rpx;
height: 100rpx;
}
.title {
padding: 0 10rpx;
width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 30rpx;
line-height: 70rpx;
}
}
}
}
</style>

View File

@ -166,7 +166,7 @@
if (value) {} else {
that.appPersonallist = null
that.$refs.uToast.show({
title: '请先登录',
title: '您未登录,请先登录',
type: 'error',
duration: '1000',
})
@ -204,7 +204,7 @@
});
} else {
that.$refs.uToast.show({
title: '您未登录',
title: '您未登录,请先登录',
type: 'error',
duration: '1000'
})

View File

@ -200,6 +200,7 @@
that.personInfo.phone = that.useritem.receivePhone
that.personInfo.address = that.useritem.address
} else {}
uni.$off('updata')
})
},
onLoad(options) {

View File

@ -202,6 +202,7 @@
that.updata.phone = useritem.receivePhone
that.updata.receiveAddress = useritem.address
}
uni.$off('updata')
})
}
}

View File

@ -387,6 +387,7 @@
that.query.nurseTypeIdList = that.query.nurseTypeIdList.filter(el => el != e.id)
})
}
uni.$off('disease')
})
},
}

View File

@ -312,6 +312,7 @@
that.updata.receiveAddress = useritem.areaName + useritem.receiveAddress
that.userid = useritem.id
}
uni.$off('updata')
})
},
methods: {

View File

@ -424,6 +424,7 @@
// }
uni.$on('disease', function(data) {
that.patientDiseaseInfoList = JSON.parse(data.disease)
uni.$off('disease')
})
},
}

View File

@ -12,18 +12,12 @@
{{item.classifyName}}
</view>
</view>
<view class="item" v-if='nurseItemClassifyInfoList.length==7&&lengthlistshow' @tap='lengthlist(true)'>
<view class="item" v-if='nurseItemClassifyInfoList.length==7&&lengthlistshow' @tap='lengthlist'>
<image src="../../static/gd.png" mode=""></image>
<view class="title">
更多
</view>
</view>
<view class="item" v-if='nurseItemClassifyInfoList.length>7&&!lengthlistshow' @tap='lengthlist(false)'>
<image src="../../static/gd.png" mode=""></image>
<view class="title">
收起
</view>
</view>
</view>
<u-swiper :list="lbinfo" height='200' interval='3000' duration='1500' mode='none' @click='goswiper'></u-swiper>
<view class="conNew">
@ -113,20 +107,23 @@
})
}
},
lengthlist(item) {
uni.showLoading({
title: '',
duration: 500
});
setTimeout((e) => {
this.lengthlistshow = !this.lengthlistshow
if (item) {
this.nurseItemClassifyInfoList = this.nurseItemClassifyInfolistlength
} else {
this.nurseItemClassifyInfoList = this.nurseItemClassifyInfolistlength.slice(0, 7)
}
uni.hideLoading();
}, 500)
lengthlist() {
uni.navigateTo({
url: "/pages/Moreoptions/Moreoptions"
})
// uni.showLoading({
// title: '',
// duration: 500
// });
// setTimeout((e) => {
// this.lengthlistshow = !this.lengthlistshow
// if (item) {
// this.nurseItemClassifyInfoList = this.nurseItemClassifyInfolistlength
// } else {
// this.nurseItemClassifyInfoList = this.nurseItemClassifyInfolistlength.slice(0, 7)
// }
// uni.hideLoading();
// }, 500)
},
//
tapitemclass(item) {
@ -243,10 +240,23 @@
},
},
onShow() {
var that = this
uni.$on('moreoptionitem', function(data) {
if (data.item) {
that.tapitemclass(JSON.parse(data.item))
}
uni.$off('moreoptionitem')
})
},
onHide() {
this.nurseClassId = ''
this.itemClassId = ''
this.conNewcurrent = 0
this.requestinfo();
},
onLoad() {
var that = this
this.getNurseClassifyinfo();
const value = uni.getStorageSync('patientId');
if (value) {
getPatientInfo(value).then(res => {
@ -289,9 +299,6 @@
// });
}
},
onLoad() {
this.getNurseClassifyinfo();
},
//1.
onShareAppMessage(res) {
let pages = getCurrentPages();