index.vue 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <script setup lang="ts">
  2. import { StaticUrl } from '@/config'
  3. import xsbTabbar from '@/subPack-xsb/components/xsbTabbar/index.vue'
  4. definePage({
  5. name: 'xsb-cart',
  6. islogin: false,
  7. style: {
  8. navigationStyle: 'custom',
  9. navigationBarTitleText: '星闪豹购物车',
  10. disableScroll: true,
  11. },
  12. })
  13. const isAll = ref(false)
  14. const selectCatrt = ref()
  15. </script>
  16. <template>
  17. <view class="page-xsb">
  18. <wd-navbar
  19. title="购物车" custom-style="background-color:transparent !important" :bordered="false" :z-index="99"
  20. safe-area-inset-top fixed
  21. />
  22. <view class="xsb-linear h406rpx" />
  23. <view class="-mt220rpx">
  24. <view class="content px24rpx">
  25. <scroll-view scroll-y class="content">
  26. <view class="rounded-16rpx bg-white px24rpx pb18rpx pt28rpx">
  27. <wd-checkbox v-model="isAll" size="large">
  28. <view class="text-28rpx font-semibold">
  29. 市民请集合官方旗舰店
  30. </view>
  31. </wd-checkbox>
  32. <view class="mt20rpx h2rpx w-full bg-#F0F0F0" />
  33. <wd-checkbox-group v-model="selectCatrt" size="large">
  34. <view
  35. v-for="item in 10" :key="item" class="mt20rpx flex items-center"
  36. >
  37. <view class="mr20rpx h32rpx w32rpx">
  38. <wd-checkbox model-value="jingmai" />
  39. </view>
  40. <view class="flex flex-1">
  41. <image
  42. :src="`${StaticUrl}/shu.png`"
  43. class="h206rpx w200rpx flex-shrink-0"
  44. />
  45. <view class="ml20rpx">
  46. <view class="text-left text-28rpx font-semibold">
  47. <view v-for="i in 2" :key="i" class="mr5px inline-block">
  48. <wd-tag type="danger">
  49. 惊喜回馈
  50. </wd-tag>
  51. </view>
  52. 秋季应季水果纯甜
  53. 柿子
  54. </view>
  55. <view class="mt14tpx text-24rpx text-#AAAAAA">
  56. 规格:5kg,盒
  57. </view>
  58. <view class="mt14rpx flex items-center justify-between">
  59. <view class="text-36rpx text-#FF4A39 font-semibold">
  60. ¥13.95
  61. </view>
  62. <wd-input-number />
  63. </view>
  64. </view>
  65. </view>
  66. </view>
  67. </wd-checkbox-group>
  68. </view>
  69. <view v-if="false" class="box-border w-full flex items-center justify-center">
  70. <view class="mt220rpx flex flex-col items-center">
  71. <image :src="`${StaticUrl}/cart.png`" class="h110rpx w110rpx" />
  72. <view class="mb20rpx mt20rpx text-24rpx">
  73. 你还没有添加商品哦~
  74. </view>
  75. <wd-button plain>
  76. 去逛逛
  77. </wd-button>
  78. </view>
  79. </view>
  80. <view class="h100rpx" />
  81. </scroll-view>
  82. </view>
  83. </view>
  84. <view class="fixedShadow fixed bottom-60rpx left-0 z-99 box-border w-full flex items-center justify-between rounded-t-16rpx bg-white px24rpx pb60rpx pt10rpx">
  85. <view class="ios w-full flex items-center justify-between">
  86. <view class="flex items-center">
  87. <image
  88. :src="`${StaticUrl}/cart-lanzi.png`"
  89. class="h100rpx w100rpx"
  90. />
  91. <view class="ml16rpx flex items-center">
  92. <wd-checkbox v-model="isAll" size="large">
  93. 全选
  94. </wd-checkbox>
  95. <view class="ml10rpx text-24rpx text-#FF4A39">
  96. 删除
  97. </view>
  98. </view>
  99. </view>
  100. <view class="flex items-center">
  101. <view class="flex items-center font-semibold">
  102. <view class="text-22rpx text-#222">
  103. 总计:
  104. </view>
  105. <view class="flex items-baseline text-24rpx text-#FF4A39">
  106. <text class="text-36rpx">
  107. 8.9
  108. </text>
  109. </view>
  110. </view>
  111. <view class="ml20rpx w160rpx">
  112. <wd-button block size="large">
  113. 结算
  114. </wd-button>
  115. </view>
  116. </view>
  117. </view>
  118. </view>
  119. <xsbTabbar />
  120. </view>
  121. </template>
  122. <style scoped lang="scss">
  123. .content {
  124. height: calc(100vh - var(--window-top) - 420rpx);
  125. height: calc(100vh - var(--window-top) - constant(safe-area-inset-bottom) - 420rpx);
  126. height: calc(100vh - var(--window-top) - env(safe-area-inset-bottom) - 420rpx);
  127. }
  128. .fixedShadow{
  129. box-shadow: 0rpx -6rpx 12rpx 2rpx rgba(0,0,0,0.05);
  130. }
  131. </style>