酒店桌布为微信小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

206 lines
3.7 KiB

9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
  1. <template>
  2. <view class="page">
  3. <navbar/>
  4. <view class="user">
  5. <uv-swipe-action>
  6. <view
  7. v-for="(item, index) in 3"
  8. :key="index">
  9. <view style="margin-top: 20rpx;"></view>
  10. <uv-swipe-action-item
  11. :options="options">
  12. <view class="item">
  13. <image
  14. class="image"
  15. src="https://img95.699pic.com/photo/50058/1378.jpg_wh860.jpg"
  16. mode=""></image>
  17. <view class="info">
  18. <view class="title">
  19. <view class="">
  20. 桌布租赁
  21. </view>
  22. <view class="">
  23. <uv-number-box v-model="value" @change="valChange"></uv-number-box>
  24. </view>
  25. </view>
  26. <view class="unit">
  27. 规格120*40*75桌子尺寸
  28. <uv-icon name="arrow-down"></uv-icon>
  29. </view>
  30. <view class="price">
  31. <text>299</text>
  32. </view>
  33. </view>
  34. </view>
  35. </uv-swipe-action-item>
  36. </view>
  37. </uv-swipe-action>
  38. <view class="action">
  39. <view class="icon">
  40. <image src="/static/image/cart/1.png" mode=""></image>
  41. <view class="num">
  42. 4
  43. </view>
  44. </view>
  45. <view class="price">
  46. <view class="count">
  47. 合计
  48. <view class="">
  49. <text>218.00</text>
  50. </view>
  51. </view>
  52. <view class="text">
  53. 共4件已享受更低优惠
  54. </view>
  55. </view>
  56. <view class="btn">
  57. 去结算
  58. </view>
  59. </view>
  60. </view>
  61. <tabber select="3" />
  62. </view>
  63. </template>
  64. <script>
  65. import tabber from '@/components/base/tabbar.vue'
  66. export default {
  67. components: {
  68. tabber,
  69. },
  70. data() {
  71. return {
  72. value : 0,
  73. options: [
  74. {
  75. text: '删除',
  76. style: {
  77. backgroundColor: '#f56c6c'
  78. }
  79. },
  80. ],
  81. }
  82. },
  83. computed: {},
  84. methods: {
  85. valChange(){
  86. },
  87. }
  88. }
  89. </script>
  90. <style scoped lang="scss">
  91. .page {
  92. padding-bottom: 200rpx;
  93. }
  94. .user {
  95. .item{
  96. background-color: #fff;
  97. display: flex;
  98. padding: 30rpx;
  99. .image{
  100. width: 200rpx;
  101. height: 200rpx;
  102. border-radius: 20rpx;
  103. }
  104. .info{
  105. flex: 1;
  106. .title{
  107. display: flex;
  108. padding: 10rpx 20rpx;
  109. justify-content: space-between;
  110. }
  111. .unit{
  112. font-size: 24rpx;
  113. padding: 10rpx 20rpx;
  114. color: #717171;
  115. display: flex;
  116. align-items: center;
  117. }
  118. .price{
  119. color: $uni-color;
  120. font-size: 28rpx;
  121. padding: 10rpx 20rpx;
  122. text{
  123. font-size: 36rpx;
  124. font-weight: 900;
  125. }
  126. }
  127. }
  128. }
  129. .action{
  130. width: 700rpx;
  131. position: fixed;
  132. bottom: 220rpx;
  133. left: 25rpx;
  134. background-color: #fff;
  135. height: 100rpx;
  136. border-radius: 50rpx;
  137. box-shadow: 0 0 6rpx 6rpx #00000010;
  138. display: flex;
  139. justify-content: center;
  140. align-items: center;
  141. overflow: hidden;
  142. .icon{
  143. position: relative;
  144. width: 80rpx;
  145. height: 80rpx;
  146. margin: 0 20rpx;
  147. image{
  148. width: 80rpx;
  149. height: 80rpx;
  150. }
  151. .num{
  152. position: absolute;
  153. right: 10rpx;
  154. top: 0rpx;
  155. background-color: $uni-color;
  156. color: #fff;
  157. font-size: 18rpx;
  158. border-radius: 50%;
  159. height: 30rpx;
  160. width: 30rpx;
  161. display: flex;
  162. justify-content: center;
  163. align-items: center;
  164. }
  165. }
  166. .price{
  167. .count{
  168. display: flex;
  169. font-size: 26rpx;
  170. align-items: center;
  171. view{
  172. color: $uni-color;
  173. margin-left: 10rpx;
  174. text{
  175. font-size: 32rpx;
  176. font-weight: 900;
  177. }
  178. }
  179. }
  180. .text{
  181. font-size: 20rpx;
  182. color: #717171;
  183. }
  184. }
  185. .btn{
  186. margin-left: auto;
  187. background-color: $uni-color;
  188. height: 100%;
  189. padding: 0 50rpx;
  190. color: #fff;
  191. display: flex;
  192. justify-content: center;
  193. align-items: center;
  194. }
  195. }
  196. }
  197. </style>