| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- <template>
- <view>
- <view class="image-container" @click="selectShow = true">
- <view class="cuIcon-roundaddfill theme-color" style="font-size: 80upx;padding: 100upx 0 30upx 0;"></view>
- <view class="text-black text-bold text-sm">添加图片或视频</view>
- </view>
- <u-action-sheet :list="list" @click="upload" v-model="selectShow"></u-action-sheet>
- <view class="basic-container">
- <view class="padding-sm">
- <text class="cuIcon-titles theme-color" style="font-size: 36upx;"></text>
- <text class="text-black text-bold text-lg">基本信息</text>
- </view>
- <view class="padding-sm flex justify-around align-center">
- <block v-for="(item, index) in classification" :key="index">
- <view class="tags" :class="current == index ? 'theme-bg-color text-white' : ''" @click="current = index">{{item}}</view>
- </block>
- </view>
- <view class="padding-sm">
- <text class="text-black text-bold text-lg padding-left-sm">{{detail.personTitle}}</text>
- <view style="padding: 30upx 20upx;">
- <u-input v-model="name" placeholder="请输入歌手名字" />
- </view>
- <view style="padding: 0 20upx 40upx 20upx;">
- <u-line color="#e3e3e3" />
- </view>
- <text class="text-black text-bold text-lg padding-left-sm">{{detail.productionTitle}}</text>
- <view style="padding: 30upx 20upx;">
- <u-input v-model="music" placeholder="请输入歌曲名称" />
- </view>
- <view style="padding: 0 20upx 40upx 20upx;">
- <u-line color="#e3e3e3" />
- </view>
- <text class="text-black text-bold text-lg padding-left-sm">{{detail.introductionTitle}}</text>
- <view style="padding: 30upx 20upx 0 20upx;">
- <u-input v-model="introduction" type="textarea" :clearable="false" height="140" :autoHeight="false" maxlength="60" placeholder="请输入个人简介" />
- </view>
- <view class="flex justify-end padding-right-sm padding-bottom-sm text-gray">{{introduction.length}} / 60</view>
- <view style="padding: 0 20upx 40upx 20upx;">
- <u-line color="#e3e3e3" />
- </view>
- <view style="margin: 30upx 0 40upx 0;">
- <u-button class="custom-style" shape="circle" @click="navWithParam">确定提交</u-button>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- detail:{},
- selectShow: false,
- list: [{
- text: '上传图片'
- }, {
- text: '上传视频'
- }],
- current: 0,
- classification: [],
- name: '',
- introduction: '',
- music: '',
- }
- },
- onLoad(options) {
- this.getActivityDetail(options.activityId);
- },
- methods: {
- upload(index) {
- console.log(index);
- // this.$mpi.uploadFile().then(res => {
- // let obj = JSON.parse(res);
- // console.log(res.data);
- // })
- },
- getActivityDetail(id) {
- this.$u.api.activity.detail({id: id}).then(res => {
- this.detail = res
- this.classification = res.classification.split(',');
- })
- },
- navWithParam() {
- uni.navigateTo({
- url: '/pages/activityList/mine/introduction'
- })
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .image-container {
- text-align: center;
- background-color: #FFFFFF;
- height: 400upx;
- margin: 30upx;
- border-radius: 30upx;
- }
- .basic-container {
- background-color: #FFFFFF;
- margin: 20upx;
- border-radius: 30upx;
- }
- .tags {
- display: flex;
- justify-content: center;
- align-items: center;
- width: 30%;
- height: 70upx;
- border: #4f4f4f 1px solid;
- border-radius: 28upx;
- }
- .custom-style {
- background-color: #5a3ee8;
- color: #FFFFFF;
- width: 400rpx;
- }
- </style>
|