|
|
@@ -4,11 +4,10 @@
|
|
|
* @Author: dream
|
|
|
* @Date: 2021-03-31 18:03:25
|
|
|
* @LastEditors: dream
|
|
|
- * @LastEditTime: 2021-04-01 18:37:35
|
|
|
+ * @LastEditTime: 2021-04-08 15:47:23
|
|
|
-->
|
|
|
<template>
|
|
|
<view class="delivery-order-detail-main" :style="{ paddingBottom: `${pagePaddingBottom}px`}">
|
|
|
- <u-navbar title="发货单详情" is-back :is-fixed="false" :border-bottom="false" title-color="#ffffff" back-icon-color="#ffffff" :background="{ background: '#1677FF' }" />
|
|
|
<view class="head-area"><text class="status-title">{{detail.status | statusFilter}}</text></view>
|
|
|
<view class="warehouse-info iph-bg-fff">
|
|
|
<view class="u-flex u-border-bottom u-p-b-32">
|
|
|
@@ -20,7 +19,7 @@
|
|
|
</view>
|
|
|
<view class="u-flex u-p-t-24">
|
|
|
<view class="u-font-22 u-line-32 u-flex-1">发货单号:{{detail.invoiceId}}</view>
|
|
|
- <view class="order-time u-font-22 u-line-32">{{detail.invoiceTime | timeFilter}}</view>
|
|
|
+ <view class="order-time u-font-22 u-line-32">{{detail.invoiceTime | dateFilter}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="good-list iph-bg-fff">
|
|
|
@@ -39,9 +38,8 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import dayjs from 'dayjs'
|
|
|
-import iphGoodCard from '../../components/iphGoodCard.vue'
|
|
|
-import IphFixedBottom from '../../components/iphFixedBottom.vue'
|
|
|
+import iphGoodCard from '@/components/iphGoodCard.vue'
|
|
|
+import IphFixedBottom from '@/components/iphFixedBottom.vue'
|
|
|
export default {
|
|
|
components: { iphGoodCard, IphFixedBottom },
|
|
|
name: 'deliveryOrderDetail',
|
|
|
@@ -89,6 +87,21 @@ export default {
|
|
|
onLoad () {
|
|
|
|
|
|
},
|
|
|
+ onPageScroll (obj) {
|
|
|
+ if (obj.scrollTop < 48) {
|
|
|
+ uni.setNavigationBarColor({
|
|
|
+ frontColor: '#ffffff',
|
|
|
+ backgroundColor: '#1677FF',
|
|
|
+ animation: { duration: 0.5, timingFunc: 'linear' }
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ uni.setNavigationBarColor({
|
|
|
+ frontColor: '#000000',
|
|
|
+ backgroundColor: '#ffffff',
|
|
|
+ animation: { duration: 0.5, timingFunc: 'linear' }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
methods: {
|
|
|
getFooterHeight (val) {
|
|
|
this.pagePaddingBottom = val + 8
|
|
|
@@ -107,15 +120,6 @@ export default {
|
|
|
3: '已收货'
|
|
|
}
|
|
|
return statusText[val]
|
|
|
- },
|
|
|
- timeFilter (val) {
|
|
|
- const nowYear = dayjs().year()
|
|
|
- const valYear = dayjs(val).year()
|
|
|
- if (nowYear === valYear) {
|
|
|
- return dayjs(val).format('MM-DD HH:mm')
|
|
|
- } else {
|
|
|
- return dayjs(val).format('YYYY-MM-DD HH:mm')
|
|
|
- }
|
|
|
}
|
|
|
}
|
|
|
}
|