123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272 |
- <template>
- <view class="content">
- <view class="yg-top">
- <image src="" mode="" class="yg-img"></image>
- <view class="yg-name">
- 李丹丹
- </view>
- <view class="star-wrap">
- <u-icon name="star-fill" color="#F3BE69" v-for="item in star*1" class="start" size="20rpx"></u-icon>
- <u-icon name="star-fill" color="#eee" v-for="itemt in (5-star*1)" class="start" size="20rpx"></u-icon>
- </view>
- </view>
- <view class="yg-info">
- <view class="info-line">
- <view class="left-name">
- <image src="" mode=""></image>
- <view class="">
- 累计服务
- </view>
- </view>
- <view class="info-val">
- 5595次
- </view>
- </view>
- <view class="info-line">
- <view class="left-name">
- <image src="" mode=""></image>
- <view class="">
- 从业年限
- </view>
- </view>
- <view class="info-val">
- 2年
- </view>
- </view>
- <view class="info-line" style="height: auto;border-bottom: none;">
- <view class="left-name">
- <image src="" mode=""></image>
- <view class="">
- 员工简介
- </view>
- </view>
- <view class="info-val" style="line-height: 1.5;padding-top: 20rpx;">
- 简介的详细内容,员工的服务介绍,优势说明简介。简
- 介的详细内容,员工的服务介绍,优势说明简介。简介的详细内容,员
- 工的服务介绍,优势说明简介。 简介的详细内容,员工的服务介绍,优势说明简介。简
- 介的详细内容,员工的服务介绍,优势说明简介。简介的详细内容,员
- 工的服务介绍,优势说明简介。
- </view>
- </view>
- </view>
- <view class="pj-tit">
- 服务评价
- </view>
- <scroll-view scroll-y="true" :style="{'height': height}" class="swiper-box">
- <view class="pj-wrap" v-for="item in pjlist">
- <view class="pj-user">
- <view class="user-logo">
-
- </view>
- <view class="user-info">
- <view class="user-name">
- 李丹丹
- </view>
- <view class="star-wrap">
- <u-icon name="star-fill" color="#E02E24" v-for="item in star*1" class="start" size="20rpx"></u-icon>
- <u-icon name="star-fill" color="#999999" v-for="itemt in (5-star*1)" class="start" size="20rpx"></u-icon>
- </view>
- </view>
- <view class="pj-time">
- 2022-07-06
- </view>
- </view>
- <view class="pj-info">
- 服务很好!!!服务很好!!!服务很好!!!服务很好!!!
- 服务很好!!!
- </view>
- </view>
- </scroll-view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- star: 3,
- height: '',
- pjlist: 10,
- }
- },
- onLoad() {
- },
- onShow() {
- },
- onReachBottom() {
- },
- onReady() {
- var _this = this;
- uni.getSystemInfo({
- success: resu => {
- const query = uni.createSelectorQuery();
- query.select('.swiper-box').boundingClientRect();
- query.exec(function(res) {
- _this.height = resu.windowHeight - res[0].top + 'px';
- console.log('打印页面的剩余高度', _this.height);
- });
- },
- fail: res => {}
- });
- },
- methods: {
- }
- }
- </script>
- <style lang="scss">
- page {
- background-color: #fff;
- }
- .yg-top {
- height: 326rpx;
- width: 100%;
- // color: #262261;
- background-color: #262261;
- position: relative;
- .yg-img {
- position: absolute;
- width: 120rpx;
- height: 120rpx;
- border-radius: 50%;
- top: 96rpx;
- left: 43rpx;
- background-color: #eee;
- }
- .yg-name {
- position: absolute;
- font-size: 36rpx;
- font-weight: 500;
- color: #FFFFFF;
- top: 115rpx;
- left: 185rpx;
- }
- .star-wrap {
- position: absolute;
- top: 170rpx;
- left: 185rpx;
- display: flex;
- justify-content: flex-start;
- .start {
- margin-right: 10rpx;
- }
- }
- }
- .yg-info {
- margin: -78rpx auto 20rpx;
- position: relative;
- width: 694rpx;
- padding-bottom: 10rpx;
- // height: 299rpx;
- background: #FFFFFF;
- box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
- border-radius: 10rpx;
- .info-line {
- border-bottom: 1px solid #F8F8F8;
- font-size: 20rpx;
- font-weight: 500;
- color: #666666;
- height: 72rpx;
- line-height: 72rpx;
- display: flex;
- .info-val {
- flex-grow: 1;
- }
- }
- }
- .left-name {
- flex-shrink: 0;
- height: 72rpx;
- width: 165rpx;
- display: flex;
- justify-content: flex-end;
- align-items: center;
- font-size: 25rpx;
- font-weight: bold;
- color: #101010;
- padding-right: 10rpx;
- image {
- width: 28rpx;
- height: 28rpx;
- margin-right: 15rpx;
- background-color: #eee;
- }
- }
- .pj-tit {
- font-size: 30rpx;
- font-weight: bold;
- color: #101010;
- padding: 26rpx;
- }
- .pj-wrap {
- width: 100%;
- min-height: 244rpx;
- border-bottom:#f5f5f5 1rpx solid;
- background-color: #fff;
- padding: 30rpx;
- .pj-user {
- display: flex;
- align-items: center;
- height: 75rpx;
- .user-logo {
- width: 75rpx;
- height: 75rpx;
- background-color: #eee;
- border-radius: 50%;
- margin-right: 10rpx;
- }
- .user-info {
- flex-grow: 1;
- .user-name {
- font-size: 26rpx;
- font-weight: 500;
- color: #545456;
- margin-bottom: 10rpx;
- }
-
- .star-wrap {
- display: flex;
- justify-content: flex-start;
-
- .start {
- margin-right: 10rpx;
- }
- }
- }
- .pj-time {
- font-size: 24rpx;
- font-weight: 400;
- color: #545456;
- }
- }
- .pj-info {
- padding-top: 30rpx;
- font-size: 24rpx;
- font-weight: 500;
- color: #545456;
- }
- }
- .swiper-box {
- background-color: red;
- }
- </style>
|