Browse Source

修改

master
396316021 1 year ago
parent
commit
ab21a8292f
  1. 2
      pages/FeedLog/index.vue
  2. 21
      pages/OrderPage/index.vue

2
pages/FeedLog/index.vue

@ -402,7 +402,7 @@
this.feedLog(); this.feedLog();
}, },
onReady() { onReady() {
uni.$u.sleep(50).then(() => { uni.$u.sleep(100).then(() => {
this.collapseValue = ['collapse']; this.collapseValue = ['collapse'];
}); });
}, },

21
pages/OrderPage/index.vue

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

Loading…
Cancel
Save