1
This commit is contained in:
@@ -1 +0,0 @@
|
||||
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[817],{9981:function(o,e,t){var n=t(9439),i=t(1515),l=t(2954),s=t.n(l),c=t(7294),u=t(4184),r=t.n(u),a=t(6028),p=t(5989),d=t(4356),h=t(7730),f=t(5893),m=function DropDownItem(o,e){var t,l=o.children,u=o.direction,m=void 0===u?"down":u,v=o.title,w=void 0===v?"":v,x=o.value,y=o.options,C=void 0===y?[]:y,Z=o.change,k=o.activeColor,D=o.showOverlay,I=void 0===D||D,g=o.hasBottomBtn,S=void 0!==g&&g,b=o.customClassName,j=o.customStyle,O=o.onCloseOverlay,N=(0,c.useState)(!1),P=(0,n.Z)(N,2),z=P[0],B=P[1];(0,c.useImperativeHandle)(e,(function(){return{show:z,closePopup:function closePopup(){B(!1)},showPopup:function showPopup(){B(!0)}}}),[z]);var G=(0,c.useState)((null==C||null===(t=C[0])||void 0===t?void 0:t.text)||""),T=(0,n.Z)(G,2),q=T[0],H=T[1],J=(0,c.useMemo)((function(){var o=x;return null==C?void 0:C.map((function(e,t){var n=e.text,i=e.value;return o===i&&H(n),(0,f.jsx)(d.Z,{title:n,desc:"",isLink:!0,onClick:function onClick(){return function handleClickOption(o){null==Z||Z(o)}(i)}},t)}))}),[x]),L=(0,c.useState)("unset"),M=(0,n.Z)(L,2),R=M[0],A=M[1],E=(0,c.useState)(0),Q=(0,n.Z)(E,2),V=Q[0],F=Q[1];(0,c.useEffect)((function(){var o=s().createSelectorQuery();o.select("#DropDownItem").boundingClientRect(),o.selectViewport().scrollOffset(),o.exec((function(o){console.log("res==>",o),F(o[1].scrollHeight),A("".concat("down"===m?o[0].bottom:o[0].top,"px"))}))}),[]);var K=(0,c.useMemo)((function(){return"up"===m?{position:"absolute",top:0,height:R}:{position:"absolute",top:R,height:"calc(".concat("".concat(V,"px")," - ",R,")")}}),[R]);return(0,f.jsxs)(i.G7,{className:h.Z.dropDownItem,id:"DropDownItem",children:[(0,f.jsxs)(i.G7,{className:r()(b,h.Z["dropDownItem--title"]),style:j,onClick:function handleClickTitle(){console.log("handleClickTitle",z),null==O||O(),B((function(o){return!o}))},children:[(0,f.jsx)(i.xv,{className:h.Z["dropDownItem--title--text"],style:z?{color:k}:{},children:w||q}),(0,f.jsx)(a.Z,{name:function getIconName(){return"up"===m?z?"icon-zhankai1":"icon-shouqi1":z?"icon-shouqi1":"icon-zhankai1"}(),size:20,color:z?k:"#7f7f7f"})]}),(0,f.jsx)(p.Z,{onClose:function handleClosePopup(){S||(B(!1),null==O||O())},showOverLay:I,show:z,showTitle:!1,safeAreaInsetBottom:!1,customStyle:K,overlayStyle:function getOverlayStyle(){return{position:I?"absolute":"fixed",top:0}}(),position:"down"===m?"top":"bottom",children:l||(0,f.jsx)(i.G7,{className:h.Z.dropDownItemOptions,children:J})})]})};e.Z=(0,c.forwardRef)(m)}}]);
|
||||
-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([[2630],{1767:function(n,e,r){var o=r(7294),u=r.n(o),c=r(5893);e.Z=function SelectGroup(n){var e=n.children;function handleChange(n,e){return function(r){e.props.onChange(r),n.forEach((function(n){var e;null===(e=n.ref)||void 0===e||e.current.closePopup()}))}}function handleCloseOverlay(n){return function(){n.forEach((function(n){var e;null===(e=n.ref)||void 0===e||e.current.closePopup()}))}}return(0,c.jsx)(c.Fragment,{children:function renderChildren(){return u().Children.map(e,(function(n){var r=n;return u().cloneElement(r,{onChange:handleChange(e,r),onCloseOverlay:handleCloseOverlay(e)})}))}()})}}}]);
|
||||
-1
@@ -1 +0,0 @@
|
||||
.index-module__common_safe_area_y___s8DfH{background-color:transparent;height:constant(safe-area-inset-bottom);height:env(safe-area-inset-bottom);width:100%}.index-module__flex-col___KTp9g{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___jaFuM{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___HoRLV{-ms-flex-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.index-module__justify-center___W2crW{-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center}.index-module__items-center____o12W{-ms-flex-align:center;-webkit-align-items:center;align-items:center}.index-module__flex-item___hDL41{-webkit-flex:1 1 auto;-ms-flex:1 1 auto;flex:1 1 auto}.index-module__full-100___Nh9qO{height:100%;width:100%}.index-module__color-blue___MlngC{color:#3287ec}.index-module__color-yellow___h3TsG{color:#ff9100}.index-module__color-green___FykHk{color:#00b837}.index-module__color-grey___LwHFS{color:#707070}.index-module__color-white___ASkZ_{color:#fff}.index-module__s-w___rghPh::after{content:"W";font-size:28rpx}.index-module__s-e___P9Zbt::after{content:"E";font-size:28rpx}.index-module__filter___eoScp{-webkit-filter:blur(1);filter:blur(1)}.index-module__dropDownItem___AoWXF{width:100%}.index-module__dropDownItem--title___ENIlY{-ms-flex-pack:center;-ms-flex-align:center;-webkit-align-items:center;align-items:center;background-color:#fff;color:#8c8c8c;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:center;justify-content:center;padding:24rpx 0;position:relative}.index-module__dropDownItem--title--text___DN0ay{display:block;margin-right:12rpx}.index-module__dropDownItemOptions___Mm6dp{padding:24rpx 40rpx}
|
||||
@@ -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 +0,0 @@
|
||||
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[7097],{2185:function(r,e,t){t.d(e,{Rf:function(){return s},V7:function(){return p},Wj:function(){return o},cN:function(){return d},gV:function(){return n},qv:function(){return c}});var u=t(1948),s=function GetAddressListApi(){return(0,u.Q)({url:"/v2/mp/district/list",method:"get"})},n=function MpPurchaserAddressList(){return(0,u.Q)({url:"/v2/mp/purchaser/address/list",method:"get"})},d=function MpPurchaserAddress(){return(0,u.Q)({url:"/v2/mp/purchaser/address",method:"post"})},c=function MpPurchaserAddressGet(){return(0,u.Q)({url:"/v2/mp/purchaser/address",method:"get"})},p=function MpPurchaserAddressPut(){return(0,u.Q)({url:"/v2/mp/purchaser/address",method:"put"})},o=function MpPurchaserAddressDelete(){return(0,u.Q)({url:"/v2/mp/purchaser/address",method:"delete"})}}}]);
|
||||
@@ -1 +0,0 @@
|
||||
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[4982],{7730:function(_,e){e.Z={common_safe_area_y:"index-module__common_safe_area_y___s8DfH","flex-col":"index-module__flex-col___KTp9g","flex-row":"index-module__flex-row___jaFuM","justify-between":"index-module__justify-between___HoRLV","justify-center":"index-module__justify-center___W2crW","items-center":"index-module__items-center____o12W","flex-item":"index-module__flex-item___hDL41","full-100":"index-module__full-100___Nh9qO","color-blue":"index-module__color-blue___MlngC","color-yellow":"index-module__color-yellow___h3TsG","color-green":"index-module__color-green___FykHk","color-grey":"index-module__color-grey___LwHFS","color-white":"index-module__color-white___ASkZ_","s-w":"index-module__s-w___rghPh","s-e":"index-module__s-e___P9Zbt",filter:"index-module__filter___eoScp",dropDownItem:"index-module__dropDownItem___AoWXF","dropDownItem--title":"index-module__dropDownItem--title___ENIlY","dropDownItem--title--text":"index-module__dropDownItem--title--text___DN0ay",dropDownItemOptions:"index-module__dropDownItemOptions___Mm6dp"}}}]);
|
||||
@@ -1 +0,0 @@
|
||||
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[5992],{1687:function(r,u,t){t.d(u,{Rs:function(){return o},hf:function(){return s},lb:function(){return p},mD:function(){return a},tk:function(){return c},xF:function(){return e}});var n=t(1948),e=function MpPurchaser(){return(0,n.Q)({url:"/v2/mp/purchaser",method:"get"})},c=function MpPurchaserPost(){return(0,n.Q)({url:"/v2/mp/purchaser",method:"post"})},o=function MpPurchaserPut(){return(0,n.Q)({url:"/v2/mp/purchaser",method:"put"})},p=function MpPurchaserList(){return(0,n.Q)({url:"/v2/mp/purchaser/label/list",method:"get"})},s=function MpPurchaserLabelAdd(){return(0,n.Q)({url:"/v2/mp/purchaser/label/add",method:"post"})},a=function EnumSourcePlatform(){return(0,n.Q)({url:"/v1/mp/enum/sourcePlatform",method:"get"})}}}]);
|
||||
@@ -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