"use strict";const e=require("../../common/vendor.js"),a=require("../../api/index.js");if(!Array){(e.resolveComponent("wd-navbar")+e.resolveComponent("z-paging"))()}Math||((()=>"../../uni_modules/wot-design-uni/components/wd-navbar/wd-navbar.js")+(()=>"../../uni_modules/z-paging/components/z-paging/z-paging.js"))();const o=e.defineComponent({__name:"prefecture",setup(o){const n=e.ref(1),t=e.ref(""),r=e.ref(null),s=e.ref([]),i=e.ref([]);e.onLoad((()=>{a.api.noticeCatePage().then((e=>{i.value=e.list}))}));const p=(e,o)=>{a.api.goodsPage({pageNo:e,pageSize:o,type:n.value,categoryId:t.value,recommended:1}).then((e=>{r.value.complete(e.list)})).catch((e=>{r.value.complete(!1)}))},c=()=>{e.index.navigateBack()};return(a,o)=>({a:e.o(c),b:e.p({title:"进货专区",safeAreaInsetTop:!0,"left-arrow":!0}),c:e.f(s.value,((a,o,n)=>({a:a.cover,b:e.t(a.name),c:e.t(a.specs),d:e.t(a.currentPrice),e:e.o((o=>{return n=a.id,void e.index.navigateTo({url:`/pages/goods/goods?id=${n}`});var n}),o),f:o}))),d:e.sr(r,"7e4b6259-1",{k:"paging"}),e:e.o(p),f:e.o((e=>s.value=e)),g:e.p({"use-page-scroll":!0,modelValue:s.value})})}}),n=e._export_sfc(o,[["__scopeId","data-v-7e4b6259"]]);wx.createPage(n);
