mirror of
https://gitee.com/niucloud-team/niucloud-admin.git
synced 2026-01-06 04:58:10 +00:00
2 lines
8.9 KiB
JavaScript
2 lines
8.9 KiB
JavaScript
import{d as e,I as t,r,j as a,bf as l,bg as s,o as x,c as p,w as n,T as i,b as o,n as c,u as d,E as f,F as u,f as g,V as m,U as b,a as _,i as h,_ as y,G as k,P as v,g as w,h as F,l as E,ak as j}from"./index-3788e709.js";import{_ as C}from"./u-loading-page.4c1187eb.js";import{t as B}from"./topTabbar.d68c2bd9.js";import{_ as z}from"./_plugin-vue_export-helper.1b428a4d.js";import"./u-loading-icon.9cc882ae.js";import"./u-transition.2921302e.js";const I=z(e({__name:"point",setup(e){B().setTopTabbarParam({title:"我的积分"});let z={};const I=t((()=>({backgroundImage:"url("+E("static/resource/images/member/point/point_bg.png")+") ",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"bottom"}))),S=t((()=>{let e="";return e=Object.keys(z).length?j(Number(z.height))+j(z.top)+38+"rpx;":"38rpx",e})),R=r({}),T=r([]),P=r(!0);a((async()=>{let e=await l(),t=await s();R.value=e.data,T.value=t.data,P.value=!1}));const V=(e="",t={})=>{_({url:e,param:t})};return(e,t)=>{const r=h,a=y,l=k,s=v,_=w(F("u-loading-page"),C);return x(),p(r,{class:"bg-[#F6F6F6] min-h-[100vh]",style:c(e.themeColor())},{default:n((()=>[P.value?g("v-if",!0):(x(),i(m,{key:0},[o(r,{class:"w-full bg-[#F6F6F6]"},{default:n((()=>[o(r,{class:"pb-[210rpx] relative",style:c(d(I))},{default:n((()=>[o(r,{class:"text-[70rpx] leading-[98rpx] text-[#fff] pl-[60rpx] font-600 pt-[77rpx]"},{default:n((()=>[f(u(R.value.point||0),1)])),_:1}),o(r,{class:"flex items-center pl-[60rpx]"},{default:n((()=>[o(a,{class:"h-[36rpx] w-[36rpx]",src:d(E)("static/resource/images/member/point/icon.png"),mode:"heightFix"},null,8,["src"]),o(r,{class:"text-[26rpx] leading-[36rpx] text-[#fff] ml-[10rpx]"},{default:n((()=>[f("我的积分")])),_:1})])),_:1}),o(r,{class:"flex items-center absolute right-0 px-[14rpx] bg-color rounded-l-[35rpx] text-[#fff] text-[24rpx] h-[50rpx] z-10",style:c({top:d(S)}),onClick:t[0]||(t[0]=e=>V("/app/pages/member/point_detail"))},{default:n((()=>[o(l,{class:"nc-iconfont nc-icon-jifenduihuanV6xx1 text-[28rpx] text-[#fff] mr-[10rpx]"}),o(l,{class:"text-[24rpx]"},{default:n((()=>[f("积分明细")])),_:1})])),_:1},8,["style"])])),_:1},8,["style"]),o(r,{class:"sidebar-marign flex flex-col mt-[-178rpx] relative"},{default:n((()=>[o(r,{class:"w-[322rpx] h-[80rpx] leading-[80rpx] text-[26rpx] text-[#333] font-bold box-border pl-[30rpx]",style:c({backgroundImage:"url("+d(E)("static/resource/images/member/point/top_bg.png")+") ",backgroundSize:"100% 100%",backgroundRepeat:"no-repeat"})},{default:n((()=>[f(" 积分详情 ")])),_:1},8,["style"]),o(r,{class:"flex items-center px-[30rpx] rounded-[16rpx] !rounded-tl-none bg-[#fff] h-[173rpx] box-border"},{default:n((()=>[o(r,{class:"w-[196rpx] flex-shrink-0 text-center"},{default:n((()=>[o(r,{class:"text-[#333] text-[42rpx] leading-[59rpx] font-bold"},{default:n((()=>[f(u(R.value.point_get||0),1)])),_:1}),o(r,{class:"mt-[8rpx] text-[#666] text-[26rpx] leading-[36rpx] font-400"},{default:n((()=>[f("累计积分")])),_:1})])),_:1}),o(r,{class:"w-[1rpx] h-[50rpx] flex-shrink-0 bg-[#EBEBEB] mx-[10rpx]"}),o(r,{class:"w-[196rpx] flex-shrink-0 text-center"},{default:n((()=>[o(r,{class:"text-[#333] text-[42rpx] leading-[59rpx] font-bold"},{default:n((()=>[f(u(R.value.use||0),1)])),_:1}),o(r,{class:"mt-[8rpx] text-[#666] text-[26rpx] leading-[36rpx] font-400"},{default:n((()=>[f("累计消费")])),_:1})])),_:1}),o(r,{class:"w-[1rpx] h-[50rpx] flex-shrink-0 bg-[#EBEBEB] mx-[10rpx]"}),o(r,{class:"w-[196rpx] min-w-[209.33rpx] flex-shrink-0 text-center"},{default:n((()=>[o(r,{class:"text-[#333] text-[42rpx] leading-[59rpx] font-bold"},{default:n((()=>[f(u(R.value.point||0),1)])),_:1}),o(r,{class:"mt-[8rpx] text-[#666] text-[26rpx] leading-[36rpx] font-400"},{default:n((()=>[f("可用积分")])),_:1})])),_:1})])),_:1})])),_:1})])),_:1}),o(r,{class:"mt-[20rpx] sidebar-marign p-[30rpx] pb-[70rpx] box-border rounded-[16rpx] bg-[#fff]"},{default:n((()=>[o(r,{class:"text-[32rpx] leading-[45rpx] font-bold"},{default:n((()=>[f("热门活动")])),_:1}),o(r,{class:"mt-[50rpx] flex justify-between"},{default:n((()=>[o(r,{class:"w-[200rpx] h-[253rpx] box-border pt-[69rpx] relative text-center",style:c({backgroundImage:"url("+d(E)("static/resource/images/member/point/activity_1.png")+") ",backgroundSize:"100% 100%",backgroundRepeat:"no-repeat"})},{default:n((()=>[o(a,{class:"h-[78rpx] w-[78rpx] absolute left-[65rpx] top-[-21rpx]",src:d(E)("static/resource/images/member/point/activity_icon_1.png"),mode:"heightFix"},null,8,["src"]),o(r,{class:"text-[28rpx] leading-[39rpx] text-[#333]"},{default:n((()=>[f("每日赚积分")])),_:1}),o(r,{class:"mt-[10rpx] text-[24rpx] leading-[34rpx] text-[#999] font-500"},{default:n((()=>[f("每日签到")])),_:1}),o(r,{class:"w-full flex justify-center mt-[20rpx]"},{default:n((()=>[o(s,{class:"h-[40rpx] !m-0 rounded-[40rpx] text-[26rpx] leading-[40rpx] !text-[#fff] !",shape:"circle",style:c({background:"linear-gradient( 94deg, #FB7939 0%, #FE120E 99%), #EF000C"}),onClick:t[1]||(t[1]=e=>V("/app/pages/member/sign_in"))},{default:n((()=>[f("去签到")])),_:1},8,["style"])])),_:1})])),_:1},8,["style"]),o(r,{class:"w-[200rpx] h-[253rpx] box-border pt-[69rpx] relative text-center",style:c({backgroundImage:"url("+d(E)("static/resource/images/member/point/activity_2.png")+") ",backgroundSize:"100% 100%",backgroundRepeat:"no-repeat"})},{default:n((()=>[o(a,{class:"h-[78rpx] w-[78rpx] absolute left-[65rpx] top-[-21rpx]",src:d(E)("static/resource/images/member/point/activity_icon_2.png"),mode:"heightFix"},null,8,["src"]),o(r,{class:"text-[28rpx] leading-[39rpx] text-[#333]"},{default:n((()=>[f("积分当钱花")])),_:1}),o(r,{class:"mt-[10rpx] text-[24rpx] leading-[34rpx] text-[#999] font-500"},{default:n((()=>[f("抵扣部分费用")])),_:1}),o(r,{class:"w-full flex justify-center mt-[20rpx]"},{default:n((()=>[o(s,{class:"h-[40rpx] !m-0 rounded-[40rpx] text-[26rpx] leading-[40rpx] !text-[#fff] !",shape:"circle",style:c({background:"linear-gradient( 94deg, #FB7939 0%, #FE120E 99%), #EF000C"}),onClick:t[2]||(t[2]=e=>V("/addon/shop/pages/point/index"))},{default:n((()=>[f("去兑换")])),_:1},8,["style"])])),_:1})])),_:1},8,["style"]),o(r,{class:"w-[200rpx] h-[253rpx] box-border pt-[69rpx] relative text-center",style:c({backgroundImage:"url("+d(E)("static/resource/images/member/point/activity_3.png")+") ",backgroundSize:"100% 100%",backgroundRepeat:"no-repeat"})},{default:n((()=>[o(a,{class:"h-[78rpx] w-[78rpx] absolute left-[65rpx] top-[-21rpx]",src:d(E)("static/resource/images/member/point/icon.png"),mode:"heightFix"},null,8,["src"]),o(r,{class:"text-[28rpx] leading-[39rpx] text-[#333]"},{default:n((()=>[f("购物返积分")])),_:1}),o(r,{class:"mt-[10rpx] text-[24rpx] leading-[34rpx] text-[#999] font-500"},{default:n((()=>[f("下单得积分")])),_:1}),o(r,{class:"w-full flex justify-center mt-[20rpx]"},{default:n((()=>[o(s,{class:"h-[40rpx] !m-0 rounded-[40rpx] text-[26rpx] leading-[40rpx] !text-[#fff] !",shape:"circle",style:c({background:"linear-gradient( 94deg, #FB7939 0%, #FE120E 99%), #EF000C"}),onClick:t[3]||(t[3]=e=>V("/addon/shop/pages/goods/list"))},{default:n((()=>[f("去逛逛")])),_:1},8,["style"])])),_:1})])),_:1},8,["style"])])),_:1})])),_:1}),T.value.length?(x(),p(r,{key:0,class:"mt-[20rpx] mx-[30rpx] p-[30rpx] box-border rounded-[16rpx] bg-[#fff]"},{default:n((()=>[o(r,{class:"flex justify-between items-center"},{default:n((()=>[o(r,{class:"text-[32rpx] leading-[45rpx] font-bold"},{default:n((()=>[f("做任务领积分")])),_:1}),g(' <view class="flex items-center text-[#666]">\r\n\t\t\t\t\t<text class=" text-[26rpx] leading-[36rpx] mr-[10rpx]">更多</text>\r\n\t\t\t\t\t<text class=" text-[18rpx] leading-[36rpx] iconfont iconxiayibu1 text-[#999]"></text>\r\n\t\t\t\t</view> ')])),_:1}),(x(!0),i(m,null,b(T.value,((e,t)=>(x(),p(r,{class:"flex items-center justify-between mt-[30rpx]"},{default:n((()=>[o(r,{class:"flex items-center flex-1"},{default:n((()=>[o(a,{class:"h-[62rpx] w-[62rpx]",src:d(E)(e.icon||""),mode:"heightFix"},null,8,["src"]),o(r,{class:"flex flex-col ml-[20rpx]"},{default:n((()=>[o(r,{class:"flex"},{default:n((()=>[o(l,{class:"text-[28rpx] leading-[39rpx]"},{default:n((()=>[f(u(e.title),1)])),_:2},1024),g(' <image class="h-[28rpx] w-[28rpx] ml-[10rpx] mr-[6rpx]" :src="img(\'static/resource/images/member/point/icon.png\')" mode="heightFix" /> '),g(' <text class="text-[#EF000C] text-[28rpx] leading-[39rpx]">+10</text> ')])),_:2},1024),o(r,{class:"mt-[10rpx] text-[#999] text-[24rpx] leading-[34rpx] font-400"},{default:n((()=>[f(u(e.desc),1)])),_:2},1024)])),_:2},1024)])),_:2},1024),e.button?(x(),p(s,{key:0,class:"h-[56rpx] !m-0 rounded-[40rpx] text-[26rpx] leading-[56rpx] !text-[#fff] !",shape:"circle",style:c({background:"linear-gradient( 94deg, #FB7939 0%, #FE120E 99%), #EF000C"}),onClick:t=>V(e.button.wap_redirect)},{default:n((()=>[f(u(e.button.text),1)])),_:2},1032,["style","onClick"])):g("v-if",!0)])),_:2},1024)))),256))])),_:1})):g("v-if",!0)],64)),o(_,{"bg-color":"rgb(248,248,248)",loading:P.value,loadingText:"",fontSize:"16",color:"#303133"},null,8,["loading"])])),_:1},8,["style"])}}}),[["__scopeId","data-v-ae7b13fa"]]);export{I as default};
|