confirmOrder.vue 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325
  1. <template>
  2. <view class="container">
  3. <!-- 地址 -->
  4. <view class="address-block">
  5. <view class="tips">
  6. <image src="https://mall.zhaijieshi.cc/file/jzmall-dy/icon-map.png" mode="aspectFit"></image>
  7. <view>您当前所在地址</view>
  8. </view>
  9. <view class="detail">上海市浦东新区祖冲之路1505弄100号3幢鲸致生活</view>
  10. </view>
  11. <!-- 商品 -->
  12. <view class="product-block">
  13. <view class="title">
  14. <text class="jzsh">鲸致生活</text>
  15. <text>家政·保洁·家电蒸洗·擦窗·开荒·保姆·收纳·搬家·月嫂</text>
  16. </view>
  17. <view class="product-detail">
  18. <view class="profuct-info">
  19. <image mode="aspectFit" class="product-img" src="https://mall.zhaijieshi.cc/file/jzmall-dy/product-default.png"></image>
  20. <view class="info-right">
  21. <view class="product-name">【新客专享】全屋精细保洁3小时</view>
  22. <view class="remark">为更好的服务体验,建议提前1天预约!</view>
  23. </view>
  24. </view>
  25. <view class="old-price">¥178</view>
  26. <view class="new-price">
  27. <text>小计:</text>
  28. <text class="amount">¥129</text>
  29. </view>
  30. </view>
  31. </view>
  32. <!-- 购买份数 -->
  33. <view class="extra-info">
  34. <view class="buy-num">
  35. <view>购买份数</view>
  36. <view>共1件</view>
  37. </view>
  38. <view class="coupon-info">
  39. <view class="coupon-title">
  40. <image src="https://mall.zhaijieshi.cc/file/jzmall-dy/icon-coupon.png" mode="aspectFit"></image>
  41. <view>优惠</view>
  42. </view>
  43. <view class="coupon-select">
  44. <view>暂无可用优惠</view>
  45. <view class="select-right">
  46. <view>0张</view>
  47. <image src="https://mall.zhaijieshi.cc/file/jzmall-dy/order-arrow.png" mode="aspectFit" class="arrow"></image>
  48. </view>
  49. </view>
  50. </view>
  51. </view>
  52. <!-- 手机号 -->
  53. <view class="phone-block">
  54. <view class="red-dot">*</view>
  55. <view>手机号码</view>
  56. <input placeholder="请输入预约手机号" class="phone-input" placeholder-style="font-size:26rpx;color:#666" maxlength="11" type="num" />
  57. </view>
  58. <!-- <view class="buy-tips">
  59. * 此商品仅限北京、上海、广州、深圳、杭州、南京、苏州、青岛、 成都、重庆、苏州城市使用,其他城市正在陆续开放中…
  60. </view> -->
  61. <!-- 提交按钮 -->
  62. <view class="go-pay-wrapper">
  63. <view class="btn-left">
  64. <text class="num">共1件</text>
  65. <text class="total">合计:</text>
  66. <text class="rmb">¥</text>
  67. <text class="price">129</text>
  68. </view>
  69. <view class="btn-right">提交订单</view>
  70. </view>
  71. </view>
  72. </template>
  73. <script>
  74. //获取应用实例
  75. const app = getApp();
  76. export default {
  77. data() {
  78. return {};
  79. }
  80. /**
  81. * 生命周期函数--监听页面加载
  82. */,
  83. onLoad: function (options) {},
  84. methods: {}
  85. };
  86. </script>
  87. <style>
  88. .container {
  89. padding: 30rpx 24rpx 160rpx;
  90. }
  91. view,
  92. text {
  93. font-size: 30rpx;
  94. color: #333;
  95. }
  96. .address-block {
  97. width: 690rpx;
  98. background: #ffffff;
  99. border-radius: 10rpx;
  100. padding: 30rpx 20rpx 24rpx;
  101. }
  102. .address-block .tips {
  103. display: flex;
  104. align-items: center;
  105. height: 30rpx;
  106. }
  107. .tips image {
  108. width: 30rpx;
  109. height: 30rpx;
  110. margin-right: 10rpx;
  111. }
  112. .tips view {
  113. line-height: 30rpx;
  114. font-size: 30rpx;
  115. }
  116. .address-block .detail {
  117. padding-left: 38rpx;
  118. margin-top: 18rpx;
  119. line-height: 40rpx;
  120. font-size: 26rpx;
  121. }
  122. .product-block {
  123. width: 690rpx;
  124. background: #ffffff;
  125. border-radius: 10rpx;
  126. padding: 0 20rpx 20rpx;
  127. margin: 20rpx 0;
  128. }
  129. .product-block .title {
  130. height: 62rpx;
  131. display: flex;
  132. align-items: center;
  133. border-bottom: 1rpx solid #efefef;
  134. margin-bottom: 20rpx;
  135. }
  136. .product-block .title text {
  137. font-size: 22rpx;
  138. color: #666;
  139. /* font-weight: lighter; */
  140. }
  141. .product-block .title .jzsh {
  142. font-weight: normal;
  143. margin-right: 8rpx;
  144. }
  145. .profuct-info {
  146. height: 160rpx;
  147. display: flex;
  148. align-items: flex-start;
  149. }
  150. .product-img {
  151. width: 160rpx;
  152. height: 160rpx;
  153. border-radius: 10rpx;
  154. /* margin-right:20rpx; */
  155. }
  156. .info-right {
  157. padding-top: 16rpx;
  158. }
  159. .product-name {
  160. line-height: 40rpx;
  161. margin-bottom: 24rpx;
  162. font-size: 30rpx;
  163. padding-left: 20rpx;
  164. text-indent: -16rpx;
  165. }
  166. .info-right .remark {
  167. font-size: 22rpx;
  168. color: #666;
  169. padding-left: 20rpx;
  170. }
  171. .old-price {
  172. margin: 20rpx 0;
  173. height: 22rpx;
  174. line-height: 22rpx;
  175. color: #666;
  176. font-size: 26rpx;
  177. text-decoration: line-through;
  178. text-align: right;
  179. }
  180. .new-price {
  181. width: 650rpx;
  182. height: 40rpx;
  183. display: flex;
  184. justify-content: flex-end;
  185. align-items: flex-end;
  186. }
  187. .new-price text {
  188. font-size: 26rpx;
  189. line-height: 26rpx;
  190. }
  191. .new-price text.amount {
  192. font-weight: bold;
  193. font-size: 38rpx;
  194. line-height: 30rpx;
  195. margin-left: 8rpx;
  196. }
  197. .extra-info {
  198. width: 690rpx;
  199. height: 234rpx;
  200. background: #ffffff;
  201. border-radius: 10rpx;
  202. padding: 30rpx 20rpx 20rpx;
  203. display: flex;
  204. flex-direction: column;
  205. justify-content: space-between;
  206. }
  207. .buy-num {
  208. display: flex;
  209. justify-content: space-between;
  210. height: 30rpx;
  211. line-height: 30rpx;
  212. }
  213. .coupon-title {
  214. height: 30rpx;
  215. display: flex;
  216. align-items: center;
  217. }
  218. .coupon-title image {
  219. width: 26rpx;
  220. height: 26rpx;
  221. margin-right: 10rpx;
  222. }
  223. .coupon-select {
  224. height: 46rpx;
  225. margin-top: 20rpx;
  226. display: flex;
  227. align-items: center;
  228. justify-content: space-between;
  229. }
  230. .coupon-select view {
  231. font-size: 26rpx;
  232. color: #999;
  233. }
  234. .select-right {
  235. height: 46rpx;
  236. display: flex;
  237. align-items: center;
  238. }
  239. .arrow {
  240. width: 20rpx;
  241. height: 20rpx;
  242. margin-left: 8rpx;
  243. }
  244. .phone-block {
  245. width: 690rpx;
  246. height: 90rpx;
  247. background: #ffffff;
  248. border-radius: 10rpx;
  249. margin: 20rpx 0 14rpx;
  250. display: flex;
  251. align-items: center;
  252. padding: 0 20rpx;
  253. }
  254. .red-dot {
  255. color: red;
  256. margin-right: 8rpx;
  257. }
  258. .phone-input {
  259. flex: 1;
  260. text-align: right;
  261. }
  262. .buy-tips {
  263. font-size: 22rpx;
  264. color: #666;
  265. line-height: 34rpx;
  266. padding: 0 30rpx 0 20rpx;
  267. }
  268. .go-pay-wrapper {
  269. position: fixed;
  270. bottom: 56rpx;
  271. left: 30rpx;
  272. right: 30rpx;
  273. height: 90rpx;
  274. width: 690rpx;
  275. border-radius: 90rpx;
  276. display: flex;
  277. align-items: center;
  278. overflow: hidden;
  279. }
  280. .btn-left {
  281. width: 486rpx;
  282. background: #000;
  283. display: flex;
  284. height: 90rpx;
  285. padding: 8rpx 0 0 42rpx;
  286. align-items: center;
  287. }
  288. .btn-left .num {
  289. font-size: 22rpx;
  290. color: #fff;
  291. margin-right: 10rpx;
  292. }
  293. .btn-left .total {
  294. font-size: 22rpx;
  295. color: #fff;
  296. }
  297. .btn-left .rmb {
  298. font-weight: bold;
  299. font-size: 24rpx;
  300. color: #fff;
  301. margin-top: -6rpx;
  302. }
  303. .btn-left .price {
  304. font-weight: bold;
  305. font-size: 32rpx;
  306. color: #fff;
  307. margin-top: -6rpx;
  308. }
  309. .go-pay-wrapper .btn-right {
  310. background: #00b9ff;
  311. height: 90rpx;
  312. line-height: 90rpx;
  313. text-align: center;
  314. color: #fff;
  315. width: 204rpx;
  316. font-size: 30rpx;
  317. }
  318. view.go-pay-wrapper button > view {
  319. color: #fff;
  320. }
  321. </style>