bug修复

This commit is contained in:
hongchao 2025-03-11 10:09:24 +08:00
parent 26e7bb4403
commit a9f7adc541
3 changed files with 25 additions and 3 deletions

View File

@ -414,6 +414,11 @@ const onConfirm = () => {
cartList.value[activeIndex.value].devInfoVoList[goodsIndex.value].rentBeginTime =
leaseTime.value.join('-')
} else {
console.log("xxxxxxxxxxxxx",cartList.value[activeIndex.value].devInfoVoList[goodsIndex.value].rentBeginTime)
if(cartList.value[activeIndex.value].devInfoVoList[goodsIndex.value].rentBeginTime==''){
showFailToast('请先选择租赁开始日期')
return
}
if (
moment(leaseTime.value.join('-')).isBefore(
moment(

View File

@ -6,11 +6,27 @@
</view>
<div>
<van-search
<!-- <van-search
v-model="queryParams.keyWord"
placeholder="请输入搜索关键词"
@blur="getList"
/>
/> -->
<view style="display: flex; align-items: center;margin-bottom: 5px">
<van-field
v-model="queryParams.keyWord"
placeholder="请输入搜索关键词"
@keydown.enter="getList"
style="flex: 1; margin-bottom: 0;margin-left: 10px;"
/>
<van-button
type="primary"
size="small"
@click="getList"
style="width: 50px; margin-left: 10px;"
>
查询
</van-button>
</view>
</div>
<scroll-view scroll-y :style="{ height: scrollHeight + 'px' }" @scrolltolower="loadMore">
@ -102,6 +118,7 @@ const getList = async () => {
}
}
//
const loadMore = () => {
console.log('loadMore')

View File

@ -22,7 +22,7 @@
<view style="display: flex; align-items: center;margin-bottom:10px">
<van-field
v-model="orderQueryParams.keyWord"
placeholder="请输入搜索内容"
placeholder="请输入搜索关键词"
@keydown.enter="onSearch"
style="flex: 1; margin-bottom: 0;"
/>