MrShi
2025-08-21 63e62f860958716da9ebb34ce07c8d616b305b8e
small-program/pages/index/index.vue
@@ -414,18 +414,39 @@
      async onLoad() {
         await this.$onLaunched;
         
         if (this.token && this.token != '' && this.userInfo && JSON.stringify(this.userInfo) != '{}') {
         if (this.token && this.token != '' && this.userInfo && JSON.stringify(this.userInfo) != '{}' && this.userInfo.useIdentity === 1) {
            this.getOrderList()
         }
            this.getCategoryLists()
         this.getDictInfo()
         if (this.token && this.token != '' && this.userInfo && JSON.stringify(this.userInfo) != '{}') {
            this.form.linkPhone = this.userInfo.telephone
         }
         
         this.qqmapsdk = new QQMapWX({
            key: '4PXBZ-JLBC7-LCLXG-P2SZX-C4HYE-LDBLQ'
         });
         
         this.form.linkPhone = this.userInfo.telephone
         this.getDictInfo()
         uni.$on('clear', (data) => {
            this.form.startDate = ''
            this.form.endDate = ''
            this.form.latitude = ''
            this.form.longitude = ''
            this.form.location = ''
            this.form.locationEnd = ''
            this.form.wayInfoDTOList = []
            this.form.workType = 0
            this.form.days = ''
            this.form.locationRemark = ''
            this.form.supplement = ''
            this.form.multifileList = []
            this.form.linkName = ''
            this.form.estimatedAccount = ''
            this.form.price = ''
            this.form.address = ''
         })
      },
      onShow(options) {
         this.typeViewId = 0
@@ -460,7 +481,7 @@
               this.form.location = ''
               this.form.locationEnd = ''
               this.form.wayInfoDTOList = []
               this.form.workType = ''
               this.form.workType = 0
               this.form.days = ''
               this.form.locationRemark = ''
               this.form.supplement = ''
@@ -648,10 +669,10 @@
         uploadImg() {
            uni.chooseImage({
               success: (chooseImageRes) => {
                  const tempFilePaths = chooseImageRes.tempFilePaths;
                  for (let i = 0; i < chooseImageRes.tempFilePaths.length; i++) {
                  uni.uploadFile({
                     url: this.$baseUrl + '/web/public/upload',
                     filePath: tempFilePaths[0],
                        filePath: chooseImageRes.tempFilePaths[i],
                     name: 'file',
                     formData: {
                        'folder': 'orders'
@@ -666,6 +687,7 @@
                        })
                     }
                  });
                  }
               }
            });
         },
@@ -1687,7 +1709,7 @@
                              flex-shrink: 0;
                           }
                           text {
                              flex: 1;
                              width: 470rpx;
                              overflow: hidden;
                              text-overflow: ellipsis;
                              white-space: nowrap;