奇点
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
2.3 KiB

import{l as a,o as e,b as l,a as s,w as i,F as t,r as o,f as u,c as n,m as r,n as c,v as d,D as f,M as m,i as g,E as p,g as h,t as k}from"./index.22b081e2.js";import{m as _,E as v}from"./user.b3821dab.js";import{_ as y}from"./plugin-vue_export-helper.21dcd24c.js";var b=y({setup(){let e=a([]),l=a(""),s=a(!1),i=a(!1),t=1;function o(){t=1,_({pageNum:t,pageSize:10}).then((a=>{e.value=a.rows}))}return o(),{ykwz:i,init:o,jiazai:function(){t++,_({pageNum:t,pageSize:10}).then((a=>{if(0==a.rows.length)return f({title:"已经到底了",icon:"none"}),void t--;a.rows.map((a=>{e.value.push(a)}))}))},guanb:function(){s.value=!1,l.value="",o()},isxfc:s,imageurl:l,list:e,kaiqi:function(a){s.value=!0,v({id:a.id}).then((a=>{console.log(a),m({src:a.data.thumbnail,success:function(a){a.width>a.height?i.value=!0:a.width<a.height&&(i.value=!1)}}),setTimeout((()=>{l.value=a.data}),1e3)}))}}}},[["render",function(a,f,m,_,v,y){const b=g,w=p,x=h,z=k;return e(),l(t,null,[s(z,{class:"scv","scroll-y":"true",onScrolltoupper:_.init,onScrolltolower:_.jiazai},{default:i((()=>[s(x,{class:"maxbox"},{default:i((()=>[_.list.length>0?(e(!0),l(t,{key:0},o(_.list,(a=>(e(),n(x,null,{default:i((()=>[s(b,{src:a.surfacePlot},null,8,["src"]),s(w,null,{default:i((()=>[r(d(a.collectionName),1)])),_:2},1024),s(x,{onClick:e=>_.kaiqi(a)},{default:i((()=>[r("拆开")])),_:2},1032,["onClick"])])),_:2},1024)))),256)):u("",!0),0==_.list.length?(e(),n(x,{key:1,style:{color:"#fff",margin:"auto"}},{default:i((()=>[r("暂无盲盒")])),_:1})):u("",!0)])),_:1})])),_:1},8,["onScrolltoupper","onScrolltolower"]),_.isxfc?(e(),n(x,{key:0,onClick:_.guanb,class:"zhezhao"},{default:i((()=>[_.imageurl?u("",!0):(e(),n(b,{key:0,class:"donghua",mode:"widthFix",src:"/assets/open.5b08dfd4.gif"})),_.imageurl?(e(),n(x,{key:1,class:"box"},{default:i((()=>[s(w,null,{default:i((()=>[r("恭喜您,获得")])),_:1}),_.imageurl?(e(),l("img",{key:0,class:c(_.ykwz?"img1":"img2"),src:_.imageurl.thumbnail},null,10,["src"])):u("",!0),_.imageurl?(e(),n(w,{key:1,style:{"margin-top":"320rpx"}},{default:i((()=>[r(d(_.imageurl.collectionName)+" X 1",1)])),_:1})):u("",!0),_.imageurl?(e(),n(w,{key:2,class:"qr",onClick:_.guanb},{default:i((()=>[r("确认")])),_:1},8,["onClick"])):u("",!0)])),_:1})):u("",!0)])),_:1},8,["onClick"])):u("",!0)],64)}],["__scopeId","data-v-e3c41de2"]]);export{b as default};