This commit is contained in:
2023-05-15 14:13:36 +08:00
parent afec01d797
commit d19b1ed2aa
647 changed files with 587 additions and 37417 deletions
+1 -2
View File
File diff suppressed because one or more lines are too long
-67
View File
@@ -1,67 +0,0 @@
/*! ../../../node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!./index.tsx */
/*! ./components/ModifyModal */
/*! ./index.module.scss */
/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */
/*! ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */
/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */
/*! ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js */
/*! @/api/company */
/*! @/api/user */
/*! @/common/common */
/*! @/common/constant */
/*! @/common/format */
/*! @/components/iconfont/iconfont */
/*! @/components/normalButton */
/*! @/components/popup */
/*! @/reducers/hooks */
/*! @/use/useCommon */
/*! @/use/useLogin */
/*! @/use/useUploadImage */
/*! @/use/useUserInfo */
/*! @tarojs/components */
/*! @tarojs/runtime */
/*! @tarojs/taro */
/*! classnames */
/*! react */
/*! react/jsx-runtime */
/*!**************************************!*\
!*** ./src/pages/userEdit/index.tsx ***!
\**************************************/
/*!*************************************************************!*\
!*** ./src/pages/userEdit/components/ModifyModal/index.tsx ***!
\*************************************************************/
/*!*********************************************************************!*\
!*** ./src/pages/userEdit/components/ModifyModal/index.module.scss ***!
\*********************************************************************/
/*!***********************************************************************************************************!*\
!*** ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!./src/pages/userEdit/index.tsx ***!
\***********************************************************************************************************/
+1 -381
View File
File diff suppressed because one or more lines are too long
@@ -1,2 +1 @@
/*! For license information please see 2b286cb83c3ba825c8232e7f0e8d98e4.js.LICENSE.txt */
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([["sub-common/2b286cb83c3ba825c8232e7f0e8d98e4"],{"./src/use/useUploadImage.ts":function(e,t,n){var o=n("./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js"),a=n("./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"),c=n("./node_modules/@tarojs/taro/index.js"),s=n.n(c),r=n("./src/common/constant.ts"),i=n("./src/api/cdn.ts");t.default=function(){var e=(0,i.GetSignApi)(),t=e.fetchData,n=(e.state,function uploadCDNImg(e,n,c){var i=e.path;return console.log("filetype::",i),function getFileType(e){return!!e&&(RegExp(".?(".concat(["gif","jpeg","jpg","bmp","png"].join("|"),")$"),"i").test(e.toLowerCase())?"image":!!RegExp(".(".concat(["avi","wmv","mkv","mp4","mov","rm","3gp","flv","mpg","rmvb","quicktime"].join("|"),")$"),"i").test(e.toLowerCase())&&"video")}(i)?new Promise((function(c,i){(function getSecret(e,n){return new Promise(function(){var n=(0,a.default)((0,o.default)().mark((function _callee(n,a){var c,s,r;return(0,o.default)().wrap((function _callee$(o){for(;;)switch(o.prev=o.next){case 0:return c="/".concat(e,"/{filemd5}{day}{hour}{min}{sec}{.suffix}"),s={method:"post",save_key:c},o.next=4,t(s);case 4:(r=o.sent).success?n(r.data):a({code:r.code||"9999",msg:r.msg});case 6:case"end":return o.stop()}}),_callee)})));return function(e,t){return n.apply(this,arguments)}}())})(n).then((function(t){var n=t;console.log("bucket",n.bucket);var o={authorization:n.authorization,policy:n.policy},a=s().uploadFile({url:"".concat(r.UPLOAD_CDN_URL).concat(n.bucket),formData:o,filePath:e.path,name:"file",success:function success(e){c(JSON.parse("".concat(e.data)))},fail:function fail(e){console.log(e),i(e)}});a.progress((function(e){console.log("上传进度",e.progress),e.progress<100?s().showLoading({title:"上传中..."}):s().hideLoading()}))})).catch((function(e){i(e),s().showToast({title:"获取密钥失败!",icon:"none",duration:3800})}))})):(s().showToast({title:"上传文件类型错误",icon:"none",duration:3800}),!1)});return{uploadCDNImg:n,getWxPhoto:function getWxPhoto(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Promise((function(c,r){var i=[];s().chooseImage({count:t,sizeType:["original","compressed"],sourceType:["album","camera"],success:function success(s){return(0,a.default)((0,o.default)().mark((function _callee2(){var a,u,l;return(0,o.default)().wrap((function _callee2$(o){for(;;)switch(o.prev=o.next){case 0:if(o.prev=0,!(t>1)){o.next=14;break}a=0;case 3:if(!(a<s.tempFiles.length)){o.next=11;break}return o.next=6,n(s.tempFiles[a],e);case 6:u=o.sent,i.push(u);case 8:a++,o.next=3;break;case 11:c(i),o.next=18;break;case 14:return o.next=16,n(s.tempFiles[0],e);case 16:l=o.sent,c(l);case 18:o.next=23;break;case 20:o.prev=20,o.t0=o.catch(0),r(o.t0);case 23:case"end":return o.stop()}}),_callee2,null,[[0,20]])})))()}})}))}}}}}]);
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[3479],{1980:function(e,t,n){var o=n(4165),c=n(5861),a=n(2954),r=n.n(a),s=n(2495),i=n(6189);t.Z=function(){var e=(0,i.C)(),t=e.fetchData,n=(e.state,function uploadCDNImg(e,n,a){var i=e.path;return console.log("filetype::",i),function getFileType(e){return!!e&&(RegExp(".?(".concat(["gif","jpeg","jpg","bmp","png"].join("|"),")$"),"i").test(e.toLowerCase())?"image":!!RegExp(".(".concat(["avi","wmv","mkv","mp4","mov","rm","3gp","flv","mpg","rmvb","quicktime"].join("|"),")$"),"i").test(e.toLowerCase())&&"video")}(i)?new Promise((function(a,i){(function getSecret(e,n){return new Promise(function(){var n=(0,c.Z)((0,o.Z)().mark((function _callee(n,c){var a,r,s;return(0,o.Z)().wrap((function _callee$(o){for(;;)switch(o.prev=o.next){case 0:return a="/".concat(e,"/{filemd5}{day}{hour}{min}{sec}{.suffix}"),r={method:"post",save_key:a},o.next=4,t(r);case 4:(s=o.sent).success?n(s.data):c({code:s.code||"9999",msg:s.msg});case 6:case"end":return o.stop()}}),_callee)})));return function(e,t){return n.apply(this,arguments)}}())})(n).then((function(t){var n=t;console.log("bucket",n.bucket);var o={authorization:n.authorization,policy:n.policy},c=r().uploadFile({url:"".concat(s.Fu).concat(n.bucket),formData:o,filePath:e.path,name:"file",success:function success(e){a(JSON.parse("".concat(e.data)))},fail:function fail(e){console.log(e),i(e)}});c.progress((function(e){console.log("上传进度",e.progress),e.progress<100?r().showLoading({title:"上传中..."}):r().hideLoading()}))})).catch((function(e){i(e),r().showToast({title:"获取密钥失败!",icon:"none",duration:3800})}))})):(r().showToast({title:"上传文件类型错误",icon:"none",duration:3800}),!1)});return{uploadCDNImg:n,getWxPhoto:function getWxPhoto(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Promise((function(a,s){var i=[];r().chooseImage({count:t,sizeType:["original","compressed"],sourceType:["album","camera"],success:function success(r){return(0,c.Z)((0,o.Z)().mark((function _callee2(){var c,u,l;return(0,o.Z)().wrap((function _callee2$(o){for(;;)switch(o.prev=o.next){case 0:if(o.prev=0,!(t>1)){o.next=14;break}c=0;case 3:if(!(c<r.tempFiles.length)){o.next=11;break}return o.next=6,n(r.tempFiles[c],e);case 6:u=o.sent,i.push(u);case 8:c++,o.next=3;break;case 11:a(i),o.next=18;break;case 14:return o.next=16,n(r.tempFiles[0],e);case 16:l=o.sent,a(l);case 18:o.next=23;break;case 20:o.prev=20,o.t0=o.catch(0),s(o.t0);case 23:case"end":return o.stop()}}),_callee2,null,[[0,20]])})))()}})}))}}}}}]);
@@ -1,2 +1 @@
/*! For license information please see e2481df95dcfca6405afd70563fc6267.js.LICENSE.txt */
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([["sub-common/e2481df95dcfca6405afd70563fc6267"],{"./src/api/cdn.ts":function(t,e,n){n.d(e,{GetSignApi:function(){return s}});var c=n("./src/use/useHttp.ts"),s=function GetSignApi(){return(0,c.useRequest)({url:"/v1/mall/cdn/token",method:"get"})}}}]);
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[4235],{6189:function(n,t,e){e.d(t,{C:function(){return c}});var u=e(749),c=function GetSignApi(){return(0,u.Q)({url:"/v1/mall/cdn/token",method:"get"})}}}]);