You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
1.3 KiB
1 lines
1.3 KiB
import{l,j as e,s as a,k as s,o as t,c as o,w as n,m as r,f as i,b as u,r as c,F as d,K as f,I as p,g as m,a as g,v as h,i as _}from"./index.22b081e2.js";import{J as b}from"./user.b3821dab.js";import{_ as x}from"./plugin-vue_export-helper.21dcd24c.js";var v=x({props:["id","pid"],setup(t){let o=l([1]),n=e(t.pid);return console.log(n.length),a({title:"加载中"}),b({id:t.id}).then((l=>{if(console.log(l),n.length>0){let e=l.data;n.map((l=>{e.map(((a,s)=>{a.collectorNumber==l.collectorNumber&&e.splice(s,1)}))})),o.value=e}else o.value=l.data;s()})),{list:o,xuanzhong:function(l){n.length>0?(n.push(l),console.log(n),f(t.pid,n)):f(t.pid,[l]),p()}}}},[["render",function(l,e,a,s,f,p){const b=m,x=_;return t(),o(b,{class:"max_box"},{default:n((()=>[0==s.list.length?(t(),o(b,{key:0,style:{border:"none",color:"#ffffff",width:"100%"}},{default:n((()=>[r("暂无可选材料,请前往购买")])),_:1})):i("",!0),1!=s.list[0]?(t(!0),u(d,{key:1},c(s.list,(l=>(t(),o(b,{onClick:e=>s.xuanzhong(l)},{default:n((()=>[g(b,null,{default:n((()=>[g(x,{src:l.imagePath},null,8,["src"]),g(b,null,{default:n((()=>[r(h(l.collectorNumber),1)])),_:2},1024)])),_:2},1024),g(b,null,{default:n((()=>[r(h(l.collectionName),1)])),_:2},1024)])),_:2},1032,["onClick"])))),256)):i("",!0)])),_:1})}],["__scopeId","data-v-a6089430"]]);export{v as default};
|
|
|