replace-take.vue 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. <template>
  2. <view class="replace-take-box iPhone-bottom flex-common-css box-border-box bgc-f">
  3. <view class="nav-box">
  4. <image class="bg-img" src="@/static/img/takeout/dq-bg.png" mode="scaleToFill"></image>
  5. <Nav :leftShow='false' :customNav='true' bgckgroundBox='transparent'>
  6. <template>
  7. <view slot="custom" class="align-items-center">
  8. <uni-icons type="left" size="20" @click="toBack()"></uni-icons>
  9. <view class="w-390 text-overflow-ellipsis-one fs-36 fw-400">代重庆邮电大学邮电大代重庆邮电大学邮电大</view>
  10. </view>
  11. </template>
  12. </Nav>
  13. <view :class="addressData.id?'bottom-124':''" class="address-box align-items-center box-border-box plr-24">
  14. <view v-if="!addressData.id" class="address-1 flex-justify-space align-items-center">
  15. <view class="align-items-center">
  16. <image class="qu-image" src="@/static/img/takeout/qu-icon.png" mode=""></image>
  17. <view class="fw-600 fs-40">请选择站点</view>
  18. </view>
  19. <image class="address-box-right" src="@/static/img/toRight.png" mode=""></image>
  20. </view>
  21. <view v-else class="address-2 flex-justify-space align-items-center">
  22. <view class="display-flex">
  23. <image class="address-img mr-20" src="@/static/img/my/bg.png" mode="scaleToFill"></image>
  24. <view class="">
  25. <view class="w-474 fs-40 fw-600 mb-4">菜鸟驿站</view>
  26. <view class="w-474 fw-400 fs-26 fc-9">兴科大道252号兴科大道252号兴科大道252号</view>
  27. </view>
  28. </view>
  29. <image class="address-box-right" src="@/static/img/toRight.png" mode=""></image>
  30. </view>
  31. </view>
  32. </view>
  33. <view class="scroll-view-css list-box box-border-box plr-24">
  34. <view class="mb-32" :class="addressData.id?'h-120':'h-60'"></view>
  35. <view class="list-box-b mb-48">
  36. <view class="fs-36 fw-600 mb-22">快递类型</view>
  37. <view class="list-item flex-justify-space" v-for="(item,i) in 6" :key="i">
  38. <image src="@/static/img/my/bg.png" mode="scaleToFill"></image>
  39. <view class="flex-1 ">
  40. <view class="fs-32 fw-600 mb-4">小件(轻薄衣物,小1111111物品11) 1小件(轻薄衣物,小1111111物品11) 1</view>
  41. <view class="fs-24 fw-400 mb-4 fc-9">规格规格规格规格规格</view>
  42. <view class="fs-24 fw-400 mb-4 fc-9">销量2801</view>
  43. <view class="flex-justify-space">
  44. <view class="">
  45. <span class="fw-4 fc-FB3D03 fs-24">¥</span>
  46. <span class="fw-b fc-FB3D03 fs-40">3.9</span>
  47. <span class="fw-400 fc-9 fs-24">/份</span>
  48. </view>
  49. <view class="display-flex align-items-center">
  50. <view class="right-only-right-red fw-500 text-align-center fs-36 fc-f">-</view>
  51. <view class="right-only-right-2 text-align-center fs-28 fw-400">1</view>
  52. <view class="right-only-right-add fw-500 text-align-center fs-36 fc-f">+</view>
  53. </view>
  54. </view>
  55. </view>
  56. </view>
  57. </view>
  58. <view class="">
  59. <view class="fs-36 fw-600 mb-22">取件码(6)</view>
  60. <view class="mb-20" v-for="(item,i) in 6" :key="i">
  61. <input class="input-num" type="text" placeholder="未输入取件码" placeholder-class="input-p">
  62. </view>
  63. </view>
  64. </view>
  65. <view class="shop-buttom-money box-border-box" @click="createOrder()">
  66. <view class="shop-buttom-money-1 flex-justify-space align-items-center">
  67. <image src="@/static/img/takeout/buy-icon.png" mode="scaleToFill"></image>
  68. <view class="shop-buttom-num fs-24 fc-f text-align-center">3</view>
  69. <view class="">
  70. <span class="fw-600 fs-24 fc-f">¥</span>
  71. <span class="fw-600 fs-44 fc-f">19.26</span>
  72. </view>
  73. <view class="shop-buttom-money-2 text-align-center fs-32 fc-f fw-600">去结算</view>
  74. </view>
  75. </view>
  76. </view>
  77. </template>
  78. <script>
  79. import tools from "@/service/tools";
  80. export default {
  81. data(){
  82. return{
  83. addressData:{
  84. id:'',
  85. name:'',
  86. },
  87. }
  88. },
  89. onShow() {
  90. },
  91. methods:{
  92. toBack(){
  93. tools.leftClick()
  94. },
  95. createOrder(){
  96. },
  97. }
  98. }
  99. </script>
  100. <style scoped lang="scss">
  101. .replace-take-box{
  102. .h-120{
  103. height: 120rpx;
  104. }
  105. .h-60{
  106. height: 60rpx;
  107. }
  108. .w-474{
  109. width: 474rpx;
  110. }
  111. .w-390{
  112. width: 390rpx;
  113. margin-left: 38rpx;
  114. }
  115. .nav-box{
  116. height: 490rpx;
  117. position: relative;
  118. .bg-img{
  119. position: absolute;
  120. top: 0;
  121. left: 0;
  122. width: 100%;
  123. height: 490rpx;
  124. // z-index: -1;
  125. }
  126. .bottom-124{
  127. bottom: -124rpx !important;
  128. }
  129. .address-box{
  130. z-index: 100;
  131. position: absolute;
  132. bottom: -64rpx;
  133. left: 24rpx;
  134. box-sizing: border-box;
  135. width: 702rpx;
  136. min-height: 136rpx;
  137. background: linear-gradient( 182deg, #F1F9FF 0%, #FFFFFF 100%);
  138. box-shadow: 0rpx 0rpx 40rpx 0rpx rgba(172,210,235,0.19);
  139. border-radius: 20rpx;
  140. border-image: linear-gradient(167deg, rgba(255, 255, 255, 1), rgba(208, 236, 255, 0.61)) 2 2;
  141. .address-1{
  142. width: 100%;
  143. .qu-image{
  144. width: 40rpx;
  145. height: 49rpx;
  146. margin: 10rpx 10rpx 0 0;
  147. }
  148. }
  149. .address-2{
  150. box-sizing: border-box;
  151. padding:32rpx 0;
  152. }
  153. .address-img{
  154. width: 100rpx;
  155. height: 100rpx;
  156. border-radius: 8rpx;
  157. }
  158. .address-box-right{
  159. width: 32rpx;
  160. height: 32rpx;
  161. }
  162. }
  163. }
  164. .shop-buttom-money{
  165. width: 100%;
  166. height: 140rpx;
  167. background: rgba(255,255,255,0.8);
  168. padding: 20rpx 24rpx;
  169. .shop-buttom-money-1{
  170. width: 100%;
  171. height: 100%;
  172. background: #333333;
  173. border-radius: 200rpx;
  174. box-sizing: border-box;
  175. padding-left: 136rpx;
  176. // padding-right: 32rpx;
  177. position: relative;
  178. image{
  179. position: absolute;
  180. bottom: 0;
  181. left: 8rpx;
  182. width: 128rpx;
  183. height: 128rpx;
  184. }
  185. .shop-buttom-num{
  186. width: 32rpx;
  187. height: 32rpx;
  188. line-height: 32rpx;
  189. background: #FB3D03;
  190. border-radius: 50%;
  191. position: absolute;
  192. top: 36rpx;
  193. left: 82rpx;
  194. }
  195. .shop-buttom-money-2{
  196. width: 200rpx;
  197. height: 100rpx;
  198. line-height: 100rpx;
  199. background: #41ABF5;
  200. border-radius: 0rpx 200rpx 200rpx 0rpx;
  201. }
  202. }
  203. }
  204. .list-box{
  205. .list-box-b{
  206. border-bottom: 1rpx solid #f9f9f9;
  207. }
  208. .list-item{
  209. width: 100%;
  210. min-height: 200rpx;
  211. margin-bottom: 50rpx;
  212. image{
  213. width: 200rpx;
  214. height: 200rpx;
  215. border-radius: 20rpx;
  216. margin-right: 20rpx;
  217. }
  218. }
  219. .right-only-right-red{
  220. width: 44rpx;
  221. height: 44rpx;
  222. line-height: 40rpx;
  223. border-radius: 12rpx;
  224. border: 1rpx solid #41ABF5;
  225. color: #41ABF5;
  226. }
  227. .right-only-right-add{
  228. width: 44rpx;
  229. height: 44rpx;
  230. line-height: 40rpx;
  231. background: linear-gradient( 117deg, #57CAFF 0%, #41ABF5 100%);
  232. border-radius: 12rpx;
  233. }
  234. .right-only-right-2{
  235. min-width: 50rpx;
  236. }
  237. .input-num{
  238. width: 100%;
  239. height: 92rpx;
  240. box-sizing: border-box;
  241. padding: 0 24rpx;
  242. background: #F6F6F6;
  243. border-radius: 20rpx;
  244. font-size: 32rpx;
  245. }
  246. .input-p{
  247. font-weight: 400;
  248. font-size: 28rpx;
  249. color: #FB3D03;
  250. }
  251. }
  252. }
  253. </style>