前端-胡立永 2 weeks ago
parent
commit
805585b61e
2 changed files with 10 additions and 5 deletions
  1. +9
    -4
      pages/newOrder/petList.vue
  2. +1
    -1
      utils/getUrl.js

+ 9
- 4
pages/newOrder/petList.vue View File

@ -32,7 +32,7 @@
</view>
<view style="margin-left: auto; width: 20px;">
<u-checkbox-group v-model="item.checked">
<u-checkbox shape="circle" activeColor="#ffbf60"></u-checkbox>
<u-checkbox shape="circle" :name="true" activeColor="#ffbf60"></u-checkbox>
</u-checkbox-group>
</view>
</view>
@ -202,7 +202,7 @@ export default {
const currentPet = currentPets.find(item => item.id === e.id)
if (currentPet) {
e.selectedDate = currentPet.selectedDate
e.checked = currentPet.checked
e.checked = [!!currentPet.checked]
} else {
e.selectedDate = []
e.checked = false
@ -329,8 +329,13 @@ export default {
this.showCalendar = true;
},
confirmCanlendar() {
this.petList.find(e => e.id == this.currentId).selectedDate = this.selectedDate.sort((a, b) => new Date(a.date) - new Date(b.date))
this.selectedDate = []
const currentPet = this.petList.find(e => e.id == this.currentId);
currentPet.selectedDate = this.selectedDate.sort((a, b) => new Date(a.date) - new Date(b.date));
//
if (this.selectedDate.length > 0) {
currentPet.checked = [true];
}
this.selectedDate = [];
this.showCalendar = false;
},
change(e) {


+ 1
- 1
utils/getUrl.js View File

@ -1,4 +1,4 @@
let current ="develop";
let current ="trial";
const accountInfo = wx.getAccountInfoSync();
// current = accountInfo.miniProgram.envVersion;


Loading…
Cancel
Save