shopping.vue 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  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. .manage{
  77. margin-left: 20rpx;
  78. }
  79. }
  80. .shop-list {
  81. height: calc(100vh - 100rpx - 120rpx);
  82. overflow-y: auto;
  83. overflow: auto;
  84. .shop-item {
  85. background: #fff;
  86. margin-top: 20rpx;
  87. padding: 20rpx 24rpx;
  88. .commodity-item {
  89. width: 100%;
  90. padding: 20rpx;
  91. box-sizing: border-box;
  92. display: flex;
  93. align-items: center;
  94. .commodity-info{
  95. width: 100%;
  96. display: flex;
  97. align-items: center;
  98. .commodity-img{
  99. width: 182rpx;
  100. height: 182rpx;
  101. margin-right: 10rpx;
  102. border-radius: 10rpx;
  103. }
  104. .commodity-cont{
  105. width: calc(100% - 182rpx - 10rpx);
  106. .name{
  107. display: flex;
  108. align-items: center;
  109. justify-content: space-between;
  110. font-size: 28rpx;
  111. font-weight: 500;
  112. }
  113. .text{
  114. margin-top: 14rpx;
  115. font-size: 24rpx;
  116. color: #AFAFAF;
  117. }
  118. .total{
  119. color: #FF7700;
  120. font-size: 24rpx;
  121. .sum{
  122. font-weight: 500;
  123. font-size: 38rpx;
  124. margin-left: 2rpx;
  125. }
  126. }
  127. }
  128. }
  129. }
  130. }
  131. }
  132. /* #ifdef H5 */
  133. .shop-list{
  134. height: calc(100vh - 100rpx - 120rpx - 188rpx);
  135. }
  136. /* #endif */
  137. .footer {
  138. position: absolute;
  139. bottom: 0;
  140. left: 0;
  141. width: 100%;
  142. box-sizing: border-box;
  143. background: #fff;
  144. padding: 20rpx 24rpx;
  145. border-top: 2rpx solid rgba(0, 0, 0, 0.26);
  146. display: flex;
  147. align-items: center;
  148. justify-content: space-between;
  149. .footer-right {
  150. display: flex;
  151. align-items: center;
  152. .total {
  153. font-size: 24rpx;
  154. .unit {
  155. color: #FF7700;
  156. font-size: 26rpx;
  157. }
  158. .total-num {
  159. font-size: 40rpx;
  160. color: #FF7700;
  161. font-weight: 500;
  162. }
  163. }
  164. .buttom {
  165. padding: 16rpx 78rpx;
  166. border-radius: 8rpx;
  167. background: #FFD95E;
  168. margin-left: 22rpx;
  169. }
  170. }
  171. }
  172. }
  173. </style>