MrShi
昨天 00a7a61df86db969f2ba61c508d02ba4709ce3d4
app/pages/order/order.vue
@@ -152,6 +152,8 @@
</template>
<script>
   import { chooseImageWithNotice, getLocationWithNotice } from '@/utils/utils'
   export default {
      data() {
         return {
@@ -371,7 +373,7 @@
            this.checkOperationRadius(item.id, 'deliver')
         },
         checkOperationRadius(orderId, mode) {
            uni.getLocation({
            getLocationWithNotice({
               type: 'gcj02',
               success: (res) => {
                  this.$u.api.checkDriverOperationRadius({
@@ -402,7 +404,7 @@
                     icon: 'none'
                  })
               }
            })
            }).catch(() => {})
         },
         closePhotoPopup() {
            this.showPhotoPopup = false
@@ -412,24 +414,24 @@
               uni.showToast({ title: '最多上传3张照片', icon: 'none' })
               return
            }
            uni.chooseImage({
            chooseImageWithNotice({
               count: 3 - this.uploadedPhotos.length,
               sourceType: ['camera', 'album'],
               success: (res) => {
                  this.uploadedPhotos = [...this.uploadedPhotos, ...res.tempFilePaths]
               }
            })
            }).catch(() => {})
         },
         deletePhoto(index) {
            this.uploadedPhotos.splice(index, 1)
         },
         submitPhotoPopup() {
            submitPhotoPopup() {
            if (this.uploadedPhotos.length === 0) {
               uni.showToast({ title: '请上传照片', icon: 'none' })
               return
            }
            uni.showLoading({ title: '上传中...' })
            uni.getLocation({
            getLocationWithNotice({
               type: 'gcj02',
               success: (locationRes) => {
                  this.doUploadPhotos(locationRes.latitude, locationRes.longitude)
@@ -437,6 +439,8 @@
               fail: () => {
                  this.doUploadPhotos(null, null)
               }
            }).catch(() => {
               this.doUploadPhotos(null, null)
            })
         },