1
This commit is contained in:
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[3927],{6189:function(n,t,e){e.d(t,{C:function(){return c}});var u=e(1948),c=function GetSignApi(){return(0,u.Q)({url:"/v2/mp/cdn/token",method:"get"})}}}]);
|
||||
@@ -1 +0,0 @@
|
||||
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[3039],{2213:function(e,s,l){var t=l(9579),c=l(4547),a=l(5893);s.Z=function SaleModeTag(e){var s=e.saleMode,l=e.size,u=void 0===l?"small":l,i=e.customClassName,o=e.customStyle;return(0,a.jsxs)(a.Fragment,{children:[s===c.p.Bulk&&(0,a.jsx)(t.Z,{circle:!0,type:"bulk",size:u,customClassName:i,customStyle:o,children:"大货"}),s===c.p.Plate&&(0,a.jsx)(t.Z,{circle:!0,type:"plate",size:u,customClassName:i,customStyle:o,children:"剪板"}),s===c.p.BulkCut&&(0,a.jsx)(t.Z,{circle:!0,type:"bulkCut",size:u,customClassName:i,customStyle:o,children:"散剪"})]})}}}]);
|
||||
-1
@@ -1 +0,0 @@
|
||||
.index-module__common_safe_area_y___Hy8CD{background-color:transparent;height:constant(safe-area-inset-bottom);height:env(safe-area-inset-bottom);width:100%}.index-module__flex-col___TkYWF{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___mYw8h{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___gfGdc{-ms-flex-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.index-module__justify-center___vS2tI{-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center}.index-module__items-center___l6w_X{-ms-flex-align:center;-webkit-align-items:center;align-items:center}.index-module__flex-item___i0ViP{-webkit-flex:1 1 auto;-ms-flex:1 1 auto;flex:1 1 auto}.index-module__full-100___cUILc{height:100%;width:100%}.index-module__color-blue___JC4PN{color:#3287ec}.index-module__color-yellow___JPBA4{color:#ff9100}.index-module__color-green___FMDQC{color:#00b837}.index-module__color-grey___RtLS4{color:#707070}.index-module__color-white___OEzYy{color:#fff}.index-module__s-w___Rjo7B::after{content:"W";font-size:28rpx}.index-module__s-e___i1abF::after{content:"E";font-size:28rpx}.index-module__filter___xXltc{-webkit-filter:blur(1);filter:blur(1)}.index-module__cell___hk78p{-ms-flex-pack:justify;-ms-flex-align:center;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-flow:row nowrap;-ms-flex-flow:row nowrap;flex-flow:row nowrap;font-size:28rpx;-webkit-justify-content:space-between;justify-content:space-between;padding:12rpx 0}.index-module__cell___hk78p .index-module__title___zZSXo{color:#a9a9a9;-webkit-flex:none;-ms-flex:none;flex:none;min-width:140rpx}.index-module__cell___hk78p .index-module__desc___qzpy8{-ms-flex-align:center;-ms-flex-pack:end;-webkit-align-items:center;align-items:center;color:rgba(0,0,0,.8);display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex:1 1 auto;-ms-flex:1 1 auto;flex:1 1 auto;-webkit-flex-flow:row nowrap;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-webkit-justify-content:flex-end;justify-content:flex-end}.index-module__descText___vWAke{-webkit-box-orient:vertical;-webkit-line-clamp:2;display:-webkit-box;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:normal;word-break:break-all}
|
||||
@@ -1 +0,0 @@
|
||||
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[3338],{1980:function(e,t,n){var c=n(4165),a=n(5861),o=n(2954),s=n.n(o),r=n(2495),i=n(6189);t.Z=function(){var e=(0,i.C)().fetchData,t=function uploadCDNImg(t,n,o){var i=t.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(o,i){(function getSecret(t,n){return new Promise(function(){var n=(0,a.Z)((0,c.Z)().mark((function _callee(n,a){var o,s,r;return(0,c.Z)().wrap((function _callee$(c){for(;;)switch(c.prev=c.next){case 0:return o="/".concat(t,"/{filemd5}{day}{hour}{min}{sec}{.suffix}"),s={method:"post",save_key:o},c.next=4,e(s);case 4:(r=c.sent).success?n(r.data):a({code:r.code||"9999",msg:r.msg});case 6:case"end":return c.stop()}}),_callee)})));return function(e,t){return n.apply(this,arguments)}}())})(n).then((function(e){var n=e;console.log("bucket",n.bucket);var c={authorization:n.authorization,policy:n.policy},a=s().uploadFile({url:"".concat(r.Fu).concat(n.bucket),formData:c,filePath:t.path,name:"file",success:function success(e){o(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:t,getWxPhoto:function getWxPhoto(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Promise((function(o,r){var i=[];s().chooseImage({count:n,sizeType:["original","compressed"],sourceType:["album","camera"],success:function success(s){return(0,a.Z)((0,c.Z)().mark((function _callee2(){var a,u,l;return(0,c.Z)().wrap((function _callee2$(c){for(;;)switch(c.prev=c.next){case 0:if(c.prev=0,!(n>1)){c.next=14;break}a=0;case 3:if(!(a<s.tempFiles.length)){c.next=11;break}return c.next=6,t(s.tempFiles[a],e);case 6:u=c.sent,i.push(u);case 8:a++,c.next=3;break;case 11:o(i),c.next=18;break;case 14:return c.next=16,t(s.tempFiles[0],e);case 16:l=c.sent,o(l);case 18:c.next=23;break;case 20:c.prev=20,c.t0=c.catch(0),r(c.t0);case 23:case"end":return c.stop()}}),_callee2,null,[[0,20]])})))()}})}))},getChatPhoto:function getChatPhoto(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Promise((function(o,r){var i=[];s().chooseMessageFile({count:n,type:"image",success:function success(s){return(0,a.Z)((0,c.Z)().mark((function _callee3(){var a,u,l;return(0,c.Z)().wrap((function _callee3$(c){for(;;)switch(c.prev=c.next){case 0:if(c.prev=0,!(n>1)){c.next=14;break}a=0;case 3:if(!(a<s.tempFiles.length)){c.next=11;break}return c.next=6,t(s.tempFiles[a],e);case 6:u=c.sent,i.push(u);case 8:a++,c.next=3;break;case 11:o(i),c.next=18;break;case 14:return c.next=16,t(s.tempFiles[0],e);case 16:l=c.sent,o(l);case 18:c.next=23;break;case 20:c.prev=20,c.t0=c.catch(0),r(c.t0);case 23:case"end":return c.stop()}}),_callee3,null,[[0,20]])})))()}})}))}}}}}]);
|
||||
@@ -1 +0,0 @@
|
||||
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[9652],{1514:function(_,e){e.Z={common_safe_area_y:"index-module__common_safe_area_y___RxGYu","flex-col":"index-module__flex-col___oJX6A","flex-row":"index-module__flex-row___EwXBU","justify-between":"index-module__justify-between___gEVlI","justify-center":"index-module__justify-center___KnkuE","items-center":"index-module__items-center___XWwer","flex-item":"index-module__flex-item___cqsdj","full-100":"index-module__full-100___orlN2","color-blue":"index-module__color-blue___RCmKF","color-yellow":"index-module__color-yellow___VEJVV","color-green":"index-module__color-green___Mk_9J","color-grey":"index-module__color-grey___SozQV","color-white":"index-module__color-white___N3DnK","s-w":"index-module__s-w___L1ksV","s-e":"index-module__s-e___CSPlj",filter:"index-module__filter___HwQTh",image_main:"index-module__image_main___i8Ggt",uploadImg:"index-module__uploadImg___rj88P",miconfont:"index-module__miconfont___QFFs3",ImgItem:"index-module__ImgItem___at70w",miconfont_close:"index-module__miconfont_close___B691k",bigBoxThree:"index-module__bigBoxThree___gMuZD",itemBox:"index-module__itemBox___MnBHI"}}}]);
|
||||
@@ -1 +0,0 @@
|
||||
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[750],{3416:function(e,n,c){var t=c(3433),a=c(4165),r=c(5861),i=c(9439),s=c(2954),o=c.n(s),u=c(1515),l=c(7294),f=c(1514),m=c(1980),d=c(4812),h=c(5989),p=c(6028),x=c(5893),Z=function PictureItem(e){var n=e.onChange,c=e.defaultList,s=e.onlyRead,Z=void 0!==s&&s,k=(0,m.Z)(),v=k.getWxPhoto,g=k.getChatPhoto,w=(0,l.useState)([]),j=(0,i.Z)(w,2),C=j[0],I=j[1],_=(0,l.useState)(!1),b=(0,i.Z)(_,2),G=b[0],N=b[1],z=(0,l.useState)([{id:1,name:"手机相册",check:!1},{id:2,name:"从微信对话选择",check:!1}]),E=(0,i.Z)(z,2),P=E[0],y=E[1];(0,l.useEffect)((function(){I(c||[])}),[c]);var F=function(){var e=(0,r.Z)((0,a.Z)().mark((function _callee(){return(0,a.Z)().wrap((function _callee$(e){for(;;)switch(e.prev=e.next){case 0:N(!0);case 1:case"end":return e.stop()}}),_callee)})));return function uploadImage(){return e.apply(this,arguments)}}(),S=function(){var e=(0,r.Z)((0,a.Z)().mark((function _callee2(e){var n,c,r;return(0,a.Z)().wrap((function _callee2$(a){for(;;)switch(a.prev=a.next){case 0:if(1!=e){a.next=6;break}return a.next=3,v("after-sale",5);case 3:c=a.sent,a.next=9;break;case 6:return a.next=8,g("after-sale",5);case 8:c=a.sent;case 9:r=[],null===(n=c)||void 0===n||n.forEach((function(e){r.push(e.url)})),I([].concat((0,t.Z)(C),r)),N(!1);case 13:case"end":return a.stop()}}),_callee2)})));return function handPic(n){return e.apply(this,arguments)}}();(0,l.useEffect)((function(){null==n||n(C)}),[C]);var B=function showImage(){var e=null==C?void 0:C.map((function(e){return(0,d.z)(e,"!w800")}));o().previewImage({current:e[0],urls:e})};return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)(u.G7,{className:f.Z.image_main,children:[null==C?void 0:C.map((function(e,n){return(0,x.jsxs)(u.G7,{className:f.Z.ImgItem,children:[(0,x.jsx)(u.Ee,{mode:"aspectFill",src:(0,d.z)(e),onClick:B}),!Z&&(0,x.jsx)(u.G7,{onClick:function onClick(){return function delImage(e){C.splice(e,1),I((function(){return(0,t.Z)(C)}))}(n)},children:(0,x.jsx)(p.Z,{name:"icon-guanbi",size:30,customClassName:f.Z.miconfont_close,color:"#ffffff"})})]},n)})),!Z&&(0,x.jsx)(u.G7,{className:f.Z.uploadImg,onClick:F,children:(0,x.jsx)(p.Z,{name:"icon-xinzeng",size:100,color:"#d8d8d8"})})]}),(0,x.jsx)(h.Z,{title:"选择方式",show:G,onClose:function onClose(){return N(!1)},isFixed:!0,children:(0,x.jsx)(u.G7,{className:f.Z.bigBoxThree,children:P.map((function(e,n){return(0,x.jsx)(u.G7,{className:f.Z.itemBox,onClick:function onClick(){return function handItem(e){P.map((function(n){return e.id==n.id?n.check=!0:n.check=!1,n})),y((0,t.Z)(P)),S(e.id)}(e)},children:e.name},n)}))})})]})};n.Z=(0,l.memo)(Z)}}]);
|
||||
@@ -1 +0,0 @@
|
||||
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[9886],{1814:function(_,e){e.Z={common_safe_area_y:"index-module__common_safe_area_y___Hy8CD","flex-col":"index-module__flex-col___TkYWF","flex-row":"index-module__flex-row___mYw8h","justify-between":"index-module__justify-between___gfGdc","justify-center":"index-module__justify-center___vS2tI","items-center":"index-module__items-center___l6w_X","flex-item":"index-module__flex-item___i0ViP","full-100":"index-module__full-100___cUILc","color-blue":"index-module__color-blue___JC4PN","color-yellow":"index-module__color-yellow___JPBA4","color-green":"index-module__color-green___FMDQC","color-grey":"index-module__color-grey___RtLS4","color-white":"index-module__color-white___OEzYy","s-w":"index-module__s-w___Rjo7B","s-e":"index-module__s-e___i1abF",filter:"index-module__filter___xXltc",cell:"index-module__cell___hk78p",title:"index-module__title___zZSXo",desc:"index-module__desc___qzpy8",descText:"index-module__descText___vWAke"}}}]);
|
||||
-1
@@ -1 +0,0 @@
|
||||
.index-module__common_safe_area_y___RxGYu{background-color:transparent;height:constant(safe-area-inset-bottom);height:env(safe-area-inset-bottom);width:100%}.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{-ms-flex-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.index-module__justify-center___KnkuE{-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center}.index-module__items-center___XWwer{-ms-flex-align:center;-webkit-align-items: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{height:100%;width: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:#fff}.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)}.index-module__image_main___i8Ggt{-ms-flex-align:center;-webkit-align-items:center;align-items:center;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.index-module__image_main___i8Ggt .index-module__uploadImg___rj88P{-ms-flex-pack:center;-ms-flex-align:center;-webkit-align-items:center;align-items:center;background:#f3f3f3;border-radius:8rpx;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;height:143rpx;-webkit-justify-content:center;justify-content:center;margin-top:20rpx;position:relative;width:143rpx}.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{background:#f3f3f3;border-radius:8rpx;border-radius:10rpx;height:143rpx;margin-right:20rpx;margin-top:20rpx;position:relative;width:143rpx}.index-module__image_main___i8Ggt .index-module__ImgItem___at70w image{border-radius:10rpx;height:100%;width:100%}.index-module__image_main___i8Ggt .index-module__ImgItem___at70w .index-module__miconfont_close___B691k{background-color:#7f7f7f;border-radius:50%;color:#fff;font-size:30rpx;height:43rpx;line-height:43rpx;position:absolute;right:-10rpx;text-align:center;top:-10rpx;width:43rpx}.index-module__bigBoxThree___gMuZD{height:150rpx;width:100%}.index-module__bigBoxThree___gMuZD .index-module__itemBox___MnBHI{-ms-flex-align:center;-ms-flex-pack:center;-webkit-align-items:center;align-items:center;border-bottom:1px solid #f7f7f7;color:#000;display:-webkit-flex;display:-ms-flexbox;display:flex;font-size:28rpx;font-weight:500;height:88rpx;-webkit-justify-content:center;justify-content:center;line-height:88rpx;text-align:center;width:100%}
|
||||
@@ -1 +0,0 @@
|
||||
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[4199],{4356:function(s,e,c){var n=c(1515),l=c(4184),a=c.n(l),i=c(7294),t=c(6028),o=c(1814),u=c(5893);e.Z=function Cell(s){var e=s.title,c=s.desc,l=s.isLink,m=void 0!==l&&l,r=s.customClassName,d=s.customTitleClassName,h=s.customStyle,x=s.onClick,j=s.iconName,k=s.customDescClassName,N=function handleClick(){null==x||x()},C=(0,i.useMemo)((function(){return(0,u.jsxs)(n.G7,{className:a()(o.Z.cell,r),style:h,onClick:N,children:[(0,u.jsxs)(n.G7,{className:a()(o.Z.title,d),children:[j&&(0,u.jsx)(t.Z,{name:j,size:46}),(0,u.jsx)(n.G7,{children:e})]}),(0,u.jsxs)(n.G7,{className:o.Z.desc,children:[(0,u.jsx)(n.G7,{className:a()(o.Z.descText,k),children:c}),m&&(0,u.jsx)(t.Z,{name:"icon-chakanquanbukehu",size:46,color:"inherit"})]})]})}),[e,c,N,h]);return(0,u.jsx)(u.Fragment,{children:C})}}}]);
|
||||
Reference in New Issue
Block a user