update-mobile.vue 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <template>
  2. <v-header scroll title="修改手机号" backgroundColor="#fff">
  3. <view class="mobile-container flex">
  4. <view
  5. class="mobile-item row aCenter"
  6. v-for="(item,index) in inputData"
  7. :key="index"
  8. :class="['mobile-item-'+item.type]"
  9. >
  10. <image :src="'/static/images/'+item.icon+'.png'" class="mobile-icon" mode="heightFix"></image>
  11. <view class="flex-all-1">
  12. <input v-model="item.value" :maxlength="item.maxLength || 6" class="mobile-input" type="number" :placeholder="item.placeholder" />
  13. </view>
  14. <view @click="triggerTimeDate(item,inputData)" v-if="item.type === 'verification'" class="mobile-verification center"
  15. :class="{'mobile-verification-disabled':timeFormat}"
  16. >{{timeFormat?timeFormat:timeConfig.default}}</view>
  17. </view>
  18. <view class="flex-all-1"></view>
  19. <view class="mobile-button-container center">
  20. <view @click="submit" class="mobile-button center">完成</view>
  21. </view>
  22. </view>
  23. </v-header>
  24. </template>
  25. <script>
  26. import vHeader from '@/components/v-header/main';
  27. import inputData from './data/input';
  28. import mixins from './mixins';
  29. export default {
  30. name: "update-mobile",
  31. data(){
  32. return {
  33. inputData:inputData()
  34. }
  35. },
  36. mixins,
  37. components:{
  38. vHeader
  39. }
  40. }
  41. </script>
  42. <style src="./style.scss" lang="scss">
  43. </style>