signUp.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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. // this.$mpi.uploadFile().then(res => {
  73. // let obj = JSON.parse(res);
  74. // console.log(res.data);
  75. // })
  76. },
  77. getActivityDetail(id) {
  78. this.$u.api.activity.detail({id: id}).then(res => {
  79. this.detail = res
  80. this.classification = res.classification.split(',');
  81. })
  82. },
  83. navWithParam() {
  84. uni.navigateTo({
  85. url: '/pages/activityList/mine/introduction'
  86. })
  87. }
  88. }
  89. }
  90. </script>
  91. <style lang="scss" scoped>
  92. .image-container {
  93. text-align: center;
  94. background-color: #FFFFFF;
  95. height: 400upx;
  96. margin: 30upx;
  97. border-radius: 30upx;
  98. }
  99. .basic-container {
  100. background-color: #FFFFFF;
  101. margin: 20upx;
  102. border-radius: 30upx;
  103. }
  104. .tags {
  105. display: flex;
  106. justify-content: center;
  107. align-items: center;
  108. width: 30%;
  109. height: 70upx;
  110. border: #4f4f4f 1px solid;
  111. border-radius: 28upx;
  112. }
  113. .custom-style {
  114. background-color: #5a3ee8;
  115. color: #FFFFFF;
  116. width: 400rpx;
  117. }
  118. </style>