index.vue 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <route lang="json5">
  2. {
  3. style: {
  4. navigationBarTitleText: '品质商城',
  5. navigationBarBackgroundColor: '#fff',
  6. },
  7. }
  8. </route>
  9. <script setup lang="ts">
  10. import TiltedButton from '@/components/tilted-button.vue'
  11. import Product from './components/product.vue'
  12. import { shoppingBag } from '@designer-hub/assets/src/assets/svgs/index'
  13. const data = ref(['https://via.placeholder.com/347x128'])
  14. const products = ref([{}, {}, {}])
  15. </script>
  16. <template>
  17. <view class="bg-white flex-grow flex flex-col px-3.5 py-5.5 gap-5.5">
  18. <wd-swiper :list="data" autoplay height="128px"></wd-swiper>
  19. <div class="bg-black rounded-2xl pt-11">
  20. <div class="bg-white rounded-2xl shadow p-3.5"></div>
  21. </div>
  22. <div class="w-full inline-flex gap-2">
  23. <div><wd-button type="primary" size="small">GELATO专区</wd-button></div>
  24. <div>
  25. <wd-button plain size="small">设计周边</wd-button>
  26. </div>
  27. </div>
  28. <div class="grid grid-cols-2 gap-2.5">
  29. <template v-for="({}, i) of products" :key="i">
  30. <Product></Product>
  31. </template>
  32. </div>
  33. <div class="h-16">
  34. <div class="fixed bottom-0 left-0 right-0">
  35. <div class="h-16 bg-white flex items-center justify-between px-7">
  36. <div>
  37. <!-- <wd-button type="text" size="small"> -->
  38. <wd-img :round="false" width="32" height="32" :src="shoppingBag"></wd-img>
  39. <!-- </wd-button> -->
  40. </div>
  41. <div>
  42. <TiltedButton custom-class="text-center! items-center">
  43. <span
  44. class="h-[22px] text-white text-base font-normal font-['PingFang SC'] leading-tight"
  45. >
  46. 购物车
  47. </span>
  48. <span class="h-[22px] text-white text-sm font-normal font-['PingFang SC']">
  49. (已选2件)
  50. </span>
  51. </TiltedButton>
  52. </div>
  53. </div>
  54. </div>
  55. </div>
  56. </view>
  57. </template>
  58. <style scoped lang="scss"></style>