"use strict";const e=require("../../../common/vendor.js"),r=require("../../../sheep/index.js"),s=require("../../../sheep/api/system/area.js"),i=require("../../../sheep/api/member/address.js");if(require("../../../sheep/helper/index.js"),require("../../../sheep/url/index.js"),require("../../../sheep/store/index.js"),require("../../../sheep/store/app.js"),require("../../../sheep/api/promotion/diy.js"),require("../../../sheep/request/index.js"),require("../../../sheep/config/index.js"),require("../../../sheep/platform/index.js"),require("../../../sheep/platform/provider/wechat/index.js"),require("../../../sheep/platform/provider/wechat/miniProgram.js"),require("../../../sheep/api/member/auth.js"),require("../../../sheep/api/member/social.js"),require("../../../sheep/api/member/user.js"),require("../../../sheep/platform/provider/apple/index.js"),require("../../../sheep/platform/share.js"),require("../../../sheep/router/index.js"),require("../../../sheep/hooks/useModal.js"),require("../../../sheep/helper/test.js"),require("../../../sheep/api/member/signin.js"),require("../../../sheep/helper/throttle.js"),require("../../../sheep/platform/pay.js"),require("../../../sheep/api/pay/order.js"),require("../../../sheep/store/user.js"),require("../../../sheep/store/cart.js"),require("../../../sheep/api/trade/cart.js"),require("../../../sheep/api/pay/wallet.js"),require("../../../sheep/api/trade/order.js"),require("../../../sheep/api/promotion/coupon.js"),require("../../../sheep/store/sys.js"),require("../../../sheep/store/modal.js"),require("../../../sheep/config/zIndex.js"),require("../../../sheep/helper/digit.js"),!Array){(e.resolveComponent("s-address-item")+e.resolveComponent("su-fixed")+e.resolveComponent("s-empty")+e.resolveComponent("s-layout"))()}Math||((()=>"../../../sheep/components/s-address-item/s-address-item.js")+(()=>"../../../sheep/ui/su-fixed/su-fixed.js")+(()=>"../../../sheep/components/s-empty/s-empty.js")+(()=>"../../../sheep/components/s-layout/s-layout.js"))();const t={__name:"list",setup(t){const p=e.reactive({list:[],loading:!0});return e.onShow((async()=>{p.list=(await i.AddressApi.getAddressList(2)).data,p.loading=!1})),e.onBeforeMount((()=>{e.index.getStorageSync("areaData")||s.AreaApi.getAreaTree().then((r=>{0===r.code&&e.index.setStorageSync("areaData",r.data)}))})),(s,i)=>e.e({a:p.list.length},p.list.length?{b:e.f(p.list,((s,i,t)=>({a:s.id,b:e.o((i=>{return t=s,e.index.$emit("SELECT_ADDRESS",{addressInfo:t}),void r.sheep.$router.back();var t}),s.id),c:"775c5d4f-1-"+t+",775c5d4f-0",d:e.p({spuType:"0",hasBorderBottom:!0,item:s})})))}:{},{c:e.o((s=>e.unref(r.sheep).$router.go("/pages/user/dummyAddress/edit"))),d:e.p({bottom:!0,placeholder:!0}),e:0===p.list.length&&!p.loading},0!==p.list.length||p.loading?{}:{f:e.p({text:"暂无收货地址",icon:"/static/data-empty.png"})},{g:e.p({title:"虚拟商品收货地址",bgStyle:{color:"#FFF"}})})}},p=e._export_sfc(t,[["__scopeId","data-v-775c5d4f"]]);wx.createPage(p);
