Parcourir la source

更新 航次类型

wzh il y a 3 ans
Parent
commit
8293bac4c2

+ 4 - 0
miniprogram/components/voyages/voyages.js

@@ -7,6 +7,10 @@ Component({
     height: {
       type: Number,
       value: 620,
+    },
+    type: {
+      type: String,
+      value: ''
     }
   },
   data: {

+ 2 - 3
miniprogram/components/voyages/voyages.wxml

@@ -2,10 +2,9 @@
 <view class="df aic jcsa tabs">
   <view class="tabsview" bindtap="changeStatus" data-status="{{1}}" style="color:{{status==1?'#0d8fcc':''}};border-bottom:{{status==1?'4rpx solid #0d8fcc':''}}">运输中</view>
   <view class="tabsview" bindtap="changeStatus" data-status="{{2}}" style="color:{{status==2?'#0d8fcc':''}};border-bottom:{{status==2?'4rpx solid #0d8fcc':''}}">卸货中</view>
+  <view class="tabsview" bindtap="changeStatus" wx:if="{{type=='voyage'}}" data-status="{{3}}" style="color:{{status==3?'#0d8fcc':''}};border-bottom:{{status==3?'4rpx solid #0d8fcc':''}}">历史航次</view>
 </view>
-<scroll-view bindrefresherrefresh="scrollDownList"
-refresher-triggered="{{isFreshing}}"
-refresher-enabled="{{true}}" scroll-y="true" style="height:calc(100vh - {{height}}rpx);background: #fff;">
+<scroll-view bindrefresherrefresh="scrollDownList" refresher-triggered="{{isFreshing}}" refresher-enabled="{{true}}" scroll-y="true" style="height:calc(100vh - {{height}}rpx);background: #fff;">
   <view class="df aic jcsb list" wx:for="{{list}}" wx:key="index" data-id="{{item.id}}" bindtap="goToDetail">
     <view class="col-1">{{item.shipName}}</view>
     <view class="col-2">{{item.loadPort}}-{{item.dischargeProt}}</view>

+ 1 - 1
miniprogram/pages/voyages/voyages.wxml

@@ -1 +1 @@
-<Voyages height="{{220}}" class="voyages"></Voyages>
+<Voyages height="{{220}}" class="voyages" type="{{'voyage'}}"></Voyages>

+ 1 - 1
project.private.config.json

@@ -47,7 +47,7 @@
     "lazyloadPlaceholderEnable": false,
     "preloadBackgroundData": false,
     "autoAudits": false,
-    "useMultiFrameRuntime": false,
+    "useMultiFrameRuntime": true,
     "showShadowRootInWxmlPanel": true,
     "useStaticServer": true,
     "showES6CompileOption": false,