修改
This commit is contained in:
parent
981704880a
commit
725511c4f9
@ -231,17 +231,12 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 登录
|
// 登录
|
||||||
login() {
|
|
||||||
uni.navigateTo({
|
|
||||||
url: "/pagesB/login/login"
|
|
||||||
})
|
|
||||||
},
|
|
||||||
gologin() {
|
gologin() {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: '您未登录,请先登录',
|
title: '您未登录,请前往我的页面进行登录',
|
||||||
type: 'error',
|
type: 'error',
|
||||||
duration: '1000',
|
duration: '1000',
|
||||||
url: '/pagesB/login/login'
|
// url: '/pagesB/login/login'
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 家医功能提示
|
// 家医功能提示
|
||||||
|
|||||||
@ -129,10 +129,10 @@
|
|||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: '您未登录,请先登录',
|
title: '您未登录,请前往我的页面进行登录',
|
||||||
type: 'error',
|
type: 'error',
|
||||||
duration: '1000',
|
duration: '1000',
|
||||||
url: '/pagesB/login/login'
|
// url: '/pagesB/login/login'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -161,13 +161,12 @@
|
|||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: '您未登录,请先登录',
|
title: '您未登录,请前往我的页面进行登录',
|
||||||
type: 'error',
|
type: 'error',
|
||||||
duration: '1000',
|
duration: '1000',
|
||||||
url: '/pagesB/login/login'
|
// url: '/pagesB/login/login'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
}, 0)
|
}, 0)
|
||||||
},
|
},
|
||||||
//跳转护理站页面
|
//跳转护理站页面
|
||||||
@ -182,10 +181,10 @@
|
|||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: '您未登录,请先登录',
|
title: '您未登录,请前往我的页面进行登录',
|
||||||
type: 'error',
|
type: 'error',
|
||||||
duration: '1000',
|
duration: '1000',
|
||||||
url: '/pagesB/login/login'
|
// url: '/pagesB/login/login'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}, 0)
|
}, 0)
|
||||||
@ -200,10 +199,10 @@
|
|||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: '您未登录,请先登录',
|
title: '您未登录,请前往我的页面进行登录',
|
||||||
type: 'error',
|
type: 'error',
|
||||||
duration: '1000',
|
duration: '1000',
|
||||||
url: '/pagesB/login/login'
|
// url: '/pagesB/login/login'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -219,10 +218,10 @@
|
|||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: '您未登录,请先登录',
|
title: '您未登录,请前往我的页面进行登录',
|
||||||
type: 'error',
|
type: 'error',
|
||||||
duration: '1000',
|
duration: '1000',
|
||||||
url: '/pagesB/login/login'
|
// url: '/pagesB/login/login'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}, 50)
|
}, 50)
|
||||||
@ -238,10 +237,10 @@
|
|||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: '您未登录,请先登录',
|
title: '您未登录,请前往我的页面进行登录',
|
||||||
type: 'error',
|
type: 'error',
|
||||||
duration: '1000',
|
duration: '1000',
|
||||||
url: '/pagesB/login/login'
|
// url: '/pagesB/login/login'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}, 0)
|
}, 0)
|
||||||
@ -258,10 +257,10 @@
|
|||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: '您未登录,请先登录',
|
title: '您未登录,请前往我的页面进行登录',
|
||||||
type: 'error',
|
type: 'error',
|
||||||
duration: '1000',
|
duration: '1000',
|
||||||
url: '/pagesB/login/login'
|
// url: '/pagesB/login/login'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}, 0)
|
}, 0)
|
||||||
|
|||||||
@ -15,23 +15,70 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="right">
|
<view class="right">
|
||||||
<u-collapse :item-style="itemStyle" :arrow="false" :accordion='false'>
|
<u-collapse :item-style="itemStyle" :arrow="false" :accordion='false'>
|
||||||
<u-collapse-item :title="item.tempName" v-for="(item, index) in itemList.ptList" :open="item.open"
|
<u-collapse-item :title="item.tempName" v-for="(item, index) in itemList" :open="item.open"
|
||||||
:key="index" @change='tapcollapse(item)' :class="item.check?'headcollapse':''">
|
:key="index" @change='tapcollapse(item)' :class="item.check?'headcollapse':''">
|
||||||
<view class="itemtext">
|
<view class="" v-if="item.onelist">
|
||||||
<view class="collapse_top" v-for="uitem in item.ptValList">
|
<view class="uitemtitle">健康生活方式</view>
|
||||||
<u-icon name="star-fill" color="#000" size="28"
|
<view class="itemtext" v-for="(uitem,uindex) in item.onelist" :key="uindex">
|
||||||
v-if="uitem.itemType=='1' || uitem.itemType=='2' ||uitem.itemType=='3'"></u-icon>
|
<view class="collapse_top">
|
||||||
<span style="margin-left: 10rpx;" v-if="uitem.itemType=='1'">健康生活方式 </span>
|
<view class="itemsdata">
|
||||||
<span style="margin-left: 10rpx;" v-if="uitem.itemType=='2'">治疗与康复</span>
|
<view class="itemword">
|
||||||
<span style="margin-left: 10rpx;" v-if="uitem.itemType=='3'">急症处理</span>
|
<u-checkbox active-color="#26A888" v-model="uitem.val" disabled>
|
||||||
<view class="itemsdata">
|
<view class="checkboxtitle">
|
||||||
<view class="itemword" v-if="uitem.val=='true'">
|
{{ uitem.content }}
|
||||||
<u-checkbox active-color="#26A888" v-model="checked" disabled>
|
</view>
|
||||||
{{uitem.content}}</u-checkbox>
|
<view v-if="uitem.ptValList">
|
||||||
|
<view class="checkboxtext" v-for="bitem in uitem.ptValList"
|
||||||
|
:key="bitem.id">
|
||||||
|
{{ bitem.content }}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</u-checkbox>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="itemword" v-if="uitem.val==null || uitem.val=='false'">
|
</view>
|
||||||
<u-checkbox active-color="#26A888" disabled
|
</view>
|
||||||
v-model="checkedfalse">{{uitem.content}}</u-checkbox>
|
</view>
|
||||||
|
<view class="" v-if="item.twolist">
|
||||||
|
<view class="uitemtitle">治疗与康复</view>
|
||||||
|
<view class="itemtext" v-for="(uitem,uindex) in item.twolist" :key="uindex">
|
||||||
|
<view class="collapse_top">
|
||||||
|
<view class="itemsdata">
|
||||||
|
<view class="itemword">
|
||||||
|
<u-checkbox active-color="#26A888" v-model="uitem.val" disabled>
|
||||||
|
<view class="checkboxtitle">
|
||||||
|
{{ uitem.content }}
|
||||||
|
</view>
|
||||||
|
<view v-if="uitem.ptValList">
|
||||||
|
<view class="checkboxtext" v-for="bitem in uitem.ptValList"
|
||||||
|
:key="bitem.id">
|
||||||
|
{{ bitem.content }}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</u-checkbox>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="" v-if="item.threelist">
|
||||||
|
<view class="uitemtitle">急症处理</view>
|
||||||
|
<view class="itemtext" v-for="(uitem,uindex) in item.threelist" :key="uindex">
|
||||||
|
<view class="collapse_top">
|
||||||
|
<view class="itemsdata">
|
||||||
|
<view class="itemword">
|
||||||
|
<u-checkbox active-color="#26A888" v-model="uitem.val" disabled>
|
||||||
|
<view class="checkboxtitle">
|
||||||
|
{{ uitem.content }}
|
||||||
|
</view>
|
||||||
|
<view v-if="uitem.ptValList">
|
||||||
|
<view class="checkboxtext" v-for="bitem in uitem.ptValList"
|
||||||
|
:key="bitem.id">
|
||||||
|
{{ bitem.content }}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</u-checkbox>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -53,8 +100,6 @@
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
show: true,
|
show: true,
|
||||||
checked: true,
|
|
||||||
checkedfalse: false,
|
|
||||||
lastrecodedata: null,
|
lastrecodedata: null,
|
||||||
cardNo: '',
|
cardNo: '',
|
||||||
itemlistleft: [],
|
itemlistleft: [],
|
||||||
@ -85,9 +130,17 @@
|
|||||||
res.data && res.data[0].list.length > 0 ? this.recordCode = res.data[0].list[0]
|
res.data && res.data[0].list.length > 0 ? this.recordCode = res.data[0].list[0]
|
||||||
.recordCode : ''
|
.recordCode : ''
|
||||||
detail(this.recordCode).then(res => {
|
detail(this.recordCode).then(res => {
|
||||||
this.itemList = res.data
|
res.data && res.data.ptList && res.data.ptList.length > 0 ? res.data.ptList[0]
|
||||||
this.itemList && this.itemList.ptList.length > 0 ? this.itemList.ptList[0]
|
|
||||||
.open = true : ''
|
.open = true : ''
|
||||||
|
res.data.ptList.forEach(e => {
|
||||||
|
e.ptValList.forEach(el => {
|
||||||
|
el.val == "true" ? el.val = true : el.val = false
|
||||||
|
})
|
||||||
|
e.onelist = e.ptValList.filter(el => el.itemType == '1')
|
||||||
|
e.twolist = e.ptValList.filter(el => el.itemType == '2')
|
||||||
|
e.threelist = e.ptValList.filter(el => el.itemType == '3')
|
||||||
|
})
|
||||||
|
this.itemList = res.data.ptList
|
||||||
this.show = false
|
this.show = false
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
@ -119,6 +172,18 @@
|
|||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.checkboxtitle {
|
||||||
|
font-size: 24rpx;
|
||||||
|
margin-bottom: 10rpx;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.checkboxtext {
|
||||||
|
font-weight: 550;
|
||||||
|
font-size: 20rpx;
|
||||||
|
padding-left: 20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
.app {
|
.app {
|
||||||
// height: 100vh;
|
// height: 100vh;
|
||||||
padding: 32rpx 10rpx;
|
padding: 32rpx 10rpx;
|
||||||
@ -221,16 +286,24 @@
|
|||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.uitemtitle {
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #000;
|
||||||
|
margin-top: 15rpx;
|
||||||
|
padding-left: 30rpx;
|
||||||
|
}
|
||||||
|
|
||||||
// background-color: red;
|
// background-color: red;
|
||||||
.itemtext {
|
.itemtext {
|
||||||
.collapse_top {
|
.collapse_top {
|
||||||
font-size: 30rpx;
|
font-size: 22rpx;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: #000;
|
color: #000;
|
||||||
width: 94%;
|
width: 94%;
|
||||||
line-height: 40rpx;
|
line-height: 40rpx;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding: 20rpx 20rpx;
|
padding: 10rpx;
|
||||||
|
|
||||||
.itemsdata {
|
.itemsdata {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user