1 line
2.1 KiB
JavaScript
1 line
2.1 KiB
JavaScript
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[4339],{1809:function(e,s,c){var a=c(1515),i=c(7294),r=c(6599),n=c(6028),l=c(3684),t=c(5980),o=c(1115),m=c(4158),d=c(9194),u=c(1341),_=c(5893);s.Z=function Product(e){var s=e.productList,c=void 0===s?[]:s,h=e.pageName,p=void 0===h?"":h,x=(0,d.v)((function(e){return e.userInfo})),Z=(0,i.useCallback)((function(e){return{lab:e.lab,rgb:e.rgb,texture_url:e.texture_url}}),[c]);return(0,_.jsx)(a.G7,{className:t.Z.products_list,children:null==c?void 0:c.map((function(e){return(0,_.jsxs)(a.G7,{className:t.Z.products_item,onClick:function onClick(){return function handleClickGoods(e){(0,u.mm)({page_name:p||"未知页面",fabric_code:e.code,fabric_name:e.name,trigger_time:(0,m.o0)(new Date),purchaser_name:x.adminUserInfo.user_name||"未知用户",purchaser_id:x.adminUserInfo.user_id||0}),(0,o.jD)("/pages/details/index?id=".concat(e.id))}(e)},children:[(0,_.jsxs)(a.G7,{className:t.Z.item_img,children:[(0,_.jsx)(r.Z,{value:Z(e)}),(0,_.jsxs)(a.G7,{className:t.Z.num,children:[e.product_color_count,"色"]}),e.is_favorite&&(0,_.jsx)(n.Z,{customClassName:t.Z.collection_icon,name:"icon-shoucang1",size:40})]}),(0,_.jsxs)(a.G7,{className:t.Z.item_con,children:[(0,_.jsxs)(a.G7,{className:t.Z.title,children:[(0,_.jsxs)(a.xv,{children:[(0,m.W7)(e.code,"")," "]}),e.name]}),(0,_.jsxs)(a.G7,{className:t.Z.tag_list,children:[(0,_.jsx)(l.Z,{customClassName:t.Z.tag,type:"primary",size:"small",circle:!0,children:e.width}),(0,_.jsx)(l.Z,{customClassName:t.Z.tag_g,type:"primary",size:"small",circle:!0,children:e.weight_density})]}),(0,_.jsx)(a.G7,{className:t.Z.des,children:e.component}),(0,_.jsxs)(a.G7,{className:t.Z.bottom,children:[(0,_.jsx)(a.G7,{className:t.Z.header_con,children:(0,_.jsx)(a.G7,{children:!!e.product_screw_id&&(0,_.jsx)(l.Z,{customClassName:t.Z.header_label,circle:!0,type:"primary",size:"small",children:"配套螺纹"})})}),(0,_.jsxs)(a.G7,{className:t.Z.price,children:[(0,_.jsx)(a.G7,{className:t.Z.price_unit,children:"¥"}),(0,_.jsxs)(a.G7,{className:t.Z.price_num,children:[(0,m.yb)(e.lowest_price,100,!0),"起"]})]})]})]})]},e.id)}))})}}}]); |