"use strict";const e=require("../../common/vendor.js"),t=require("../../common/assets.js"),o=require("../../api/index.js"),s=require("../../hooks/useNav.js");if(!Array){(e.resolveComponent("wd-navbar")+e.resolveComponent("wd-swiper")+e.resolveComponent("mp-html"))()}Math||((()=>"../../uni_modules/wot-design-uni/components/wd-navbar/wd-navbar.js")+(()=>"../../uni_modules/wot-design-uni/components/wd-swiper/wd-swiper.js")+(()=>"../../uni_modules/mp-html/components/mp-html/mp-html.js"))();const a=e.defineComponent({__name:"goods",setup(a){const{navTo:n}=s.useNav(),r=e.ref(0);e.ref(["https://wot-ui.cn/assets/redpanda.jpg","https://wot-ui.cn/assets/capybara.jpg"]);const i=e.ref({});e.onLoad((e=>{o.api.goodsInfo({id:e.id}).then((e=>{i.value=e}))}));const d=()=>{n(`/pages/order/confirm?id=${i.value.id}`,!0)},p=()=>{e.index.navigateBack()};return(o,s)=>({a:e.o(p),b:e.p({fixed:!0,bordered:!1,"left-arrow":!0,"custom-style":"background-color: transparent !important;",safeAreaInsetTop:!0}),c:e.w((({current:t,total:o},s,a)=>({a:e.t(t+1),b:e.t(o),c:a,d:s})),{name:"indicator",path:"c",vueId:"96d49b0d-1"}),d:e.t(i.value.sales),e:e.o((e=>r.value=e)),f:e.p({height:"750rpx",list:i.value.images,autoplay:!0,current:r.value}),g:e.t(i.value.name),h:e.t(i.value.stock),i:e.t(i.value.specs),j:e.t(i.value.currentPrice),k:e.p({content:i.value.detail}),l:t._imports_0$4,m:t._imports_1$2,n:e.o(d)})}}),n=e._export_sfc(a,[["__scopeId","data-v-96d49b0d"]]);wx.createPage(n);
