Commit b49988fb by 前端

UI

1 parent 0ad36539
......@@ -19,6 +19,14 @@
size="20"
></uni-icons
></view>
<uni-icons
v-if="isSearch"
type="closeempty"
class="close"
color="#999"
@click="handleClear"
size="20"
></uni-icons>
</view>
<scroll-view class="record-box" scroll-y>
......@@ -105,6 +113,14 @@ export default {
this.isSearch = true
},
init() {
this.name = '';
this.isSearch = false
this.list = this.views
},
handleClear() {
this.init()
},
input(e) {
this.name = e.detail.value
if(this.name == '')
......@@ -164,17 +180,26 @@ export default {
margin-left: 12rpx;
}
}
.close {
position: absolute;
right: 0;
top: 0;
width: 120rpx;
height: 80rpx;
display: flex;
align-items: center;
justify-content: center;
}
}
.record-box {
height: calc(100vh - 300rpx);
padding-top: 48rpx;
}
.list {
display: flex;
flex-wrap: wrap;
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 48rpx 50rpx;
.item {
width: 404rpx;
height: 544rpx;
background: #ffffff;
border-radius: 48rpx;
......
......@@ -117,17 +117,20 @@ export default {
watch:{
watchStatus:{
handler() {
this.customerNameOrPhone = '';
this.isSearch = false
this.pageNum = 1
this.flag = false
this.getRecordList()
this.init()
},
immediate:true
}
},
methods: {
init() {
this.customerNameOrPhone = '';
this.isSearch = false
this.pageNum = 1
this.flag = false
this.getRecordList()
},
//已预约的并且预约时间小于当前时间的,显示超时未到店,否则显示已预约
formatInvite(val) {
if(val.inviteStatus == 2 && new Date().getTime() > new Date(val.inviteDate).getTime()) {
......@@ -160,13 +163,9 @@ export default {
},
focus () {
this.isSearch = true
},
handleClear() {
this.isSearch = false
this.customerNameOrPhone = ''
this.pageNum = 1
this.getRecordList()
this.init()
},
getRecordList () {
const { pageNum, pageSize, customerNameOrPhone } = this,
......@@ -301,8 +300,7 @@ export default {
position: absolute;
top: 24rpx;
right: 32rpx;
width: 152rpx;
height: 44rpx;
padding: 4rpx 16rpx;
border-radius: 4rpx;
font-weight: 500;
font-size: 24rpx;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!