index.vue 712 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <template>
  2. <view class="box">
  3. <Nav title="首页"></Nav>
  4. <enInput></enInput>
  5. <enInput></enInput>
  6. <enSend v-model="phone" ref="enSendObj" @getCode="getCode"></enSend>
  7. </view>
  8. </template>
  9. <script>
  10. import enInput from "components/en-input/en-input"
  11. import enSend from "components/en-send/en-send"
  12. export default {
  13. components: {
  14. enInput,
  15. enSend
  16. },
  17. data() {
  18. return {
  19. phone:'13900139001'
  20. }
  21. },
  22. mounted() {
  23. },
  24. methods: {
  25. getCode(){
  26. console.log('---------------------asdsa')
  27. this.$refs.enSendObj.setCodeNum()
  28. },
  29. },
  30. }
  31. </script>
  32. <style lang="scss" scoped>
  33. .box{
  34. padding: 32rpx 32rpx 0;
  35. background-color: #fff;
  36. }
  37. </style>