shopping.vue 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. <template>
  2. <view class="base-container">
  3. <view class="search-wrap">
  4. <up-search placeholder="日照香炉生紫烟" v-model="keyword"></up-search>
  5. <text class="manage">管理</text>
  6. </view>
  7. <view class="shop-list">
  8. <view class="shop-item" v-for="(item,index) in 3" :key="index">
  9. <up-checkbox-group>
  10. <up-checkbox v-model="shopChecked" shape="circle" label="从化荔博园店铺"></up-checkbox>
  11. </up-checkbox-group>
  12. <up-swipe-action>
  13. <up-swipe-action-item v-for="(ele,idx) in 3" :key="idx" :options="options1">
  14. <view class="commodity-item">
  15. <up-checkbox-group>
  16. <up-checkbox v-model="commodityChecked" shape="circle"></up-checkbox>
  17. </up-checkbox-group>
  18. <view class="commodity-info">
  19. <image class="commodity-img" src="https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png"></image>
  20. <view class="commodity-cont">
  21. <view class="name">
  22. <text>海南妃子笑荔枝新鲜采摘</text>
  23. <text>x1</text>
  24. </view>
  25. <up-text size="14" color="#717070" text="3斤装规格"></up-text>
  26. <text class="text">坏单包退 包邮</text>
  27. <view class="total">
  28. <text class="unit">¥</text>
  29. <text class="sum">108</text>
  30. </view>
  31. </view>
  32. </view>
  33. </view>
  34. </up-swipe-action-item>
  35. </up-swipe-action>
  36. </view>
  37. </view>
  38. <view class="footer">
  39. <up-checkbox-group>
  40. <up-checkbox v-model="checked" shape="circle" label="全选"></up-checkbox>
  41. </up-checkbox-group>
  42. <view class="footer-right">
  43. <view class="total">
  44. 合计:<text class="unit">¥</text><text class="total-num">0</text>
  45. </view>
  46. <view class="buttom">结算</view>
  47. </view>
  48. </view>
  49. </view>
  50. </template>
  51. <script setup>
  52. import {
  53. ref,
  54. reactive
  55. } from "vue"
  56. const options1 = reactive([{
  57. text: '删除',
  58. style: {
  59. backgroundColor: '#f56c6c'
  60. }
  61. }]);
  62. const keyword = ref("")
  63. const shopChecked = ref(false)
  64. const commodityChecked = ref(false)
  65. const checked = ref(false)
  66. </script>
  67. <style lang="scss" scoped>
  68. .base-container {
  69. padding: 0;
  70. .search-wrap {
  71. background: #fff;
  72. display: flex;
  73. align-items: center;
  74. padding: 16rpx 24rpx;
  75. box-sizing: border-box;
  76. }
  77. .shop-list {
  78. height: calc(100vh - 100rpx - 120rpx);
  79. overflow-y: auto;
  80. overflow: auto;
  81. .shop-item {
  82. background: #fff;
  83. margin-top: 20rpx;
  84. padding: 20rpx 24rpx;
  85. .commodity-item {
  86. width: 100%;
  87. padding: 20rpx;
  88. box-sizing: border-box;
  89. display: flex;
  90. align-items: center;
  91. .commodity-info{
  92. width: 100%;
  93. display: flex;
  94. align-items: center;
  95. .commodity-img{
  96. width: 182rpx;
  97. height: 182rpx;
  98. margin-right: 10rpx;
  99. border-radius: 10rpx;
  100. }
  101. .commodity-cont{
  102. width: calc(100% - 182rpx - 10rpx);
  103. .name{
  104. display: flex;
  105. align-items: center;
  106. justify-content: space-between;
  107. font-size: 28rpx;
  108. font-weight: 500;
  109. }
  110. .text{
  111. margin-top: 14rpx;
  112. font-size: 24rpx;
  113. color: #AFAFAF;
  114. }
  115. .total{
  116. color: #FF7700;
  117. font-size: 24rpx;
  118. .sum{
  119. font-weight: 500;
  120. font-size: 38rpx;
  121. margin-left: 2rpx;
  122. }
  123. }
  124. }
  125. }
  126. }
  127. }
  128. }
  129. /* #ifdef H5 */
  130. .shop-list{
  131. height: calc(100vh - 100rpx - 120rpx - 188rpx);
  132. }
  133. /* #endif */
  134. .footer {
  135. position: absolute;
  136. bottom: 0;
  137. left: 0;
  138. width: 100%;
  139. box-sizing: border-box;
  140. background: #fff;
  141. padding: 20rpx 24rpx;
  142. border-top: 2rpx solid rgba(0, 0, 0, 0.26);
  143. display: flex;
  144. align-items: center;
  145. justify-content: space-between;
  146. .footer-right {
  147. display: flex;
  148. align-items: center;
  149. .total {
  150. font-size: 24rpx;
  151. .unit {
  152. color: #FF7700;
  153. font-size: 26rpx;
  154. }
  155. .total-num {
  156. font-size: 40rpx;
  157. color: #FF7700;
  158. font-weight: 500;
  159. }
  160. }
  161. .buttom {
  162. padding: 16rpx 78rpx;
  163. border-radius: 8rpx;
  164. background: #FFD95E;
  165. margin-left: 22rpx;
  166. }
  167. }
  168. }
  169. }
  170. </style>