code.vue 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <template>
  2. <view class="page" :style="{'min-height':h+'px', 'padding-top':mt+'px'}">
  3. <cus-header title='验证码' bgColor="transparent"></cus-header>
  4. <div class="box adffcacjc" :style="{'height':h-mt+'px'}">
  5. <p>请输入6为验证码</p>
  6. <text>验证码已发送至设备</text>
  7. <div class="inps adfacjb">
  8. <div class="pre adfacjc" v-for="(item,index) in 6" :key="index">
  9. <input type="text" @blur="toTurn">
  10. </div>
  11. </div>
  12. </div>
  13. </view>
  14. </template>
  15. <script>
  16. export default {
  17. data(){
  18. return {
  19. }
  20. },
  21. methods:{
  22. toTurn(){
  23. uni.navigateTo({
  24. url:'/pages/agentCreate'
  25. })
  26. }
  27. }
  28. }
  29. </script>
  30. <style scoped lang="less">
  31. .page{
  32. background: #F7F7F7;
  33. box-sizing: border-box;
  34. .box{
  35. width: 100%;
  36. height: 100vh;
  37. p{
  38. font-family: PingFang-SC, PingFang-SC;
  39. font-weight: bold;
  40. font-size: 40rpx;
  41. color: #111111;
  42. line-height: 56rpx;
  43. }
  44. text{
  45. font-family: PingFangSC, PingFang SC;
  46. font-weight: 400;
  47. font-size: 28rpx;
  48. color: rgba(17,17,17,0.4);
  49. line-height: 28rpx;
  50. margin-top: 24rpx;
  51. }
  52. .inps{
  53. width: calc(100% - 100rpx);
  54. margin: 80rpx 50rpx 0;
  55. .pre{
  56. width: calc(100% / 6 - 10rpx);
  57. height: 110rpx;
  58. background: #FFFFFF;
  59. border-radius: 16rpx;
  60. padding: 10rpx 20rpx;
  61. box-sizing: border-box;
  62. input{
  63. border: none;
  64. }
  65. }
  66. }
  67. }
  68. }
  69. </style>