niucloud-admin/niucloud/public/wap/assets/vipcard-pages-verify-record.eb2c014e.js
2023-11-15 15:57:04 +08:00

2 lines
2.4 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{d as e,r as a,i as t,j as s,w as l,k as o,n,P as r,Q as d,R as u,m as i,a9 as c,aa as m,x as f,y as _,G as p,H as x,K as v,e as g,W as y}from"./index-faf5e276.js";import{u as w,M as h}from"./useMescroll.f9c6b371.js";import{M as j}from"./mescroll-empty.7f5227d8.js";import{D as b}from"./vipcard.5c43eb30.js";import{_ as k}from"./_plugin-vue_export-helper.1b428a4d.js";/* empty css */const I=k(e({__name:"record",setup(e){let k=a([]),I=a(!1);const{mescrollInit:C,downCallback:M,getMescroll:D}=w(m,c),R=e=>{I.value=!1;let a={page:e.num,limit:e.size};b(a).then((a=>{let t=a.data.data;1==e.num&&(k.value=[]),k.value=k.value.concat(t),e.endSuccess(t.length),I.value=!0})).catch((()=>{I.value=!0,e.endErr()}))};return(e,a)=>{const c=y,m=f;return t(),s(m,{class:"bg-[#f8f8f8] min-h-screen overflow-hidden"},{default:l((()=>[o(h,{ref:"mescrollRef",top:"20rpx",onInit:n(C),onDown:n(M),onUp:R},{default:l((()=>[n(k).length?(t(),s(m,{key:0,class:"goods-wrap"},{default:l((()=>[(t(!0),r(u,null,d(n(k),((e,a)=>(t(),s(m,{key:a,class:"goods-item",onClick:a=>{g({url:"/vipcard/pages/verify/detail",param:{id:e.id}})}},{default:l((()=>[o(m,{class:"goods-content flex"},{default:l((()=>[o(m,{class:"w-[180rpx] mr-3 overflow-hidden rounded leading-none"},{default:l((()=>[o(c,{src:n(_)(e.member_card_item.cover_thumb_small),mode:"widthFix",class:"w-full leading-none"},null,8,["src"])])),_:2},1024),o(m,{class:"flex-1 w-0"},{default:l((()=>[o(m,{class:"font-bold truncate text-sm"},{default:l((()=>[p(x(e.member_card_item.goods_name),1)])),_:2},1024),o(m,{class:"flex justify-between text-xs mt-2 text-gray-400"},{default:l((()=>[o(m,null,{default:l((()=>[p(x(n(v)("createTime"))+""+x(e.create_time),1)])),_:2},1024)])),_:2},1024),o(m,{class:"flex justify-between text-xs mt-1 text-gray-400"},{default:l((()=>[o(m,null,{default:l((()=>[p(x(n(v)("verifyCode"))+""+x(e.verify_code),1)])),_:2},1024)])),_:2},1024),o(m,{class:"flex justify-between text-xs mt-1 text-gray-400"},{default:l((()=>[o(m,null,{default:l((()=>[p(x(n(v)("verifyNum"))+""+x(e.num),1)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1024)])),_:2},1032,["onClick"])))),128))])),_:1})):i("v-if",!0),!n(k).length&&n(I)?(t(),s(j,{key:1,option:{icon:n(_)("static/resource/images/empty.png")}},null,8,["option"])):i("v-if",!0)])),_:1},8,["onInit","onDown"])])),_:1})}}}),[["__scopeId","data-v-6ddd3adf"]]);export{I as default};