replace-take.vue 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362
  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" @click="selectFun()">
  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="openBuyCrad()">
  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. <uni-popup ref="popupBuy" type="bottom" style="z-index: 200;">
  77. <view class="buy-card flex-index-css">
  78. <view class="buy-card-top box-border-box plr-32 flex-justify-space align-items-center">
  79. <view class="">
  80. <span class="fs-32 fc-3 mr-12">已选商品</span>
  81. <span class="fs-32 fc-9">(打包费<span class="fs-32 fc-FB3D03">8元</span>)</span>
  82. </view>
  83. <view class="fs-28 fw-400 fc-9 align-items-center">
  84. <view class="">
  85. <uni-icons type="trash" size="18" color="#999"></uni-icons>
  86. </view>
  87. <view class="fs-28 fw-400 fc-9">清空</view>
  88. </view>
  89. </view>
  90. <view class="scroll-view-css box-border-box p-32">
  91. <view class="buy-card-item display-flex" v-for="(item,i) in 5" :key="i">
  92. <image src="@/static/img/my/bg.png" mode="scaleToFill"></image>
  93. <view class="flex-1">
  94. <view class="w-514 text-overflow-ellipsis-one fs-34 fw-600 mb-12">[畅销款]奥尔1良烤肉牛油拌饭拌饭[畅销款]奥尔1良烤肉牛油拌饭拌饭</view>
  95. <view class="w-514 text-overflow-ellipsis-one fs-24 fw-400 fc-9 mb-18">不辣,加辣</view>
  96. <view class="flex-justify-space">
  97. <view class="">
  98. <span class="fs-24 fc-FB3D03 fw-400">¥</span>
  99. <span class="fs-40 fc-FB3D03 fw-b">3.99</span>
  100. </view>
  101. <view class="display-flex align-items-center">
  102. <view class="right-only-right-red fw-500 text-align-center fs-36 fc-f">-</view>
  103. <view class="right-only-right-2 text-align-center fs-28 fw-400">1</view>
  104. <view class="right-only-right-add fw-500 text-align-center fs-36 fc-f">+</view>
  105. </view>
  106. </view>
  107. </view>
  108. </view>
  109. </view>
  110. <view class="shop-buttom-money box-border-box" @click="createOrder()">
  111. <view class="shop-buttom-money-1 flex-justify-space align-items-center">
  112. <image src="@/static/img/takeout/buy-icon.png" mode="scaleToFill"></image>
  113. <view class="shop-buttom-num fs-24 fc-f text-align-center">3</view>
  114. <view class="">
  115. <view class="">
  116. <span class="fw-600 fs-24 fc-f">¥</span>
  117. <span class="fw-600 fs-44 fc-f">19.26</span>
  118. </view>
  119. </view>
  120. <!-- <view class="fs-32 fw-600 fc-f mr-30">20元起送</view> -->
  121. <view class="shop-buttom-money-2 text-align-center fs-32 fc-f fw-600">去结算</view>
  122. </view>
  123. </view>
  124. </view>
  125. </uni-popup>
  126. </view>
  127. </template>
  128. <script>
  129. import tools from "@/service/tools";
  130. export default {
  131. data(){
  132. return{
  133. addressData:{
  134. id:'',
  135. name:'',
  136. },
  137. }
  138. },
  139. onLoad(e) {
  140. if(e.id){
  141. this.addressData.id = Number(e.id);
  142. }
  143. },
  144. methods:{
  145. toBack(){
  146. tools.leftClick()
  147. },
  148. selectFun(){
  149. uni.navigateTo({
  150. url:'pages-takeout/replace-mod/select-site?id=' + this.addressData.id
  151. })
  152. },
  153. openBuyCrad(){
  154. this.$refs.popupBuy.open()
  155. },
  156. createOrder(){
  157. },
  158. }
  159. }
  160. </script>
  161. <style scoped lang="scss">
  162. .replace-take-box{
  163. .right-only-right-red{
  164. width: 44rpx;
  165. height: 44rpx;
  166. line-height: 40rpx;
  167. border-radius: 12rpx;
  168. border: 1rpx solid #41ABF5;
  169. color: #41ABF5;
  170. }
  171. .right-only-right-add{
  172. width: 44rpx;
  173. height: 44rpx;
  174. line-height: 40rpx;
  175. background: linear-gradient( 117deg, #57CAFF 0%, #41ABF5 100%);
  176. border-radius: 12rpx;
  177. }
  178. .right-only-right-2{
  179. min-width: 50rpx;
  180. }
  181. .w-514{
  182. width: 514rpx;
  183. }
  184. .buy-card{
  185. z-index: 200;
  186. height: 828rpx;
  187. background-color: #fff;
  188. border-radius: 24rpx 24rpx 0rpx 0rpx;
  189. .buy-card-top{
  190. width: 100%;
  191. height: 92rpx;
  192. background: #FCF5DB;
  193. border-radius: 24rpx 24rpx 0rpx 0rpx;
  194. }
  195. .buy-card-item{
  196. width: 100%;
  197. height: 176rpx;
  198. margin-bottom: 32rpx;
  199. image{
  200. width: 152rpx;
  201. height: 152rpx;
  202. border-radius: 12rpx;
  203. margin-right: 20rpx;
  204. }
  205. }
  206. }
  207. .h-120{
  208. height: 120rpx;
  209. }
  210. .h-60{
  211. height: 60rpx;
  212. }
  213. .w-474{
  214. width: 474rpx;
  215. }
  216. .w-390{
  217. width: 390rpx;
  218. margin-left: 38rpx;
  219. }
  220. .nav-box{
  221. height: 490rpx;
  222. position: relative;
  223. .bg-img{
  224. position: absolute;
  225. top: 0;
  226. left: 0;
  227. width: 100%;
  228. height: 490rpx;
  229. // z-index: -1;
  230. }
  231. .bottom-124{
  232. bottom: -124rpx !important;
  233. }
  234. .address-box{
  235. z-index: 100;
  236. position: absolute;
  237. bottom: -64rpx;
  238. left: 24rpx;
  239. box-sizing: border-box;
  240. width: 702rpx;
  241. min-height: 136rpx;
  242. background: linear-gradient( 182deg, #F1F9FF 0%, #FFFFFF 100%);
  243. box-shadow: 0rpx 0rpx 40rpx 0rpx rgba(172,210,235,0.19);
  244. border-radius: 20rpx;
  245. border-image: linear-gradient(167deg, rgba(255, 255, 255, 1), rgba(208, 236, 255, 0.61)) 2 2;
  246. .address-1{
  247. width: 100%;
  248. .qu-image{
  249. width: 40rpx;
  250. height: 49rpx;
  251. margin: 10rpx 10rpx 0 0;
  252. }
  253. }
  254. .address-2{
  255. box-sizing: border-box;
  256. padding:32rpx 0;
  257. }
  258. .address-img{
  259. width: 100rpx;
  260. height: 100rpx;
  261. border-radius: 8rpx;
  262. }
  263. .address-box-right{
  264. width: 32rpx;
  265. height: 32rpx;
  266. }
  267. }
  268. }
  269. .shop-buttom-money{
  270. width: 100%;
  271. height: 140rpx;
  272. background: rgba(255,255,255,0.8);
  273. padding: 20rpx 24rpx;
  274. .shop-buttom-money-1{
  275. width: 100%;
  276. height: 100%;
  277. background: #333333;
  278. border-radius: 200rpx;
  279. box-sizing: border-box;
  280. padding-left: 136rpx;
  281. // padding-right: 32rpx;
  282. position: relative;
  283. image{
  284. position: absolute;
  285. bottom: 0;
  286. left: 8rpx;
  287. width: 128rpx;
  288. height: 128rpx;
  289. }
  290. .shop-buttom-num{
  291. width: 32rpx;
  292. height: 32rpx;
  293. line-height: 32rpx;
  294. background: #FB3D03;
  295. border-radius: 50%;
  296. position: absolute;
  297. top: 36rpx;
  298. left: 82rpx;
  299. }
  300. .shop-buttom-money-2{
  301. width: 200rpx;
  302. height: 100rpx;
  303. line-height: 100rpx;
  304. background: #41ABF5;
  305. border-radius: 0rpx 200rpx 200rpx 0rpx;
  306. }
  307. }
  308. }
  309. .list-box{
  310. .list-box-b{
  311. border-bottom: 1rpx solid #f9f9f9;
  312. }
  313. .list-item{
  314. width: 100%;
  315. min-height: 200rpx;
  316. margin-bottom: 50rpx;
  317. image{
  318. width: 200rpx;
  319. height: 200rpx;
  320. border-radius: 20rpx;
  321. margin-right: 20rpx;
  322. }
  323. }
  324. .input-num{
  325. width: 100%;
  326. height: 92rpx;
  327. box-sizing: border-box;
  328. padding: 0 24rpx;
  329. background: #F6F6F6;
  330. border-radius: 20rpx;
  331. font-size: 32rpx;
  332. }
  333. .input-p{
  334. font-weight: 400;
  335. font-size: 28rpx;
  336. color: #FB3D03;
  337. }
  338. }
  339. }
  340. </style>