Kaynağa Gözat

更新 磅单上传参数;首页数据刷新;添加卸货港刷新

wzh 3 yıl önce
ebeveyn
işleme
34249a0707

+ 2 - 30
miniprogram/pages/index/index.js

@@ -33,37 +33,9 @@ Page({
   forbidTouchMove() {
 
   },
-  onLoad() {
-    this.getIndexInfo()
-  },
+  onLoad() {},
   onShow() {
-
-    let data = [{
-        letter: 'A',
-        data: [{
-            name: 'azh',
-            phone: 13303849723
-          },
-          {
-            name: 'azz',
-            phone: 13303849723
-          },
-        ]
-      },
-      {
-        letter: 'B',
-        data: [{
-            name: 'bzh',
-            phone: 13303849723
-          },
-          {
-            name: 'bzz',
-            phone: 13303849723
-          },
-        ]
-      }
-    ]
-
+    this.getIndexInfo()
   },
   goTo(e) {
     let {

+ 31 - 0
miniprogram/pages/share/share.js

@@ -0,0 +1,31 @@
+// pages/share/share.js
+Page({
+  data: {
+    shareImageUrl: '',
+    markers: [],
+    logoUrl: 'https://6875-huihenduo-2gx127w7f837b584-1255802371.tcb.qcloud.la/miniapp-static/%E6%B1%87%E5%BE%88%E5%A4%9Alogo-%E5%B7%A6%E5%8F%B3.png'
+  },
+  onLoad: function (options) {
+    let {
+      latitude,
+      longitude
+    } = options
+    let markers = [{
+      id: 999,
+      latitude: '32.001233',
+      longitude: '120.5475',
+      iconPath: "https://6875-huihenduo-2gx127w7f837b584-1255802371.tcb.qcloud.la/miniapp-static/red-circle.png?sign=6d208881376358fb4111aa6d7f1a7846&t=1647934972",
+      height: 20,
+      width: 20
+    }]
+    markers[0].latitude = latitude
+    markers[0].longitude = longitude
+
+
+
+    this.setData({
+      markers,
+      shareImageUrl: (options.shareImageUrl.replace(/qwerdfb000mmmccc/g, '?')).replace(/mmmcccqwerdfb/g, '=')
+    })
+  }
+})

+ 5 - 0
miniprogram/pages/share/share.json

@@ -0,0 +1,5 @@
+{
+  "usingComponents": {},
+  "navigationBarTitleText": "汇很多科技",
+  "navigationStyle": "default"
+}

+ 6 - 0
miniprogram/pages/share/share.wxml

@@ -0,0 +1,6 @@
+<view class="df aic" class="header">
+  <image mode="aspectFit" class="logo" mode="aspectFit" src="{{logoUrl}}"></image>
+  <view class="text">航行日志</view>
+</view>
+<image mode="widthFix" src="{{shareImageUrl}}" class="main-image"></image>
+<map enable-zoom="{{false}}" enable-scroll="{{false}}" scale="8" markers="{{markers}}" latitude="{{markers[0].latitude}}" longitude="{{markers[0].longitude}}" class="map" name=""></map>

+ 34 - 0
miniprogram/pages/share/share.wxss

@@ -0,0 +1,34 @@
+/* pages/share/share.wxss */
+.logo {
+  display: block;
+  width: 70px;
+  height: 25px;
+  margin-left: 15px;
+  position: absolute;
+}
+
+.text {
+  font-size: 14px;
+  color: #555;
+  text-align: center;
+  width: 100%;
+  box-sizing: border-box;
+}
+
+.header {
+  margin-top: 2vh;
+  align-items: center;
+  margin-bottom: 3vh;
+}
+
+.main-image {
+  width: 90vw;
+  margin: 0 auto;
+  display: block;
+}
+
+.map {
+  width: 90vw;
+  height: 30vh;
+  margin: 0 auto
+}

+ 1 - 1
miniprogram/pages/voyageManage/myDaily/examine/examine.wxml

@@ -6,7 +6,7 @@
 </view>
 <!-- <block wx:if="{{trans=='运输中'}}"> -->
 <view class="df aic jscb">
-  <button style="width: 300rpx;line-height: 80rpx;padding: 0;font-weight: 400;" open-type="share" data-type="{{1}}" class="next" bindtap="share">分享航次照片</button> <button style="width: 300rpx;line-height: 80rpx;padding: 0;font-weight: 400;" open-type="share" data-type="{{2}}" class="next">分享航行报告</button>
+  <button style="width: 300rpx;line-height: 80rpx;padding: 0;font-weight: 400;" open-type="share" data-type="{{1}}" class="next" bindtap="share">分享航次照片</button> <button style="width: 300rpx;line-height: 80rpx;padding: 0;font-weight: 400;" open-type="share" data-type="{{2}}" class="next" bindtap="share">分享航行报告</button>
 </view>
 <!-- </block> -->
 <!-- <block wx:if="{{trans=='卸货中'}}"> -->

+ 1 - 0
miniprogram/pages/voyages/detail/detail.js

@@ -344,6 +344,7 @@ Page({
       voyageId: this.data.id,
       portId: this.data.currentDischargePortId
     })
+    this.getVoyageDetail()
     this.cancelAddDischargePort()
 
   },

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

@@ -20,7 +20,7 @@
   <view>
     <view>卸货记录</view>
     <image wx:for="{{fileList}}" class="upload-image" src="{{item.viewUrl}}"></image>
-    <view class="next" style="width: 200rpx;height: 60rpx;line-height: 60rpx;font-size: 26rpx;" bindtap="uploadBill" data-type="{{1}}">上传运单</view>
+    <view class="next" style="width: 200rpx;height: 60rpx;line-height: 60rpx;font-size: 26rpx;" bindtap="uploadBill" data-type="{{2}}">上传磅单</view>
     <view class="next" bindtap="submit">提交</view>
   </view>
 </view>