shopping.vue 4.3 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="从化荔博园店铺" labelColor="#000" labelSize="14"></up-checkbox>
  11. <up-icon class="icon" name="arrow-right" color="rgba(137, 137, 137, 0.69)" size="12"></up-icon>
  12. </up-checkbox-group>
  13. <up-swipe-action>
  14. <up-swipe-action-item v-for="(ele,idx) in 3" :key="idx" :options="options1">
  15. <view class="commodity-item">
  16. <up-checkbox-group>
  17. <up-checkbox v-model="commodityChecked" shape="circle"></up-checkbox>
  18. </up-checkbox-group>
  19. <view class="commodity-info">
  20. <image class="commodity-img" src="https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png"></image>
  21. <view class="commodity-cont">
  22. <view class="name">
  23. <text>海南妃子笑荔枝新鲜采摘</text>
  24. <text>x1</text>
  25. </view>
  26. <up-text size="12" color="#717070" text="3斤装规格"></up-text>
  27. <up-text size="12" color="#AFAFAF" text="坏单包退 包邮"></up-text>
  28. <view class="total">
  29. <text class="unit">¥</text>
  30. <text class="sum">108</text>
  31. </view>
  32. </view>
  33. </view>
  34. </view>
  35. </up-swipe-action-item>
  36. </up-swipe-action>
  37. </view>
  38. </view>
  39. <view class="footer">
  40. <up-checkbox-group>
  41. <up-checkbox v-model="checked" shape="circle" label="全选"></up-checkbox>
  42. </up-checkbox-group>
  43. <view class="footer-right">
  44. <view class="total">
  45. 合计:<text class="unit">¥</text><text class="total-num">0</text>
  46. </view>
  47. <view class="buttom">结算</view>
  48. </view>
  49. </view>
  50. </view>
  51. </template>
  52. <script setup>
  53. import {
  54. ref,
  55. reactive
  56. } from "vue"
  57. const options1 = reactive([{
  58. text: '删除',
  59. style: {
  60. backgroundColor: '#f56c6c'
  61. }
  62. }]);
  63. const keyword = ref("")
  64. const shopChecked = ref(false)
  65. const commodityChecked = ref(false)
  66. const checked = ref(false)
  67. </script>
  68. <style lang="scss" scoped>
  69. .base-container {
  70. padding: 0;
  71. .search-wrap {
  72. background: #fff;
  73. display: flex;
  74. align-items: center;
  75. padding: 16rpx 24rpx;
  76. box-sizing: border-box;
  77. .manage{
  78. margin-left: 20rpx;
  79. }
  80. }
  81. .shop-list {
  82. height: calc(100vh - 100rpx - 120rpx);
  83. overflow-y: auto;
  84. overflow: auto;
  85. .shop-item {
  86. background: #fff;
  87. margin-top: 20rpx;
  88. padding: 20rpx 24rpx;
  89. .commodity-item {
  90. width: 100%;
  91. padding: 20rpx 0 20rpx 10rpx;
  92. box-sizing: border-box;
  93. display: flex;
  94. align-items: center;
  95. .commodity-info{
  96. width: 100%;
  97. display: flex;
  98. align-items: center;
  99. .commodity-img{
  100. width: 182rpx;
  101. height: 182rpx;
  102. margin-right: 10rpx;
  103. border-radius: 10rpx;
  104. }
  105. .commodity-cont{
  106. width: calc(100% - 182rpx - 10rpx);
  107. .name{
  108. display: flex;
  109. align-items: center;
  110. justify-content: space-between;
  111. font-size: 28rpx;
  112. font-weight: 500;
  113. }
  114. .total{
  115. color: #FF7700;
  116. font-size: 24rpx;
  117. margin-top: 14rpx;
  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>