jiuyiUniapp/jiuyi/unpackage/dist/build/web/assets/pages-mine-coupon-index.sTR...

2 lines
2.6 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{r as a,p as t,o as s,c as o,w as e,b as c,e as l,E as n,N as i,i as r,x as u,a0 as p,a as d,q as f,F as m}from"./index-CH9-aFWw.js";import{_}from"./uni-icons.DST64Pwo.js";import{r as y}from"./uni-app.es.DPi2kvld.js";import{_ as j}from"./_plugin-vue_export-helper.BCo6x5W8.js";import{a as h}from"./apiMixins.DqbqQ_6G.js";/* empty css */import"./shop.D3oH6Imh.js";const b=j({components:{JyCouponCard:j({__name:"index",props:{item:{type:Object,default:()=>({})}},setup(p){const d=a(!1),f={transform:"rotate(-180deg)"};return(a,p)=>{const m=r,j=u,h=y(t("uni-icons"),_);return s(),o(m,{class:"jy-coupon-card bfff mtb20 br20"},{default:e((()=>[c(m,{class:"jy-coupon-card-top df jcsb aic"},{default:e((()=>[c(m,{class:"jy-coupon-card-top-left"},{default:e((()=>[c(m,{class:"jy-coupon-card-top-left-name b"},{default:e((()=>[l("123")])),_:1}),c(m,{class:"jy-coupon-card-top-left-time c999 f24"},{default:e((()=>[l("有效期至2024.08.06 - 2024.08.06")])),_:1})])),_:1}),c(m,{class:"jy-coupon-card-top-right"},{default:e((()=>[c(m,{class:"jy-coupon-card-top-right-price df"},{default:e((()=>[c(j,{class:"f44 cFF9B27"},{default:e((()=>[l("¥")])),_:1}),c(j,{class:"f72 cFF9B27"},{default:e((()=>[l("10")])),_:1})])),_:1}),c(m,{class:"jy-coupon-card-top-right-type f28 cFF9B27"},{default:e((()=>[l("无门槛")])),_:1})])),_:1})])),_:1}),c(m,{class:"dividing-line"}),c(m,{class:"jy-coupon-card-bottom df jcsb aic p25"},{default:e((()=>[c(m,{class:"jy-coupon-card-bottom-left df jcsb aic",onClick:p[0]||(p[0]=a=>d.value=!d.value)},{default:e((()=>[c(m,{class:n(!d.value&&"thd")},{default:e((()=>[l("优惠卷介绍优惠卷介绍优惠卷介绍优惠卷...")])),_:1},8,["class"]),c(m,{class:"jy-coupon-card-bottom-left-arrow",style:i(d.value&&f)},{default:e((()=>[c(h,{type:"down"})])),_:1},8,["style"])])),_:1}),c(m,{class:"jy-coupon-card-bottom-right",onClick:p[1]||(p[1]=t=>a.useCoupon(a.coupon))},{default:e((()=>[l("去使用")])),_:1})])),_:1})])),_:1})}}},[["__scopeId","data-v-1f19a7d7"]])},mixins:[h],data:()=>({checkNum:[]}),mounted(){this.init()},methods:{init(){this.getData({api:"coupon",fn:"list"},{userId:null},!0)},onReachBottomHandler(){this.listProperty.params.pageNum++,this.init()},onPullDownRefreshHandler(){this.listProperty.params.pageNum=1,this.init()}}},[["render",function(a,t,c,l,n,i){const u=p("JyCouponCard"),_=r;return s(),o(_,{class:"jy-coupon"},{default:e((()=>[(s(!0),d(m,null,f(a.listProperty.list,((a,t)=>(s(),o(u,{key:t,item:a},null,8,["item"])))),128))])),_:1})}],["__scopeId","data-v-2ff63716"]]);export{b as default};