From 82af85eae92790fc125ca42d1a800046fe0bd916 Mon Sep 17 00:00:00 2001
From: qingyiay <2386314947@qq.com>
Date: 星期三, 29 三月 2023 14:00:08 +0800
Subject: [PATCH] 登录页修改
---
pages/driver-page/driver-index/bill-of-lading-details/coal-pick-up-bill/coal-pick-up-bill.vue | 79 +++++++++++++++++++++------------------
1 files changed, 43 insertions(+), 36 deletions(-)
diff --git a/pages/driver-page/driver-index/bill-of-lading-details/coal-pick-up-bill/coal-pick-up-bill.vue b/pages/driver-page/driver-index/bill-of-lading-details/coal-pick-up-bill/coal-pick-up-bill.vue
index 0115454..b080272 100644
--- a/pages/driver-page/driver-index/bill-of-lading-details/coal-pick-up-bill/coal-pick-up-bill.vue
+++ b/pages/driver-page/driver-index/bill-of-lading-details/coal-pick-up-bill/coal-pick-up-bill.vue
@@ -3,13 +3,14 @@
<view class="driver" style="background:url(../../../../../static/image/coalBackgroud/coal-background.png) no-repeat;background-size:100% 100%;">
<view class="driver-coalOne">鐢靛瓙鎻愮叅鍗�</view>
<view class="driver-coalTwo">
- <view class="">涓滃簽鐭垮寳浜�</view>
- <view class="">1/3鐒�</view>
- <view class="">鍐�A37U98</view>
+ <view>{{ coalData.code || '鏆傛棤璁㈠崟缂栧彿' }}</view>
+ <view>{{ coalData.deptName || '鏆傛棤鎵�灞炵熆' }}</view>
+ <view>{{ coalData.coalName || '鏆傛棤鐓ょ' }}</view>
+ <view>{{ coalData.carNo || '鏆傛棤杞︾墝' }}</view>
</view>
<view class="driver-coalThree">
- <view class="">鏃槼鐒﹀寲鏈夐檺璐d换鍏徃</view>
- <view class="">2022骞�8鏈�28鏃� 15:00:56</view>
+ <view>{{ coalData.customerName || '鏆傛棤鍗曚綅' }}</view>
+ <view>{{ coalData.yuYueTime ? coalData.yuYueTime.slice(0, 10) + ' ' + coalData.yuYueTime.slice(11, 22) : '鏆傛棤鏃堕棿' }}</view>
</view>
<view class="driver-coalFour"><image src="@/static/logo.gif" mode=""></image></view>
</view>
@@ -17,36 +18,40 @@
</template>
<script>
- export default {
- onLoad(value) {
- console.log('椤甸潰鍔犺浇', value);
- if (value.orderPlanId) {
- this.orderPlanId = value.orderPlanId;
- }
- },
- data() {
- return {
- orderPlanId: null
- };
- },
- onShow() {
- this.init();
- },
- methods: {
- init() {
- this.getTakeCoal();
- },
- // 鑾峰彇鎻愮叅鍗曡鎯�
- getTakeCoal() {
- this.$reqGet('getTakeCoal', { takeCoalId: this.orderPlanId }).then(res => {
- console.log('鑾峰彇鎻愮叅鍗曡鎯�', res);
- });
- }
- /**
- * @desc 绛夊緟鍙栫叅鍗曟帴鍙�
- * */
+export default {
+ onLoad(value) {
+ console.log('椤甸潰鍔犺浇', value);
+ if (value.orderPlanId) {
+ this.orderPlanId = value.orderPlanId;
}
+ },
+ data() {
+ return {
+ orderPlanId: null,
+ coalData: {}
+ };
+ },
+ onShow() {
+ this.init();
+ },
+ methods: {
+ init() {
+ this.getTakeCoal();
+ },
+ // 鑾峰彇鎻愮叅鍗曡鎯�
+ getTakeCoal() {
+ this.$reqGet('getTakeCoal', { takeCoalId: this.orderPlanId }).then(res => {
+ console.log('鑾峰彇鎻愮叅鍗曡鎯�', res);
+ if (res.code == 0) {
+ this.coalData = res.data[0];
+ }
+ });
+ }
+ /**
+ * @desc 绛夊緟鍙栫叅鍗曟帴鍙�
+ * */
}
+};
</script>
<style lang="scss" scoped>
@@ -81,9 +86,12 @@
view:nth-child(3) {
margin-top: vww(15);
}
+ view:nth-child(4) {
+ margin-top: vww(15);
+ }
}
&-coalThree {
- margin-top: vww(76);
+ margin-top: vww(46);
font-size: vww(18);
font-family: Source Han Sans CN, Source Han Sans CN-Bold;
font-weight: 700;
@@ -94,7 +102,7 @@
}
}
&-coalFour {
- margin: vww(68) 0 0 45.5%;
+ margin: vww(58.5) 0 0 45.5%;
image {
width: vww(35);
height: vww(35);
@@ -103,4 +111,3 @@
}
}
</style>
-
--
Gitblit v1.9.1