"use strict";require("./sub-common/db6cc8fba2c34d36042a60bcf5f10485.js");require("./sub-common/510d0e7078f44d770a0720344fb06369.js");require("./sub-common/0762d0d2445fe1200cae192cedb39f4b.js");require("./sub-common/cf216475951e5960bcea5b5b9d46933b.js");require("./sub-common/669b91dc08b3dd9a4d8d68849195075c.js");require("./sub-common/c1ac499864f8adb168cc162c3e25e504.js");require("./sub-common/42aa399095655e26e89ff8601d93d33a.js");require("./sub-common/b15a59e62f0de52477cd87cdc0559eda.js");require("./sub-common/26f66b4953f388c7812a8993ef58cdc3.js");require("./sub-common/1560f0b0875ace1edafcce378337baf8.js");require("./sub-common/8919209ac5faab92b678fcb20d9a2155.js");require("./sub-common/932400230807213391bf842279a6e498.js");(wx.webpackJsonp=wx.webpackJsonp||[]).push([[4877],{2166:function(e,n,t){var o=t(2180),r=t(3433),l=t(4165),s=t(1413),c=t(5861),i=t(9439),a=t(1515),_=t(2954),u=t.n(_),d=t(4184),m=t.n(d),x=t(7294),h="index-module__swiper___gOY5o",p="index-module__swiper_item___O3Mlj",f="index-module__image_item___Hqygo",g="index-module__page___I3AYc",j=t(4158),v=t(5893),b=function SwiperComp(e){var n=e.list,t=void 0===n?[]:n,o=e.onClickImage,r=(0,x.useState)(1),l=(0,i.Z)(r,2),s=l[0],c=l[1],_=(0,x.useRef)(null),d=(0,x.useMemo)((function(){return t.length}),[t]),m=(0,x.useMemo)((function(){return null==t?void 0:t.map((function(e){return(0,j.z)(e,"")}))}),[t]);return(0,v.jsxs)(a.G7,{className:h,children:[t.length>0&&(0,v.jsx)(a.tq,{className:p,circular:!0,onAnimationFinish:function onAnimationFinish(e){return function swiperChange(e){c(e.detail.current+1)}(e)},children:null==t?void 0:t.map((function(e,n){return(0,v.jsx)(a.t3,{children:(0,v.jsx)(a.G7,{className:f,onClick:function onClick(){return function onShowImage(e,n){null==o||o(e),u().previewImage({current:m[n],urls:m})}(e,n)},children:(0,v.jsx)(a.Ee,{mode:"aspectFill",src:(0,j.z)(e,"")})})},n)}))}),t.length>0&&(0,v.jsx)(a.G7,{className:g,ref:_,children:"".concat(s,"/").concat(d)})]})},N=t(3012),w="index-module__main___IK2ms",C="index-module__mask___q2Y7Z",Z="index-module__bigBox___F4GaP",G="index-module__topTitleBox___M32e2",k="index-module__topTitle___vpGz4",S="index-module__modeBox___wqkRt",y="index-module__modeKindOne___VuSWX",I="index-module__modeKindTwo___XRTrs",D="index-module__line___iKJ0R",P="index-module__pleaseFont___nASCN",T="index-module__saleFont___j4x2_",L="index-module__flexBox___HBUO8",A="index-module__flexLeft___UBJ0R",B="index-module__flexRight___wEh1A",R=t(6028),U=function guidePopup(e){return(0,v.jsx)(a.G7,{className:w,children:(0,v.jsx)(a.G7,{className:C,children:(0,v.jsxs)(a.G7,{className:Z,children:[(0,v.jsxs)(a.G7,{className:G,children:[(0,v.jsx)(a.G7,{className:k,children:"下单类型"}),(0,v.jsx)(R.Z,{name:"icon-tishi",size:30})]}),(0,v.jsxs)(a.G7,{className:S,children:[(0,v.jsx)(a.G7,{className:y,children:"大货"}),(0,v.jsx)(a.G7,{className:I,children:"剪版"}),(0,v.jsx)(a.G7,{className:I,children:"散剪"})]}),(0,v.jsx)(a.G7,{className:D}),(0,v.jsx)(a.G7,{className:P,children:"请选择你需要的商品类型✨"}),(0,v.jsx)(a.G7,{className:T,children:"大货:按【条数】销售;"}),(0,v.jsx)(a.G7,{className:T,children:"剪版:按【米】销售;"}),(0,v.jsxs)(a.G7,{className:L,children:[(0,v.jsx)(a.G7,{className:A,children:"散剪:按【公斤】销售;"}),(0,v.jsx)(a.G7,{className:B,onClick:function onClick(){var n;return null===(n=e.closePopup)||void 0===n?void 0:n.call(e)},children:"我知道了"})]})]})})})},z=(0,x.memo)(U),F="index-module__shop_cart_main___n1i9m",E="index-module__popup_con___u3cq9",O="index-module__header___c71NK",V="index-module__header_title___b9Vrc",K="index-module__header_label___jGLxb",M="index-module__colorFind___Tll2m",J="index-module__search___ZNYZd",W="index-module__text___ywIOY",Y="index-module__search_title___XlAHB",$="index-module__search_list___aj8EO",q="index-module__search_item___LeQUy",X="index-module__search_item_select___ElwDI",H="index-module__colorNum___Rgtd6",Q="index-module__title___vhhw7",ee="index-module__miconfont___WW3K4",ne="index-module__product_color_con___VP7UM",te="index-module__color_con___wDtyR",oe="index-module__virtual_list___ppXkt",re="index-module__item___b56bI",le="index-module__item_color___WeFhu",se="index-module__item_con___LGSZ4",ce="index-module__flexBox___Te7ZI",ie="index-module__num___XBNCe",ae="index-module__priceText___Ncwms",_e="index-module__btn_con___SSlw0",ue="index-module__btn___FaWoC",de="index-module__btn_count___CCRf_",me="index-module__buy_btn___MM4RW",xe="index-module__count___PA6XM",he="index-module__button___QZcuv",pe="index-module__buy_btn_con___Yc7R2",fe="index-module__add_cart___m8m15",ge="index-module__noList___PWHYh",je=t(5679),ve=t(4508),be=t(7317),Ne=t(6312),we=t(9194),Ce=t(749),Ze=t(9612),Ge=t(4408),ke=t(8093),Se=t(6599),ye=t(4126),Ie=t(2930),De=t(1115),Pe=t(9714),Te=t(7380),Le=t(9179),Ae=t(8629),Be=t(1341),Re=Ae.L_,Ue=function ScrollList(e){var n=e.list,t=e.getLabAndImg,o=e.formatPrice,r=e.onAdd,l=e.getInputValue,s=e.selectIndex;return(0,v.jsx)(a.G7,{className:te,children:(0,v.jsx)(a.pf,{className:oe,scrollY:!0,children:n.map((function(e,n){return(0,v.jsx)(Fe,{item:e,getLabAndImg:t,formatPrice:o,onAdd:r,getInputValue:l,selectIndex:s},n)}))})})},ze=function Rows(e){var n=e.item,t=e.getLabAndImg,o=e.formatPrice,r=e.onAdd,l=e.getInputValue,s=e.selectIndex;return console.log("row Rerender",n),(0,v.jsx)(v.Fragment,{children:n?(0,v.jsx)(Ee,{getLabAndImg:t,formatPrice:o,onAdd:r,getInputValue:l,selectIndex:s,item:n},n.id):(0,v.jsx)(a.G7,{className:re,children:"没有显示出来"})})},Fe=(0,x.memo)(ze),Ee=(0,x.memo)((function(e){console.log("ColorItem Rerender");var n=e.formatPrice,t=e.onAdd,o=e.getInputValue,r=e.selectIndex,l=e.item,c=e.getLabAndImg,_=(0,x.useRef)(r),u=Re[r];(0,x.useEffect)((function(){_.current!==r&&(f(!1),_.current=r)}),[r]);var d=function onGetInputValue(e){0==e?(f(!1),o(e,(0,s.Z)((0,s.Z)({},l),{},{showInput:!1}))):o(e,(0,s.Z)((0,s.Z)({},l),{},{showInput:p}))},m=(0,x.useState)(!1),h=(0,i.Z)(m,2),p=h[0],f=h[1];return(0,v.jsxs)(a.G7,{className:re,children:[(0,v.jsx)(a.G7,{className:le,children:(0,v.jsx)(Se.Z,{value:{color_id:l.id,color_name:l.name,lab:l.lab,rgb:l.rgb,texture_url:l.texture_url,title:l.code},showStatus:!1,onClick:c})}),(0,v.jsxs)(a.G7,{className:se,children:[(0,v.jsx)(a.G7,{className:Q,children:(0,j.W7)(l.code,l.name)}),(0,v.jsx)(a.G7,{className:ce,children:(0,v.jsx)(a.G7,{className:ie,children:n(l)})})]}),(0,v.jsx)(a.G7,{className:_e,children:p?(0,v.jsx)(a.G7,{className:de,children:(0,v.jsx)(Ne.Z,{onBlue:d,defaultNum:l.count,step:u.step,digits:u.digits,onClickBtn:d,unit:u.unit,minNum:u.minNum,maxNum:u.maxNum,returnZero:!0})}):(0,v.jsx)(a.G7,{className:ue,onClick:function onAddClick(){f(!0),t((0,s.Z)((0,s.Z)({},l),{},{showInput:!0}))},children:"添加"})})]},l.id)})),Oe=function OrderCount(e){var n=e.show,t=void 0!==n&&n,o=e.onClose,r=e.title,_=void 0===r?"":r,d=e.productId,h=void 0===d?0:d,p=e.is_first_login,f=void 0===p||p,g=e.recommendStatus,b=void 0!==g&&g,w=e.recom_title,C=void 0===w?"":w,Z=e.productName,G=void 0===Z?"":Z,k=e.productCode,S=void 0===k?"":k;console.log("OrderCount Rerender");var y=(0,we.v)((function(e){return e.userInfo})).adminUserInfo,I=(0,x.useState)(Ae.zs.SALE_MODE_BULK),D=(0,i.Z)(I,2),P=D[0],T=D[1],L=function GetColorList(){return(0,Ce.Q)({url:"/v3/mallCherry/product/color/list",method:"get"})}(),A=L.fetchData,B=(L.state,(0,x.useState)([])),U=(0,i.Z)(B,2),te=U[0],oe=U[1],re=(0,x.useRef)({physical_warehouse:null==y?void 0:y.physical_warehouse,sale_mode:P,product_id:0,code_or_name:null}),le=(0,x.useCallback)((function(e){return e.map((function(e){return e.count=Re[P].defaultNum,e}))}),[P]),se=function(){var e=(0,c.Z)((0,l.Z)().mark((function _callee(){var e,n,t;return(0,l.Z)().wrap((function _callee$(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,A((0,ke.mB)(re.current));case 2:e=o.sent,n=e.data,t=le(n.list),yn((function(){oe(t)})),Ke(t);case 7:case"end":return o.stop()}}),_callee)})));return function getColorList(){return e.apply(this,arguments)}}(),ce=(0,x.useState)(!1),ie=(0,i.Z)(ce,2),_e=ie[0],ue=ie[1];(0,x.useEffect)((function(){return function(){oe([])}}),[]);var de=function closePopup(){null==o||o(),ue(!1),oe([])},Ne=(0,x.useState)({sumCount:0,kindCount:0,color_list:[]}),Se=(0,i.Z)(Ne,2),ze=Se[0],Fe=Se[1],Ee=(0,x.useState)(te),Oe=(0,i.Z)(Ee,2),Ve=Oe[0],Ke=Oe[1];(0,x.useEffect)((function(){console.log("tempList.current");var e=0,n=0,t=[],o={};Ve.forEach((function(r){r.showInput&&(e=(0,N.Z)(e).add(r.count).toNumber(),n++,o=P===Ae.zs.SALE_MODE_BULK?{product_color_id:r.id,roll:r.count,sale_price:(0,j.yb)(r.bulk_price)}:{product_color_id:r.id,length:(0,j.x2)(r.count),sale_price:1==P?(0,j.yb)(r.length_cut_price):(0,j.yb)(r.weight_cut_price)},t.push(o))})),console.log(e,n,t),Fe({sumCount:e,kindCount:n,color_list:t})}),[Ve]);var Me=(0,x.useCallback)((function(e,n){console.log("getInputValue",n),Ke((function(t){return t.map((function(t){return n.id===t.id&&(t.count=parseFloat(e),t.showInput=n.showInput),t}))}))}),[]),Je=(0,x.useCallback)((function(e){Ke((function(n){return n.map((function(n){return e.id===n.id&&(n.showInput=e.showInput,n.count=Re[P].defaultNum),n}))})),console.log("onAdd",e)}),[P]),We=(0,x.useState)(!1),Ye=(0,i.Z)(We,2),$e=Ye[0],qe=Ye[1];(0,x.useEffect)((function(){t&&h&&(T(0),re.current.code_or_name=null,qe(!1),re.current.product_id=h,se()),ue(t)}),[t,h]),(0,x.useEffect)((function(){qe(!1)}),[P]);var Xe=(0,ye.Z)().getShopCount,He=(0,Ge.Z)().getSelfUserInfo,Qe=(0,Ze.RX)().fetchData,en=function(){var e=(0,c.Z)((0,l.Z)().mark((function _callee2(){var e;return(0,l.Z)().wrap((function _callee2$(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,He();case 3:n.next=9;break;case 5:return n.prev=5,n.t0=n.catch(0),u().showToast({icon:"none",title:"授权失败,请求完善授权"}),n.abrupt("return",!1);case 9:if(0!=ze.sumCount){n.next=12;break}return u().showToast({icon:"none",title:"请选择面料颜色!"}),n.abrupt("return",!1);case 12:return n.next=14,Qe({sale_mode:P,color_list:ze.color_list,is_screw_recommend:b});case 14:(e=n.sent).success?(u().showToast({title:"添加成功"}),Xe(),null==o||o(),(0,Be.kE)({trigger_time:(0,j.o0)(new Date),purchaser_name:ln.adminUserInfo.user_name||"未知用户",purchaser_id:ln.adminUserInfo.user_id||0})):u().showToast({icon:"none",title:e.msg});case 16:case"end":return n.stop()}}),_callee2,null,[[0,5]])})));return function addShopCart(){return e.apply(this,arguments)}}(),nn=(0,x.useState)(!1),tn=(0,i.Z)(nn,2),on=tn[0],rn=tn[1],ln=(0,we.v)((function(e){return e.userInfo})),sn=function handleClose(){rn(!1)},cn=function(){var e=(0,c.Z)((0,l.Z)().mark((function _callee3(){return(0,l.Z)().wrap((function _callee3$(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,He();case 3:e.next=9;break;case 5:return e.prev=5,e.t0=e.catch(0),u().showToast({icon:"none",title:"授权失败,请求完善授权"}),e.abrupt("return",!1);case 9:if(0!=ze.sumCount){e.next=12;break}return u().showToast({icon:"none",title:"请选择面料颜色!"}),e.abrupt("return",!1);case 12:if(!ln.adminUserInfo.first_change_name){e.next=15;break}return rn(!0),e.abrupt("return");case 15:(0,Be.rT)({trigger_time:(0,j.o0)(new Date),purchaser_name:ln.adminUserInfo.user_name||"未知用户",purchaser_id:ln.adminUserInfo.user_id||0}),u().navigateTo({url:"/pages/order/speedComfirm?sale_mode=".concat(Number(P),"&buyList=").concat(JSON.stringify(ze.color_list))}),console.log(P,":selectIndex",ze.color_list,":selectCount.color_list",b,":recommendStatus");case 18:case"end":return e.stop()}}),_callee3,null,[[0,5]])})));return function handShopBuy(){return e.apply(this,arguments)}}(),an=(0,Ge.Z)().getAdminUserInfo,_n=(0,Te.h)().fetchData,un=(0,Te.S)().fetchData,dn=function(){var e=(0,c.Z)((0,l.Z)().mark((function _callee4(e){var n,t;return(0,l.Z)().wrap((function _callee4$(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,un();case 2:return n=o.sent,o.next=5,_n((0,s.Z)((0,s.Z)({},n.data),{},{company_name:e}));case 5:(t=o.sent).success?(an(),sn(),De.Z9.success("保存成功")):De.Z9.none(t.msg);case 7:case"end":return o.stop()}}),_callee4)})));return function handleOrganizationNameModalConfirm(n){return e.apply(this,arguments)}}(),mn=(0,x.useCallback)((function(e){re.current.code_or_name=e,se()}),[]),xn=(0,x.useRef)(null),hn=(0,x.useCallback)((function(e){var n=Number((0,j.yb)(e[Re[P].priceField]));return(0,v.jsxs)(a.G7,{className:ae,children:[(0,v.jsx)(a.xv,{children:"¥"}),n,(0,v.jsxs)(a.xv,{children:[" /",Re[P].eunit]})]})}),[P]),pn=(0,x.useState)(!1),fn=(0,i.Z)(pn,2),gn=fn[0],jn=fn[1],vn=(0,x.useState)(),bn=(0,i.Z)(vn,2),Nn=bn[0],wn=bn[1],Cn=(0,x.useCallback)((function(e){console.log("val",e,S,G),(0,Be.FO)({color_id:e.color_id,color_name:e.color_name,fabric_code:(0,j.ZK)(S),fabric_name:G,trigger_time:(0,j.o0)(new Date),purchaser_name:ln.adminUserInfo.user_name||"未知用户",purchaser_id:ln.adminUserInfo.user_id||0}),jn(!0),wn(e)}),[S,G]),Zn=(0,x.useCallback)((function(){jn(!1)}),[]),Gn=(0,x.useTransition)(),kn=(0,i.Z)(Gn,2),Sn=kn[0],yn=kn[1],In=(0,x.useState)(!0),Dn=(0,i.Z)(In,2),Pn=Dn[0],Tn=Dn[1];(0,x.useEffect)((function(){t&&(f||(console.log(f,"showGuidePopupshowGuidePopup"),console.log(2222),Tn(!1)))}),[t]);var Ln=(0,x.useMemo)((function(){return 0==P?"大货单位:条":1==P?"剪版单位:米":"散剪单位:米"}),[P]);return(0,v.jsxs)(a.G7,{className:F,children:[(0,v.jsx)(je.Z,{safeAreaInsetBottom:!1,showTitle:!1,show:_e,onClose:function onClose(){return de()},children:(0,v.jsxs)(a.G7,{className:E,children:[(0,v.jsxs)(a.G7,{className:O,children:[(0,v.jsxs)(a.G7,{className:V,onClick:function onNavigator(){b&&(0,De.jD)("/pages/details/index",{id:h})},children:[(0,v.jsx)(a.xv,{children:b?C:_}),(0,v.jsx)(R.Z,{name:"icon-rukou",color:"#000000FF"})]}),b&&(0,v.jsxs)(a.G7,{className:K,children:[(0,v.jsx)(a.xv,{children:"推荐"}),(0,v.jsx)(a.xv,{children:"配套螺纹"})]})]}),(0,v.jsxs)(a.G7,{className:J,children:[(0,v.jsxs)(a.G7,{className:Y,children:["下单类型 ",(0,v.jsx)(a.G7,{onClick:function onClick(){return Tn(!0)},children:(0,v.jsx)(R.Z,{name:"icon-tishi",size:30})}),":"]}),(0,v.jsx)(a.G7,{className:$,children:Re.map((function(e,n){return(0,v.jsx)(a.G7,{onClick:function onClick(){return function selectProduct(e){re.current.code_or_name=null,se(),T(e)}(n)},className:m()(q,P==n&&X),children:e.title},n)}))})]}),$e&&(0,v.jsxs)(a.G7,{className:M,children:[(0,v.jsx)(a.G7,{className:J,children:(0,v.jsx)(be.Z,{placeIcon:"out",ref:xn,changeOnSearch:mn,debounceTime:400})}),(0,v.jsx)(a.G7,{className:W,onClick:function onClick(){return function clearSearch(){xn.current.clearInput(),qe(!1)}()},children:"取消"})]}),(0,v.jsxs)(a.G7,{className:H,children:[(0,v.jsxs)(a.G7,{className:Q,children:[(0,v.jsxs)(a.xv,{children:["颜色分类 (",te.length,")"]}),(0,v.jsx)(a.xv,{children:Ln})]}),!$e&&(0,v.jsx)(a.G7,{className:m()("iconfont icon-sousuo",ee),onClick:function onClick(){return function changeSearchShow(){qe(!0)}()}})]}),(0,v.jsx)(a.G7,{className:ne,id:"product_color_con",children:Sn?(0,v.jsx)(a.G7,{className:ge,style:{margin:"60rpx 0"},children:(0,v.jsx)(ve.Z,{})}):(0,v.jsx)(Ue,{list:te,getLabAndImg:Cn,selectIndex:P,formatPrice:hn,onAdd:Je,getInputValue:Me})}),(0,v.jsx)(a.G7,{className:me,children:(0,v.jsxs)(a.G7,{className:pe,children:[(0,v.jsxs)(a.G7,{className:xe,children:["当前已选",ze.kindCount,"种,共",ze.sumCount,Re[P].unit]}),(0,v.jsxs)(a.G7,{className:he,children:[(0,v.jsx)(Le.Z,{circle:!0,customClassName:fe,round:!0,disabled:!ze.kindCount,onClick:function onClick(){return en()},children:"加入购物车"}),(0,v.jsx)(Le.Z,{circle:!0,customClassName:fe,round:!0,disabled:!ze.kindCount,onClick:function onClick(){return cn()},children:"立即购买"})]})]})})]})}),Pn&&_e&&(0,v.jsx)(z,{closePopup:function closePopup(){return Tn(!1)}}),(0,v.jsx)(a.G7,{children:(0,v.jsx)(Ie.Z,{value:Nn,show:gn,onClose:Zn})}),(0,v.jsx)(Pe.Z,{zIndex:99999,showModal:on,onClose:sn,onShowModalChange:function handleShowChange(e){rn(e)},onConfirm:dn})]})},Ve=(0,x.memo)(Oe),Ke={common_safe_area_y:"index-module__common_safe_area_y___wX224",hoverClass:"index-module__hoverClass___zy8FT","full-100":"index-module__full-100___ExBJa",main:"index-module__main___JW_tP",content:"index-module__content___lXs4u",product_header:"index-module__product_header___iV5Av",title:"index-module__title___nMkJg",name:"index-module__name___P9xj_",des:"index-module__des___lxPuc",share:"index-module__share___ryJs_",collect:"index-module__collect___K5ONy",text:"index-module__text___dTZpy",shareBtn:"index-module__shareBtn___pWAEW",miconfont:"index-module__miconfont___LK80o",collected:"index-module__collected___pzuZA",des_data:"index-module__des_data___S9AF_",flexBox:"index-module__flexBox___kxHgg",flexRight:"index-module__flexRight___u4N5a",con:"index-module__con___GXeQW",des_text:"index-module__des_text___JEpMy",product_color:"index-module__product_color___sFPVY",list:"index-module__list___rAwxo",item:"index-module__item___RLJUX",item_color:"index-module__item_color___otJGY",item_name:"index-module__item_name___bFaSE",bulk_price:"index-module__bulk_price___GWYR6",ccum_box:"index-module__ccum_box___xukiB",scroll_box:"index-module__scroll_box___GwUNC",item_box:"index-module__item_box___ATDNR",cricle:"index-module__cricle___yEp5Z",icon:"index-module__icon___L4JWZ",img_style:"index-module__img_style___IqhlJ",bottom_big:"index-module__bottom_big___c4nk8",bottom_box:"index-module__bottom_box___cjVdG",title_name:"index-module__title_name___tSUk5",tag_box:"index-module__tag_box___wn5jZ",tag_big:"index-module__tag_big___cShGT",tag_item:"index-module__tag_item___iRjNZ",tag_img:"index-module__tag_img___WZBtW",tag_title:"index-module__tag_title___OamXS",product_detail:"index-module__product_detail___JuTws",product_buy:"index-module__product_buy___lx3zF",icon_btn:"index-module__icon_btn___nQZOR",buy_cart:"index-module__buy_cart___VTt31",product_num:"index-module__product_num___J0hoA",customer_service:"index-module__customer_service___RBeIH",buy_btn:"index-module__buy_btn___CRvFm",wxBtn:"index-module__wxBtn___VOJpD",productColorDialog:"index-module__productColorDialog___wWJqk",productColorDialog_img:"index-module__productColorDialog_img___h9ept",productColorDialog_content:"index-module__productColorDialog_content___jtF3t",productColorDialog_info:"index-module__productColorDialog_info___ZPnWl",productColorDialog_title:"index-module__productColorDialog_title___r7V2y",productColorDialog_price:"index-module__productColorDialog_price___ZlWd9",productColorDialog_bottomBar:"index-module__productColorDialog_bottomBar___K5Eti",productColorDialog_oldPrice:"index-module__productColorDialog_oldPrice___hojkp"},Me="index-module__itemBox___lr97E",Je="index-module__picBox___oCfwZ",We="index-module__pic___EDvvX",Ye="index-module__posBox___UJGeb",$e="index-module__leftBox___NVwqe",qe="index-module__rightBox___FxR1A",Xe="index-module__productName___u8Tfj",He="index-module__tips___VoWoq",Qe="index-module__flexTag___aVse_",en="index-module__tagOne___iyPJD",nn="index-module__tagTwo___jHVw4",tn=function Goods(e){var n,t,o,r,l,s,c,i,_,u=(0,x.useCallback)((function(e){return{lab:e.lab,rgb:e.rgb,texture_url:e.texture_url}}),[]);return(0,v.jsxs)(a.G7,{className:Me,onClick:function onClick(){var n;return null==e||null===(n=e.clickItem)||void 0===n?void 0:n.call(e)},children:[""===(null===(n=e.data)||void 0===n?void 0:n.texture_url)&&(0,v.jsx)(v.Fragment,{children:(0,v.jsxs)(a.G7,{className:Je,children:[(0,v.jsx)(a.Ee,{className:We,mode:"aspectFill",src:"https://test.cdn.zzfzyc.com/mall/no_img.png"}),(0,v.jsxs)(a.G7,{className:Ye,children:[null===(t=e.data)||void 0===t?void 0:t.product_color_count,"色"]})]})}),""!==(null===(o=e.data)||void 0===o?void 0:o.texture_url)&&(0,v.jsx)(v.Fragment,{children:(0,v.jsxs)(a.G7,{className:$e,children:[(0,v.jsx)(Se.Z,{value:u(e.data)}),(0,v.jsxs)(a.G7,{className:Ye,children:[null===(r=e.data)||void 0===r?void 0:r.product_color_count,"色"]})]})}),(0,v.jsxs)(a.G7,{className:qe,children:[(0,v.jsxs)(a.G7,{className:Xe,children:[null===(l=e.data)||void 0===l?void 0:l.code,"#",null===(s=e.data)||void 0===s?void 0:s.name]}),(0,v.jsx)(a.G7,{className:He,children:null===(c=e.data)||void 0===c?void 0:c.component}),(0,v.jsxs)(a.G7,{className:Qe,children:[(0,v.jsx)(a.G7,{className:en,children:null===(i=e.data)||void 0===i?void 0:i.width}),(0,v.jsx)(a.G7,{className:nn,children:null===(_=e.data)||void 0===_?void 0:_.weight_density})]})]})]})},on=(0,x.memo)(tn),rn="index-module__sollBox___ZzasC",ln="index-module__main___AaDJe",sn="index-module__title___bObAw",cn="index-module__line___pBmc2",an="index-module__topFont___eG3WT",_n=t(7082),un=function FeaturePopup(e){var n=e.productIds,t=e.showPopup,o=(0,_n.cQ)().fetchData,s=(0,x.useState)(""),_=(0,i.Z)(s,2),d=_[0],m=_[1],h=(0,x.useState)([]),p=(0,i.Z)(h,2),f=p[0],g=p[1],j=function(){var e=(0,c.Z)((0,l.Z)().mark((function _callee(){var e;return(0,l.Z)().wrap((function _callee$(t){for(;;)switch(t.prev=t.next){case 0:return u().showLoading({title:"加载中..."}),t.next=3,o({product_id:n});case 3:(e=t.sent).data?(u().hideLoading(),m(e.data.instructions),g((0,r.Z)(e.data.product_list))):u().hideLoading();case 5:case"end":return t.stop()}}),_callee)})));return function getRich(){return e.apply(this,arguments)}}();(0,x.useEffect)((function(){t&&j()}),[t]);return(0,v.jsx)(je.Z,{showTitle:!1,show:e.showPopup,onClose:function onClose(){var n;return null===(n=e.closePopup)||void 0===n?void 0:n.call(e)},children:(0,v.jsx)(a.pf,{scrollY:!0,className:rn,children:(0,v.jsxs)(a.G7,{className:ln,children:[(0,v.jsx)(a.G7,{className:sn,children:null==e?void 0:e.productName}),(0,v.jsx)(a.G7,{className:cn}),(0,v.jsx)(a.Ho,{nodes:d,userSelect:!0,onTap:function onTap(){return function richTextClick(){var e=d;if(e.includes("src")){var n=[];e.replace(/]*src=['"]([^'"]+)[^>]*>/gi,(function(e,t){n.push(t)})),u().previewImage({current:n[0],urls:n})}}()}}),(0,v.jsx)(a.G7,{className:an,children:"推荐面料"}),f.map((function(e,n){return(0,v.jsx)(on,{clickItem:function clickItem(){return(0,De.jD)("/pages/details/index?id=".concat(e.id))},data:e},n)}))]})})})},dn=(0,x.memo)(un),mn="index-module__recommend____S_1o",xn="index-module__recommend_title___kv0Z1",hn="index-module__recommend_con___Jo2ch",pn="index-module__img___Nb4aP",fn="index-module__con___qmDHh",gn="index-module__open_select___pnHCt",jn="index-module__wxBtn___OjNtw",vn=(0,x.memo)((function(e){var n,t=e.onClick,o=e.data,r=(0,x.useMemo)((function(){return{lab:null==o?void 0:o.screw_lab,rgb:null==o?void 0:o.screw_rgb,texture_url:null==o?void 0:o.screw_texture_url}}),[o]),s=(0,Ge.Z)(),i=s.getPhoneNumber,_=s.userInfo,d=function(){var e=(0,c.Z)((0,l.Z)().mark((function _callee(e){return(0,l.Z)().wrap((function _callee$(n){for(;;)switch(n.prev=n.next){case 0:if(e.detail.code){n.next=2;break}return n.abrupt("return",De.Z9.error("请授权手机号"));case 2:return n.prev=2,n.next=5,i(e.detail.code);case 5:n.next=11;break;case 7:return n.prev=7,n.t0=n.catch(2),u().showToast({icon:"none",title:n.t0}),n.abrupt("return",!1);case 11:case"end":return n.stop()}}),_callee,null,[[2,7]])})));return function getPhone(n){return e.apply(this,arguments)}}();return(0,v.jsxs)(a.G7,{className:mn,children:[(0,v.jsxs)(a.G7,{className:fn,onClick:function onClick(){return null==t?void 0:t(null==o?void 0:o.product_screw_id)},children:[(0,v.jsx)(a.G7,{className:xn,children:"螺纹配套"}),(0,v.jsxs)(a.G7,{className:hn,children:[(0,v.jsx)(a.G7,{className:pn,children:(0,v.jsx)(Se.Z,{value:r,customImageStyle:{borderRadius:0}})}),(0,v.jsxs)(a.G7,{className:fn,children:[(0,v.jsx)(a.xv,{children:(0,j.W7)(null==o?void 0:o.product_screw_code,null==o?void 0:o.product_screw_name)}),(0,v.jsx)(a.xv,{children:"专属配套螺纹推荐"})]}),(0,v.jsxs)(a.G7,{className:gn,children:[(0,v.jsx)(a.xv,{children:"去选购"}),(0,v.jsx)(R.Z,{name:"icon-rukou",size:37})]})]})]}),!(null!==(n=_.adminUserInfo)&&void 0!==n&&n.is_authorize_phone)&&(0,v.jsx)(a.zx,{className:jn,"open-type":"getPhoneNumber",onGetPhoneNumber:function onGetPhoneNumber(e){return d(e)}})]})})),bn="index-module__scrollStyle___qmqit",Nn=function ScrollViewX(e){return(0,v.jsx)(a.pf,{className:bn,scrollX:!0,lowerThreshold:50,onScrollToLower:e.onScrollToLower,enhanced:!0,pagingEnabled:!0,enablePassive:"true",children:e.children})},wn=(0,x.memo)(Nn),Cn=t(4722),Zn=t(9988),Gn=t(9474),kn=t(3929),Sn=t(4123),yn="index-module__collection_con___wo8PS",In="index-module__collection_item___TIOA1",Dn="index-module__collectionImage___tiqFZ",Pn="index-module__text___xwWSy",Tn="index-module__scrollStyle___YH52y",Ln=function AddCollection(e){var n=e.show,t=void 0!==n&&n,o=e.onClose,r=e.onAdd,s=(0,x.useState)([]),u=(0,i.Z)(s,2),d=u[0],m=u[1],h=(0,_n._P)().fetchData,p=function(){var e=(0,c.Z)((0,l.Z)().mark((function _callee(){var e;return(0,l.Z)().wrap((function _callee$(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,h((0,ke.mB)());case 2:e=n.sent,m((function(){return e.data.list}));case 4:case"end":return n.stop()}}),_callee)})));return function getFavoriteList(){return e.apply(this,arguments)}}();(0,_.useDidShow)((function(){t&&p()})),(0,x.useEffect)((function(){t&&p()}),[t]);return(0,v.jsxs)(je.Z,{show:t,onClose:o,showTitle:!0,title:"加入收藏夹",children:[(0,v.jsx)(Sn.Z,{direction:"horizontal",customStyles:{marginTop:"0px",marginBottom:"12px"}}),(0,v.jsx)(a.pf,{className:Tn,scrollY:!0,children:(0,v.jsxs)(a.G7,{className:yn,children:[d.map((function(e,n){return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)(a.G7,{className:In,onClick:function onClick(){return null==r?void 0:r(e)},children:[(0,v.jsx)(a.G7,{className:Dn}),(0,v.jsx)(a.xv,{className:Pn,children:e.name})]},n),(0,v.jsx)(Sn.Z,{direction:"horizontal",customStyles:{margin:"12px 0"}})]})})),(0,v.jsxs)(a.G7,{className:In,onClick:function handleNewCollection(){(0,De.jD)("/pages/collection/collectionDetail/index",{title:"新建收藏夹",isEdit:!1,editData:null})},children:[(0,v.jsx)(a.G7,{className:Dn,children:(0,v.jsx)(R.Z,{name:"icon-xinzengshoucangjia",size:40})}),(0,v.jsx)(a.xv,{className:Pn,children:"新建收藏夹"})]}),(0,v.jsx)(Sn.Z,{direction:"horizontal",customStyles:{margin:"12px 0"}})]})})]})},An=(0,x.memo)(Ln),Bn=t(6353),Rn=t(1117),Un=t(8186),zn=t(4689),Fn=t(2495),En=t(9498),On=function Details(e){var n,t,o,d,h=(0,Ge.Z)(),p=h.getPhoneNumber,f=h.userInfo,g=(0,_.useRouter)(),N=(0,x.useState)({id:"",share:null}),w=(0,i.Z)(N,2),C=w[0],Z=w[1],G=(0,x.useState)(0),k=(0,i.Z)(G,2),S=k[0],y=k[1],I=(0,x.useState)(!1),D=(0,i.Z)(I,2),P=D[0],T=D[1],L=function(){var e=(0,c.Z)((0,l.Z)().mark((function _callee(){return(0,l.Z)().wrap((function _callee$(e){for(;;)switch(e.prev=e.next){case 0:console.log("router.params",g.params),g.params.id&&Z((0,s.Z)((0,s.Z)({},C),{},{id:g.params.id}));case 2:case"end":return e.stop()}}),_callee)})));return function judgeParam(){return e.apply(this,arguments)}}(),A=(0,ye.Z)(),B=A.getShopCount,U=A.commonData,z=(0,x.useState)({}),F=(0,i.Z)(z,2),E=F[0],O=F[1],V=(0,Zn.Z5)().fetchData,K=function(){var e=(0,c.Z)((0,l.Z)().mark((function _callee2(){var e,n;return(0,l.Z)().wrap((function _callee2$(t){for(;;)switch(t.prev=t.next){case 0:return console.log("params",C),t.next=3,V({id:C.id});case 3:e=t.sent,n=e.data,y(n.id),O(n),u().stopPullDownRefresh();case 8:case"end":return t.stop()}}),_callee2)})));return function getProductDetail(){return e.apply(this,arguments)}}(),M=(0,x.useMemo)((function(){return(0,j.W7)(E.code,E.name)}),[E]),J=(0,x.useMemo)((function(){return(0,j.W7)(E.product_screw_code,E.product_screw_name)}),[E]),W=(0,x.useState)(!1),Y=(0,i.Z)(W,2),$=Y[0],q=Y[1],X=(0,x.useState)(!1),H=(0,i.Z)(X,2),Q=H[0],ee=H[1],ne=(0,x.useMemo)((function(){var e=E.texture_url?E.texture_url.toString().split(","):[],n=e.length>0?e[0]:"/mall/share_img_01.png";return(0,j.z)(n,"!w400")}),[E]),te=(0,kn.Z)(),oe=te.setSortCode,re=te.userInfo,le=Ae.rU.ShareDetail,se=(0,Gn.vf)().fetchData,ce=function(){var e=(0,c.Z)((0,l.Z)().mark((function _callee3(){var e,n;return(0,l.Z)().wrap((function _callee3$(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,se({share_user_id:re.adminUserInfo.user_id,type:le.value,product_id:parseInt(C.id)});case 2:e=t.sent,n=e.data,oe((0,s.Z)((0,s.Z)({},re.sort_code),{},{shareShortDetail:{id:Number(g.params.id),title:M,code:n.md5_key,img:ne}}));case 5:case"end":return t.stop()}}),_callee3)})));return function getShortCode(){return e.apply(this,arguments)}}();(0,_.useDidShow)((function(){L(),q(!1),B()})),(0,x.useEffect)((function(){C.id&&K()}),[C]);var ie=function(){var e=(0,c.Z)((0,l.Z)().mark((function _callee4(){var e,n,t=arguments;return(0,l.Z)().wrap((function _callee4$(o){for(;;)switch(o.prev=o.next){case 0:if(e=t.length>0&&void 0!==t[0]?t[0]:"to_phone",n=t.length>1&&void 0!==t[1]?t[1]:{},E.id){o.next=4;break}return o.abrupt("return",!1);case 4:if("to_phone"!=e){o.next=16;break}if(n.detail.code){o.next=7;break}return o.abrupt("return",De.Z9.error("请授权手机号"));case 7:return o.prev=7,o.next=10,p(n.detail.code);case 10:o.next=16;break;case 12:return o.prev=12,o.t0=o.catch(7),u().showToast({icon:"none",title:o.t0}),o.abrupt("return",!1);case 16:(0,Be.$G)({trigger_time:(0,j.o0)(new Date),purchaser_name:f.adminUserInfo.user_name||"未知用户",purchaser_id:f.adminUserInfo.user_id||0}),y(E.id),T(!1),ee(!0);case 20:case"end":return o.stop()}}),_callee4,null,[[7,12]])})));return function placeOrder(){return e.apply(this,arguments)}}(),ae=(0,x.useState)(!1),_e=(0,i.Z)(ae,2),ue=_e[0],de=_e[1],me=(0,x.useState)(!1),xe=(0,i.Z)(me,2),he=xe[0],pe=xe[1],fe=(0,_n.Io)().fetchData,ge=(0,x.useCallback)(function(){var e=(0,c.Z)((0,l.Z)().mark((function _callee5(e){var n;return(0,l.Z)().wrap((function _callee5$(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fe({favorite_id:e.id,product_id:Number(C.id)});case 2:(n=t.sent).success?(De.Z9.none("收藏成功"),de(!0),K(),(0,Be.Yc)({fabric_code:(0,j.ZK)(E.code),fabric_name:E.name,trigger_time:(0,j.o0)(new Date),purchaser_name:f.adminUserInfo.user_name||"未知用户",purchaser_id:f.adminUserInfo.user_id||0})):De.Z9.none(n.msg),pe(!1);case 5:case"end":return t.stop()}}),_callee5)})));return function(n){return e.apply(this,arguments)}}(),[C,E]);(0,x.useEffect)((function(){E.code&&(ce(),de((function(){return E.is_favorite})))}),[E]);var je=(0,x.useCallback)((function(){pe(!1)}),[]),ve=(0,_n.NJ)().fetchData,be=function(){var e=(0,c.Z)((0,l.Z)().mark((function _callee6(){return(0,l.Z)().wrap((function _callee6$(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ve({favorite_id:E.favorite_id,product_id:[E.id]});case 2:e.sent.success&&(de(!1),K(),De.Z9.none("已取消收藏"));case 4:case"end":return e.stop()}}),_callee6)})));return function delFavoriteProduct(){return e.apply(this,arguments)}}();(0,_.usePullDownRefresh)((function(){K()}));var Ne=(0,x.useState)(!1),we=(0,i.Z)(Ne,2),Ce=we[0],Ze=we[1],ke=(0,x.useRef)({}),Pe=(0,x.useState)(!1),Te=(0,i.Z)(Pe,2),Re=Te[0],Ue=Te[1],ze=function handleCloseDialog(){Ue(!1)},Fe=(0,x.useMemo)((function(){return{product_screw_id:null==E?void 0:E.product_screw_id,product_screw_name:null==E?void 0:E.product_screw_name,product_screw_code:null==E?void 0:E.product_screw_code,screw_rgb:null==E?void 0:E.screw_rgb,screw_lab:null==E?void 0:E.screw_lab,screw_texture_url:null==E?void 0:E.screw_texture_url}}),[E]),Ee=(0,x.useCallback)((function(e){y(e),ee(!0),T(!0)}),[]),Oe=(0,zn.V$)().fetchData,Me=function(){var e=(0,c.Z)((0,l.Z)().mark((function _callee7(){var e,n;return(0,l.Z)().wrap((function _callee7$(t){for(;;)switch(t.prev=t.next){case 0:if(null!=f&&null!==(e=f.adminUserInfo)&&void 0!==e&&e.phone){t.next=2;break}return t.abrupt("return",(0,De.jD)("/pages/login/index"));case 2:return t.next=4,Oe({product_id:E.id});case 4:(n=t.sent).data&&(n.data.count=1,u().setStorageSync("colorCard",JSON.stringify([n.data])),(0,Be.Jr)({page_name:"pages/details/index",trigger_time:(0,j.o0)(new Date),purchaser_name:f.adminUserInfo.user_name||"未知用户",purchaser_id:f.adminUserInfo.user_id||0}),u().navigateTo({url:"/pages/colorCardOrder/index"}));case 6:case"end":return t.stop()}}),_callee7)})));return function getColorCardData(){return e.apply(this,arguments)}}(),Je=(0,x.useState)(!1),We=(0,i.Z)(Je,2),Ye=We[0],$e=We[1],qe=(0,x.useState)([]),Xe=(0,i.Z)(qe,2),He=Xe[0],Qe=Xe[1],en=(0,x.useState)([]),nn=(0,i.Z)(en,2),tn=nn[0],on=nn[1];(0,x.useEffect)((function(){ln()}),[]);var rn=(0,Zn.u)().fetchData,ln=function(){var e=(0,c.Z)((0,l.Z)().mark((function _callee8(){var e;return(0,l.Z)().wrap((function _callee8$(n){for(;;)switch(n.prev=n.next){case 0:return console.log(g.params.id,"4545646"),n.next=3,rn((0,s.Z)({},sn.current));case 3:e=n.sent,1==sn.current.page&&e.data.list.length&&(on([e.data.list[0]]||0),bn(!0)),e.data.list.length||(on([]),pn(!1),bn(!1)),e.data.list.length&&(Qe([].concat((0,r.Z)(He),(0,r.Z)(e.data.list))),console.log(He,"456456")),sn.current.total=e.data.total;case 8:case"end":return n.stop()}}),_callee8)})));return function getVideoList(){return e.apply(this,arguments)}}(),sn=(0,x.useRef)({page:1,size:10,product_id:Number(g.params.id),total:0,status:0}),cn=(0,Zn.hE)().fetchData,an=function(){var e=(0,c.Z)((0,l.Z)().mark((function _callee9(e,n){var t;return(0,l.Z)().wrap((function _callee9$(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,cn({id:e});case 2:pn(!1),(t=u().createVideoContext(n)).requestFullScreen({direction:0}),t.play();case 6:case"end":return o.stop()}}),_callee9)})));return function handPlay(n,t){return e.apply(this,arguments)}}(),un=(0,x.useMemo)((function(){return{lab:ke.current.lab,rgb:ke.current.rgb,texture_url:ke.current.texture_url,title:ke.current.code}}),[ke.current]),mn=(0,x.useState)(!0),xn=(0,i.Z)(mn,2),hn=xn[0],pn=xn[1],fn=(0,x.useState)(!1),gn=(0,i.Z)(fn,2),jn=gn[0],bn=gn[1],Nn=(0,x.useState)(!1),Sn=(0,i.Z)(Nn,2),yn=Sn[0],In=Sn[1];return(0,En.av)("pages/details/index"),(0,v.jsx)(Bn.Z,{pageName:"pages/details/index",showList:["order"],playVideo:hn,floatVideoFile:tn,showFloatVideo:jn,children:(0,v.jsxs)(a.G7,{className:Ke.main,children:[(0,v.jsxs)(a.G7,{className:Ke.content,children:[(0,v.jsx)(b,{onClickImage:function handleClickMainImage(e){(0,Be.oh)({fabric_code:(0,j.ZK)(E.code),fabric_name:E.name,trigger_time:(0,j.o0)(new Date),purchaser_name:f.adminUserInfo.user_name||"未知用户",purchaser_id:f.adminUserInfo.user_id||0})},list:E.texture_url?E.texture_url.toString().split(","):[]}),(0,v.jsxs)(a.G7,{className:Ke.product_header,children:[(0,v.jsxs)(a.G7,{className:Ke.title,children:[E.code&&(0,v.jsx)(a.G7,{className:Ke.name,children:M}),(0,v.jsx)(a.G7,{className:Ke.des,children:E.describe})]}),(0,v.jsxs)(a.G7,{className:Ke.collect,onClick:function openCollection(){E.is_favorite?be():pe(!0)},children:[ue?(0,v.jsx)(R.Z,{name:"icon-shoucangchenggong",size:45,color:"#ffc300"}):(0,v.jsx)(R.Z,{name:"icon-dianjishoucang",size:45}),(0,v.jsx)(a.G7,{className:Ke.text,children:"收藏"})]}),(0,v.jsxs)(a.G7,{className:Ke.share,children:[(0,v.jsx)(R.Z,{name:"icon-fenxiangshangpin",size:45}),(0,v.jsx)(a.G7,{className:Ke.text,children:"分享"}),(0,v.jsx)(a.zx,{onClick:function handleClickShare(){(0,Be.qr)({fabric_code:(0,j.ZK)(E.code),fabric_name:E.name,trigger_time:(0,j.o0)(new Date),purchaser_name:f.adminUserInfo.user_name||"未知用户",purchaser_id:f.adminUserInfo.user_id||0})},"open-type":"share",className:Ke.shareBtn})]})]}),(0,v.jsxs)(a.G7,{className:Ke.des_data,children:[(0,v.jsxs)(a.G7,{className:Ke.flexBox,children:[(0,v.jsx)(a.G7,{className:Ke.title,children:"商品参数"}),E.is_instruct&&(0,v.jsx)(a.G7,{className:Ke.flexRight,onClick:function handleShowDetailInfo(){(0,Be.kx)({fabric_code:(0,j.ZK)(E.code),fabric_name:E.name,trigger_time:(0,j.o0)(new Date),purchaser_name:f.adminUserInfo.user_name||"未知用户",purchaser_id:f.adminUserInfo.user_id||0}),Ze(!0)},children:"详细信息 >"})]}),(0,v.jsxs)(a.G7,{className:Ke.con,children:[(0,v.jsxs)(a.G7,{className:Ke.des_text,children:["幅宽:",(0,v.jsx)(a.xv,{children:E.width})]}),(0,v.jsxs)(a.G7,{className:Ke.des_text,children:["工艺:",(0,v.jsx)(a.xv,{children:E.craft})]}),(0,v.jsxs)(a.G7,{className:Ke.des_text,children:["空差:",(0,v.jsxs)(a.xv,{children:[E.weight_error_discount/1e3,"KG"]})]}),(0,v.jsxs)(a.G7,{className:Ke.des_text,children:["克重:",(0,v.jsx)(a.xv,{children:E.weight_density})]}),(0,v.jsxs)(a.G7,{className:Ke.des_text,children:["成分:",(0,v.jsx)(a.xv,{children:E.component})]}),(0,v.jsxs)(a.G7,{className:Ke.des_text,children:["纸筒:",(0,v.jsxs)(a.xv,{children:[E.tube/1e3,"KG"]})]}),(0,v.jsxs)(a.G7,{className:Ke.des_text,children:["出米数:",(0,v.jsx)(a.xv,{children:E.length_to_weight_rate/100})]}),(0,v.jsxs)(a.G7,{className:Ke.des_text,children:["开单减空差:",(0,v.jsxs)(a.xv,{children:[E.weight_error/1e3,"KG"]})]})]})]}),He.length>0&&(0,v.jsxs)(a.G7,{className:Ke.scroll_box,children:[(0,v.jsx)(a.G7,{className:Ke.title,children:"性能测评"}),(0,v.jsx)(wn,{onScrollToLower:function onScrollToLower(){return function handOnScrollToLower(){sn.current.page*sn.current.size>=sn.current.total||(sn.current.page+=1,ln(),console.log(111,sn.current.page))}()},children:He.map((function(e,n){return(0,v.jsxs)(a.G7,{className:Ke.item_box,children:[(0,v.jsx)(a.G7,{className:Ke.cricle,onClick:function onClick(){return an(e.estimate_video_id,"video".concat(n))},children:(0,v.jsx)(R.Z,{customClassName:Ke.icon,name:"icon-shouqi1",size:30})}),(0,v.jsx)(a.Ee,{className:Ke.img_style,src:e.video_pic.length?Fn.KC+e.video_pic[0]:Fn.KC+e.frame_pic,mode:"aspectFill"}),(0,v.jsx)(a.nk,{style:{display:"block",width:"250rpx",height:"270rpx",borderTopLeftRadius:"8rpx",borderTopRightRadius:"8rpx"},id:"video".concat(n),src:Fn.KC+e.video_url[0],"object-fit":"contain","show-center-play-btn":!1,"show-play-btn":!1,"show-fullscreen-btn":!1,onFullScreenChange:function onFullScreenChange(e){return function handleClose(e,n){e.detail.fullScreen||u().createVideoContext(n).pause()}(e,"video".concat(n))}}),(0,v.jsxs)(a.G7,{className:Ke.bottom_big,children:[(0,v.jsx)(a.G7,{className:Ke.bottom_box,children:e.title}),(0,v.jsx)(a.G7,{className:Ke.title_name,children:e.result})]})]},n)}))})]}),(null==E?void 0:E.clothes_is_consult)&&(null==E||null===(n=E.clothes_is_consult)||void 0===n?void 0:n.length)>0&&(0,v.jsxs)(a.G7,{className:Ke.tag_box,children:[(0,v.jsx)(a.G7,{className:Ke.title,children:"适用成衣参考"}),(0,v.jsx)(a.G7,{className:Ke.tag_big,children:null==E?void 0:E.clothes_is_consult.map((function(e,n){return(0,v.jsxs)(a.G7,{className:Ke.tag_item,children:[(0,v.jsx)(a.Ee,{className:Ke.tag_img,mode:"aspectFill",src:Fn.KC+(null==e?void 0:e.icon[0])}),(0,v.jsx)(a.G7,{className:Ke.tag_title,children:null==e?void 0:e.product_label_name})]},n)}))})]}),!(null==E||!E.product_screw_id)&&(0,v.jsx)(a.G7,{style:{margin:"0 20rpx",marginTop:"20rpx"},children:(0,v.jsx)(vn,{onClick:Ee,data:Fe})}),(0,v.jsxs)(a.G7,{className:Ke.product_color,children:[(0,v.jsxs)(a.G7,{className:Ke.title,children:["色号信息 (",null==E||null===(t=E.product_color_list)||void 0===t?void 0:t.length,")"]}),(0,v.jsx)(a.G7,{className:Ke.list,children:null==E||null===(o=E.product_color_list)||void 0===o?void 0:o.map((function(e){return(0,v.jsxs)(a.G7,{className:Ke.item,onClick:function onClick(){return function handleClickProductColor(e){console.log("current",e),ke.current=e,Ue(!0),(0,Be.FO)({color_id:e.id,color_name:e.name,fabric_code:(0,j.ZK)(E.code),fabric_name:E.name,trigger_time:(0,j.o0)(new Date),purchaser_name:f.adminUserInfo.user_name||"未知用户",purchaser_id:f.adminUserInfo.user_id||0})}(e)},children:[(0,v.jsx)(a.G7,{className:Ke.item_color,children:(0,v.jsx)(Se.Z,{suffix:"!w200",value:{lab:e.lab,rgb:e.rgb,texture_url:e.texture_url,title:e.code},round:!0,name:(0,j.ZK)(e.code)})}),(0,v.jsx)(a.G7,{className:Ke.item_name,children:e.name}),(0,v.jsxs)(a.G7,{className:Ke.bulk_price,children:[(0,j.yb)(e.bulk_price),"/Kg",e.last_bulk_price&&e.bulk_price!==e.last_bulk_price?e.bulk_price>e.last_bulk_price?(0,v.jsx)(R.Z,{name:"icon-shuzhishangsheng",size:28,color:"red",customStyle:{marginLeft:"6rpx"}}):(0,v.jsx)(R.Z,{name:"icon-shuzhixiajiang",size:28,color:"#3466d7",customStyle:{marginLeft:"6rpx"}}):null]})]},e.id)}))})]}),(0,v.jsx)(a.G7,{className:Ke.product_detail,children:(0,v.jsx)(a.Ho,{nodes:""})})]}),(0,v.jsxs)(a.G7,{className:Ke.product_buy,children:[(0,v.jsxs)(a.G7,{className:Ke.icon_btn,children:[(0,v.jsxs)(a.G7,{className:Ke.buy_cart,onClick:function onClick(){return(0,De.jD)("/pages/shopCar/index",{},"switchTab")},children:[(0,v.jsx)(a.G7,{className:m()("iconfont icon-gouwuche",Ke.miconfont)}),(0,v.jsx)(a.G7,{className:Ke.text,children:"购物车"}),U.shopCount>0&&(0,v.jsx)(a.G7,{className:Ke.product_num,children:U.shopCount>99?"99+":U.shopCount})]}),(0,v.jsxs)(a.G7,{className:Ke.buy_cart,onClick:Me,children:[(0,v.jsx)(R.Z,{name:"icon-lingseka",size:50}),(0,v.jsx)(a.G7,{className:Ke.text,children:"领取色卡"})]}),(0,v.jsxs)(a.G7,{className:Ke.buy_cart,onClick:function openColorSelect(){var e;if(null==f||null===(e=f.adminUserInfo)||void 0===e||!e.phone)return(0,De.jD)("/pages/login/index");$e(!0)},children:[(0,v.jsx)(R.Z,{name:"icon-lingjianyang",size:50}),(0,v.jsx)(a.G7,{className:Ke.text,children:"领取剪样"})]})]}),!(null!==(d=f.adminUserInfo)&&void 0!==d&&d.is_authorize_phone)&&(0,v.jsxs)(a.G7,{className:Ke.buy_btn,children:[(0,v.jsx)(a.zx,{className:Ke.wxBtn,"open-type":"getPhoneNumber",onGetPhoneNumber:function onGetPhoneNumber(e){return ie("to_phone",e)}}),"选购商品"]})||(0,v.jsx)(a.G7,{className:Ke.buy_btn,onClick:function onClick(){return ie("to_order")},children:"选购商品"})]}),(0,v.jsx)(Ve,{show:Q,recommendStatus:P,is_first_login:E.is_first_login,onClose:function onClose(){return ee(!1)},recom_title:J,title:M,productId:S,productCode:E.code,productName:E.name}),(0,v.jsx)(Cn.Z,{show:$,onClose:function onClose(){return q(!1)}}),(0,v.jsx)(An,{show:he,onAdd:ge,onClose:je}),(0,v.jsx)(dn,{showPopup:Ce,closePopup:function closePopup(){return Ze(!1)},productName:M,productIds:Number(null==C?void 0:C.id)}),(0,v.jsx)(Rn.Z,{show:Re,onClose:ze,onChange:function handleChangeDialog(e){Ue(e)},children:(0,v.jsxs)(a.G7,{className:Ke.productColorDialog,children:[(0,v.jsxs)(a.G7,{className:Ke.productColorDialog_content,children:[(0,v.jsx)(a.G7,{className:Ke.productColorDialog_img,children:(0,v.jsx)(Se.Z,{customImageStyle:{borderRadius:"0"},showStatus:!1,value:un,onClick:function handleShowLabAndImg(){console.log("handleShowLabAndImg"),In(!0)}})}),(0,v.jsxs)(a.G7,{className:Ke.productColorDialog_info,children:[(0,v.jsxs)(a.G7,{className:Ke.productColorDialog_title,children:[(0,v.jsx)(a.xv,{className:Ke.productColorDialog_name,children:(0,j.W7)(ke.current.code,ke.current.name)}),(0,v.jsxs)(a.G7,{className:Ke.productColorDialog_price,children:[(0,v.jsxs)(a.xv,{children:["¥",(0,j.yb)(ke.current.bulk_price),"/KG"]}),ke.current.last_bulk_price&&ke.current.bulk_price!==ke.current.last_bulk_price?ke.current.bulk_price>ke.current.last_bulk_price?(0,v.jsx)(a.xv,{style:{color:"red",marginLeft:"10rpx"},children:"↑"}):(0,v.jsx)(a.xv,{style:{color:"green",marginLeft:"10rpx"},children:"↓"}):null]})]}),(0,v.jsx)(a.G7,{className:Ke.productColorDialog_bottomBar,children:ke.current.length_cut_price?(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)(a.xv,{className:Ke.productColorDialog_history,children:["更新于:",(0,j.o0)(ke.current.update_price_time,"YYYY-MM-DD")]}),(0,v.jsxs)(a.xv,{className:Ke.productColorDialog_oldPrice,children:["¥",(0,j.yb)(ke.current.last_bulk_price),"/KG"]})]}):(0,v.jsx)(a.xv,{className:Ke.productColorDialog_history,children:"暂无历史报价"})})]})]}),(0,v.jsx)(a.G7,{className:Ke.productColorDialog_button,children:(0,v.jsx)(Le.Z,{circle:!0,type:"primary",size:"normal",onClick:ze,children:"知道了"})})]})}),(0,v.jsx)(Un.Z,{onSelected:function onCutSampleList(e){var n=(0,s.Z)({},E);e.map((function(e){e.count=1})),n.colors=e,u().setStorageSync("cutSample",JSON.stringify([n])),(0,Be.ei)({page_name:"pages/details/index",trigger_time:(0,j.o0)(new Date),purchaser_name:f.adminUserInfo.user_name||"未知用户",purchaser_id:f.adminUserInfo.user_id||0}),u().redirectTo({url:"/pages/cutSampleListOrder/index"})},show:Ye,product_id:E.id,onClose:function onClose(){return $e(!1)}}),(0,v.jsx)(Ie.Z,{value:un,show:yn,onClose:function closeLabImgShow(){In(!1)}})]})})};On.enableShareAppMessage=!0;Page((0,o.createPageConfig)(On,"pages/details/index",{root:{cn:[]}},{navigationBarTitleText:"商品详情",enablePullDownRefresh:!0,backgroundTextStyle:"dark",enableShareAppMessage:!0}||{}))}},function(e){e.O(0,[4634,6878,3560,9315,4271,635,7968,5541,7758,9082,9590,6391,3851,1262,14,1983,985,2107,1216,8592],(function(){return n=2166,e(e.s=n);var n}));e.O()}]);