初始化

This commit is contained in:
2023-12-29 00:08:10 +08:00
commit 5ed0fc646f
512 changed files with 54378 additions and 0 deletions

View File

@@ -0,0 +1,63 @@
<template>
<view class="uni-page">
<u-navbar :auto-back="true" placeholder bgColor="#fff0e7" title="运单详情"></u-navbar>
<view class="content-main">
<Waybill :WaybillInfo="waybill"></Waybill>
<WaybillInfo :WaybillInfo="waybill"></WaybillInfo>
</view>
</view>
</template>
<script>
import Waybill from '@/components/waybill/waybill.vue'
import WaybillInfo from '@/components/waybill-info/waybill-info.vue'
import {
getOrderInfo
} from '@/request/wm.js'
export default {
components: {
Waybill,
WaybillInfo
},
data() {
return {
waybill: null
};
},
async onLoad(option) {
let {
data
} = await getOrderInfo({
id: +option.id
})
this.waybill = data.data
console.log(this.waybill);
},
onShow(option) {
console.log(option);
},
methods: {
toViewInfo(waybill) {
uni.navigateTo({
url: ''
})
}
}
}
</script>
<style lang="scss">
.uni-page {
display: flex;
flex-direction: column;
.content-main {
flex: 1;
display: flex;
flex-direction: column;
overflow: auto;
padding-bottom: 20rpx;
// height: 100%;
}
}
</style>