MrShi
2024-02-28 f5aab724124ffde943e208d69811b8b7bf6fa14c
h5/pages/userinfo/userinfo.vue
@@ -153,6 +153,11 @@
         upload(type) {
            uni.chooseImage({
               success: (chooseImageRes) => {
                  // console.log(chooseImageRes.tempFilePaths[0])
                  uni.navigateTo({
                     url: `/pages/cropping/cropping?item=${JSON.stringify({ tempFilePath: chooseImageRes.tempFilePaths[0] })}`
                  })
                  return
                  uni.showLoading({ title: '上传中', mask: true });
                  for (let i = 0; i < chooseImageRes.tempFilePaths.length; i++) {
                     uni.uploadFile({