signUp.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <template>
  2. <view>
  3. <view class="image-container" @click="selectShow = true">
  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. <u-action-sheet :list="list" @click="upload" v-model="selectShow"></u-action-sheet>
  8. <view class="basic-container">
  9. <view class="padding-sm">
  10. <text class="cuIcon-titles theme-color" style="font-size: 36upx;"></text>
  11. <text class="text-black text-bold text-lg">基本信息</text>
  12. </view>
  13. <view class="padding-sm flex justify-around align-center">
  14. <block v-for="(item, index) in classification" :key="index">
  15. <view class="tags" :class="current == index ? 'theme-bg-color text-white' : ''" @click="current = index">{{item}}</view>
  16. </block>
  17. </view>
  18. <view class="padding-sm">
  19. <text class="text-black text-bold text-lg padding-left-sm">{{detail.personTitle}}</text>
  20. <view style="padding: 30upx 20upx;">
  21. <u-input v-model="name" placeholder="请输入歌手名字" />
  22. </view>
  23. <view style="padding: 0 20upx 40upx 20upx;">
  24. <u-line color="#e3e3e3" />
  25. </view>
  26. <text class="text-black text-bold text-lg padding-left-sm">{{detail.productionTitle}}</text>
  27. <view style="padding: 30upx 20upx;">
  28. <u-input v-model="music" placeholder="请输入歌曲名称" />
  29. </view>
  30. <view style="padding: 0 20upx 40upx 20upx;">
  31. <u-line color="#e3e3e3" />
  32. </view>
  33. <text class="text-black text-bold text-lg padding-left-sm">{{detail.introductionTitle}}</text>
  34. <view style="padding: 30upx 20upx 0 20upx;">
  35. <u-input v-model="introduction" type="textarea" :clearable="false" height="140" :autoHeight="false" maxlength="60" placeholder="请输入个人简介" />
  36. </view>
  37. <view class="flex justify-end padding-right-sm padding-bottom-sm text-gray">{{introduction.length}} / 60</view>
  38. <view style="padding: 0 20upx 40upx 20upx;">
  39. <u-line color="#e3e3e3" />
  40. </view>
  41. <view style="margin: 30upx 0 40upx 0;">
  42. <u-button class="custom-style" shape="circle" @click="navWithParam">确定提交</u-button>
  43. </view>
  44. </view>
  45. </view>
  46. </view>
  47. </template>
  48. <script>
  49. export default {
  50. data() {
  51. return {
  52. detail:{},
  53. selectShow: false,
  54. list: [{
  55. text: '上传图片'
  56. }, {
  57. text: '上传视频'
  58. }],
  59. current: 0,
  60. classification: [],
  61. name: '',
  62. introduction: '',
  63. music: '',
  64. }
  65. },
  66. onLoad(options) {
  67. this.getActivityDetail(options.activityId);
  68. },
  69. methods: {
  70. upload(index) {
  71. console.log(index);
  72. if (index == 0) {
  73. }
  74. if (index == 1) {
  75. }
  76. // this.$mpi.uploadFile().then(res => {
  77. // let obj = JSON.parse(res);
  78. // console.log(res.data);
  79. // })
  80. },
  81. getActivityDetail(id) {
  82. this.$u.api.activity.detail({id: id}).then(res => {
  83. this.detail = res
  84. this.classification = res.classification.split(',');
  85. })
  86. },
  87. navWithParam() {
  88. uni.navigateTo({
  89. url: '/pages/activityList/mine/introduction'
  90. })
  91. }
  92. }
  93. }
  94. </script>
  95. <style lang="scss" scoped>
  96. .image-container {
  97. text-align: center;
  98. background-color: #FFFFFF;
  99. height: 400upx;
  100. margin: 30upx;
  101. border-radius: 30upx;
  102. }
  103. .basic-container {
  104. background-color: #FFFFFF;
  105. margin: 20upx;
  106. border-radius: 30upx;
  107. }
  108. .tags {
  109. display: flex;
  110. justify-content: center;
  111. align-items: center;
  112. width: 30%;
  113. height: 70upx;
  114. border: #4f4f4f 1px solid;
  115. border-radius: 28upx;
  116. }
  117. .custom-style {
  118. background-color: #5a3ee8;
  119. color: #FFFFFF;
  120. width: 400rpx;
  121. }
  122. </style>