|
|
|
@ -228,7 +228,7 @@
|
|
|
|
|
button-color="#4DC3B8" |
|
|
|
|
font-color="#FFFFFF" |
|
|
|
|
button-width="200rpx" |
|
|
|
|
@click="readInfo ? orderPay() :$u.toast('请先同意协议')" |
|
|
|
|
@click="readInfo ? orderPay() :readTip()" |
|
|
|
|
> |
|
|
|
|
</MzButton> |
|
|
|
|
</view> |
|
|
|
@ -520,6 +520,16 @@
|
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
readTip(){ |
|
|
|
|
uni.showModal({ |
|
|
|
|
title:'是否同意《上门喂养协议》', |
|
|
|
|
success:(res) => { |
|
|
|
|
if(res.confirm){ |
|
|
|
|
this.readInfo = true; |
|
|
|
|
} |
|
|
|
|
},fail:(err) => {} |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
getTimeLine(){ |
|
|
|
|
getConfig('work_time').then(res => { |
|
|
|
|
this.timeLineList = res.data.map(item => { |
|
|
|
@ -699,6 +709,7 @@
|
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
this.timeList = []; |
|
|
|
|
this.timeListTemp.forEach(item => { |
|
|
|
|
item.time.forEach(row => { |
|
|
|
|
if(row.checked){ |
|
|
|
@ -713,7 +724,11 @@
|
|
|
|
|
}, |
|
|
|
|
doTimeSelect(item,index){ |
|
|
|
|
console.log(this.timeListTemp[this.vTabCurrent].time[index]) |
|
|
|
|
this.timeListTemp[this.vTabCurrent].time[index].checked = !item.checked |
|
|
|
|
this.timeListTemp[this.vTabCurrent].time.map(row => { |
|
|
|
|
row.checked = false; |
|
|
|
|
}) |
|
|
|
|
this.timeListTemp[this.vTabCurrent].time[index].checked = !item.checked; |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
changeVTab(index){ |
|
|
|
|
console.log(index) |
|
|
|
@ -793,7 +808,7 @@
|
|
|
|
|
this.timeListTemp = selected.map(item => { |
|
|
|
|
return { |
|
|
|
|
date:item, |
|
|
|
|
time:this.timeLineList |
|
|
|
|
time:JSON.parse(JSON.stringify(this.timeLineList)) |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
console.log('timeListTemp',this.timeListTemp) |
|
|
|
|