This commit is contained in:
2023-05-16 13:02:46 +08:00
parent d19b1ed2aa
commit c8e4e47569
719 changed files with 505 additions and 466 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[985],{6911:function(_,e){e.Z={common_safe_area_y:"index-module__common_safe_area_y___OHaXZ",hoverClass:"index-module__hoverClass___KrOyU","full-100":"index-module__full-100___igu2F",main:"index-module__main___yAH6K",header:"index-module__header___t9Rv6",color_list:"index-module__color_list___vMc4c",scroll_view:"index-module__scroll_view___GPL6Z",color_list_con:"index-module__color_list_con___PM7bF",item:"index-module__item____72YW",item_color:"index-module__item_color___cAsxC",icon:"index-module__icon___JOKhm",select_color:"index-module__select_color___R2Rct",item_name:"index-module__item_name___HD6KV",btns:"index-module__btns___IwvLo",cancel:"index-module__cancel___DzfaG",submit:"index-module__submit___tEGCz",selected:"index-module__selected___dOB6M"}}}]);
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[823],{6911:function(_,e){e.Z={common_safe_area_y:"index-module__common_safe_area_y___OHaXZ",hoverClass:"index-module__hoverClass___KrOyU","full-100":"index-module__full-100___igu2F",main:"index-module__main___yAH6K",header:"index-module__header___t9Rv6",color_list:"index-module__color_list___vMc4c",scroll_view:"index-module__scroll_view___GPL6Z",color_list_con:"index-module__color_list_con___PM7bF",item:"index-module__item____72YW",item_color:"index-module__item_color___cAsxC",icon:"index-module__icon___JOKhm",select_color:"index-module__select_color___R2Rct",item_name:"index-module__item_name___HD6KV",btns:"index-module__btns___IwvLo",cancel:"index-module__cancel___DzfaG",submit:"index-module__submit___tEGCz",selected:"index-module__selected___dOB6M"}}}]);
@@ -0,0 +1 @@
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[216],{6714:function(_,e){e.Z={common_safe_area_y:"index-module__common_safe_area_y___ccGnr",hoverClass:"index-module__hoverClass___gTUgM","full-100":"index-module__full-100___O7snw",shop_cart_main:"index-module__shop_cart_main___JXPT9",popup_con:"index-module__popup_con___y3rOB",header:"index-module__header___Fkmjh",miconfont:"index-module__miconfont___WCOzn",count_all:"index-module__count_all___CBjuZ",search:"index-module__search___sxzuE",search_item:"index-module__search_item___J0yVs",search_item_select:"index-module__search_item_select___j2U7K",con:"index-module__con___M3zqN",scroll:"index-module__scroll___XgNi2",product_list:"index-module__product_list___R2YCS",product_item:"index-module__product_item___JkDOa",checkbox:"index-module__checkbox___iwkrf",img:"index-module__img___P6j5a",des:"index-module__des___BygXN",subtitle:"index-module__subtitle___OHRTL",tag:"index-module__tag_____ISZ",no_product_item_select:"index-module__no_product_item_select___jZhOw",count:"index-module__count___rIRby",btn_count:"index-module__btn_count___q_l0I",long:"index-module__long___MWfGP",product_item_name:"index-module__product_item_name___vWPVX",product_item_name_header:"index-module__product_item_name_header___ZEGQk",price:"index-module__price___Dne74",title:"index-module__title___FuOxK",empty:"index-module__empty____wXM7",btn:"index-module__btn___yoqkR",buy_btn:"index-module__buy_btn___S9lS1",buy_con:"index-module__buy_con___M7y2i",icon:"index-module__icon___REXwD",price_con:"index-module__price_con___ZDMQk",price_real:"index-module__price_real___Z0aPl",price_forecast:"index-module__price_forecast___Ggj9H",goPay:"index-module__goPay___F2QQ6"}}}]);
@@ -1 +0,0 @@
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[3851],{6714:function(_,e){e.Z={common_safe_area_y:"index-module__common_safe_area_y___ccGnr",hoverClass:"index-module__hoverClass___gTUgM","full-100":"index-module__full-100___O7snw",shop_cart_main:"index-module__shop_cart_main___JXPT9",popup_con:"index-module__popup_con___y3rOB",header:"index-module__header___Fkmjh",miconfont:"index-module__miconfont___WCOzn",count_all:"index-module__count_all___CBjuZ",search:"index-module__search___sxzuE",search_item:"index-module__search_item___J0yVs",search_item_select:"index-module__search_item_select___j2U7K",con:"index-module__con___M3zqN",scroll:"index-module__scroll___XgNi2",product_list:"index-module__product_list___R2YCS",product_item:"index-module__product_item___JkDOa",checkbox:"index-module__checkbox___iwkrf",img:"index-module__img___P6j5a",des:"index-module__des___BygXN",subtitle:"index-module__subtitle___OHRTL",tag:"index-module__tag_____ISZ",no_product_item_select:"index-module__no_product_item_select___jZhOw",count:"index-module__count___rIRby",btn_count:"index-module__btn_count___q_l0I",long:"index-module__long___MWfGP",product_item_name:"index-module__product_item_name___vWPVX",product_item_name_header:"index-module__product_item_name_header___ZEGQk",price:"index-module__price___Dne74",title:"index-module__title___FuOxK",empty:"index-module__empty____wXM7",btn:"index-module__btn___yoqkR",buy_btn:"index-module__buy_btn___S9lS1",buy_con:"index-module__buy_con___M7y2i",icon:"index-module__icon___REXwD",price_con:"index-module__price_con___ZDMQk",price_real:"index-module__price_real___Z0aPl",price_forecast:"index-module__price_forecast___Ggj9H",goPay:"index-module__goPay___F2QQ6"}}}]);
@@ -1 +0,0 @@
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[9082],{209:function(e,s,l){var c=l(1413),a=l(1515),t=l(7294),n=l(4184),o=l.n(n),u=l(3012),r=l(3530),i=l(4456),d=l(6312),m=l(6599),_=l(4158),x=l(5893),Z=function ProductItem(e){var s=e.onChangeCount,l=e.onChangeSelect,n=e.item,Z=e.sale_model,h=(0,t.useCallback)((function(){l((0,c.Z)((0,c.Z)({},n),{},{selected:!0}))}),[n]),b=(0,t.useCallback)((function(){l((0,c.Z)((0,c.Z)({},n),{},{selected:!1}))}),[n]),p=(0,t.useCallback)((function(){}),[]),N=(0,t.useCallback)((function(e){var l=0==n.sale_mode?parseFloat(e):0,a=0!=n.sale_mode?parseFloat(new u.Z(parseFloat(e)).times(100)):0;s((0,c.Z)((0,c.Z)({},n),{},{roll:l,length:a}))}),[n]),j=(0,t.useMemo)((function(){return{lab:n.lab,rgb:n.rgb,texture_url:n.texture_url,title:n.product_color_code}}),[n]);(0,t.useCallback)((function(){Z==n.sale_mode&&l((0,c.Z)((0,c.Z)({},n),{},{selected:!n.selected}))}),[n]);console.log("刷新2::",n);var C=(0,t.useCallback)((function(e){return Number((0,_.yb)(e))}),[]),f=(0,t.useCallback)((function(e){return 0==e.sale_mode?e.roll:e.length/100}),[]),k=(0,t.useCallback)((function(e){return 0==e.sale_mode?"条":"米"}),[]),G=(0,t.useMemo)((function(){return Z!=n.sale_mode}),[n]);return(0,x.jsxs)(a.G7,{className:o()(r.Z.product_item,G&&r.Z.no_product_item_select),children:[(0,x.jsx)(a.G7,{className:r.Z.checkbox,children:(0,x.jsx)(i.Z,{status:n.selected,onSelect:h,onClose:b,disabled:G})}),(0,x.jsx)(a.G7,{className:r.Z.img,children:(0,x.jsx)(m.Z,{value:j,showStatus:!1,onClick:p})}),(0,x.jsxs)(a.G7,{className:r.Z.product_item_name,children:[(0,x.jsxs)(a.G7,{className:r.Z.product_item_name_header,children:[(0,x.jsx)(a.G7,{className:r.Z.title,children:(0,_.W7)(n.product_code,n.product_name)}),(0,x.jsxs)(a.G7,{className:r.Z.price,children:[(0,x.jsx)(a.xv,{children:"¥"}),C(n.sale_price),(0,x.jsxs)(a.xv,{children:["/",n.eunit]})]})]}),(0,x.jsxs)(a.G7,{className:r.Z.count,children:[(0,x.jsxs)(a.G7,{className:r.Z.des,children:[(0,x.jsx)(a.G7,{className:r.Z.subtitle,children:"".concat(n.product_color_code," ").concat(n.product_color_name)}),(0,x.jsx)(a.G7,{className:r.Z.tag,children:n.sale_mode_name})]}),(0,x.jsx)(a.G7,{className:r.Z.btn_count,children:(0,x.jsx)(d.Z,{onBlue:N,defaultNum:f(n),step:n.step,digits:n.digits,onClickBtn:N,unit:k(n),minNum:n.minNum,maxNum:n.maxNum,disabled:G})})]})]})]})};s.Z=(0,t.memo)(Z)}}]);
@@ -1 +0,0 @@
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[3560],{1805:function(_,e){e.Z={common_safe_area_y:"index-module__common_safe_area_y___qVHLM",hoverClass:"index-module__hoverClass___xmc2X","full-100":"index-module__full-100___f4rUs",mainBox:"index-module__mainBox___oYq7z",pic:"index-module__pic___jqHuf",text:"index-module__text___cFKLZ"}}}]);
@@ -1 +1 @@
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[6391],{7082:function(t,r,e){e.d(r,{$R:function(){return o},Io:function(){return c},NJ:function(){return a},Wf:function(){return f},X:function(){return i},_P:function(){return u},cQ:function(){return v},q0:function(){return l}});var n=e(749),u=function FavoriteListApi(){return(0,n.Q)({url:"/v1/mall/favorite/list",method:"get"})},o=function CreateFavoriteApi(){return(0,n.Q)({url:"/v1/mall/favorite",method:"post"})},i=function DelFavoriteApi(){return(0,n.Q)({url:"/v1/mall/favorite",method:"delete"})},l=function UpdateFavoriteApi(){return(0,n.Q)({url:"/v1/mall/favorite",method:"put"})},c=function AddFavoriteApi(){return(0,n.Q)({url:"/v1/mall/favorite/product",method:"post"})},a=function DelFavoriteProductApi(){return(0,n.Q)({url:"/v1/mall/favorite/product",method:"delete"})},f=function MoveFavoriteProductApi(){return(0,n.Q)({url:"/v1/mall/favorite/product",method:"put"})},v=function Mallproductinstruct(){return(0,n.Q)({url:"/v2/mall/product/instruct",method:"get"})}}}]);
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[4878],{7082:function(t,r,e){e.d(r,{$R:function(){return o},Io:function(){return c},NJ:function(){return a},Wf:function(){return f},X:function(){return i},_P:function(){return u},cQ:function(){return v},q0:function(){return l}});var n=e(749),u=function FavoriteListApi(){return(0,n.Q)({url:"/v1/mall/favorite/list",method:"get"})},o=function CreateFavoriteApi(){return(0,n.Q)({url:"/v1/mall/favorite",method:"post"})},i=function DelFavoriteApi(){return(0,n.Q)({url:"/v1/mall/favorite",method:"delete"})},l=function UpdateFavoriteApi(){return(0,n.Q)({url:"/v1/mall/favorite",method:"put"})},c=function AddFavoriteApi(){return(0,n.Q)({url:"/v1/mall/favorite/product",method:"post"})},a=function DelFavoriteProductApi(){return(0,n.Q)({url:"/v1/mall/favorite/product",method:"delete"})},f=function MoveFavoriteProductApi(){return(0,n.Q)({url:"/v1/mall/favorite/product",method:"put"})},v=function Mallproductinstruct(){return(0,n.Q)({url:"/v2/mall/product/instruct",method:"get"})}}}]);
@@ -1 +1 @@
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[1262],{3530:function(_,e){e.Z={common_safe_area_y:"index-module__common_safe_area_y___qlCUj",hoverClass:"index-module__hoverClass___U06jB","full-100":"index-module__full-100___Bl_Ur",product_item:"index-module__product_item___z6Vx0",checkbox:"index-module__checkbox___WuJMV",img:"index-module__img___nL6LB",des:"index-module__des____wkTs",subtitle:"index-module__subtitle___x1wjX",tag:"index-module__tag___jdkkN",count:"index-module__count___gyYmw",btn_count:"index-module__btn_count___SNYbE",long:"index-module__long___qf79D",product_item_name:"index-module__product_item_name___xYkhg",product_item_name_header:"index-module__product_item_name_header___zlqI0",price:"index-module__price___UXJSb",title:"index-module__title___LgKUP",no_product_item_select:"index-module__no_product_item_select___M_n6L"}}}]);
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[6290],{3530:function(_,e){e.Z={common_safe_area_y:"index-module__common_safe_area_y___qlCUj",hoverClass:"index-module__hoverClass___U06jB","full-100":"index-module__full-100___Bl_Ur",product_item:"index-module__product_item___z6Vx0",checkbox:"index-module__checkbox___WuJMV",img:"index-module__img___nL6LB",des:"index-module__des____wkTs",subtitle:"index-module__subtitle___x1wjX",tag:"index-module__tag___jdkkN",count:"index-module__count___gyYmw",btn_count:"index-module__btn_count___SNYbE",long:"index-module__long___qf79D",product_item_name:"index-module__product_item_name___xYkhg",product_item_name_header:"index-module__product_item_name_header___zlqI0",price:"index-module__price___UXJSb",title:"index-module__title___LgKUP",no_product_item_select:"index-module__no_product_item_select___M_n6L"}}}]);
@@ -0,0 +1 @@
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[570],{209:function(e,s,l){var c=l(1413),a=l(1515),t=l(7294),n=l(4184),o=l.n(n),u=l(3012),r=l(3530),i=l(4456),d=l(6312),m=l(6599),_=l(4158),x=l(5893),Z=function ProductItem(e){var s=e.onChangeCount,l=e.onChangeSelect,n=e.item,Z=e.sale_model,h=(0,t.useCallback)((function(){l((0,c.Z)((0,c.Z)({},n),{},{selected:!0}))}),[n]),b=(0,t.useCallback)((function(){l((0,c.Z)((0,c.Z)({},n),{},{selected:!1}))}),[n]),p=(0,t.useCallback)((function(){}),[]),N=(0,t.useCallback)((function(e){var l=0==n.sale_mode?parseFloat(e):0,a=0!=n.sale_mode?parseFloat(new u.Z(parseFloat(e)).times(100)):0;s((0,c.Z)((0,c.Z)({},n),{},{roll:l,length:a}))}),[n]),j=(0,t.useMemo)((function(){return{lab:n.lab,rgb:n.rgb,texture_url:n.texture_url,title:n.product_color_code}}),[n]);(0,t.useCallback)((function(){Z==n.sale_mode&&l((0,c.Z)((0,c.Z)({},n),{},{selected:!n.selected}))}),[n]);console.log("刷新2::",n);var C=(0,t.useCallback)((function(e){return Number((0,_.yb)(e))}),[]),f=(0,t.useCallback)((function(e){return 0==e.sale_mode?e.roll:e.length/100}),[]),k=(0,t.useCallback)((function(e){return 0==e.sale_mode?"条":"米"}),[]),G=(0,t.useMemo)((function(){return Z!=n.sale_mode}),[n]);return(0,x.jsxs)(a.G7,{className:o()(r.Z.product_item,G&&r.Z.no_product_item_select),children:[(0,x.jsx)(a.G7,{className:r.Z.checkbox,children:(0,x.jsx)(i.Z,{status:n.selected,onSelect:h,onClose:b,disabled:G})}),(0,x.jsx)(a.G7,{className:r.Z.img,children:(0,x.jsx)(m.Z,{value:j,showStatus:!1,onClick:p})}),(0,x.jsxs)(a.G7,{className:r.Z.product_item_name,children:[(0,x.jsxs)(a.G7,{className:r.Z.product_item_name_header,children:[(0,x.jsx)(a.G7,{className:r.Z.title,children:(0,_.W7)(n.product_code,n.product_name)}),(0,x.jsxs)(a.G7,{className:r.Z.price,children:[(0,x.jsx)(a.xv,{children:"¥"}),C(n.sale_price),(0,x.jsxs)(a.xv,{children:["/",n.eunit]})]})]}),(0,x.jsxs)(a.G7,{className:r.Z.count,children:[(0,x.jsxs)(a.G7,{className:r.Z.des,children:[(0,x.jsx)(a.G7,{className:r.Z.subtitle,children:"".concat(n.product_color_code," ").concat(n.product_color_name)}),(0,x.jsx)(a.G7,{className:r.Z.tag,children:n.sale_mode_name})]}),(0,x.jsx)(a.G7,{className:r.Z.btn_count,children:(0,x.jsx)(d.Z,{onBlue:N,defaultNum:f(n),step:n.step,digits:n.digits,onClickBtn:N,unit:k(n),minNum:n.minNum,maxNum:n.maxNum,disabled:G})})]})]})]})};s.Z=(0,t.memo)(Z)}}]);
@@ -1 +0,0 @@
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[14],{8186:function(n,e,s){var t=s(3433),c=s(1413),l=s(4165),r=s(5861),a=s(9439),u=s(1515),i=s(4184),o=s.n(i),d=s(7294),m=s(6911),f=s(5679),Z=s(6599),h=s(6028),x=s(9988),v=s(4158),p=s(1115),j=s(5893);e.Z=(0,d.memo)((function(n){var e=n.show,s=void 0!==e&&e,i=n.onClose,Z=n.product_id,h=n.onSelected,v=n.defaultValueIds,N=void 0===v?[]:v,G=(0,d.useState)([]),b=(0,a.Z)(G,2),w=b[0],k=b[1],C=(0,x.Z5)().fetchData,g=function(){var n=(0,r.Z)((0,l.Z)().mark((function _callee(){var n;return(0,l.Z)().wrap((function _callee$(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,C({id:Z});case 2:n=e.sent,k(D(n.data.product_color_list)||[]);case 4:case"end":return e.stop()}}),_callee)})));return function getProductDetail(){return n.apply(this,arguments)}}();(0,d.useEffect)((function(){s&&Z&&g(),!s&&k([])}),[s,Z]);var S=(0,d.useRef)([]);(0,d.useEffect)((function(){S.current=w}),[w]);var D=function initData(n){return N.length>0?null==n?void 0:n.map((function(e,s){return N.includes(e.id)?n[s]=(0,c.Z)((0,c.Z)({},e),{},{status:!0}):e})):n},E=(0,d.useCallback)((function(n){S.current.map((function(e,s){e.id===n.id&&(S.current[s]=(0,c.Z)((0,c.Z)({},e),{},{status:!e.status}))})),k((function(){return(0,t.Z)(S.current)}))}),[]),y=(0,d.useMemo)((function(){var n=0;return w.map((function(e){return e.status&&(n+=1)})),n}),[w]),z=function onCloseEven(){var n=0;null==w||w.map((function(e){e.status&&n++})),null==i||i(n)};return(0,j.jsx)(u.G7,{className:m.Z.main,children:(0,j.jsxs)(f.Z,{show:s,showTitle:!1,onClose:z,children:[(0,j.jsxs)(u.G7,{className:m.Z.header,children:[(0,j.jsxs)(u.xv,{children:["请选择色号剪样( ",w.length," )"]}),(0,j.jsx)(u.xv,{children:"剪样大小为A4,大约22cm*30cm"})]}),(0,j.jsx)(u.G7,{className:m.Z.color_list,children:(0,j.jsx)(u.pf,{scrollY:!0,className:m.Z.scroll_view,children:(0,j.jsx)(u.G7,{className:m.Z.color_list_con,children:null==w?void 0:w.map((function(n){return(0,j.jsx)(_,{item:n,onSelect:E},n.id)}))})})}),(0,j.jsxs)(u.G7,{className:m.Z.btns,children:[(0,j.jsx)(u.G7,{className:m.Z.cancel,onClick:z,children:"取消"}),(0,j.jsxs)(u.G7,{className:o()(m.Z.submit,y&&m.Z.selected),onClick:function onSubmit(){if(y<=0)return p.Z9.none("请选择色号");var n=[];null==w||w.map((function(e){e.status&&n.push((0,c.Z)((0,c.Z)({},e),{},{count:1}))})),null==h||h(n)},children:["领取剪样(",y,")"]})]})]})})}));var _=(0,d.memo)((function(n){var e=n.item,s=n.onSelect;return(0,j.jsxs)(u.G7,{className:m.Z.item,onClick:function onClick(){return null==s?void 0:s(e)},children:[(0,j.jsxs)(u.G7,{className:o()(m.Z.item_color,e.status&&m.Z.select_color),children:[(0,j.jsx)(Z.Z,{value:{lab:e.lab,rgb:e.rgb,texture_url:e.texture_url},round:!0,name:(0,v.W7)(e.code)}),e.status&&(0,j.jsx)(u.G7,{className:m.Z.icon,children:(0,j.jsx)(h.Z,{name:"icon-xuanzhongyanse",size:35})})]}),(0,j.jsx)(u.G7,{className:m.Z.item_name,children:e.name})]},e.id)}))}}]);
@@ -0,0 +1 @@
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[33],{1805:function(_,e){e.Z={common_safe_area_y:"index-module__common_safe_area_y___qVHLM",hoverClass:"index-module__hoverClass___xmc2X","full-100":"index-module__full-100___f4rUs",mainBox:"index-module__mainBox___oYq7z",pic:"index-module__pic___jqHuf",text:"index-module__text___cFKLZ"}}}]);
@@ -1 +1 @@
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[7968],{4689:function(r,t,o){o.d(t,{K4:function(){return c},V$:function(){return i},WM:function(){return u},Wo:function(){return a},de:function(){return e},ou:function(){return l},p5:function(){return d}});var n=o(749),e=function GetColorCardApi(){return(0,n.Q)({url:"/v1/mall/colorCardOrder/canAddCard",method:"post"})},u=function SubmitColorCardApi(){return(0,n.Q)({url:"/v1/mall/colorCardOrder/submit",method:"post"})},d=function GetColorCardOrderApi(){return(0,n.Q)({url:"/v1/mall/colorCardOrder/list",method:"get"})},l=function GetColorCardOrderStatusApi(){return(0,n.Q)({url:"/v1/mall/colorCardOrder/enum/auditStatus",method:"get"})},a=function ColorCardOrderCancelApi(){return(0,n.Q)({url:"/v1/mall/colorCardOrder/cancel",method:"post"})},c=function GetColorCardOrderDetailApi(){return(0,n.Q)({url:"/v1/mall/colorCardOrder",method:"get"})},i=function GetColorCardOrderByProductApi(){return(0,n.Q)({url:"/v1/mall/product/colorCard",method:"get"})}}}]);
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[6144],{4689:function(r,t,o){o.d(t,{K4:function(){return c},V$:function(){return i},WM:function(){return u},Wo:function(){return a},de:function(){return e},ou:function(){return l},p5:function(){return d}});var n=o(749),e=function GetColorCardApi(){return(0,n.Q)({url:"/v1/mall/colorCardOrder/canAddCard",method:"post"})},u=function SubmitColorCardApi(){return(0,n.Q)({url:"/v1/mall/colorCardOrder/submit",method:"post"})},d=function GetColorCardOrderApi(){return(0,n.Q)({url:"/v1/mall/colorCardOrder/list",method:"get"})},l=function GetColorCardOrderStatusApi(){return(0,n.Q)({url:"/v1/mall/colorCardOrder/enum/auditStatus",method:"get"})},a=function ColorCardOrderCancelApi(){return(0,n.Q)({url:"/v1/mall/colorCardOrder/cancel",method:"post"})},c=function GetColorCardOrderDetailApi(){return(0,n.Q)({url:"/v1/mall/colorCardOrder",method:"get"})},i=function GetColorCardOrderByProductApi(){return(0,n.Q)({url:"/v1/mall/product/colorCard",method:"get"})}}}]);
@@ -1 +1 @@
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[9315],{2711:function(e,r,o){var n=o(1515),l=o(7294),s=o(4508),t=o(9218),c=o(6541),i=o(1027),f=o(2495),u=o(5893),a=function InfiniteScroll(e){var r=e.styleObj,o=e.selfonScrollToLower,a=e.selfOnScrollToUpper,h=e.selfOnScroll,d=e.selfOnRefresherPulling,p=e.selfOnRefresherRefresh,m=e.selfOnRefresherRestore,R=e.selfOnRefresherAbort,x=e.safeAreaInsetBottom,T=void 0===x||x,g=e.enableLoadMoreStatus,S=void 0===g||g,j=e.children,v=e.lowerThresholdNum,b=void 0===v?30:v,w=e.paddingBottom,Z=void 0===w?0:w,N=e.refresherTriggered,B=void 0!==N&&N,O=e.refresherEnabled,y=void 0!==O&&O,G=e.moreStatus,U=void 0===G||G,_=e.statusMore,k=void 0===_?0:_,A=e.enableBackToTop,F=void 0===A||A,L=e.emptySlot,M=e.defaultUrl,P=void 0===M?"":M,C=e.defaultText,E=void 0===C?"":C,I=(0,l.useMemo)((function(){if(0==k)return.1}),[k]);return(0,u.jsx)(u.Fragment,{children:(0,u.jsxs)(n.pf,{id:"infiniteScroll",style:r,className:t.Z.scroll_main,scrollY:!0,onScrollToLower:function onScrollToLower(){return function scrollToLower(){null==o||o()}()},onScrollToUpper:function onScrollToUpper(){return function scrollToUpper(){null==a||a()}()},onScroll:function onScroll(e){return function scroll(e){null==h||h(e)}(e)},lowerThreshold:b,refresherEnabled:y,refresherTriggered:B,onRefresherPulling:function onRefresherPulling(){return function refresherPulling(){null==d||d()}()},onRefresherRefresh:function onRefresherRefresh(){return function refresherRefresh(){null==p||p()}()},onRefresherRestore:function onRefresherRestore(){return function refresherRestore(){null==m||m()}()},onRefresherAbort:function onRefresherAbort(){return function refresherAbort(){null==R||R()}()},refresherBackground:"#F8F8F8",enableBackToTop:F,scrollTop:I,children:[function component(){return S&&U?(0,u.jsxs)(u.Fragment,{children:[(2==k||3==k)&&(0,u.jsxs)(n.G7,{style:{paddingBottom:"".concat(Z,"rpx")},className:t.Z.scrollViewCon,children:[j,(0,u.jsx)(n.G7,{className:t.Z.infinite_scroll,children:2==k?(0,u.jsxs)(n.G7,{className:t.Z.loading_more,children:["加载中",(0,u.jsx)(c.Z,{})]}):(0,u.jsx)(n.G7,{className:t.Z.noMore,children:"没有更多数据了"})})]}),0==k&&(0,u.jsx)(s.Z,{}),1==k&&(L||(0,u.jsx)(i.Z,{picUrl:P?"".concat(f.KC).concat(P):f.up,text:E||"暂无数据"}))]}):(0,u.jsx)(n.G7,{style:{paddingBottom:"".concat(Z,"rpx")},className:t.Z.scrollViewCon,children:j})}(),T&&(0,u.jsx)(n.G7,{className:"common_safe_area_y"})]})})};r.Z=(0,l.memo)(a)}}]);
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[1157],{2711:function(e,r,o){var n=o(1515),l=o(7294),s=o(4508),t=o(9218),c=o(6541),i=o(1027),f=o(2495),u=o(5893),a=function InfiniteScroll(e){var r=e.styleObj,o=e.selfonScrollToLower,a=e.selfOnScrollToUpper,h=e.selfOnScroll,d=e.selfOnRefresherPulling,p=e.selfOnRefresherRefresh,m=e.selfOnRefresherRestore,R=e.selfOnRefresherAbort,x=e.safeAreaInsetBottom,T=void 0===x||x,g=e.enableLoadMoreStatus,S=void 0===g||g,j=e.children,v=e.lowerThresholdNum,b=void 0===v?30:v,w=e.paddingBottom,Z=void 0===w?0:w,N=e.refresherTriggered,B=void 0!==N&&N,O=e.refresherEnabled,y=void 0!==O&&O,G=e.moreStatus,U=void 0===G||G,_=e.statusMore,k=void 0===_?0:_,A=e.enableBackToTop,F=void 0===A||A,L=e.emptySlot,M=e.defaultUrl,P=void 0===M?"":M,C=e.defaultText,E=void 0===C?"":C,I=(0,l.useMemo)((function(){if(0==k)return.1}),[k]);return(0,u.jsx)(u.Fragment,{children:(0,u.jsxs)(n.pf,{id:"infiniteScroll",style:r,className:t.Z.scroll_main,scrollY:!0,onScrollToLower:function onScrollToLower(){return function scrollToLower(){null==o||o()}()},onScrollToUpper:function onScrollToUpper(){return function scrollToUpper(){null==a||a()}()},onScroll:function onScroll(e){return function scroll(e){null==h||h(e)}(e)},lowerThreshold:b,refresherEnabled:y,refresherTriggered:B,onRefresherPulling:function onRefresherPulling(){return function refresherPulling(){null==d||d()}()},onRefresherRefresh:function onRefresherRefresh(){return function refresherRefresh(){null==p||p()}()},onRefresherRestore:function onRefresherRestore(){return function refresherRestore(){null==m||m()}()},onRefresherAbort:function onRefresherAbort(){return function refresherAbort(){null==R||R()}()},refresherBackground:"#F8F8F8",enableBackToTop:F,scrollTop:I,children:[function component(){return S&&U?(0,u.jsxs)(u.Fragment,{children:[(2==k||3==k)&&(0,u.jsxs)(n.G7,{style:{paddingBottom:"".concat(Z,"rpx")},className:t.Z.scrollViewCon,children:[j,(0,u.jsx)(n.G7,{className:t.Z.infinite_scroll,children:2==k?(0,u.jsxs)(n.G7,{className:t.Z.loading_more,children:["加载中",(0,u.jsx)(c.Z,{})]}):(0,u.jsx)(n.G7,{className:t.Z.noMore,children:"没有更多数据了"})})]}),0==k&&(0,u.jsx)(s.Z,{}),1==k&&(L||(0,u.jsx)(i.Z,{picUrl:P?"".concat(f.KC).concat(P):f.up,text:E||"暂无数据"}))]}):(0,u.jsx)(n.G7,{style:{paddingBottom:"".concat(Z,"rpx")},className:t.Z.scrollViewCon,children:j})}(),T&&(0,u.jsx)(n.G7,{className:"common_safe_area_y"})]})})};r.Z=(0,l.memo)(a)}}]);
@@ -0,0 +1 @@
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[8044],{9218:function(_,e){e.Z={common_safe_area_y:"index-module__common_safe_area_y___TfGaJ",hoverClass:"index-module__hoverClass___IvFjO","full-100":"index-module__full-100___Zf65j",scroll_main:"index-module__scroll_main___rWSFU",infinite_scroll:"index-module__infinite_scroll___GY4by",loading_more:"index-module__loading_more___Iljay",noMore:"index-module__noMore___kPVsd"}}}]);
@@ -1 +0,0 @@
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[635],{9218:function(_,e){e.Z={common_safe_area_y:"index-module__common_safe_area_y___TfGaJ",hoverClass:"index-module__hoverClass___IvFjO","full-100":"index-module__full-100___Zf65j",scroll_main:"index-module__scroll_main___rWSFU",infinite_scroll:"index-module__infinite_scroll___GY4by",loading_more:"index-module__loading_more___Iljay",noMore:"index-module__noMore___kPVsd"}}}]);
@@ -0,0 +1 @@
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[8014],{8186:function(n,e,s){var t=s(3433),c=s(1413),l=s(4165),r=s(5861),a=s(9439),u=s(1515),i=s(4184),o=s.n(i),d=s(7294),m=s(6911),f=s(5679),Z=s(6599),h=s(6028),x=s(9988),v=s(4158),p=s(1115),j=s(5893);e.Z=(0,d.memo)((function(n){var e=n.show,s=void 0!==e&&e,i=n.onClose,Z=n.product_id,h=n.onSelected,v=n.defaultValueIds,N=void 0===v?[]:v,G=(0,d.useState)([]),b=(0,a.Z)(G,2),w=b[0],k=b[1],C=(0,x.Z5)().fetchData,g=function(){var n=(0,r.Z)((0,l.Z)().mark((function _callee(){var n;return(0,l.Z)().wrap((function _callee$(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,C({id:Z});case 2:n=e.sent,k(D(n.data.product_color_list)||[]);case 4:case"end":return e.stop()}}),_callee)})));return function getProductDetail(){return n.apply(this,arguments)}}();(0,d.useEffect)((function(){s&&Z&&g(),!s&&k([])}),[s,Z]);var S=(0,d.useRef)([]);(0,d.useEffect)((function(){S.current=w}),[w]);var D=function initData(n){return N.length>0?null==n?void 0:n.map((function(e,s){return N.includes(e.id)?n[s]=(0,c.Z)((0,c.Z)({},e),{},{status:!0}):e})):n},E=(0,d.useCallback)((function(n){S.current.map((function(e,s){e.id===n.id&&(S.current[s]=(0,c.Z)((0,c.Z)({},e),{},{status:!e.status}))})),k((function(){return(0,t.Z)(S.current)}))}),[]),y=(0,d.useMemo)((function(){var n=0;return w.map((function(e){return e.status&&(n+=1)})),n}),[w]),z=function onCloseEven(){var n=0;null==w||w.map((function(e){e.status&&n++})),null==i||i(n)};return(0,j.jsx)(u.G7,{className:m.Z.main,children:(0,j.jsxs)(f.Z,{show:s,showTitle:!1,onClose:z,children:[(0,j.jsxs)(u.G7,{className:m.Z.header,children:[(0,j.jsxs)(u.xv,{children:["请选择色号剪样( ",w.length," )"]}),(0,j.jsx)(u.xv,{children:"剪样大小为A4,大约22cm*30cm"})]}),(0,j.jsx)(u.G7,{className:m.Z.color_list,children:(0,j.jsx)(u.pf,{scrollY:!0,className:m.Z.scroll_view,children:(0,j.jsx)(u.G7,{className:m.Z.color_list_con,children:null==w?void 0:w.map((function(n){return(0,j.jsx)(_,{item:n,onSelect:E},n.id)}))})})}),(0,j.jsxs)(u.G7,{className:m.Z.btns,children:[(0,j.jsx)(u.G7,{className:m.Z.cancel,onClick:z,children:"取消"}),(0,j.jsxs)(u.G7,{className:o()(m.Z.submit,y&&m.Z.selected),onClick:function onSubmit(){if(y<=0)return p.Z9.none("请选择色号");var n=[];null==w||w.map((function(e){e.status&&n.push((0,c.Z)((0,c.Z)({},e),{},{count:1}))})),null==h||h(n)},children:["领取剪样(",y,")"]})]})]})})}));var _=(0,d.memo)((function(n){var e=n.item,s=n.onSelect;return(0,j.jsxs)(u.G7,{className:m.Z.item,onClick:function onClick(){return null==s?void 0:s(e)},children:[(0,j.jsxs)(u.G7,{className:o()(m.Z.item_color,e.status&&m.Z.select_color),children:[(0,j.jsx)(Z.Z,{value:{lab:e.lab,rgb:e.rgb,texture_url:e.texture_url},round:!0,name:(0,v.W7)(e.code)}),e.status&&(0,j.jsx)(u.G7,{className:m.Z.icon,children:(0,j.jsx)(h.Z,{name:"icon-xuanzhongyanse",size:35})})]}),(0,j.jsx)(u.G7,{className:m.Z.item_name,children:e.name})]},e.id)}))}}]);
@@ -1 +1 @@
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[6878],{1027:function(s,e,a){var c=a(1515),i=a(7294),t=a(1805),n=a(5893),o=function Empty(s){var e=s.picUrl,a=void 0===e?"":e,i=s.text,o=void 0===i?"无搜索历史":i;return(0,n.jsxs)(c.G7,{className:t.Z.mainBox,children:[(0,n.jsx)(c.Ee,{className:t.Z.pic,mode:"aspectFill",lazyLoad:!0,src:a}),(0,n.jsx)(c.G7,{className:t.Z.text,children:o})]})};e.Z=(0,i.memo)(o)}}]);
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[4763],{1027:function(s,e,a){var c=a(1515),i=a(7294),t=a(1805),n=a(5893),o=function Empty(s){var e=s.picUrl,a=void 0===e?"":e,i=s.text,o=void 0===i?"无搜索历史":i;return(0,n.jsxs)(c.G7,{className:t.Z.mainBox,children:[(0,n.jsx)(c.Ee,{className:t.Z.pic,mode:"aspectFill",lazyLoad:!0,src:a}),(0,n.jsx)(c.G7,{className:t.Z.text,children:o})]})};e.Z=(0,i.memo)(o)}}]);