save-order.vue 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. <template>
  2. <view class="save-order-box iPhone-bottom flex-common-css box-border-box">
  3. <view class="bg-box"></view>
  4. <Nav title='提交订单' bgckgroundBox='transparent'></Nav>
  5. <view class="scroll-view-css box-border-box p-24">
  6. <view class="box-card box-border-box mb-20 bgc-f">
  7. <view class="box-input align-items-center box-border-box p-b-20 mb-20">
  8. <view class="fs-28 fw-600 w158">姓名</view>
  9. <input type="text" placeholder="请输入姓名">
  10. </view>
  11. <view class="box-input align-items-center box-border-box p-b-20 mb-20">
  12. <view class="fs-28 fw-600 w158">手机号</view>
  13. <input type="number" placeholder="请输入手机号">
  14. </view>
  15. <view class="box-input align-items-center box-border-box p-b-20 mb-20">
  16. <view class="fs-28 fw-600 w158">验证码</view>
  17. <input type="number" placeholder="请输入验证码">
  18. <view class="fs-28 fc-41ABF5 code-box" @click="getCode()">{{codeText}}{{isCode?'s':''}}</view>
  19. </view>
  20. <view class="box-input align-items-center box-border-box p-b-20 mb-20">
  21. <view class="fs-28 fw-600 w158">联系地址</view>
  22. <input type="text" placeholder="请输入联系地址(选填)">
  23. </view>
  24. </view>
  25. <view class="box-card box-border-box mb-20 bgc-f">
  26. <view class="box-top box-border-box flex-justify-space">
  27. <view class="box-left display-flex">
  28. <image src="@/static/img/buy/group-bg.png" mode="scaleToFill"></image>
  29. <view class="w336 fs-28 fw-400">
  30. 巧大耳朵游乐场大耳朵游乐 1大耳朵游乐场
  31. </view>
  32. </view>
  33. <view class="box-right">
  34. <view class="fs-32 fw-600 text-align-right mb-12">¥19.5</view>
  35. <view class="fs-26 text-align-right fc-9">x1</view>
  36. <!-- <view class="display-flex align-items-center">
  37. <view class="right-only-right-red fw-500 text-align-center fs-36 fc-f">-</view>
  38. <view class="right-only-right-2 text-align-center fs-28 fw-400">1</view>
  39. <view class="right-only-right-add fw-500 text-align-center fs-36 fc-f">+</view>
  40. </view> -->
  41. </view>
  42. </view>
  43. <view class="box-buttom text-align-right">
  44. <span class="fs-28 fc-9 fw-400">共5件,</span>
  45. <span class="fs-28 fc-0 fw-400">合计¥</span>
  46. <span class="fs-44 fc-0 fw-b">19.5</span>
  47. </view>
  48. </view>
  49. <view class="box-card box-border-box mb-20 bgc-f flex-justify-space">
  50. <view class="fs-28 fw-600 w158">备注</view>
  51. <input class="text-align-right" type="text" placeholder="请填写你的需求">
  52. </view>
  53. <view class="box-card box-border-box mb-20 bgc-f flex-justify-space">
  54. <view class="fs-28 fw-600 w158">支付方式</view>
  55. <view class="wx-box display-flex">
  56. <image src="@/static/img/common/wx-zf.png" mode="scaleToFill"></image>
  57. <view class="fs-28 fw-400 ml-10">微信支付</view>
  58. </view>
  59. </view>
  60. </view>
  61. <view class="bottom-box box-border-box p-24">
  62. <view class="flex-justify-space">
  63. <view class="align-items-flex-end box-1">
  64. <span class="fs-28 fc-f fw-600">¥</span>
  65. <span class="fs-44 fc-f fw-600">19.5</span>
  66. </view>
  67. <view class="text-align-center box-2 fs-32 fc-f fw-600" @click="toSave()">立即支付</view>
  68. </view>
  69. </view>
  70. </view>
  71. </template>
  72. <script>
  73. export default {
  74. data(){
  75. return{
  76. isCode:false,
  77. codeText:'获取验证码',
  78. }
  79. },
  80. methods:{
  81. getCode(){
  82. if (this.isCode) {
  83. return
  84. }
  85. this.isCode = true;
  86. this.codeText = 60;
  87. let timer = setInterval(() => {
  88. this.codeText -= 1;
  89. if (this.codeText <= 0) {
  90. clearInterval(timer);
  91. this.isCode = false;
  92. this.codeText = '获取验证码'
  93. }
  94. }, 1000);
  95. },
  96. },
  97. }
  98. </script>
  99. <style scoped lang="scss">
  100. .save-order-box{
  101. position: relative;
  102. .right-only-right-red{
  103. width: 44rpx;
  104. height: 44rpx;
  105. line-height: 40rpx;
  106. border-radius: 12rpx;
  107. border: 1rpx solid #41ABF5;
  108. color: #41ABF5;
  109. }
  110. .right-only-right-add{
  111. width: 44rpx;
  112. height: 44rpx;
  113. line-height: 40rpx;
  114. background: linear-gradient( 117deg, #57CAFF 0%, #41ABF5 100%);
  115. border-radius: 12rpx;
  116. }
  117. .right-only-right-2{
  118. min-width: 50rpx;
  119. }
  120. .bg-box{
  121. width: 100%;
  122. height: 448rpx;
  123. filter: blur(80rpx);
  124. background: linear-gradient(to right,rgba(176, 252, 250, 0.6),rgba(249,246,224,0.87),rgba(249,246,224,0.87));
  125. position: absolute;
  126. top: 0;
  127. left: 0;
  128. z-index: -1;
  129. }
  130. .bottom-box{
  131. background-color: #fff;
  132. .box-1{
  133. flex: 1;
  134. height: 100rpx;
  135. background: #333;
  136. border-radius: 200rpx 0rpx 0rpx 200rpx;
  137. box-sizing: border-box;
  138. padding-left: 32rpx;
  139. padding-bottom: 20rpx;
  140. }
  141. .box-2{
  142. width: 200rpx;
  143. height: 100rpx;
  144. line-height: 100rpx;
  145. background: #41ABF5;
  146. border-radius: 0rpx 200rpx 200rpx 0rpx;
  147. text-align: center;
  148. }
  149. }
  150. .box-card{
  151. width: 100%;
  152. min-height: 88rpx;
  153. border-radius: 20rpx;
  154. padding: 24rpx 24rpx 0 24rpx;
  155. .box-top{
  156. padding-bottom: 24rpx;
  157. border-bottom: 2rpx solid #F9F9F9;
  158. margin-bottom: 24rpx;
  159. .box-left{
  160. image{
  161. width: 108rpx;
  162. height: 108rpx;
  163. border-radius: 8rpx;
  164. margin-right: 16rpx;
  165. }
  166. .w336{
  167. width: 336rpx;
  168. }
  169. }
  170. }
  171. .box-buttom{
  172. padding-bottom: 24rpx;
  173. }
  174. }
  175. .box-input{
  176. border-bottom: 2rpx solid #F9F9F9;
  177. position: relative;
  178. .w158{
  179. width: 158rpx;
  180. }
  181. input{
  182. font-size: 28rpx;
  183. }
  184. .code-box{
  185. position: absolute;
  186. right: 0;
  187. top: 0;
  188. }
  189. }
  190. .wx-box{
  191. image{
  192. width: 40rpx;
  193. height: 40rpx;
  194. }
  195. }
  196. }
  197. </style>