companyInfoPhoto.js.map 30.5 KB
{"version":3,"sources":["uni-app:///main.js","webpack:////Users/juvenile/Documents/web/xiaoai/excellent-working/pages/my/companyInfoPhoto/companyInfoPhoto.vue?587d","webpack:////Users/juvenile/Documents/web/xiaoai/excellent-working/pages/my/companyInfoPhoto/companyInfoPhoto.vue?0915","webpack:////Users/juvenile/Documents/web/xiaoai/excellent-working/pages/my/companyInfoPhoto/companyInfoPhoto.vue?7a35","webpack:////Users/juvenile/Documents/web/xiaoai/excellent-working/pages/my/companyInfoPhoto/companyInfoPhoto.vue?f0cd","uni-app:///pages/my/companyInfoPhoto/companyInfoPhoto.vue","webpack:////Users/juvenile/Documents/web/xiaoai/excellent-working/pages/my/companyInfoPhoto/companyInfoPhoto.vue?94ab","webpack:////Users/juvenile/Documents/web/xiaoai/excellent-working/pages/my/companyInfoPhoto/companyInfoPhoto.vue?2998","webpack:////Users/juvenile/Documents/web/xiaoai/excellent-working/pages/my/companyInfoPhoto/companyInfoPhoto.vue?5f8a","webpack:////Users/juvenile/Documents/web/xiaoai/excellent-working/pages/my/companyInfoPhoto/companyInfoPhoto.vue?e5df"],"names":["createPage","Page"],"mappings":";;;;;;;;;;kDAAA,wCAAmB;AACnB;AACA,iI;AACAA,UAAU,CAACC,yBAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAyI;AACzI;AACoE;AACL;AACa;AACyB;;;AAGrG;AACsN;AACtN,gBAAgB,iNAAU;AAC1B,EAAE,sFAAM;AACR,EAAE,uGAAM;AACR,EAAE,gHAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,2GAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACxBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA,aAAa,uPAEN;AACP;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACtCA;AAAA;AAAA;AAAA;AAA42B,CAAgB,8yBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC2Dh4B;AACA,MADA,kBACA;AACA;AACA;AACA;AACA,kBADA,EADA;;AAIA;AACA,yBADA,EAJA;;AAOA;AACA,yBADA,EAPA,CADA;;;;AAaA,qBAbA;AAcA,0BAdA;;AAgBA,iBAhBA;AAiBA,kBAjBA;AAkBA,iBAlBA;AAmBA,iBAnBA;AAoBA,iBApBA;;AAsBA,GAxBA;;AA0BA,QA1BA,kBA0BA,CA1BA,EA0BA;AACA;AACA;AACA;AACA;;AAEA;AACA,GAjCA;;AAmCA;AACA,WADA,qBACA;AACA;AACA,sBADA,CACA;AACA,iCADA;AAEA,kCAFA,EADA;;AAKA,UALA,CAKA;AACA;AACA,OAPA;AAQA,KAVA;;AAYA,eAZA,uBAYA,CAZA,EAYA;AACA;AACA;AACA;AACA;AACA;AACA,6FADA;AAEA;AACA,2FADA;AAEA;AACA;AACA,gBADA;AAEA,0BAFA;;AAIA;AACA;AACA;AACA;AACA,mCADA,CACA;AACA,0CADA;AAEA,0CAFA,EADA;;AAKA,gBALA,CAKA;AACA;AACA;AACA;AACA,kDADA;AAEA,kCAFA;;AAIA,eALA,MAKA;AACA;AACA;AACA,aAfA;;AAiBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAxDA;;AA0DA,aA1DA,qBA0DA,KA1DA,EA0DA;AACA;AACA;AACA;AACA;AACA;AACA,8BADA;AAEA,wBAFA;;AAIA;AACA;AACA;AACA,oDADA;AAEA,8CAFA,EAEA;AACA,gCAHA,EAGA;AACA;AACA;AACA,WANA;;AAQA,OAjBA,MAiBA;AACA;AACA;AACA;AACA,8BADA;AAEA,wBAFA;;AAIA;AACA;AACA;AACA,oDADA;AAEA,8CAFA,EAEA;AACA,+BAHA,EAGA;AACA;AACA;AACA;AACA,aAFA,MAEA;AACA;AACA;AACA,WAVA;;AAYA,OArBA,MAqBA;AACA;AACA;AACA,kBADA;AAEA,8CAFA,EAEA;AACA,+BAHA,EAGA;AACA;AACA;AACA;AACA;AACA,mCADA;AAEA,4BAFA;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eADA;AAEA,0BAFA;;;AAKA;AACA;AACA;AACA,WA5BA;AA6BA;AACA;AACA;AACA;AACA;AACA,qCADA;AAEA,8BAFA;;AAIA;AACA;AACA;AACA,WAxCA;;AA0CA;AACA,KA/IA;;AAiJA,UAjJA,oBAiJA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,qBADA;AAEA,kBAFA;;;AAKA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA,WAFA;AAGA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,SAFA;AAGA,OALA,MAKA;AACA;AACA;AACA,KAjMA;;AAmMA,eAnMA,yBAmMA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA,gBADA;;AAGA,KAvNA;;AAyNA,aAzNA,qBAyNA,CAzNA,EAyNA;AACA;AACA;AACA;AACA,KA7NA;;AA+NA,cA/NA,wBA+NA;AACA;AACA;AACA,KAlOA;;AAoOA,gBApOA,wBAoOA,WApOA,EAoOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iEADA;AAEA,oCAFA;AAGA,wBAHA;AAIA;AACA,gHADA;AAEA,2DAFA;AAGA,4CAHA;AAIA,kDAJA;AAKA,qDALA;AAMA,4CANA;AAOA,4DAPA;AAQA,4CARA,EAJA;;;AAeA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAHA,MAGA;AACA;AACA;AACA;AACA;AACA;AACA,eAFA,EAEA,GAFA;;AAIA;AACA;AACA;AACA;AACA;AACA,aAnCA;AAoCA;AACA;AACA;AACA,aAvCA;;;AA0CA;;AAEA,OA9CA;AA+CA,KAvRA;;AAyRA,aAzRA,qBAyRA,OAzRA,EAyRA;AACA;AACA;AACA,mBADA;AAEA,eAFA,mBAEA,GAFA,EAEA;AACA;AACA,SAJA;AAKA,YALA,gBAKA,GALA,EAKA;AACA;AACA,SAPA;;AASA,KApSA;;AAsSA,aAtSA,qBAsSA,GAtSA,EAsSA;AACA;AACA,kBADA;AAEA,oBAFA;;AAIA,KA3SA;;AA6SA,aA7SA,uBA6SA;AACA;AACA;;AAEA;AACA,gBADA;;AAGA,KApTA,EAnCA,E;;;;;;;;;;;;;AC3DA;AAAA;AAAA;AAAA;AAAquC,CAAgB,2mCAAG,EAAC,C;;;;;;;;;;;ACAzvC;AACA,OAAO,KAAU,EAAE,kBAKd;;;;;;;;;;;;;ACNL;AAAA;AAAA;AAAA;AAAqlD,CAAgB,g6CAAG,EAAC,C;;;;;;;;;;;ACAzmD;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/my/companyInfoPhoto/companyInfoPhoto.js","sourcesContent":["import 'uni-pages';import '@dcloudio/uni-stat';\nimport Vue from 'vue'\nimport Page from './pages/my/companyInfoPhoto/companyInfoPhoto.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./companyInfoPhoto.vue?vue&type=template&id=69937536&scoped=true&\"\nvar renderjs\nimport script from \"./companyInfoPhoto.vue?vue&type=script&lang=js&\"\nexport * from \"./companyInfoPhoto.vue?vue&type=script&lang=js&\"\nimport style0 from \"./companyInfoPhoto.vue?vue&type=style&index=0&lang=css&\"\nimport style1 from \"./companyInfoPhoto.vue?vue&type=style&index=1&id=69937536&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  null,\n  \"69937536\",\n  null,\n  false,\n  components,\n  renderjs\n)\n\ncomponent.options.__file = \"pages/my/companyInfoPhoto/companyInfoPhoto.vue\"\nexport default component.exports","export * from \"-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./companyInfoPhoto.vue?vue&type=template&id=69937536&scoped=true&\"","var components\ntry {\n  components = {\n    uActionSheet: function() {\n      return import(\n        /* webpackChunkName: \"uview-ui/components/u-action-sheet/u-action-sheet\" */ \"@/uview-ui/components/u-action-sheet/u-action-sheet.vue\"\n      )\n    }\n  }\n} catch (e) {\n  if (\n    e.message.indexOf(\"Cannot find module\") !== -1 &&\n    e.message.indexOf(\".vue\") !== -1\n  ) {\n    console.error(e.message)\n    console.error(\"1. 排查组件名称拼写是否正确\")\n    console.error(\n      \"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n    )\n    console.error(\n      \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n    )\n  } else {\n    throw e\n  }\n}\nvar render = function() {\n  var _vm = this\n  var _h = _vm.$createElement\n  var _c = _vm._self._c || _h\n  if (!_vm._isMounted) {\n    _vm.e0 = function($event) {\n      _vm.show = true\n    }\n  }\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./companyInfoPhoto.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./companyInfoPhoto.vue?vue&type=script&lang=js&\"","<template>\r\n  <view class=\"app\">\r\n    <view class=\"box\">\r\n      <view class=\"t\"> 相册展示企业形象、办公环境、日常福利等 </view>\r\n\r\n      <view class=\"photo\">\r\n        <img\r\n          class=\"img1\"\r\n          @click=\"show = true\"\r\n          src=\"https://yxlypublic.oss-cn-beijing.aliyuncs.com/WeChat/icons/addphoto.png\"\r\n          alt=\"\"\r\n        />\r\n        <view class=\"img-box\" v-if=\"videoObj.tempFilePath\">\r\n          <!-- <img class=\"img\" :src=\"item\" alt=\"\"> -->\r\n          <video\r\n            :src=\"videoObj.tempFilePath\"\r\n            :show-center-play-btn=\"false\"\r\n            :controls=\"false\"\r\n            mobilenet-hint-type=\"0\"\r\n            object-fit=\"fill\"\r\n            class=\"img\"\r\n          ></video>\r\n          <image\r\n            class=\"delete\"\r\n            src=\"/static/img/common/delete.png\"\r\n            @click=\"deleteImg1()\"\r\n          ></image>\r\n        </view>\r\n        <view class=\"plist\" v-for=\"(item, index) in picList\" :key=\"index\">\r\n          <view class=\"img-box\">\r\n            <img class=\"img\" :src=\"item\" alt=\"\" />\r\n            <image\r\n              class=\"delete\"\r\n              src=\"/static/img/common/delete.png\"\r\n              @click=\"deleteImg(index)\"\r\n            ></image>\r\n          </view>\r\n        </view>\r\n      </view>\r\n\r\n      <view class=\"t1\">\r\n        照片仅支持.jpj .png,最多可上传9张,视频大小在100MB以内,最多上传一个。\r\n      </view>\r\n    </view>\r\n\r\n    <view style=\"height: 100px\"></view>\r\n    <view class=\"btmBtn\">\r\n      <view class=\"submit\" @click=\"submit\"> 保存 </view>\r\n    </view>\r\n\r\n    <u-action-sheet\r\n      :list=\"list\"\r\n      @click=\"chooseImg\"\r\n      v-model=\"show\"\r\n    ></u-action-sheet>\r\n  </view>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n  data() {\r\n    return {\r\n      list: [\r\n        {\r\n          text: \"拍照\",\r\n        },\r\n        {\r\n          text: \"从手机相册选择图片\",\r\n        },\r\n        {\r\n          text: \"从手机相册选择视频\",\r\n        },\r\n      ],\r\n\r\n      attachments: [],\r\n      attachmentsVideo: {},\r\n\r\n      picList: [],\r\n      videoObj: {},\r\n      ossInit: {},\r\n      maxCount: 9,\r\n      show: false,\r\n    };\r\n  },\r\n\r\n  onLoad(e) {\r\n    if (e && e.sel) {\r\n      // this.mark = e.sel\r\n      this.handlePicks(e.sel);\r\n    }\r\n\r\n    this.initOss();\r\n  },\r\n\r\n  methods: {\r\n    initOss() {\r\n      this.$u.api\r\n        .getHroOssInitApi({\r\n          access_type: \"web_upload\",\r\n          object_type: \"tenant_logo\",\r\n        })\r\n        .then((res) => {\r\n          this.ossInit = res;\r\n        });\r\n    },\r\n\r\n    handlePicks(e) {\r\n      //处理获取的网络图片\r\n      this.picList = [];\r\n      if (e) {\r\n        var originInfo = JSON.parse(e);\r\n        const imgList =\r\n          originInfo.filter((el) => el.mime_type.indexOf(\"image/\") != -1) || [];\r\n        const videoObj =\r\n          originInfo.find((el) => el.mime_type.indexOf(\"image/\") == -1) || {};\r\n        this.attachments = imgList;\r\n        this.attachmentsVideo = {\r\n          ...videoObj,\r\n          'opt': 'default'\r\n        }\r\n        // this.attachments = imgList\r\n        if (originInfo && originInfo.length > 0) {\r\n          for (var i = 0; i < originInfo.length; i++) {\r\n            this.$u.api\r\n              .getHroObjectRedirectApi({\r\n                bucket: originInfo[i].bucket,\r\n                object: originInfo[i].object,\r\n              })\r\n              .then((res) => {\r\n                // _this.imagePath = res.download_url;\r\n                if (res.download_url.indexOf(`mp4`) != -1) {\r\n                  this.videoObj = {\r\n                    'tempFilePath': res.download_url,\r\n                    'opt': 'default'\r\n                  }\r\n                } else {\r\n                  this.picList.push(res.download_url);\r\n                }\r\n              });\r\n\r\n            // this.$u.api.getImgUrl({\r\n            // \tbucket: originInfo[i].bucket,\r\n            // \tfilePath: originInfo[i].object\r\n            // }).then(res => {\r\n            // \tthis.picList.push(res.url)\r\n            // \tconsole.log('picList...', this.picList)\r\n            // })\r\n          }\r\n        }\r\n      }\r\n    },\r\n\r\n    chooseImg(index) {\r\n      var _this = this;\r\n      if (index == 0) {\r\n        //拍照\r\n        if (this.picList.length >= this.maxCount) {\r\n          uni.showToast({\r\n            title: \"已达到上传文件上限\",\r\n            icon: \"none\",\r\n          });\r\n          return;\r\n        }\r\n        uni.chooseImage({\r\n          count: this.maxCount - this.picList.length,\r\n          sizeType: [\"original\", \"compressed\"], //可以指定是原图还是压缩图,默认二者都有\r\n          sourceType: [\"camera\"], //从相机选择\r\n          success: function (res) {\r\n            _this.picList = _this.picList.concat(res.tempFilePaths);\r\n          },\r\n        });\r\n      } else if (index == 1) {\r\n        //相册\r\n        if (this.picList.length >= this.maxCount) {\r\n          uni.showToast({\r\n            title: \"已达到上传文件上限\",\r\n            icon: \"none\",\r\n          });\r\n          return;\r\n        }\r\n        uni.chooseImage({\r\n          count: this.maxCount - this.picList.length,\r\n          sizeType: [\"original\", \"compressed\"], //可以指定是原图还是压缩图,默认二者都有\r\n          sourceType: [\"album\"], //从相册选择\r\n          success: function (res) {\r\n            if (!_this.picList || _this.picList.length == 0) {\r\n              _this.picList = res.tempFilePaths;\r\n            } else {\r\n              _this.picList = _this.picList.concat(res.tempFilePaths);\r\n            }\r\n          },\r\n        });\r\n      } else if (index == 2) {\r\n        //相册\r\n        uni.chooseVideo({\r\n          count: 1,\r\n          sizeType: [\"original\", \"compressed\"], //可以指定是原图还是压缩图,默认二者都有\r\n          sourceType: [\"album\"], //从相册选择\r\n          success: function (res) {\r\n            let item = res;\r\n            if (item.size > 52428800) {\r\n              uni.showToast({\r\n                title: \"视频不允许超过50M\",\r\n                icon: \"none\",\r\n              });\r\n              // uni.hideLoading();\r\n              return;\r\n            }\r\n            // if (!_this.videoObj || _this.videoObj.length == 0) {\r\n            // \t_this.videoObj = res.tempFiles\r\n            // } else {\r\n            // \t// _this.picList = _this.picList.concat(res.tempFiles)\r\n            // \t_this.videoObj = res.tempFiles\r\n            // }\r\n            _this.videoObj = {\r\n              ...res,\r\n              'opt': 'new'\r\n            }\r\n\r\n            if (index != 1) {\r\n              _this.updataShow = true;\r\n            }\r\n          },\r\n          complete: function (res) {\r\n            if (res) {\r\n              let item = res;\r\n              if (item.size > 52428800) {\r\n                uni.showToast({\r\n                  title: \"视频不允许超过50M\",\r\n                  icon: \"none\",\r\n                });\r\n                return;\r\n              }\r\n            }\r\n          },\r\n        });\r\n      }\r\n    },\r\n\r\n    submit() {\r\n      const _this = this;\r\n\r\n      if (this.picList.length == 0 && !this.videoObj.tempFilePath) {\r\n        this.showToast(\"请添加至少一个图片或视频\");\r\n        return;\r\n      }\r\n\r\n      console.warn(\"上传\");\r\n\r\n      uni.showLoading({\r\n        title: \"上传中~\",\r\n        mask: true,\r\n      });\r\n\r\n      let uploadFiles = [];\r\n\r\n      console.warn(this.attachmentsVideo);\r\n      console.warn(this.videoObj);\r\n\r\n      if ((this.attachmentsVideo.opt != this.videoObj.opt) && this.videoObj.opt) {\r\n        uploadFiles.push(this.videoObj.tempFilePath);\r\n      }\r\n\r\n      if (this.picList.length != this.attachments.length) {\r\n        const gapLength = this.picList.length - this.attachments.length;\r\n\r\n        let uploadPic = [...this.picList];\r\n\r\n        uploadPic = uploadPic.splice(this.attachments.length, gapLength);\r\n\r\n        if (uploadPic && uploadPic.length > 0) {\r\n          uploadPic.map((item) => {\r\n            uploadFiles.push(item);\r\n          });\r\n        }\r\n      }\r\n\r\n      console.warn(uploadFiles);\r\n\r\n      if (uploadFiles.length > 0) {\r\n        let p1 = this.uploadImages(uploadFiles);\r\n        Promise.all([p1]).then((res) => {\r\n          _this.uploadInfos();\r\n        });\r\n      } else {\r\n        _this.uploadInfos();\r\n      }\r\n    },\r\n\r\n    uploadInfos() {\r\n      let pages = getCurrentPages();\r\n      let prevPage = pages[pages.length - 2];\r\n\r\n      console.warn(this.attachments);\r\n      console.warn(this.attachmentsVideo);\r\n\r\n      const allAttachments = [...this.attachments];\r\n\r\n      if (this.attachmentsVideo && this.attachmentsVideo.object) {\r\n        allAttachments.push(this.attachmentsVideo);\r\n      }\r\n\r\n      console.warn(allAttachments);\r\n\r\n      prevPage.$vm.resumeObj.photo = allAttachments;\r\n\r\n      uni.navigateBack({\r\n        delta: 1,\r\n      });\r\n    },\r\n\r\n    deleteImg(e) {\r\n      //e==index\r\n      this.picList.splice(e, 1);\r\n      this.attachments.splice(e, 1);\r\n    },\r\n\r\n    deleteImg1() {\r\n      this.videoObj = {};\r\n      this.attachmentsVideo = {}\r\n    },\r\n\r\n    uploadImages(uploadFiles) {\r\n      console.warn('uploadImages')\r\n      //上传图片\r\n      const _this = this;\r\n      return new Promise((resolve, reject) => {\r\n        for (let i = 0; i < uploadFiles.length; i++) {\r\n          uni.uploadFile({\r\n            url: `https://hropublic.oss-cn-beijing.aliyuncs.com/`,\r\n            filePath: uploadFiles[i],\r\n            name: \"file\",\r\n            formData: {\r\n              'key': `${_this.ossInit.object_path}/${new Date().getTime()}/` +  \"${filename}\",\r\n              'OSSAccessKeyId': _this.ossInit.access_key_id,\r\n              'policy': _this.ossInit.policy,\r\n              'signature': _this.ossInit.signature,\r\n              'callback': _this.ossInit.callback_body,\r\n              'bucket': _this.ossInit.bucket,\r\n              'x:access_token': _this.ossInit.callback_token,\r\n              'success_action_status': '200',\r\n            },\r\n\r\n            success: (uploadFileRes) => {\r\n              console.warn(uploadFileRes.data);\r\n              console.warn(_this.attachments);\r\n              const currentData = JSON.parse(uploadFileRes.data);\r\n              if (currentData.mime_type.indexOf(\"image/\") != -1) {\r\n                const _attachments = [..._this.attachments, currentData];\r\n                _this.attachments = _attachments;\r\n              } else {\r\n                console.warn(\"video\");\r\n                _this.attachmentsVideo = currentData;\r\n              }\r\n              setTimeout(() => {\r\n                resolve();\r\n              }, 400);\r\n\r\n              // _this.attachments.push(JSON.parse(uploadFileRes.data))\r\n              // if (_this.attachments.length == _this.picList.length) {\r\n              // \t// _this.uploadInfos();\r\n              // \tresolve()\r\n              // }\r\n            },\r\n            complete: (res) => {\r\n              uni.hideLoading();\r\n              // resolve()\r\n            },\r\n\r\n          });\r\n        }\r\n\r\n      });\r\n    },\r\n\r\n    openImage(imgPath) {\r\n      let array = new Array(1).fill(imgPath);\r\n      uni.previewImage({\r\n        urls: array,\r\n        success(res) {\r\n          uni.hideLoading();\r\n        },\r\n        fail(res) {\r\n          uni.hideLoading();\r\n        },\r\n      });\r\n    },\r\n\r\n    showToast(res) {\r\n      uni.showToast({\r\n        title: res,\r\n        icon: \"none\",\r\n      });\r\n    },\r\n\r\n    submitSel() {\r\n      let pages = getCurrentPages();\r\n      let prevPage = pages[pages.length - 2];\r\n\r\n      uni.navigateBack({\r\n        delta: 1,\r\n      });\r\n    },\r\n  },\r\n};\r\n</script>\r\n\r\n<style>\r\npage {\r\n  background-color: #fafafb;\r\n}\r\n</style>\r\n\r\n<style lang=\"scss\" scoped>\r\n.app {\r\n  padding: 20rpx 30rpx;\r\n\r\n  .box {\r\n    background-color: #ffffff;\r\n    padding: 42rpx 28rpx;\r\n    border-radius: 20rpx;\r\n\r\n    .t {\r\n      font-size: 26rpx;\r\n      font-family: PingFangSC-Regular, PingFang SC;\r\n      font-weight: 400;\r\n      color: #000000;\r\n    }\r\n\r\n    .t1 {\r\n      margin-top: 10px;\r\n      font-size: 24rpx;\r\n      font-family: PingFangSC-Regular, PingFang SC;\r\n      font-weight: 400;\r\n      color: rgba(0, 0, 0, 0.45);\r\n    }\r\n\r\n    .photo {\r\n      margin-top: 15px;\r\n      display: flex;\r\n      justify-content: space-between;\r\n      flex-wrap: wrap;\r\n\r\n      // .plist {\r\n      // \tdisplay: flex;\r\n      // \tflex-wrap: wrap;\r\n      // }\r\n\r\n      .img-box {\r\n        position: relative;\r\n        border: 3rpx solid rgba(0, 0, 0, 0.15);\r\n        padding: 20rpx;\r\n        margin-bottom: 10px;\r\n\r\n        .img {\r\n          width: 253rpx;\r\n          height: 253rpx;\r\n          border-radius: 6rpx;\r\n          background-color: #f7f7f7;\r\n        }\r\n\r\n        .delete {\r\n          width: 40rpx;\r\n          height: 40rpx;\r\n          padding: 16rpx;\r\n          position: absolute;\r\n          top: -10rpx;\r\n          right: -16rpx;\r\n          z-index: 99;\r\n        }\r\n      }\r\n    }\r\n  }\r\n\r\n  .img1 {\r\n    width: 300rpx;\r\n    height: 300rpx;\r\n    margin-bottom: 10px;\r\n  }\r\n\r\n  .btmBtn {\r\n    position: fixed;\r\n    left: 0;\r\n    bottom: 0;\r\n    width: 100%;\r\n    height: 90px;\r\n    background: #ffffff;\r\n    padding: 10px 20px 36px;\r\n    border-top: 1px solid #f0f0f1;\r\n    z-index: 999;\r\n\r\n    .submit {\r\n      height: 44px;\r\n      background: linear-gradient(180deg, #1cd9b2 0%, #0cb17a 100%);\r\n      box-shadow: 0px 2px 20px 0px rgba(12, 177, 122, 0.3);\r\n      border-radius: 22px;\r\n      font-size: 17px;\r\n      font-family: PingFangSC-Regular, PingFang SC;\r\n      font-weight: 400;\r\n      color: #ffffff;\r\n      line-height: 44px;\r\n      text-align: center;\r\n    }\r\n  }\r\n}\r\n</style>","import mod from \"-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./companyInfoPhoto.vue?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./companyInfoPhoto.vue?vue&type=style&index=0&lang=css&\"","// extracted by mini-css-extract-plugin\n    if(module.hot) {\n      // 1689239518375\n      var cssReload = require(\"/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n      module.hot.dispose(cssReload);\n      module.hot.accept(undefined, cssReload);\n    }\n  ","import mod from \"-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./companyInfoPhoto.vue?vue&type=style&index=1&id=69937536&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./companyInfoPhoto.vue?vue&type=style&index=1&id=69937536&lang=scss&scoped=true&\"","// extracted by mini-css-extract-plugin\n    if(module.hot) {\n      // 1689239522542\n      var cssReload = require(\"/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n      module.hot.dispose(cssReload);\n      module.hot.accept(undefined, cssReload);\n    }\n  "],"sourceRoot":""}