金诚优选前端代码
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.

213 lines
5.4 KiB

  1. <template>
  2. <view>
  3. <lf-nav title="确认订单" :showIcon="true"></lf-nav>
  4. <view class="card head">
  5. <view class="lf-font-32 lf-color-222">选择收货方式</view>
  6. <view class="capsule">
  7. <view class="item" :class="{'capsule-active': mode == 1}" @click="mode = 1">邮寄</view>
  8. <view class="item" :class="{'capsule-active': mode == 2}" @click="mode = 2">自提</view>
  9. </view>
  10. </view>
  11. <view class="card address" v-if="mode == 1">
  12. <view>
  13. <text class="lf-font-28 lf-color-primary lf-m-r-10">更换收获地址</text>
  14. <text class="lf-iconfont icon-xiangyou lf-font-24 lf-color-777"></text>
  15. </view>
  16. <view class="lf-m-t-20">
  17. <text class="lf-font-28 lf-color-222 lf-font-bold">王小二</text>
  18. <text class="lf-font-28 lf-color-777 lf-m-l-20">18284385380</text>
  19. </view>
  20. <view class="lf-font-28 lf-color-333 lf-m-t-10">
  21. <text>广西壮族自治区-南宁市-青秀区-民族大道民族大道民族大道民族大道民族大道民族大道15号</text>
  22. </view>
  23. </view>
  24. <view class="card goods">
  25. <view>
  26. <text class="lf-iconfont icon-Group- lf-font-30"></text>
  27. <text class="shop-name">精品超市</text>
  28. <text class="lf-iconfont icon-xiangyou lf-font-24"></text>
  29. </view>
  30. <view class="lf-flex lf-m-t-20">
  31. <image class="goods-img"></image>
  32. <view class="info">
  33. <view class="lf-font-26 lf-color-333 lf-line-1">爱他美较大婴儿配方奶粉较大配方奶粉较2段 </view>
  34. <view class="lf-font-24 lf-color-777">500g</view>
  35. <view class="lf-row-between" style="line-height: 1;">
  36. <text class="price">¥385</text>
  37. <text class="lf-font-28 lf-color-777">x 2</text>
  38. </view>
  39. </view>
  40. </view>
  41. <view class="tips">支付成功后15天内柜台提货</view>
  42. <view class="lf-flex lf-m-t-20">
  43. <view class="lf-font-28 lf-color-777">留言</view>
  44. <input v-model="value" class="input" placeholder="有什么要求,请备注留言" />
  45. </view>
  46. </view>
  47. <view class="card lf-m-t-20">
  48. <view class="lf-row-between">
  49. <view class="lf-font-28 lf-color-777">优惠券</view>
  50. <view>
  51. <text class="lf-font-26 lf-color-999 lf-m-r-10">暂无优惠券</text>
  52. <text class="lf-iconfont icon-xiangyou lf-font-24"></text>
  53. </view>
  54. </view>
  55. <view class="lf-row-between lf-m-t-20">
  56. <view class="lf-font-28 lf-color-777">商品金额</view>
  57. <view class="lf-font-26 lf-color-222">¥385</view>
  58. </view>
  59. <view class="lf-row-between lf-m-t-20" v-if="mode == 1">
  60. <view class="lf-font-28 lf-color-777">运费</view>
  61. <view class="lf-font-26" style="color: #F63434;">¥0</view>
  62. </view>
  63. <view class="lf-row-between lf-m-t-20">
  64. <view class="lf-font-28 lf-color-777">优惠</view>
  65. <view class="lf-font-26" style="color: #F63434;">¥0</view>
  66. </view>
  67. </view>
  68. <view class="spread-out"></view>
  69. <view class="fixed-bottom">
  70. <view class="fixed-content">
  71. <view class="lf-font-24 lf-color-777">共1件</view>
  72. <view class="lf-flex">
  73. <view class="lf-font-32 lf-color-primary" style="max-width: 400rpx;">合计 ¥385</view>
  74. <view class="confirm-btn" hover-class="lf-opacity">提交订单</view>
  75. </view>
  76. </view>
  77. </view>
  78. </view>
  79. </template>
  80. <script>
  81. export default {
  82. data(){
  83. return {
  84. mode: 1, // 1邮寄,2自提
  85. value: '' // 备注
  86. }
  87. },
  88. onLoad(){
  89. },
  90. methods: {
  91. }
  92. }
  93. </script>
  94. <style>
  95. page{
  96. background-color: #F8F8F8;
  97. }
  98. </style>
  99. <style lang="scss" scoped="scoped">
  100. .card{
  101. height: max-content;
  102. width: 750rpx;
  103. padding: 30rpx 32rpx;
  104. background-color: #FFFFFF;
  105. }
  106. .head{
  107. .capsule{
  108. width: 614rpx;
  109. height: 100rpx;
  110. margin: 30rpx auto 0;
  111. border-radius: 100px;
  112. border: 2rpx solid #15716E;
  113. display: flex;
  114. overflow: hidden;
  115. .item{
  116. width: 50%;
  117. display: flex;
  118. justify-content: center;
  119. align-items: center;
  120. font-size: 32rpx;
  121. font-weight: bold;
  122. color: #15716E;
  123. }
  124. .capsule-active{
  125. background-color: #15716E;
  126. color: #FFFFFF;
  127. }
  128. }
  129. }
  130. .address{
  131. margin-top: 20rpx;
  132. }
  133. .goods{
  134. margin-top: 20rpx;
  135. .shop-name{
  136. font-size: 28rpx;
  137. color: #222222;
  138. font-weight: bold;
  139. margin: 0 15rpx;
  140. }
  141. .goods-img{
  142. width: 130rpx;
  143. height: 130rpx;
  144. border-radius: 4rpx;
  145. margin-right: 15rpx;
  146. background-color: #EEEEEE;
  147. }
  148. .info{
  149. width: 540rpx;
  150. height: 130rpx;
  151. display: flex;
  152. flex-direction: column;
  153. justify-content: space-around;
  154. .price{
  155. font-size: 32rpx;
  156. color: #F63434;
  157. font-weight: bold;
  158. }
  159. }
  160. .tips{
  161. font-size: 22rpx;
  162. margin-top: 30rpx;
  163. color: #15716E;
  164. }
  165. .input{
  166. margin-left: 30rpx;
  167. font-size: 28rpx;
  168. width: 596rpx;
  169. }
  170. }
  171. .spread-out{
  172. height: 138rpx;
  173. padding-bottom: constant(safe-area-inset-bottom);
  174. padding-bottom: env(safe-area-inset-bottom);
  175. box-sizing: content-box;
  176. }
  177. .fixed-bottom{
  178. position: fixed;
  179. left: 0;
  180. bottom: 0;
  181. width: 750rpx;
  182. height: max-content;
  183. background-color: #FFFFFF;
  184. border-top: 1rpx solid #e5e5e5;
  185. padding-bottom: constant(safe-area-inset-bottom);
  186. padding-bottom: env(safe-area-inset-bottom);
  187. .fixed-content{
  188. width: 100%;
  189. height: 118rpx;
  190. padding: 0 32rpx;
  191. display: flex;
  192. align-items: center;
  193. justify-content: space-between;
  194. .confirm-btn{
  195. width: 167rpx;
  196. height: 80rpx;
  197. background: #15716E;
  198. border-radius: 40rpx;
  199. color: #FFFFFF;
  200. display: flex;
  201. justify-content: center;
  202. align-items: center;
  203. margin-left: 30rpx;
  204. font-size: 26rpx;
  205. }
  206. }
  207. }
  208. </style>