修改
This commit is contained in:
parent
241fe1c13d
commit
6a0efd2e82
11
pages.json
11
pages.json
@ -304,7 +304,16 @@
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
}
|
||||
],
|
||||
,{
|
||||
"path" : "pages/Moreoptions/Moreoptions",
|
||||
"style" :
|
||||
{
|
||||
"navigationBarTitleText": "护理机构",
|
||||
"enablePullDownRefresh": false
|
||||
}
|
||||
|
||||
}
|
||||
],
|
||||
"globalStyle": {
|
||||
"navigationBarTextStyle": "black",
|
||||
"navigationBarTitleText": "",
|
||||
|
||||
@ -816,6 +816,7 @@
|
||||
that.updata.receiveAddress = useritem.areaName + useritem.receiveAddress
|
||||
that.userid = useritem.id
|
||||
}
|
||||
uni.$off('updata')
|
||||
})
|
||||
},
|
||||
//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 {
|
||||
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'
|
||||
})
|
||||
|
||||
@ -200,6 +200,7 @@
|
||||
that.personInfo.phone = that.useritem.receivePhone
|
||||
that.personInfo.address = that.useritem.address
|
||||
} else {}
|
||||
uni.$off('updata')
|
||||
})
|
||||
},
|
||||
onLoad(options) {
|
||||
|
||||
@ -202,6 +202,7 @@
|
||||
that.updata.phone = useritem.receivePhone
|
||||
that.updata.receiveAddress = useritem.address
|
||||
}
|
||||
uni.$off('updata')
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@ -387,6 +387,7 @@
|
||||
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.userid = useritem.id
|
||||
}
|
||||
uni.$off('updata')
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
|
||||
@ -424,6 +424,7 @@
|
||||
// }
|
||||
uni.$on('disease', function(data) {
|
||||
that.patientDiseaseInfoList = JSON.parse(data.disease)
|
||||
uni.$off('disease')
|
||||
})
|
||||
},
|
||||
}
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user