浏览代码

fix 优化一系列bug

wzh 4 月之前
父节点
当前提交
951c02e517
共有 3 个文件被更改,包括 23 次插入5 次删除
  1. 13 0
      pages/hexiao/jxs/order_detail.vue
  2. 2 2
      pages/hexiao/ywy/add_patrol.vue
  3. 8 3
      pages/hexiao/ywy/patrol_detail.vue

+ 13 - 0
pages/hexiao/jxs/order_detail.vue

@@ -42,6 +42,19 @@
         </view>
       </view>
     </view>
+    <view class="info-card" v-if="orderDetails.status ===2 || orderDetails.status === 3">
+      <view class="card-header">
+        <view class="card-title">发货信息</view>
+      </view>
+      <view class="card-body">
+        <view class="address-info">
+          <view class="address-text">{{ orderDetails.delivery.logisticsCompany }}</view>
+          <view class="user-info">
+            <text>{{ orderDetails.delivery.logisticsNo}}</text>
+          </view>
+        </view>
+      </view>
+    </view>
 
     <view class="info-card">
       <view class="card-header">

+ 2 - 2
pages/hexiao/ywy/add_patrol.vue

@@ -159,8 +159,8 @@ import { getRetailDetail,  uploadImage,addPatrolRecord,parseLocation} from "@/ap
 
             parseLocation(res.latitude, res.longitude).then(res=>{
               if("Success" === res.data.message){
-                let address = res.data.result.address
-                self.locationInfo.address = address
+                let formatted_addresses = res.data.result.formatted_addresses
+                self.locationInfo.address = formatted_addresses.standard_address
               }else{
                 uni.showToast({ title: '解析地址失败', icon: 'none' });
               }

+ 8 - 3
pages/hexiao/ywy/patrol_detail.vue

@@ -41,7 +41,10 @@
         <text class="detail-label">巡店奖励</text>
         <text class="detail-value reward">{{ patrolDetails.reward }}</text>
       </view>
-
+      <view class="detail-item">
+        <text class="detail-label">定位地址</text>
+        <text class="detail-value">{{ patrolDetails.remarks }}</text>
+      </view>
       <view class="detail-item">
         <text class="detail-label">备注</text>
         <text class="detail-value">{{ patrolDetails.remarks }}</text>
@@ -89,7 +92,8 @@ export default {
         reward: '',
         remarks: '',
         storefrontPhoto: '',
-        displayPhoto: ''
+        displayPhoto: '',
+        storeLocation:""
       }
     };
   },
@@ -118,7 +122,8 @@ export default {
                   remarks: data.remark,
                   // 请替换为您真实的图片URL
                   storefrontPhoto: data.storeImg,
-                  displayPhoto: data.displayImg
+                  displayPhoto: data.displayImg,
+                  storeLocation:data.storeLocation
                 };
         uni.hideLoading();
       })