1
This commit is contained in:
Vendored
+2
-1
File diff suppressed because one or more lines are too long
+57
@@ -0,0 +1,57 @@
|
||||
/*! ../../../node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!./index.tsx */
|
||||
|
||||
/*! ./components/form */
|
||||
|
||||
/*! ./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/newCollection */
|
||||
|
||||
/*! @/common/common */
|
||||
|
||||
/*! @/common/money */
|
||||
|
||||
/*! @/components/iconfont/iconfont */
|
||||
|
||||
/*! @/components/uploadImage */
|
||||
|
||||
/*! @tarojs/components */
|
||||
|
||||
/*! @tarojs/runtime */
|
||||
|
||||
/*! @tarojs/taro */
|
||||
|
||||
/*! big.js */
|
||||
|
||||
/*! classnames */
|
||||
|
||||
/*! react */
|
||||
|
||||
/*! react/jsx-runtime */
|
||||
|
||||
/*!*******************************************!*\
|
||||
!*** ./src/pages/addCollection/index.tsx ***!
|
||||
\*******************************************/
|
||||
|
||||
/*!***************************************************!*\
|
||||
!*** ./src/pages/addCollection/index.module.scss ***!
|
||||
\***************************************************/
|
||||
|
||||
/*!***********************************************************!*\
|
||||
!*** ./src/pages/addCollection/components/form/index.tsx ***!
|
||||
\***********************************************************/
|
||||
|
||||
/*!*******************************************************************!*\
|
||||
!*** ./src/pages/addCollection/components/form/index.module.scss ***!
|
||||
\*******************************************************************/
|
||||
|
||||
/*!****************************************************************************************************************!*\
|
||||
!*** ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!./src/pages/addCollection/index.tsx ***!
|
||||
\****************************************************************************************************************/
|
||||
Vendored
+810
-1
File diff suppressed because one or more lines are too long
@@ -0,0 +1,391 @@
|
||||
/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[2]!./node_modules/resolve-url-loader/index.js!./node_modules/@tarojs/webpack5-runner/node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[4]!./src/components/uploadImage/index.module.scss ***!
|
||||
\********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
@charset "UTF-8";
|
||||
.index-module__common_safe_area_y___RxGYu {
|
||||
width: 100%;
|
||||
height: constant(safe-area-inset-bottom);
|
||||
/* 兼容 iOS < 11.2 */
|
||||
height: env(safe-area-inset-bottom);
|
||||
/* 兼容 iOS >= 11.2 */
|
||||
background-color: transparent;
|
||||
}
|
||||
.index-module__flex-col___oJX6A {
|
||||
display: -webkit-flex;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-webkit-flex-flow: column nowrap;
|
||||
-ms-flex-flow: column nowrap;
|
||||
flex-flow: column nowrap;
|
||||
}
|
||||
.index-module__flex-row___EwXBU {
|
||||
display: -webkit-flex;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-webkit-flex-flow: row nowrap;
|
||||
-ms-flex-flow: row nowrap;
|
||||
flex-flow: row nowrap;
|
||||
}
|
||||
.index-module__justify-between___gEVlI {
|
||||
-webkit-justify-content: space-between;
|
||||
-ms-flex-pack: justify;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.index-module__justify-center___KnkuE {
|
||||
-webkit-justify-content: center;
|
||||
-ms-flex-pack: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.index-module__items-center___XWwer {
|
||||
-webkit-align-items: center;
|
||||
-ms-flex-align: center;
|
||||
align-items: center;
|
||||
}
|
||||
.index-module__flex-item___cqsdj {
|
||||
-webkit-flex: 1 1 auto;
|
||||
-ms-flex: 1 1 auto;
|
||||
flex: 1 1 auto;
|
||||
}
|
||||
.index-module__full-100___orlN2 {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.index-module__color-blue___RCmKF {
|
||||
color: #3287EC;
|
||||
}
|
||||
.index-module__color-yellow___VEJVV {
|
||||
color: #FF9100;
|
||||
}
|
||||
.index-module__color-green___Mk_9J {
|
||||
color: #00B837;
|
||||
}
|
||||
.index-module__color-grey___SozQV {
|
||||
color: #707070;
|
||||
}
|
||||
.index-module__color-white___N3DnK {
|
||||
color: white;
|
||||
}
|
||||
.index-module__s-w___L1ksV::after {
|
||||
content: "W";
|
||||
font-size: 28rpx;
|
||||
}
|
||||
.index-module__s-e___CSPlj::after {
|
||||
content: "E";
|
||||
font-size: 28rpx;
|
||||
}
|
||||
.index-module__filter___HwQTh {
|
||||
-webkit-filter: blur(1);
|
||||
filter: blur(1);
|
||||
}
|
||||
@font-face {
|
||||
font-family: "iconfont";
|
||||
/* Project id 3619513 */
|
||||
src: url(/styles/iconfont.ttf?t=1663556335905) format("truetype");
|
||||
}
|
||||
.index-module__iconfont___E93GP {
|
||||
font-family: "iconfont" !important;
|
||||
font-size: 16rpx;
|
||||
font-style: normal;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
.index-module__icon-shouhou1___HghSN:before {
|
||||
content: "\e641";
|
||||
}
|
||||
.index-module__icon-cangku1___MuKNb:before {
|
||||
content: "\e642";
|
||||
}
|
||||
.index-module__icon-saoma___u1NDi:before {
|
||||
content: "\e643";
|
||||
}
|
||||
.index-module__icon-dizhi1___s7hRB:before {
|
||||
content: "\e644";
|
||||
}
|
||||
.index-module__icon-huodaofukuan___flF9k:before {
|
||||
content: "\e645";
|
||||
}
|
||||
.index-module__icon-yufukuan1___XL_sz:before {
|
||||
content: "\e646";
|
||||
}
|
||||
.index-module__icon-yue___ZKXx6:before {
|
||||
content: "\e647";
|
||||
}
|
||||
.index-module__icon-zidingyi___WzU18:before {
|
||||
content: "\e648";
|
||||
}
|
||||
.index-module__icon-jinetiaozheng___lVwcl:before {
|
||||
content: "\e649";
|
||||
}
|
||||
.index-module__icon-tuikuan1___RDyuf:before {
|
||||
content: "\e64a";
|
||||
}
|
||||
.index-module__icon-zhankai___evFZU:before {
|
||||
content: "\e63f";
|
||||
}
|
||||
.index-module__icon-shouqi___OCI0r:before {
|
||||
content: "\e640";
|
||||
}
|
||||
.index-module__icon-lujing___RI4Mw:before {
|
||||
content: "\e63e";
|
||||
}
|
||||
.index-module__icon-jizhumima___h6eGe:before {
|
||||
content: "\e63c";
|
||||
}
|
||||
.index-module__icon-a-jizhumima___MTqZt:before {
|
||||
content: "\e63d";
|
||||
}
|
||||
.index-module__icon-weixindenglu___o_8Ox:before {
|
||||
content: "\e63b";
|
||||
}
|
||||
.index-module__icon-kehuxinxi___FV_zj:before {
|
||||
content: "\e63a";
|
||||
}
|
||||
.index-module__icon-yewuyuanqizi___ffzOm:before {
|
||||
content: "\e639";
|
||||
}
|
||||
.index-module__icon-chakanquanbukehu___t5T9h:before {
|
||||
content: "\e638";
|
||||
}
|
||||
.index-module__icon-biyan___LJoEL:before {
|
||||
content: "\e637";
|
||||
}
|
||||
.index-module__icon-bianji___SzpNK:before {
|
||||
content: "\e61e";
|
||||
}
|
||||
.index-module__icon-daikuan___Nzz6U:before {
|
||||
content: "\e61f";
|
||||
}
|
||||
.index-module__icon-cangku___J0lfw:before {
|
||||
content: "\e620";
|
||||
}
|
||||
.index-module__icon-guanlidingdan___sGyXO:before {
|
||||
content: "\e621";
|
||||
}
|
||||
.index-module__icon-mima___Kz1sR:before {
|
||||
content: "\e622";
|
||||
}
|
||||
.index-module__icon-guanbi___SWpzl:before {
|
||||
content: "\e623";
|
||||
}
|
||||
.index-module__icon-jianshao____3pEP:before {
|
||||
content: "\e624";
|
||||
}
|
||||
.index-module__icon-dingwei___h01xo:before {
|
||||
content: "\e625";
|
||||
}
|
||||
.index-module__icon-saomiao___SVPeW:before {
|
||||
content: "\e626";
|
||||
}
|
||||
.index-module__icon-peihuo___xUVHW:before {
|
||||
content: "\e627";
|
||||
}
|
||||
.index-module__icon-shaixuan___wKxd2:before {
|
||||
content: "\e628";
|
||||
}
|
||||
.index-module__icon-paiming___yi4wn:before {
|
||||
content: "\e629";
|
||||
}
|
||||
.index-module__icon-shanchusousuoxinxi___Le1Gi:before {
|
||||
content: "\e62a";
|
||||
}
|
||||
.index-module__icon-shijian____uwiY:before {
|
||||
content: "\e62b";
|
||||
}
|
||||
.index-module__icon-sousuo___f2M7w:before {
|
||||
content: "\e62c";
|
||||
}
|
||||
.index-module__icon-shouhou___ZvJeK:before {
|
||||
content: "\e62d";
|
||||
}
|
||||
.index-module__icon-sousuofanhui___Aun0d:before {
|
||||
content: "\e62e";
|
||||
}
|
||||
.index-module__icon-sousuoshanchu___IyeeP:before {
|
||||
content: "\e62f";
|
||||
}
|
||||
.index-module__icon-tuikuan___o6X74:before {
|
||||
content: "\e630";
|
||||
}
|
||||
.index-module__icon-tishi___LQJmC:before {
|
||||
content: "\e631";
|
||||
}
|
||||
.index-module__icon-xianxiahuizong___cC9M0:before {
|
||||
content: "\e632";
|
||||
}
|
||||
.index-module__icon-xinzeng___m_gDK:before {
|
||||
content: "\e633";
|
||||
}
|
||||
.index-module__icon-yonghuming___hU3fB:before {
|
||||
content: "\e634";
|
||||
}
|
||||
.index-module__icon-yanjing___g3lmE:before {
|
||||
content: "\e635";
|
||||
}
|
||||
.index-module__icon-yufukuan___JMGBE:before {
|
||||
content: "\e636";
|
||||
}
|
||||
.index-module__icon-wodekefu___gynr9:before {
|
||||
content: "\e60c";
|
||||
}
|
||||
.index-module__icon-dizhi___Pnqk3:before {
|
||||
content: "\e60d";
|
||||
}
|
||||
.index-module__icon-shouhouzhongxin___Wg1xa:before {
|
||||
content: "\e60e";
|
||||
}
|
||||
.index-module__icon-wodeshoucang___rNSi4:before {
|
||||
content: "\e60f";
|
||||
}
|
||||
.index-module__icon-shoukuanliebiao___z5SXN:before {
|
||||
content: "\e610";
|
||||
}
|
||||
.index-module__icon-madanguanli___uRb9P:before {
|
||||
content: "\e611";
|
||||
}
|
||||
.index-module__icon-qusechazhao___XeZzz:before {
|
||||
content: "\e612";
|
||||
}
|
||||
.index-module__icon-pandiansaoma___XZegC:before {
|
||||
content: "\e613";
|
||||
}
|
||||
.index-module__icon-yaoqingma___MO0O6:before {
|
||||
content: "\e614";
|
||||
}
|
||||
.index-module__icon-duizhang___Pj6VT:before {
|
||||
content: "\e615";
|
||||
}
|
||||
.index-module__icon-tihuoliebiao___yJnEn:before {
|
||||
content: "\e616";
|
||||
}
|
||||
.index-module__icon-yangpinduibi___wYZrO:before {
|
||||
content: "\e617";
|
||||
}
|
||||
.index-module__icon-yansequyang___gtiOk:before {
|
||||
content: "\e618";
|
||||
}
|
||||
.index-module__icon-fahuoliebiao___mfSHY:before {
|
||||
content: "\e619";
|
||||
}
|
||||
.index-module__icon-yuncangkucun___V79qi:before {
|
||||
content: "\e61a";
|
||||
}
|
||||
.index-module__icon-xiaoshou___M2etC:before {
|
||||
content: "\e61b";
|
||||
}
|
||||
.index-module__icon-qianzhicangkucun____cMxN:before {
|
||||
content: "\e61c";
|
||||
}
|
||||
.index-module__icon-lingquseka___O7DLf:before {
|
||||
content: "\e61d";
|
||||
}
|
||||
.index-module__icon-gouwu1___d7v27:before {
|
||||
content: "\e608";
|
||||
}
|
||||
.index-module__icon-dingdan1___QqWnw:before {
|
||||
content: "\e609";
|
||||
}
|
||||
.index-module__icon-gerenzhongxin1___E6QJf:before {
|
||||
content: "\e60a";
|
||||
}
|
||||
.index-module__icon-shouye1___XZ5jA:before {
|
||||
content: "\e60b";
|
||||
}
|
||||
.index-module__icon-gerenzhongxin___RLQjj:before {
|
||||
content: "\e604";
|
||||
}
|
||||
.index-module__icon-dingdan___XOcna:before {
|
||||
content: "\e605";
|
||||
}
|
||||
.index-module__icon-shouye___eeJ9f:before {
|
||||
content: "\e606";
|
||||
}
|
||||
.index-module__icon-gouwu___H2ebX:before {
|
||||
content: "\e607";
|
||||
}
|
||||
.index-module__image_main___i8Ggt {
|
||||
display: -webkit-flex;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-webkit-align-items: center;
|
||||
-ms-flex-align: center;
|
||||
align-items: center;
|
||||
-webkit-flex-wrap: wrap;
|
||||
-ms-flex-wrap: wrap;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.index-module__image_main___i8Ggt .index-module__uploadImg___rj88P {
|
||||
width: 143rpx;
|
||||
height: 143rpx;
|
||||
background: #f3f3f3;
|
||||
border-radius: 8rpx;
|
||||
margin-top: 20rpx;
|
||||
display: -webkit-flex;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-webkit-flex-direction: column;
|
||||
-ms-flex-direction: column;
|
||||
flex-direction: column;
|
||||
-webkit-justify-content: center;
|
||||
-ms-flex-pack: center;
|
||||
justify-content: center;
|
||||
-webkit-align-items: center;
|
||||
-ms-flex-align: center;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
position: relative;
|
||||
}
|
||||
.index-module__image_main___i8Ggt .index-module__uploadImg___rj88P .index-module__miconfont___QFFs3 {
|
||||
color: #d8d8d8;
|
||||
font-size: 100rpx;
|
||||
}
|
||||
.index-module__image_main___i8Ggt .index-module__ImgItem___at70w {
|
||||
width: 143rpx;
|
||||
height: 143rpx;
|
||||
background: #f3f3f3;
|
||||
border-radius: 8rpx;
|
||||
margin-right: 20rpx;
|
||||
margin-top: 20rpx;
|
||||
position: relative;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
.index-module__image_main___i8Ggt .index-module__ImgItem___at70w image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
.index-module__image_main___i8Ggt .index-module__ImgItem___at70w .index-module__miconfont_close___B691k {
|
||||
width: 43rpx;
|
||||
height: 43rpx;
|
||||
background-color: #7f7f7f;
|
||||
border-radius: 50%;
|
||||
position: absolute;
|
||||
right: -10rpx;
|
||||
top: -10rpx;
|
||||
text-align: center;
|
||||
line-height: 43rpx;
|
||||
color: #fff;
|
||||
font-size: 30rpx;
|
||||
}
|
||||
.index-module__bigBoxThree___gMuZD {
|
||||
width: 100%;
|
||||
height: 150rpx;
|
||||
}
|
||||
.index-module__bigBoxThree___gMuZD .index-module__itemBox___MnBHI {
|
||||
width: 100%;
|
||||
height: 88rpx;
|
||||
display: -webkit-flex;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-webkit-align-items: center;
|
||||
-ms-flex-align: center;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
-webkit-justify-content: center;
|
||||
-ms-flex-pack: center;
|
||||
justify-content: center;
|
||||
line-height: 88rpx;
|
||||
font-size: 28rpx;
|
||||
font-weight: 500;
|
||||
color: #000000;
|
||||
border-bottom: 1px solid #f7f7f7;
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
/*! For license information please see 20cc30ab415e801d225979ccaf9e37b1.js.LICENSE.txt */
|
||||
"use strict";(wx["webpackJsonp"]=wx["webpackJsonp"]||[]).push([["sub-common/20cc30ab415e801d225979ccaf9e37b1"],{"./src/use/useUploadImage.ts":function(e,t,n){var a=n("./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");var r=n("./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");var s=n("./node_modules/@tarojs/taro/index.js");var c=n.n(s);var o=n("./src/common/constant.ts");var i=n("./src/api/cdn.ts");t["default"]=function(){var e=(0,i.GetSignApi)(),t=e.fetchData;var n=function getSecret(e,n){return new Promise(function(){var n=(0,r["default"])((0,a["default"])().mark((function _callee(n,r){var s,c,o;return(0,a["default"])().wrap((function _callee$(a){while(1)switch(a.prev=a.next){case 0:s="/".concat(e,"/{filemd5}{day}{hour}{min}{sec}{.suffix}");c={method:"post",save_key:s};a.next=4;return t(c);case 4:o=a.sent;if(o.success){n(o.data)}else{r({code:o.code||"9999",msg:o.msg})}case 6:case"end":return a.stop()}}),_callee)})));return function(e,t){return n.apply(this,arguments)}}())};var s=function getFileType(e){if(!e){return false}var t=["gif","jpeg","jpg","bmp","png"];var n=["avi","wmv","mkv","mp4","mov","rm","3gp","flv","mpg","rmvb","quicktime"];if(RegExp(".?(".concat(t.join("|"),")$"),"i").test(e.toLowerCase())){return"image"}else if(RegExp(".(".concat(n.join("|"),")$"),"i").test(e.toLowerCase())){return"video"}else{return false}};var u=function uploadCDNImg(e,t,a){var r=e.path;console.log("filetype::",r);if(!s(r)){c().showToast({title:"上传文件类型错误",icon:"none",duration:3800});return false}return new Promise((function(r,s){n(t,a).then((function(t){var n=t;console.log("bucket",n.bucket);var a={authorization:n.authorization,policy:n.policy};var i=c().uploadFile({url:"".concat(o.UPLOAD_CDN_URL).concat(n.bucket),formData:a,filePath:e.path,name:"file",success:function success(e){r(JSON.parse("".concat(e.data)))},fail:function fail(e){console.log(e);s(e)}});i.progress((function(e){console.log("上传进度",e.progress);if(e.progress<100){c().showLoading({title:"上传中..."})}else{c().hideLoading()}}))})).catch((function(e){s(e);c().showToast({title:"获取密钥失败!",icon:"none",duration:3800})}))}))};var l=function getWxPhoto(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:1;return new Promise((function(n,s){var o=[];c().chooseImage({count:t,sizeType:["original","compressed"],sourceType:["album","camera"],success:function success(c){return(0,r["default"])((0,a["default"])().mark((function _callee2(){var r,i,l;return(0,a["default"])().wrap((function _callee2$(a){while(1)switch(a.prev=a.next){case 0:a.prev=0;if(!(t>1)){a.next=14;break}r=0;case 3:if(!(r<c.tempFiles.length)){a.next=11;break}a.next=6;return u(c.tempFiles[r],e,e);case 6:i=a.sent;o.push(i);case 8:r++;a.next=3;break;case 11:n(o);a.next=18;break;case 14:a.next=16;return u(c.tempFiles[0],e,e);case 16:l=a.sent;n(l);case 18:a.next=23;break;case 20:a.prev=20;a.t0=a["catch"](0);s(a.t0);case 23:case"end":return a.stop()}}),_callee2,null,[[0,20]])})))()}})}))};var f=function getChatPhoto(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:1;return new Promise((function(n,s){var o=[];c().chooseMessageFile({count:t,type:"image",success:function success(c){return(0,r["default"])((0,a["default"])().mark((function _callee3(){var r,i,l;return(0,a["default"])().wrap((function _callee3$(a){while(1)switch(a.prev=a.next){case 0:a.prev=0;if(!(t>1)){a.next=14;break}r=0;case 3:if(!(r<c.tempFiles.length)){a.next=11;break}a.next=6;return u(c.tempFiles[r],e,e);case 6:i=a.sent;o.push(i);case 8:r++;a.next=3;break;case 11:n(o);a.next=18;break;case 14:a.next=16;return u(c.tempFiles[0],e,e);case 16:l=a.sent;n(l);case 18:a.next=23;break;case 20:a.prev=20;a.t0=a["catch"](0);s(a.t0);case 23:case"end":return a.stop()}}),_callee3,null,[[0,20]])})))()}})}))};return{uploadCDNImg:u,getWxPhoto:l,getChatPhoto:f}}}}]);
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,2 @@
|
||||
/*! For license information please see 81bf4410dad05a23085bf259ded3a03d.js.LICENSE.txt */
|
||||
"use strict";(wx["webpackJsonp"]=wx["webpackJsonp"]||[]).push([["sub-common/81bf4410dad05a23085bf259ded3a03d"],{"./src/api/cdn.ts":function(t,e,n){n.d(e,{GetSignApi:function(){return u}});var s=n("./src/use/useHttp.ts");var u=function GetSignApi(){return(0,s.useRequest)({url:"/v2/mp/cdn/token",method:"get"})}}}]);
|
||||
@@ -0,0 +1,2 @@
|
||||
/*! For license information please see afc3d5d6b81e10acfabb5dead9c04685.js.LICENSE.txt */
|
||||
"use strict";(wx["webpackJsonp"]=wx["webpackJsonp"]||[]).push([["sub-common/afc3d5d6b81e10acfabb5dead9c04685"],{"./src/api/newCollection.ts":function(e,r,t){t.d(r,{MpCashManagementOrder:function(){return u},MpCashManagementOrderAccount:function(){return s},MpCashManagementOrderList:function(){return a},MpCashManagementOrderPost:function(){return c},MpShouldCollectOrderPurchaser:function(){return o}});var n=t("./src/use/useHttp.ts");var a=function MpCashManagementOrderList(){return(0,n.useRequest)({url:"/v2/mp/cashManagementOrder/list",method:"get"})};var u=function MpCashManagementOrder(){return(0,n.useRequest)({url:"/v2/mp/cashManagementOrder",method:"get"})};var s=function MpCashManagementOrderAccount(){return(0,n.useRequest)({url:"/v2/mp/cashManagementOrder/account",method:"get"})};var c=function MpCashManagementOrderPost(){return(0,n.useRequest)({url:"/v2/mp/cashManagementOrder",method:"post"})};var o=function MpShouldCollectOrderPurchaser(){return(0,n.useRequest)({url:"/v2/mp/shouldCollectOrder/purchaser",method:"get"})}}}]);
|
||||
@@ -0,0 +1,2 @@
|
||||
/*! For license information please see d595a9ddb1b2df773c9a07b73581bb4f.js.LICENSE.txt */
|
||||
"use strict";(wx["webpackJsonp"]=wx["webpackJsonp"]||[]).push([["sub-common/d595a9ddb1b2df773c9a07b73581bb4f"],{"./src/components/uploadImage/index.tsx":function(e,a,n){var t=n("./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");var r=n("./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");var s=n("./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");var o=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");var l=n("./node_modules/@tarojs/taro/index.js");var c=n.n(l);var u=n("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js");var i=n("./node_modules/react/cjs/react.production.min.js");var d=n("./src/components/uploadImage/index.module.scss");var f=n("./src/use/useUploadImage.ts");var m=n("./src/common/format.js");var p=n("./src/components/popup/index.tsx");var v=n("./src/components/iconfont/iconfont.tsx");var h=n("./node_modules/react/cjs/react-jsx-runtime.production.min.js");var x=function PictureItem(e){var a=e.onChange,n=e.defaultList,l=e.onlyRead,x=l===void 0?false:l;var j=(0,f["default"])(),g=j.getWxPhoto,b=j.getChatPhoto;var w=(0,i.useState)([]),k=(0,o["default"])(w,2),_=k[0],I=k[1];var C=(0,i.useState)(false),y=(0,o["default"])(C,2),N=y[0],V=y[1];var P=(0,i.useState)([{id:1,name:"手机相册",check:false},{id:2,name:"从微信对话选择",check:false}]),z=(0,o["default"])(P,2),E=z[0],F=z[1];(0,i.useEffect)((function(){I(n||[])}),[n]);var S=function(){var e=(0,s["default"])((0,r["default"])().mark((function _callee(){return(0,r["default"])().wrap((function _callee$(e){while(1)switch(e.prev=e.next){case 0:V(true);case 1:case"end":return e.stop()}}),_callee)})));return function uploadImage(){return e.apply(this,arguments)}}();var T=function(){var e=(0,s["default"])((0,r["default"])().mark((function _callee2(e){var a;var n,s;return(0,r["default"])().wrap((function _callee2$(r){while(1)switch(r.prev=r.next){case 0:if(!(e==1)){r.next=6;break}r.next=3;return g("after-sale",5);case 3:n=r.sent;r.next=9;break;case 6:r.next=8;return b("after-sale",5);case 8:n=r.sent;case 9:s=[];(a=n)===null||a===void 0?void 0:a.forEach((function(e){s.push(e.url)}));I([].concat((0,t["default"])(_),s));V(false);case 13:case"end":return r.stop()}}),_callee2)})));return function handPic(a){return e.apply(this,arguments)}}();var U=function delImage(e){_.splice(e,1);I((function(){return(0,t["default"])(_)}))};(0,i.useEffect)((function(){a===null||a===void 0?void 0:a(_)}),[_]);var A=function showImage(){var e=_===null||_===void 0?void 0:_.map((function(e){return(0,m.formatImgUrl)(e,"!w800")}));c().previewImage({current:e[0],urls:e})};var B=function handItem(e){E.map((function(a){if(e.id==a.id){a.check=true}else{a.check=false}return a}));F((0,t["default"])(E));T(e.id)};return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)(u.View,{className:d["default"].image_main,children:[_===null||_===void 0?void 0:_.map((function(e,a){return(0,h.jsxs)(u.View,{className:d["default"].ImgItem,children:[(0,h.jsx)(u.Image,{mode:"aspectFill",src:(0,m.formatImgUrl)(e),onClick:A}),!x&&(0,h.jsx)(u.View,{onClick:function onClick(){return U(a)},children:(0,h.jsx)(v["default"],{name:"icon-guanbi",size:30,customClassName:d["default"].miconfont_close,color:"#ffffff"})})]},a)})),!x&&(0,h.jsx)(u.View,{className:d["default"].uploadImg,onClick:S,children:(0,h.jsx)(v["default"],{name:"icon-xinzeng",size:100,color:"#d8d8d8"})})]}),(0,h.jsx)(p["default"],{title:"选择方式",show:N,onClose:function onClose(){return V(false)},isFixed:true,children:(0,h.jsx)(u.View,{className:d["default"].bigBoxThree,children:E.map((function(e,a){return(0,h.jsx)(u.View,{className:d["default"].itemBox,onClick:function onClick(){return B(e)},children:e.name},a)}))})})]})};a["default"]=(0,i.memo)(x)}}]);
|
||||
@@ -0,0 +1,2 @@
|
||||
/*! For license information please see f217db728725cf91ed32ed0adbfce384.js.LICENSE.txt */
|
||||
"use strict";(wx["webpackJsonp"]=wx["webpackJsonp"]||[]).push([["sub-common/f217db728725cf91ed32ed0adbfce384"],{"./src/common/money.ts":function(r,a){var e=function smallToBig(r){var a=["零","壹","贰","叁","肆","伍","陆","柒","捌","玖"];var e=["","拾","佰","仟"];var t=["","万","亿","兆"];var s=["角","分","毫","厘"];var v="整";var n="元";var f=1e15;var i="";var u;if(r==""){return""}r=parseFloat(r);if(r>=f){return"超出最大处理数字"}if(r==0){i=a[0]+n+v;return i}r=Math.round(r*100).toString();var o=r.substr(0,r.length-2);var b=r.substr(r.length-2);if(parseInt(o,10)>0){var c=0;var l=o.length;for(var p=0;p<l;p++){var m=o.substr(p,1);var d=l-p-1;var g=d/4;var h=d%4;if(m=="0"){c++}else{if(c>0){i+=a[0]}c=0;i+=a[parseInt(m)]+e[h]}if(h==0&&c<4){i+=t[g]}}i+=n}if(b!=""){var w=b.length;for(var k=0;k<w;k++){var x=b.substr(k,1);if(x!="0"){i+=a[Number(x)]+s[k]}}}if(i==""){i+=a[0]+n+v}else if(b==""||/^0*$/.test(b)){i+=v}return i};a["default"]=e}}]);
|
||||
Reference in New Issue
Block a user