group order

This commit is contained in:
2020-07-20 17:17:41 +08:00
parent 50085a341f
commit a6e1241238
11 changed files with 494 additions and 55 deletions

View File

@@ -35,21 +35,25 @@ export default {
minute: true,
second: false
},
show: false
show: false,
addressInfo: {},
}
},
onLoad() {
this.getConfigInfo();
},
methods: {
validateValue() {
if(this.$u.test.isEmpty(this.name)) {
this.showToast('姓名不能为空', 'warning');
this.showToast('姓名不能为空', 'error');
return false;
}
if(this.$u.test.isEmpty(this.time)) {
this.showToast('日期不能为空', 'warning');
this.showToast('日期不能为空', 'error');
return false;
}
if(new Date() > new Date(this.time)) {
this.showToast('日期错误', 'warning');
this.showToast('日期错误', 'error');
return false;
}
return true;
@@ -74,6 +78,16 @@ export default {
}
})
},
getConfigInfo() {
this.$u.api.getConfigInfo({
code: 'manicure_address',
}).then(res => {
if(res.errCode == 0) {
this.addressInfo = res.data.config;
this.address = this.addressInfo.value;
}
})
},
chooseDate(e) {
// let time = e.year + '年' + e.month + '月' + e.day + '日' + e.hour + '时' + e.minute + '分'
let time = e.year + '-' + e.month + '-' + e.day + ' ' + e.hour + ':' + e.minute
@@ -105,6 +119,19 @@ export default {
font-size: 30rpx;
}
}
.order-name {
display: flex;
align-items: center;
> view {
font-size: 30rpx;
color: rgba(51,51,51,1);
}
> input {
padding-left: 20rpx;
flex: 1;
font-size: 28rpx;
}
}
.order-address {
display: flex;
align-items: center;