index.js 1.7 KB

1
  1. "use strict";const e=require("../../common/vendor.js"),o=require("../../common/assets.js");if(!Array){const m=e.resolveComponent("up-avatar"),c=e.resolveComponent("uni-icons"),t=e.resolveComponent("custom-layout");(m+c+t)()}const v=()=>"../../uni_modules/uview-plus/components/u-avatar/u-avatar.js",g=()=>"../../components/custom-layout/custom-layout.js";Math||(v+g)();const f="https://img.js.design/assets/img/65b211c3cdb6ea326421fd30.png",y={__name:"index",setup(m){const c=e.reactive([{id:"1",name:"待支付",icon:o.order1},{id:"2",name:"待打印",icon:o.order2},{id:"3",name:"待配送",icon:o.order3},{id:"4",name:"已完成",icon:o.order4}]),t=e.reactive([{id:"1",name:"我的设计",icon:o.order1},{id:"2",name:"我的贴纸",icon:o.order2},{id:"3",name:"我的分享",icon:o.order3},{id:"4",name:"邀请好友",icon:o.order4}]),p=()=>{e.index.navigateTo({url:"/pages/mine/recharge"})},n=e.ref([{}]),i=e.ref(1),s=e.ref(),_=u=>{const{pageNo:l,pageSize:a}=u;l>1?i.value<2?(i.value++,s.value.complete(n.value)):s.value.complete([]):(i.value=2,s.value.complete(n.value))};return e.onMounted(()=>{console.log("onMounted生命周期")}),(u,l)=>({a:e.p({src:f,size:"120rpx"}),b:e.o(p),c:e.p({type:"right",size:"20"}),d:e.f(c,(a,r,d)=>({a:e.s(`background-image:url(${a.icon})`),b:e.t(a.name),c:r})),e:u.nvueWidth,f:e.f(t,(a,r,d)=>({a:e.t(a.name),b:"569e925a-3-"+d+",569e925a-0",c:e.n(r<t.length-1?"border_bottom":""),d:r})),g:e.p({type:"right",size:"20"}),h:e.sr(s,"569e925a-0",{k:"layout"}),i:e.o(_),j:e.o(a=>n.value=a),k:e.p({showBottom:!0,back:{show:!1},title:"我的","show-page-bottom":!1,showLoadingNomore:!1,modelValue:n.value})})}},h=e._export_sfc(y,[["__scopeId","data-v-569e925a"]]);wx.createPage(h);