|
@@ -7,8 +7,7 @@
|
|
|
<view class="add-media" @click="handleUploadWork">
|
|
<view class="add-media" @click="handleUploadWork">
|
|
|
<view class="flex-direction flex justify-center" style="align-items: center;" v-show="!showUrl">
|
|
<view class="flex-direction flex justify-center" style="align-items: center;" v-show="!showUrl">
|
|
|
<u-icon name="plus-circle-fill" :color="vuex_theme.bgColor" size="90"></u-icon>
|
|
<u-icon name="plus-circle-fill" :color="vuex_theme.bgColor" size="90"></u-icon>
|
|
|
- <text v-text="activeType == 'VIDEO_TEXT'?'上传视频作品':'上传图片作品'"
|
|
|
|
|
- style="margin-top: 26rpx; color: #010101; font-size: 24rpx; font-weight: bold;">上传作品(图片或视频)</text>
|
|
|
|
|
|
|
+ <text style="margin-top: 26rpx; color: #010101; font-size: 24rpx; font-weight: bold; width: 70%; color: red;">{{tipsText}}</text>
|
|
|
</view>
|
|
</view>
|
|
|
<video v-if="activeType == 'VIDEO_TEXT' && showUrl" :src="showUrl"></video>
|
|
<video v-if="activeType == 'VIDEO_TEXT' && showUrl" :src="showUrl"></video>
|
|
|
<image v-if="activeType == 'IMAGE_TEXT' && showUrl" :src="showUrl" mode="aspectFill"></image>
|
|
<image v-if="activeType == 'IMAGE_TEXT' && showUrl" :src="showUrl" mode="aspectFill"></image>
|
|
@@ -36,6 +35,20 @@
|
|
|
<u-input placeholder="请输入参赛者名称" v-model="applyInfo.player"></u-input>
|
|
<u-input placeholder="请输入参赛者名称" v-model="applyInfo.player"></u-input>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+
|
|
|
|
|
+ <view style="margin-bottom: 64rpx;" v-if="guide === 1">
|
|
|
|
|
+ <text style="color: #010101; font-size: 28rpx; font-weight: bold;"> 指导老师</text>
|
|
|
|
|
+ <view style="padding: 32rpx 0 0; border-bottom: 1rpx solid #E3E3E3;">
|
|
|
|
|
+ <u-input placeholder="请输入指导老师" v-model="applyInfo.guideTeacher"></u-input>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+
|
|
|
|
|
+ <view style="margin-bottom: 64rpx;" v-if="guide === 1">
|
|
|
|
|
+ <text style="color: #010101; font-size: 28rpx; font-weight: bold;"> 指导机构</text>
|
|
|
|
|
+ <view style="padding: 32rpx 0 0; border-bottom: 1rpx solid #E3E3E3;">
|
|
|
|
|
+ <u-input placeholder="请输入指导机构" v-model="applyInfo.guideSchool"></u-input>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
|
|
|
<view style="margin-bottom: 64rpx;">
|
|
<view style="margin-bottom: 64rpx;">
|
|
|
<text style="color: #010101; font-size: 28rpx; font-weight: bold;"><text style="color: #f00;">*</text> 详细介绍</text>
|
|
<text style="color: #010101; font-size: 28rpx; font-weight: bold;"><text style="color: #f00;">*</text> 详细介绍</text>
|
|
@@ -95,6 +108,8 @@
|
|
|
applyInfo: {},
|
|
applyInfo: {},
|
|
|
activeType: '', //活动类型: VIDEO_TEXT视频图文 IMAGE_TEXT图片文本
|
|
activeType: '', //活动类型: VIDEO_TEXT视频图文 IMAGE_TEXT图片文本
|
|
|
updateProgress: '', //上传进度
|
|
updateProgress: '', //上传进度
|
|
|
|
|
+ tipsText: '',
|
|
|
|
|
+ guide: null, //是否需要指导老师和指导机构
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
onLoad(options) {
|
|
onLoad(options) {
|
|
@@ -107,14 +122,21 @@
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
this.initData(options)
|
|
this.initData(options)
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
/**
|
|
/**
|
|
|
* 初始化数据
|
|
* 初始化数据
|
|
|
*/
|
|
*/
|
|
|
initData(options) {
|
|
initData(options) {
|
|
|
|
|
+ this.guide = options.guide;
|
|
|
this.customStyle.background = this.vuex_theme.bgColor
|
|
this.customStyle.background = this.vuex_theme.bgColor
|
|
|
this.activeType = options.activeType;
|
|
this.activeType = options.activeType;
|
|
|
|
|
+ if(this.activeType === 'VIDEO_TEXT'){
|
|
|
|
|
+ this.tipsText = '提示:视频拍摄后,微信转发保存,即可压缩上传,上传速度可以更快哦!';
|
|
|
|
|
+ }else{
|
|
|
|
|
+ this.tipsText = '上传图片作品';
|
|
|
|
|
+ }
|
|
|
// this.activeType = 'IMAGE_TEXT';
|
|
// this.activeType = 'IMAGE_TEXT';
|
|
|
this.applyInfo = {
|
|
this.applyInfo = {
|
|
|
userId: this.vuex_userId,
|
|
userId: this.vuex_userId,
|
|
@@ -125,6 +147,9 @@
|
|
|
videoUrl: "",
|
|
videoUrl: "",
|
|
|
content: "",
|
|
content: "",
|
|
|
player: "",
|
|
player: "",
|
|
|
|
|
+ guideTeacher: "",
|
|
|
|
|
+ guideSchool: ""
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
/**
|
|
/**
|