dj-other.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <template>
  2. <view class="box">
  3. <view class="mlr-36 mt-20 plr-36 bg-white radius-10">
  4. <view class="pt-30 ml-4">
  5. 乘车人
  6. </view>
  7. <u-field v-model="tel" label-width="0" placeholder="请输入手机号"></u-field>
  8. <u-field v-model="name" label-width="0" placeholder="请输入联系人姓名(选填)"></u-field>
  9. </view>
  10. <view class="fixed-bottom plr-36 ptb-50">
  11. <u-button type="primary" :disabled="!tel" @click="submit">确认呼叫</u-button>
  12. </view>
  13. </view>
  14. </template>
  15. <script>
  16. export default {
  17. data() {
  18. return {
  19. tel: '',
  20. name: ''
  21. }
  22. },
  23. onLoad() {
  24. },
  25. methods: {
  26. submit() {
  27. let data = {
  28. tel: this.tel,
  29. name: this.name
  30. }
  31. uni.navigateBack({
  32. })
  33. uni.$emit('other',data)
  34. }
  35. }
  36. }
  37. </script>
  38. <style lang="scss" scoped>
  39. /deep/.u-field {
  40. padding: 26rpx 0 !important;
  41. }
  42. /deep/.u-primary-hover {
  43. background: linear-gradient(to right,#00b6b4,#00d496) !important;
  44. }
  45. /deep/.u-btn--primary--disabled {
  46. background-color: $bg-1 !important;
  47. }
  48. .box {
  49. width: 100%;
  50. height: 100vh;
  51. background: #F8F8F8;
  52. overflow: hidden;
  53. }
  54. </style>