signUp.vue 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <template>
  2. <view>
  3. <view class="image-container">
  4. <view class="cuIcon-roundaddfill theme-color" style="font-size: 80upx;padding: 100upx 0 30upx 0;"></view>
  5. <view class="text-black text-bold text-sm">添加图片或视频</view>
  6. </view>
  7. <view class="basic-container">
  8. <view class="padding-sm">
  9. <text class="cuIcon-titles theme-color" style="font-size: 36upx;"></text>
  10. <text class="text-black text-bold text-lg">基本信息</text>
  11. </view>
  12. <view class="padding-sm flex justify-around align-center">
  13. <view class="tags" :class="current == 0 ? 'theme-bg-color text-white' : ''" @click="current = 0">男歌手</view>
  14. <view class="tags" :class="current == 1 ? 'theme-bg-color text-white' : ''" @click="current = 1">女歌手</view>
  15. <view class="tags" :class="current == 2 ? 'theme-bg-color text-white' : ''" @click="current = 2">组合</view>
  16. </view>
  17. <view class="padding-sm">
  18. <text class="text-black text-bold text-lg padding-left-sm">歌手名字</text>
  19. <view style="padding: 30upx 20upx;">
  20. <u-input v-model="name" placeholder="请输入歌手名字" />
  21. </view>
  22. <view style="padding: 0 20upx 40upx 20upx;">
  23. <u-line color="#e3e3e3" />
  24. </view>
  25. <text class="text-black text-bold text-lg padding-left-sm">歌曲名称</text>
  26. <view style="padding: 30upx 20upx;">
  27. <u-input v-model="music" placeholder="请输入歌曲名称" />
  28. </view>
  29. <view style="padding: 0 20upx 40upx 20upx;">
  30. <u-line color="#e3e3e3" />
  31. </view>
  32. <text class="text-black text-bold text-lg padding-left-sm">个人简介</text>
  33. <view style="padding: 30upx 20upx 0 20upx;">
  34. <u-input v-model="introduction" type="textarea" :clearable="false" height="140" :autoHeight="false" maxlength="60" placeholder="请输入个人简介" />
  35. </view>
  36. <view class="flex justify-end padding-right-sm padding-bottom-sm text-gray">{{introduction.length}} / 60</view>
  37. <view style="padding: 0 20upx 40upx 20upx;">
  38. <u-line color="#e3e3e3" />
  39. </view>
  40. <view style="margin: 30upx 0 40upx 0;">
  41. <u-button class="custom-style" shape="circle" @click="navWithParam">确定提交</u-button>
  42. </view>
  43. </view>
  44. </view>
  45. </view>
  46. </template>
  47. <script>
  48. export default {
  49. data() {
  50. return {
  51. current: 0,
  52. name: '',
  53. introduction: '',
  54. music: '',
  55. }
  56. },
  57. methods: {
  58. navWithParam() {
  59. uni.navigateTo({
  60. url: '/pages/mine/introduction'
  61. })
  62. }
  63. }
  64. }
  65. </script>
  66. <style lang="scss" scoped>
  67. .image-container {
  68. text-align: center;
  69. background-color: #FFFFFF;
  70. height: 400upx;
  71. margin: 30upx;
  72. border-radius: 30upx;
  73. }
  74. .basic-container {
  75. background-color: #FFFFFF;
  76. margin: 20upx;
  77. border-radius: 30upx;
  78. }
  79. .tags {
  80. display: flex;
  81. justify-content: center;
  82. align-items: center;
  83. width: 30%;
  84. height: 70upx;
  85. border: #4f4f4f 1px solid;
  86. border-radius: 28upx;
  87. }
  88. .custom-style {
  89. background-color: #5a3ee8;
  90. color: #FFFFFF;
  91. width: 400rpx;
  92. }
  93. </style>