confirmorder.vue 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. <template>
  2. <view class="">
  3. <view class="headers p rgb">
  4. <u-steps :list="numList" :current="0"></u-steps>
  5. </view>
  6. <view class="wab1 shu p rgb">
  7. <text>晋TF6F14六年年检代办服务</text>
  8. <view class="heng2" style="margin-top: 10rpx;">
  9. <u-tag text="代预约" size="mini" style="margin-right: 20rpx;" />
  10. <u-tag text="代办理" size="mini" />
  11. </view>
  12. <view>
  13. <view style="font-size: 24rpx;">
  14. <u-icon name="checkmark-circle-fill" color="#58748a" size="30" style="margin-right: 20rpx;">
  15. </u-icon>
  16. <text>资料无误,1至2天闪电办完,不需要跑车管所</text>
  17. </view>
  18. <view style="font-size: 24rpx;">
  19. <u-icon name="checkmark-circle-fill" color="#58748a" size="30" style="margin-right: 20rpx;">
  20. </u-icon>
  21. <text>已为100多万车主完成代办,品质值得信赖</text>
  22. </view>
  23. </view>
  24. </view>
  25. <view class="wab1 shu p rgb">
  26. <u-form :model="form" ref="uForm" label-width="230">
  27. <u-form-item label="车主姓名">
  28. <u-input placeholder="请输入车主本人姓名" v-model="form.name" type="text"></u-input>
  29. </u-form-item>
  30. <u-form-item label="车主手机号">
  31. <u-input placeholder="请输入车主本人手机号码" v-model="form.name" type="text"></u-input>
  32. </u-form-item>
  33. <u-form-item label="请选择邮寄地址" :border-bottom="false">
  34. <u-input type="select" :select-open="addressshow" v-model="form.region" placeholder="请选择地区"
  35. @click="addressshow = true"></u-input>
  36. <u-picker mode="region" v-model="addressshow" @confirm="regionConfirm"></u-picker>
  37. </u-form-item>
  38. <u-form-item>
  39. <u-input placeholder="请输入详细地址,年检办完将回寄合格标志给您" height="150" :border="border" v-model="form.name"
  40. type="textarea"></u-input>
  41. </u-form-item>
  42. <u-form-item label="行驶证副本编号" :border-bottom="false">
  43. <u-input placeholder="请输入行驶证副本编号" v-model="form.name" type="text"></u-input>
  44. </u-form-item>
  45. </u-form>
  46. </view>
  47. <view class="wab1 heng p rgb">
  48. <text>服务费</text>
  49. <text style="color: red;">¥98</text>
  50. </view>
  51. <view class="flexd rgb shu">
  52. <view class="" style="padding: 0 20rpx;box-sizing: border-box;">
  53. <u-checkbox-group size="26">
  54. <u-checkbox v-model="item.checked" v-for="(item, index) in list" :key="index" :name="item.name">
  55. <view style="font-size: 24rpx;">
  56. {{item.name}}
  57. </view>
  58. </u-checkbox>
  59. </u-checkbox-group>
  60. </view>
  61. <view class="flexd_btn heng">
  62. <view style="">
  63. <text>合计¥</text>
  64. <text>98</text>
  65. </view>
  66. <view class="heng1" style="">
  67. <text>去支付</text>
  68. </view>
  69. </view>
  70. </view>
  71. <u-popup v-model="show" border-radius="14" mode="center" width="70%">
  72. <view class="shu1 shili">
  73. <text>温馨提示</text>
  74. <text>你的车检还未办理,逾期可能会扣款罚款且无法出价,是否确认离开?</text>
  75. </view>
  76. <view class="heng shili_btn">
  77. <view class="heng1" @click="fanhui">确认离开</view>
  78. <view class="heng1" @click="zhifu">立即支付</view>
  79. </view>
  80. </u-popup>
  81. </view>
  82. </template>
  83. <script>
  84. export default {
  85. data() {
  86. return {
  87. show: false,
  88. addressshow: false,
  89. border: true,
  90. numList: [{
  91. name: '支付订单'
  92. }, {
  93. name: '上传资料'
  94. }, {
  95. name: '年检办理'
  96. }, {
  97. name: '回寄标志'
  98. }, ],
  99. form: {
  100. name: '',
  101. region: '',
  102. sex: '',
  103. goodsType: "",
  104. time: "",
  105. },
  106. list: [{
  107. name: '同意《罚款代缴服务协议》',
  108. checked: false,
  109. disabled: false
  110. }, ],
  111. }
  112. },
  113. //自定义返回事件
  114. onBackPress(options) {
  115. if (options.from === 'backbutton') {
  116. this.show = true;
  117. return true;
  118. } else if (options.from === 'navigateBack') {
  119. return false;
  120. }
  121. return true;
  122. },
  123. onLoad() {
  124. },
  125. methods: {
  126. //确认离开
  127. fanhui() {
  128. this.show = false;
  129. uni.navigateBack(1)
  130. },
  131. //立即支付
  132. zhifu() {
  133. this.show = false;
  134. },
  135. regionConfirm(e) {
  136. console.log(e)
  137. this.form.region = e.province.label + e.city.label + e.area.label;
  138. }
  139. }
  140. }
  141. </script>
  142. <style>
  143. page {
  144. background-color: #f2f2f2;
  145. padding-bottom: 200rpx;
  146. }
  147. .flexd {
  148. position: fixed;
  149. bottom: 0;
  150. }
  151. .flexd_btn {
  152. border-top: 2rpx solid #F2F2F2;
  153. height: 90rpx;
  154. font-weight: bold;
  155. }
  156. .flexd_btn>view:nth-child(1) {
  157. width: 70%;
  158. padding-left: 20rpx;
  159. box-sizing: border-box;
  160. }
  161. .flexd_btn>view:nth-child(2) {
  162. width: 30%;
  163. height: 100%;
  164. background-color: #007BFF;
  165. color: #FFFFFF;
  166. }
  167. .wab1 {
  168. margin-top: 20rpx;
  169. }
  170. .wab1>text {
  171. font-weight: bold;
  172. font-size: 28rpx;
  173. }
  174. .wab1>view:nth-child(3) {
  175. margin-top: 40rpx;
  176. border-top: 2rpx solid #F2F2F2;
  177. padding-top: 20rpx;
  178. box-sizing: border-box;
  179. color: #58748a;
  180. }
  181. .rgb {
  182. width: 100%;
  183. background-color: #FFFFFF;
  184. }
  185. .headers {
  186. height: auto;
  187. }
  188. .p {
  189. padding: 36rpx;
  190. box-sizing: border-box;
  191. }
  192. .shili_btn {
  193. width: 100%;
  194. height: 90rpx;
  195. border-top: 2rpx solid #F2F2F2;
  196. }
  197. .shili_btn>view {
  198. width: 50%;
  199. height: 100%;
  200. background-color: #ffffff;
  201. cursor: pointer;
  202. }
  203. .shili_btn>view:nth-child(2) {
  204. color: #FFFFFF;
  205. background-color: #007BFF;
  206. }
  207. .shili {
  208. padding: 40rpx;
  209. box-sizing: border-box;
  210. }
  211. .shili>text:nth-child(1) {
  212. font-weight: bold;
  213. }
  214. .heng {
  215. display: flex;
  216. justify-content: space-between;
  217. align-items: center;
  218. }
  219. .heng1 {
  220. display: flex;
  221. justify-content: center;
  222. align-items: center;
  223. }
  224. .heng2 {
  225. display: flex;
  226. align-items: center;
  227. }
  228. .shu {
  229. display: flex;
  230. flex-direction: column;
  231. justify-content: space-between;
  232. }
  233. .shu1 {
  234. display: flex;
  235. flex-direction: column;
  236. justify-content: space-between;
  237. align-items: center;
  238. }
  239. </style>