This commit is contained in:
曹辉 2023-02-21 15:13:23 +08:00
parent d7e4d956b5
commit ba117abc0d
4 changed files with 44 additions and 31 deletions

View File

@ -33,14 +33,14 @@
</view>
</view>
<view class="bottomtext">
<view class="items" v-if="Soonerorlater=='morning'">
<view class="items" v-show="Soonerorlater=='morning'">
<view @tap='taptime(item,index)'
v-for="(item ,index) in orderlist.appointmentTimeList[timecurrent].morningList"
:class="timeindex==index?'timeitemtap':'timeitem'">
{{item}}
</view>
</view>
<view class="items" v-if="Soonerorlater=='after'">
<view class="items" v-show="Soonerorlater=='after'">
<view @tap='taptime(item,index)'
v-for="(item ,index) in orderlist.appointmentTimeList[timecurrent].afternoonList"
:class="timeindex==index?'timeitemtap':'timeitem'">

View File

@ -47,7 +47,6 @@
</view>
</view>
<u-toast ref="uToast" />
<u-back-top :scroll-top="scrollTop"></u-back-top>
</view>
</template>
@ -67,8 +66,7 @@
informationCategoryVOList: [], //
informationCategorytotal: 0,
pageNum: 1,
pageSize: 10,
scrollTop: 0,
pageSize: 5,
};
},
onShow() {
@ -136,26 +134,26 @@
})
},
},
onReachBottom() { //
if (this.informationCategoryVOList.length >= this.informationCategorytotal) {} else {
this.pageNum++
getHeathHousingList(this.pageNum, this.pageSize).then(res => {
if (res.rows) {
res.rows.forEach(e => {
e.leadThumbnailUrl = baseurl + e.leadThumbnailUrl
this.informationCategoryVOList.push(e)
})
}
})
}
},
onPullDownRefresh() { //
this.pageNum = 1;
this.getHeathHousing();
setTimeout(function() {
uni.stopPullDownRefresh();
}, 1000);
},
// onReachBottom() { //
// if (this.informationCategoryVOList.length >= this.informationCategorytotal) {} else {
// this.pageNum++
// getHeathHousingList(this.pageNum, this.pageSize).then(res => {
// if (res.rows) {
// res.rows.forEach(e => {
// e.leadThumbnailUrl = baseurl + e.leadThumbnailUrl
// this.informationCategoryVOList.push(e)
// })
// }
// })
// }
// },
// onPullDownRefresh() { //
// this.pageNum = 1;
// this.getHeathHousing();
// setTimeout(function() {
// uni.stopPullDownRefresh();
// }, 1000);
// },
//1.
onShareAppMessage(res) {
let pages = getCurrentPages();
@ -174,9 +172,6 @@
path: url,
}
},
onPageScroll(e) {
this.scrollTop = e.scrollTop;
},
}
</script>

View File

@ -120,7 +120,7 @@
line-height: 52rpx;
font-size: 36rpx;
position: absolute;
top:55%;
top:60%;
left:35%;
}
.product {
@ -132,14 +132,28 @@
text-overflow: ellipsis;
white-space: nowrap;
}
.day{
position: absolute;
top:15%;
right:0%;
width: 20%;
}
.huanyao {
position: absolute;
top:15%;
left:35%;
width: 60%;
width: 45%;
line-height: 50rpx;
height: 100rpx;
text-overflow: -o-ellipsis-lastline;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
display: -webkit-box;
-webkit-line-clamp: 2;
line-clamp: 2;
-webkit-box-orient: vertical;
white-space:normal;
word-break:break-all;
}
.pingfen {
float: right;

View File

@ -75,6 +75,10 @@
<image :src="item.itemPictureUrl"></image>
<view class="huanyao">{{item.nurseItemName}}
</view>
<view class="day">
{{item.advanceAppointDuration=='HALF_DAY'?'(半天)':''}}
{{item.advanceAppointDuration=='ONE_DAY'?'(全天)':''}}
</view>
<!-- <view class="pingfen">
<u-rate :count="5" value="2"></u-rate>
</view> -->