nickname.vue 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <template>
  2. <view class="form-box">
  3. <en-nav title="编辑昵称" :title-color="'#333'" :right-show="true" :right-type="2" >
  4. <template v-slot:right>
  5. <text class="nav-right sys-weight-600 sys-color-white">保存</text>
  6. </template>
  7. </en-nav>
  8. <view class="from-input">
  9. <input type="text" class="input-item sys-height-44" placeholder="设置昵称"></input>
  10. </view>
  11. <view class="from-text sys-color-gray-9">
  12. 昵称不能为空
  13. </view>
  14. </view>
  15. </template>
  16. <script>
  17. import EnNav from "@/components/en-utils/en-nav/en-nav";
  18. export default {
  19. components: {EnNav},
  20. data() {
  21. return {
  22. }
  23. },
  24. methods: {
  25. }
  26. }
  27. </script>
  28. <style scoped lang="scss">
  29. .form-box{
  30. padding: 0 32rpx;
  31. .nav-right{
  32. font-size: 28rpx;
  33. line-height: 44rpx;
  34. color: #333;
  35. }
  36. .from-input{
  37. margin-top: 56rpx;
  38. background-color: #F2F2F2;
  39. border-radius: 16rpx;
  40. padding: 32rpx;
  41. .input-item{
  42. font-size: 28rpx;
  43. color: #333;
  44. }
  45. .input-item::placeholder{
  46. color: #999;
  47. }
  48. }
  49. .from-text{
  50. margin-top: 24rpx;
  51. font-size: 24rpx;
  52. }
  53. }
  54. </style>