修改
This commit is contained in:
parent
241fe1c13d
commit
6a0efd2e82
11
pages.json
11
pages.json
@ -304,7 +304,16 @@
|
|||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
,{
|
||||||
|
"path" : "pages/Moreoptions/Moreoptions",
|
||||||
|
"style" :
|
||||||
|
{
|
||||||
|
"navigationBarTitleText": "护理机构",
|
||||||
|
"enablePullDownRefresh": false
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
],
|
||||||
"globalStyle": {
|
"globalStyle": {
|
||||||
"navigationBarTextStyle": "black",
|
"navigationBarTextStyle": "black",
|
||||||
"navigationBarTitleText": "",
|
"navigationBarTitleText": "",
|
||||||
|
|||||||
@ -816,6 +816,7 @@
|
|||||||
that.updata.receiveAddress = useritem.areaName + useritem.receiveAddress
|
that.updata.receiveAddress = useritem.areaName + useritem.receiveAddress
|
||||||
that.userid = useritem.id
|
that.userid = useritem.id
|
||||||
}
|
}
|
||||||
|
uni.$off('updata')
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
//1.分享给朋友
|
//1.分享给朋友
|
||||||
|
|||||||
92
pages/Moreoptions/Moreoptions.vue
Normal file
92
pages/Moreoptions/Moreoptions.vue
Normal 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>
|
||||||
@ -166,7 +166,7 @@
|
|||||||
if (value) {} else {
|
if (value) {} else {
|
||||||
that.appPersonallist = null
|
that.appPersonallist = null
|
||||||
that.$refs.uToast.show({
|
that.$refs.uToast.show({
|
||||||
title: '请先登录',
|
title: '您未登录,请先登录',
|
||||||
type: 'error',
|
type: 'error',
|
||||||
duration: '1000',
|
duration: '1000',
|
||||||
})
|
})
|
||||||
@ -204,7 +204,7 @@
|
|||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
that.$refs.uToast.show({
|
that.$refs.uToast.show({
|
||||||
title: '您未登录',
|
title: '您未登录,请先登录',
|
||||||
type: 'error',
|
type: 'error',
|
||||||
duration: '1000'
|
duration: '1000'
|
||||||
})
|
})
|
||||||
|
|||||||
@ -200,6 +200,7 @@
|
|||||||
that.personInfo.phone = that.useritem.receivePhone
|
that.personInfo.phone = that.useritem.receivePhone
|
||||||
that.personInfo.address = that.useritem.address
|
that.personInfo.address = that.useritem.address
|
||||||
} else {}
|
} else {}
|
||||||
|
uni.$off('updata')
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
|
|||||||
@ -202,6 +202,7 @@
|
|||||||
that.updata.phone = useritem.receivePhone
|
that.updata.phone = useritem.receivePhone
|
||||||
that.updata.receiveAddress = useritem.address
|
that.updata.receiveAddress = useritem.address
|
||||||
}
|
}
|
||||||
|
uni.$off('updata')
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -387,6 +387,7 @@
|
|||||||
that.query.nurseTypeIdList = that.query.nurseTypeIdList.filter(el => el != e.id)
|
that.query.nurseTypeIdList = that.query.nurseTypeIdList.filter(el => el != e.id)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
uni.$off('disease')
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@ -312,6 +312,7 @@
|
|||||||
that.updata.receiveAddress = useritem.areaName + useritem.receiveAddress
|
that.updata.receiveAddress = useritem.areaName + useritem.receiveAddress
|
||||||
that.userid = useritem.id
|
that.userid = useritem.id
|
||||||
}
|
}
|
||||||
|
uni.$off('updata')
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
@ -424,6 +424,7 @@
|
|||||||
// }
|
// }
|
||||||
uni.$on('disease', function(data) {
|
uni.$on('disease', function(data) {
|
||||||
that.patientDiseaseInfoList = JSON.parse(data.disease)
|
that.patientDiseaseInfoList = JSON.parse(data.disease)
|
||||||
|
uni.$off('disease')
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@ -12,18 +12,12 @@
|
|||||||
{{item.classifyName}}
|
{{item.classifyName}}
|
||||||
</view>
|
</view>
|
||||||
</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>
|
<image src="../../static/gd.png" mode=""></image>
|
||||||
<view class="title">
|
<view class="title">
|
||||||
更多
|
更多
|
||||||
</view>
|
</view>
|
||||||
</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>
|
</view>
|
||||||
<u-swiper :list="lbinfo" height='200' interval='3000' duration='1500' mode='none' @click='goswiper'></u-swiper>
|
<u-swiper :list="lbinfo" height='200' interval='3000' duration='1500' mode='none' @click='goswiper'></u-swiper>
|
||||||
<view class="conNew">
|
<view class="conNew">
|
||||||
@ -113,20 +107,23 @@
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
lengthlist(item) {
|
lengthlist() {
|
||||||
uni.showLoading({
|
uni.navigateTo({
|
||||||
title: '',
|
url: "/pages/Moreoptions/Moreoptions"
|
||||||
duration: 500
|
})
|
||||||
});
|
// uni.showLoading({
|
||||||
setTimeout((e) => {
|
// title: '',
|
||||||
this.lengthlistshow = !this.lengthlistshow
|
// duration: 500
|
||||||
if (item) {
|
// });
|
||||||
this.nurseItemClassifyInfoList = this.nurseItemClassifyInfolistlength
|
// setTimeout((e) => {
|
||||||
} else {
|
// this.lengthlistshow = !this.lengthlistshow
|
||||||
this.nurseItemClassifyInfoList = this.nurseItemClassifyInfolistlength.slice(0, 7)
|
// if (item) {
|
||||||
}
|
// this.nurseItemClassifyInfoList = this.nurseItemClassifyInfolistlength
|
||||||
uni.hideLoading();
|
// } else {
|
||||||
}, 500)
|
// this.nurseItemClassifyInfoList = this.nurseItemClassifyInfolistlength.slice(0, 7)
|
||||||
|
// }
|
||||||
|
// uni.hideLoading();
|
||||||
|
// }, 500)
|
||||||
},
|
},
|
||||||
//点击护理项目分类
|
//点击护理项目分类
|
||||||
tapitemclass(item) {
|
tapitemclass(item) {
|
||||||
@ -243,10 +240,23 @@
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
onShow() {
|
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.nurseClassId = ''
|
||||||
this.itemClassId = ''
|
this.itemClassId = ''
|
||||||
this.conNewcurrent = 0
|
this.conNewcurrent = 0
|
||||||
|
this.requestinfo();
|
||||||
|
},
|
||||||
|
onLoad() {
|
||||||
var that = this
|
var that = this
|
||||||
|
this.getNurseClassifyinfo();
|
||||||
const value = uni.getStorageSync('patientId');
|
const value = uni.getStorageSync('patientId');
|
||||||
if (value) {
|
if (value) {
|
||||||
getPatientInfo(value).then(res => {
|
getPatientInfo(value).then(res => {
|
||||||
@ -289,9 +299,6 @@
|
|||||||
// });
|
// });
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
|
||||||
this.getNurseClassifyinfo();
|
|
||||||
},
|
|
||||||
//1.分享给朋友
|
//1.分享给朋友
|
||||||
onShareAppMessage(res) {
|
onShareAppMessage(res) {
|
||||||
let pages = getCurrentPages();
|
let pages = getCurrentPages();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user