旅游
Showing
1 changed file
with
4 additions
and
1 deletions
| ... | @@ -20,7 +20,7 @@ | ... | @@ -20,7 +20,7 @@ |
| 20 | </div> | 20 | </div> |
| 21 | <el-empty v-if="list?.length == 0" :image="`/img/order_no.png`" :image-size="228" /> | 21 | <el-empty v-if="list?.length == 0" :image="`/img/order_no.png`" :image-size="228" /> |
| 22 | 22 | ||
| 23 | <div class="pd20"> | 23 | <div v-loading="loading" class="pd20"> |
| 24 | <div v-for="b in list" :key="b.id" class="item"> | 24 | <div v-for="b in list" :key="b.id" class="item"> |
| 25 | <div class="title"> | 25 | <div class="title"> |
| 26 | <label v-if="b.orderType == 0" class="blueTag"> {{ language == 0 ? '酒店' : 'HOTEL' }} </label> | 26 | <label v-if="b.orderType == 0" class="blueTag"> {{ language == 0 ? '酒店' : 'HOTEL' }} </label> |
| ... | @@ -201,6 +201,7 @@ const router = useRouter() | ... | @@ -201,6 +201,7 @@ const router = useRouter() |
| 201 | const language = useStorage('language', 0) | 201 | const language = useStorage('language', 0) |
| 202 | const list = ref([]) | 202 | const list = ref([]) |
| 203 | const user = useUserStore().user | 203 | const user = useUserStore().user |
| 204 | const loading = ref(false) | ||
| 204 | const orderType = ref('') | 205 | const orderType = ref('') |
| 205 | const { proxy } = getCurrentInstance() | 206 | const { proxy } = getCurrentInstance() |
| 206 | const cardList = ref([ | 207 | const cardList = ref([ |
| ... | @@ -223,6 +224,7 @@ function finish(bill) { | ... | @@ -223,6 +224,7 @@ function finish(bill) { |
| 223 | } | 224 | } |
| 224 | 225 | ||
| 225 | function getList() { | 226 | function getList() { |
| 227 | loading.value = true | ||
| 226 | newbilllist({ createById: user.userId, orderType: orderType.value }).then(res => { | 228 | newbilllist({ createById: user.userId, orderType: orderType.value }).then(res => { |
| 227 | list.value = res.rows || [] | 229 | list.value = res.rows || [] |
| 228 | for (const b of list.value) { | 230 | for (const b of list.value) { |
| ... | @@ -240,6 +242,7 @@ function getList() { | ... | @@ -240,6 +242,7 @@ function getList() { |
| 240 | b.countdown = dayjs().add(b.surplus.split(',')[0], 'minute').add(b.surplus.split(',')[1], 'second') | 242 | b.countdown = dayjs().add(b.surplus.split(',')[0], 'minute').add(b.surplus.split(',')[1], 'second') |
| 241 | } | 243 | } |
| 242 | } | 244 | } |
| 245 | loading.value = false | ||
| 243 | }) | 246 | }) |
| 244 | } | 247 | } |
| 245 | 248 | ... | ... |
-
Please register or sign in to post a comment