2d04b8c3 by zhangmeng

旅游

1 parent 78f0dfac
......@@ -20,7 +20,7 @@
</div>
<el-empty v-if="list?.length == 0" :image="`/img/order_no.png`" :image-size="228" />
<div class="pd20">
<div v-loading="loading" class="pd20">
<div v-for="b in list" :key="b.id" class="item">
<div class="title">
<label v-if="b.orderType == 0" class="blueTag"> {{ language == 0 ? '酒店' : 'HOTEL' }} </label>
......@@ -201,6 +201,7 @@ const router = useRouter()
const language = useStorage('language', 0)
const list = ref([])
const user = useUserStore().user
const loading = ref(false)
const orderType = ref('')
const { proxy } = getCurrentInstance()
const cardList = ref([
......@@ -223,6 +224,7 @@ function finish(bill) {
}
function getList() {
loading.value = true
newbilllist({ createById: user.userId, orderType: orderType.value }).then(res => {
list.value = res.rows || []
for (const b of list.value) {
......@@ -240,6 +242,7 @@ function getList() {
b.countdown = dayjs().add(b.surplus.split(',')[0], 'minute').add(b.surplus.split(',')[1], 'second')
}
}
loading.value = false
})
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!