acdr-ui/dist/build/mp-weixin/pages/index/index.js

2 lines
2.4 KiB
JavaScript

"use strict";var e=(e,n,o)=>new Promise(((r,i)=>{var t=e=>{try{a(o.next(e))}catch(n){i(n)}},s=e=>{try{a(o.throw(e))}catch(n){i(n)}},a=e=>e.done?r(e.value):Promise.resolve(e.value).then(t,s);a((o=o.apply(e,n)).next())}));const n=require("../../common/vendor.js"),o=require("../../utils/commUtils.js"),r=require("../../utils/http.js"),i=require("../../utils/platform.js");if(!Array){(n.resolveComponent("wd-icon")+n.resolveComponent("layout-default-uni"))()}Math||(u+d+m+c+t+s+(()=>"../../node-modules/wot-design-uni/components/wd-icon/wd-icon.js")+a+l+p)();const t=()=>"./components/profileInfo.js",s=()=>"./components/hurry.js",a=()=>"./components/quickServiceCarousel.js",l=()=>"./components/recommendedServices.js",u=()=>"./components/banner.js",c=()=>"../../components/LoadingAnimation.js",p=()=>"../../components/Tabbar.js",d=()=>"../../components/AddressCell.js",m=()=>"../../components/Search.js",f={__name:"index",setup(t){const s=n.ref(!1),a=n.ref({}),l=()=>e(this,null,(function*(){try{const e=yield r.httpGet("/petInfo/index");200===e.code?a.value=e.data:o.toast(e.message)}catch(e){}})),u=()=>{n.index.navigateTo({url:"/pages/extended/index"})},c=e=>{n.index.navigateTo({url:e})};return n.onLoad((()=>e(this,null,(function*(){s.value=!0,yield l(),s.value=!1})))),(e,r)=>{var t,l,p,d,m,f,v,g,h;return n.e({a:n.n(n.unref(i.isH5)?"top-_a_1vw_a_":"top-_a_3vw_a_"),b:n.o((e=>n.isRef(s)?s.value=e:null)),c:n.p({modelValue:n.unref(s)}),d:null==(t=n.unref(a))?void 0:t.id},(null==(l=n.unref(a))?void 0:l.id)?{e:n.p({profileIcon:(null==(p=n.unref(a))?void 0:p.profileUrl)?n.unref(o.imgUrl)(null==(d=n.unref(a))?void 0:d.profileUrl):"@/static/icons/cat.png",profileName:null==(m=n.unref(a))?void 0:m.name,gender:null==(f=n.unref(a))?void 0:f.sex,profileTags:[null==(v=n.unref(a))?void 0:v.breed,0==(null==(g=n.unref(a))?void 0:g.sex)?"妹妹":"弟弟",1==(null==(h=n.unref(a))?void 0:h.isSterilization)?"已绝育":"未绝育"]}),f:n.o((e=>c("/pages/pet/pet-detail-page?id="+n.unref(a).id)))}:{},{g:n.p({name:"萌萌哒",distance:25,time:45}),h:n.unref(o.imgUrl)("@/static/home/cwpb.png"),i:n.o((e=>c("/pages/service/search"))),j:n.unref(o.imgUrl)("@/static/home/cwpl.png"),k:n.o((e=>c("/pages/service/slippery"))),l:n.unref(o.imgUrl)("@/static/home/smfw.png"),m:n.o((e=>c("/pages/service/search"))),n:n.p({name:"arrow-right"}),o:n.o(u)})}}},v=n._export_sfc(f,[["__scopeId","data-v-51a1e6f3"]]);wx.createPage(v);