You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

405 lines
9.2 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<template>
<view class="wrap">
<view class="procareinfo procareinfo-top">
<view class="procareinfo-item">
<text>张阿姨</text>
<text class="graycolor">{{info.name}}</text>
</view>
<view class="procareinfo-item">
<text>护理经验</text>
<text class="graycolor">{{info.work_years}}</text>
</view>
<view class="procareinfo-item">
<text>年龄</text>
<text class="graycolor">{{info.age}}</text>
</view>
<view class="procareinfo-item last-item">
<text>服务范围:</text>
<view class="procarelist-rangelist">
<text>生活照顾</text>
<text>生活照顾</text>
<text>生活照顾</text>
<text>生活照顾</text>
</view>
</view>
</view>
<!-- 资质详情 -->
<view class="qualification">
<view class="procareinfo-title">资质详情</view>
<view class="procareinfo">
<view class="procareinfo-item">
<text>护工归属</text>
<text class="graycolor">{{info.project.name}}}</text>
</view>
<view class="procareinfo-item">
<text>护工等级</text>
<text class="graycolor">{{info.level.name}}</text>
</view>
<view class="procareinfo-item">
<text>健康证</text>
<text class="graycolor">{{info.has_health_certificate==1?"持有":"暂无"}}</text>
</view>
<view class="procareinfo-item">
<text>技能资格证</text>
<text class="graycolor">{{info.has_work_certificate==1?"持有":"暂无"}}</text>
</view>
</view>
</view>
<!-- 相关评价 -->
<view class="evaluate" v-if="false">
<view class="procareinfo-title">相关评价</view>
<view class="procareinfo">
<view class="evaluate-top">
<text>星级评价</text>
<view class="evaluate-level">
<text class="on"></text>
<text class="on"></text>
<text class="on"></text>
<text></text>
<text></text>
</view>
<view class="evaluate-total">62条评价</view>
</view>
<view class="evaluate-item">
<view class="evaluate-item-img">
<image src="../../../../static/resource/icon/evaluateimg.jpg"></image>
</view>
<view class="evaluate-item-info">
<view class="evaluate-item-top">
<view class="evaluate-item-left">
<text>宋先生</text>
<text class="evaluate-time">2021年1月20日</text>
</view>
<view class="evaluate-level">
<text class="on"></text>
<text class="on"></text>
<text class="on"></text>
<text></text>
<text></text>
</view>
</view>
<view class="evaluate-content">
<text>服务态度非常的好照顾的很仔细有人很放心</text>
</view>
</view>
</view>
<view class="evaluate-item">
<view class="evaluate-item-img">
<image src="../../../../static/resource/icon/evaluateimg.jpg"></image>
</view>
<view class="evaluate-item-info">
<view class="evaluate-item-top">
<view class="evaluate-item-left">
<text>宋先生</text>
<text class="evaluate-time">2021年1月20日</text>
</view>
<view class="evaluate-level">
<text class="on"></text>
<text class="on"></text>
<text class="on"></text>
<text></text>
<text></text>
</view>
</view>
<view class="evaluate-content">
<text>服务态度非常的好照顾的很仔细有人很放心</text>
</view>
</view>
</view>
<view class="evaluate-item">
<view class="evaluate-item-img">
<image src="../../../../static/resource/icon/evaluateimg.jpg"></image>
</view>
<view class="evaluate-item-info">
<view class="evaluate-item-top">
<view class="evaluate-item-left">
<text>宋先生</text>
<text class="evaluate-time">2021年1月20日</text>
</view>
<view class="evaluate-level">
<text class="on"></text>
<text class="on"></text>
<text class="on"></text>
<text></text>
<text></text>
</view>
</view>
<view class="evaluate-content">
<text>服务态度非常的好照顾的很仔细有人很放心</text>
</view>
</view>
</view>
</view>
</view>
<view class="procareinfo-bottom">
<text class="backhome" @click="toback"></text>
<text class="confirmorder" @click="toOrder"></text>
</view>
</view>
</template>
<script>
import util from "../../../../utils/util.js";
export default {
data() {
return {
id: "",
info: {},
}
},
onShareAppMessage() {},
onLoad(options) {
this.id = options.id;
this.bindInfo();
},
onReady() {},
onHide() {},
methods: {
toOrder: function() {
var buyinfo = uni.getStorageSync('buyinfo');
buyinfo.paramedic_id = this.id;
uni.setStorageSync('buyinfo', buyinfo);
uni.navigateTo({
url: "/packages/packagesPro/pages/proBuy/proBuy"
})
},
bindInfo: function() {
var that = this;
util.request({
api: 'customer/get-paramedic/' + that.id,
utilSuccess: function(n) {
uni.stopPullDownRefresh();
that.info = n;
},
utilFail: function(o) {
uni.stopPullDownRefresh();
util.alert(o);
}
});
},
toback() {
uni.navigateBack()
}
}
}
</script>
<style style="text/css" scoped>
body {}
.wrap {
width: 100%;
height: 100vh;
padding: 30rpx 30rpx 122rpx;
position: relative;
background: #e7f5f4;
}
.procareinfo {
background: #fff;
border-radius: 4rpx;
padding: 20rpx 34rpx;
box-shadow: 0 2rpx 20rpx rgba(86, 98, 109, .16);
}
.procareinfo-item {
display: flex;
justify-content: space-between;
border-bottom: 1rpx solid #eaeaea;
}
.procareinfo-item text {
font-size: 26rpx;
color: #303233;
line-height: 60rpx;
}
.procareinfo-item text.graycolor {
font-size: 24rpx;
color: #696766;
}
.procareinfo-item.last-item {
justify-content: start;
border-bottom: none;
}
.procarelist-rangelist {
display: flex;
flex-wrap: wrap;
align-items: flex-start;
width: 507rpx;
justify-content: center;
padding-top: 16rpx;
}
.procarelist-rangelist text {
width: 182rpx;
height: 48rpx;
line-height: 48rpx;
margin-right: 28rpx;
text-align: center;
font-size: 24rpx;
margin-bottom: 16rpx;
color: #303233;
border: 2rpx solid transparent;
border-radius: 48rpx;
background-clip: padding-box, border-box;
background-origin: padding-box, border-box;
background-image: linear-gradient(to right, #e7f5f4, #e7f5f4), linear-gradient(90deg, #0ee2ba, #66f7db);
}
.procareinfo-title {
font-size: 32rpx;
color: #303233;
margin-top: 30rpx;
padding-left: 34rpx;
margin-bottom: 30rpx;
}
.qualification .procareinfo {
padding-bottom: 36rpx;
}
.evaluate {
margin-bottom: 24rpx;
}
.evaluate .procareinfo {
padding-bottom: 40rpx;
}
.evaluate-top {
display: flex;
align-items: baseline;
border-bottom: 1rpx solid #eaeaea;
}
.evaluate-top text {
font-size: 30rpx;
color: #303233;
line-height: 24rpx;
}
.evaluate-level {
margin-right: 40rpx;
margin-left: 40rpx;
}
.evaluate-level text {
display: inline-block;
width: 25rpx;
height: 24rpx;
background-image: url(../../../../static/resource/icon/star.png);
background-repeat: no-repeat;
background-position: center center;
background-size: 100% auto;
margin: 0 2rpx;
}
.evaluate-level text.on {
background-image: url(../../../../static/resource/icon/star_on.png);
}
.evaluate-total {
font-size: 22rpx;
color: #696766;
line-height: 60rpx;
}
.evaluate-item {
display: flex;
justify-content: space-between;
padding-top: 26rpx;
padding-bottom: 22rpx;
border-bottom: 1rpx solid #eaeaea;
}
.evaluate-item-img {
width: 67rpx;
height: 67rpx;
border: 1rpx solid #F3F2F2;
border-radius: 50%;
overflow: hidden;
text-align: center;
}
.evaluate-item-img image {
width: 100%;
height: 100%;
border-radius: 50%;
}
.evaluate-item-top {
display: flex;
justify-content: space-between;
}
.evaluate-item-left text {
font-size: 26rpx;
color: #303233;
line-height: 40rpx;
display: block;
}
.evaluate-item-left text.evaluate-time {
font-size: 24rpx;
color: #696766;
}
.evaluate-item-top .evaluate-level {
margin: 0;
}
.evaluate-content {
margin-top: 10rpx;
font-size: 24rpx;
color: #303233;
line-height: 40rpx;
}
.procareinfo-bottom {
display: flex;
position: fixed;
left: 0;
bottom: 0;
width: 100%;
height: 92rpx;
line-height: 92rpx;
justify-content: space-between;
text-align: center;
}
.procareinfo-bottom text {
font-size: 30rpx;
}
.procareinfo-bottom text.backhome {
width: 35%;
height: 100%;
position: relative;
background: url(../../../../static/resource/icon/backbg.png) no-repeat center center;
background-size: cover;
}
.procareinfo-bottom text.backhome::before {
content: " ";
display: inline-block;
width: 14rpx;
height: 23rpx;
background: url(../../../../static/resource/icon/back.png) no-repeat center center;
background-size: 100% auto;
margin-right: 12rpx;
vertical-align: baseline;
}
.procareinfo-bottom text.confirmorder {
width: 65%;
height: 100%;
color: #fff;
background: url(../../../../static/resource/icon/confirmbg.jpg) no-repeat center center;
background-size: cover;
}
</style>