| | |
| | | <wd-tab :title="item.label"> |
| | | <view class="card_box"> |
| | | <Statistics class="statistics_box" /> |
| | | <ProductCard v-for="item in 10" @click="toDetail" /> |
| | | <ProductCard v-for="(item, index) in 10" @click="toDetail(index)" /> |
| | | <wd-loadmore custom-class="loadmore" state="loading" /> |
| | | </view> |
| | | </wd-tab> |
| | |
| | | }, |
| | | ]); |
| | | |
| | | const toDetail = () => { |
| | | uni.navigateTo({ |
| | | url: "/pages/production/detail/wireDetail", |
| | | }); |
| | | const toDetail = (type: number) => { |
| | | if (Math.floor(type) % 2 === 0) { |
| | | uni.navigateTo({ |
| | | url: "/pages/production/detail/wireDetail", |
| | | }); |
| | | } else { |
| | | uni.navigateTo({ |
| | | url: "/pages/production/detail/twistDetail", |
| | | }); |
| | | } |
| | | }; |
| | | </script> |
| | | |