|
@@ -5,28 +5,29 @@
|
|
|
<li class="detailLi2">
|
|
<li class="detailLi2">
|
|
|
<span class="liName" style="margin-bottom: 16rpx"><span style="color: red">*</span> 活动主题</span>
|
|
<span class="liName" style="margin-bottom: 16rpx"><span style="color: red">*</span> 活动主题</span>
|
|
|
<van-field
|
|
<van-field
|
|
|
- :value="form.contant"
|
|
|
|
|
|
|
+ :value="form.activityName"
|
|
|
autosize
|
|
autosize
|
|
|
type="textarea"
|
|
type="textarea"
|
|
|
placeholder="请填写活动名称"
|
|
placeholder="请填写活动名称"
|
|
|
class="myField"
|
|
class="myField"
|
|
|
maxlength="50"
|
|
maxlength="50"
|
|
|
show-word-limit
|
|
show-word-limit
|
|
|
|
|
+ @change="changeActivityName"
|
|
|
/>
|
|
/>
|
|
|
</li>
|
|
</li>
|
|
|
<li class="detailLi2">
|
|
<li class="detailLi2">
|
|
|
<span class="liName">
|
|
<span class="liName">
|
|
|
- 选择类别
|
|
|
|
|
|
|
+ <span style="color: red">*</span> 选择类别
|
|
|
</span>
|
|
</span>
|
|
|
<div class="detailLi2Box">
|
|
<div class="detailLi2Box">
|
|
|
<div class="detailLi2BoxTop">
|
|
<div class="detailLi2BoxTop">
|
|
|
- <div class="checkItem" :class="item.isCheck?'checked':''" v-for="item in checkList" @click="clickCheck(item)">{{item.name}}</div>
|
|
|
|
|
|
|
+ <div class="checkItem" :class="item.value===form.activityType?'checked':''" v-for="item in tabList" @click="clickCheck(item)">{{item.label}}</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</li>
|
|
</li>
|
|
|
<li class="detailLi2">
|
|
<li class="detailLi2">
|
|
|
<span class="liName">
|
|
<span class="liName">
|
|
|
- 主题图
|
|
|
|
|
|
|
+ <span style="color: red">*</span> 主题图
|
|
|
<span style="color: #B3B3B3;font-size: 28rpx">(支持图片/视频上传限20M内,最多1张)</span>
|
|
<span style="color: #B3B3B3;font-size: 28rpx">(支持图片/视频上传限20M内,最多1张)</span>
|
|
|
</span>
|
|
</span>
|
|
|
<div class="detailLi2Box" style="margin: 24rpx 0 0 0">
|
|
<div class="detailLi2Box" style="margin: 24rpx 0 0 0">
|
|
@@ -43,7 +44,7 @@
|
|
|
<span class="liName">
|
|
<span class="liName">
|
|
|
<span style="color: red">*</span> 联系电话
|
|
<span style="color: red">*</span> 联系电话
|
|
|
</span>
|
|
</span>
|
|
|
- <input placeholder="请填写" v-model="phone" class="liIpt">
|
|
|
|
|
|
|
+ <input placeholder="请填写" v-model="form.activityPhone" class="liIpt">
|
|
|
</li>
|
|
</li>
|
|
|
</ul>
|
|
</ul>
|
|
|
</div>
|
|
</div>
|
|
@@ -52,13 +53,14 @@
|
|
|
<li class="detailLi2">
|
|
<li class="detailLi2">
|
|
|
<span class="liName" style="margin-bottom: 16rpx"><span style="color: red">*</span> 活动举办</span>
|
|
<span class="liName" style="margin-bottom: 16rpx"><span style="color: red">*</span> 活动举办</span>
|
|
|
<van-field
|
|
<van-field
|
|
|
- :value="form.contant"
|
|
|
|
|
|
|
+ :value="form.activitiesNotice"
|
|
|
autosize
|
|
autosize
|
|
|
type="textarea"
|
|
type="textarea"
|
|
|
placeholder="请填写活动举办相关信息"
|
|
placeholder="请填写活动举办相关信息"
|
|
|
class="myField"
|
|
class="myField"
|
|
|
maxlength="2000"
|
|
maxlength="2000"
|
|
|
show-word-limit
|
|
show-word-limit
|
|
|
|
|
+ @change="changeNotice"
|
|
|
/>
|
|
/>
|
|
|
</li>
|
|
</li>
|
|
|
<li class="detailLi2">
|
|
<li class="detailLi2">
|
|
@@ -66,13 +68,14 @@
|
|
|
<span style="color: red">*</span> 活动内容
|
|
<span style="color: red">*</span> 活动内容
|
|
|
</span>
|
|
</span>
|
|
|
<van-field
|
|
<van-field
|
|
|
- :value="form.contant"
|
|
|
|
|
|
|
+ :value="form.activityContent"
|
|
|
autosize
|
|
autosize
|
|
|
type="textarea"
|
|
type="textarea"
|
|
|
placeholder="请填写活动举办相关信息"
|
|
placeholder="请填写活动举办相关信息"
|
|
|
class="myField"
|
|
class="myField"
|
|
|
maxlength="2000"
|
|
maxlength="2000"
|
|
|
show-word-limit
|
|
show-word-limit
|
|
|
|
|
+ @change="changeContent"
|
|
|
/>
|
|
/>
|
|
|
<span class="liName" style="margin: 24rpx 0">
|
|
<span class="liName" style="margin: 24rpx 0">
|
|
|
<span style="color: #B3B3B3;font-size: 28rpx">(支持图片上传限20M内,最多6张)</span>
|
|
<span style="color: #B3B3B3;font-size: 28rpx">(支持图片上传限20M内,最多6张)</span>
|
|
@@ -92,9 +95,9 @@
|
|
|
<span style="color: red">*</span> 活动时间
|
|
<span style="color: red">*</span> 活动时间
|
|
|
</span>
|
|
</span>
|
|
|
<div class="choosTimeBox">
|
|
<div class="choosTimeBox">
|
|
|
- <input placeholder="请选择年月日时分" class="timeIpt" disabled v-model="time1" @click="showTime('actStartTime')">
|
|
|
|
|
|
|
+ <input placeholder="请选择年月日时分" class="timeIpt" disabled v-model="form.activityStartTime" @click="showTime('actStartTime')">
|
|
|
<span class="midZ">至</span>
|
|
<span class="midZ">至</span>
|
|
|
- <input placeholder="请选择年月日时分" class="timeIpt" disabled v-model="time2" @click="showTime('actEndTime')">
|
|
|
|
|
|
|
+ <input placeholder="请选择年月日时分" class="timeIpt" disabled v-model="form.activityEndTime" @click="showTime('actEndTime')">
|
|
|
</div>
|
|
</div>
|
|
|
</li>
|
|
</li>
|
|
|
<li class="detailLi2" style="border-bottom: none">
|
|
<li class="detailLi2" style="border-bottom: none">
|
|
@@ -102,8 +105,11 @@
|
|
|
<span style="color: red">*</span> 活动地址
|
|
<span style="color: red">*</span> 活动地址
|
|
|
</span>
|
|
</span>
|
|
|
<div class="placeBox">
|
|
<div class="placeBox">
|
|
|
- <input placeholder="详细地点" class="timeIpt" v-model="place">
|
|
|
|
|
- <van-icon name="location" style="color: rgba(51, 51, 51, 0.90);font-size: 30rpx"/>
|
|
|
|
|
|
|
+ <input placeholder="使用地图拾取" class="timeIpt" v-model="form.activityAddress" disabled>
|
|
|
|
|
+ <van-icon name="location" style="color: rgba(51, 51, 51, 0.90);font-size: 30rpx" @tap="toMap"/>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="placeBox">
|
|
|
|
|
+ <input placeholder="请补充详细地址,如楼栋-门牌号" class="timeIpt" v-model="form.activityAddressDetail">
|
|
|
</div>
|
|
</div>
|
|
|
</li>
|
|
</li>
|
|
|
</ul>
|
|
</ul>
|
|
@@ -113,13 +119,14 @@
|
|
|
<li class="detailLi2">
|
|
<li class="detailLi2">
|
|
|
<span class="liName" style="margin-bottom: 16rpx"><span style="color: red">*</span> 报名条件</span>
|
|
<span class="liName" style="margin-bottom: 16rpx"><span style="color: red">*</span> 报名条件</span>
|
|
|
<van-field
|
|
<van-field
|
|
|
- :value="form.contant"
|
|
|
|
|
|
|
+ :value="form.registrationConditions"
|
|
|
autosize
|
|
autosize
|
|
|
type="textarea"
|
|
type="textarea"
|
|
|
placeholder="请填写活动举办相关信息"
|
|
placeholder="请填写活动举办相关信息"
|
|
|
class="myField"
|
|
class="myField"
|
|
|
maxlength="2000"
|
|
maxlength="2000"
|
|
|
show-word-limit
|
|
show-word-limit
|
|
|
|
|
+ @change="changeCond"
|
|
|
/>
|
|
/>
|
|
|
</li>
|
|
</li>
|
|
|
<li class="detailLi2">
|
|
<li class="detailLi2">
|
|
@@ -129,27 +136,28 @@
|
|
|
<div class="choosTimeBox">
|
|
<div class="choosTimeBox">
|
|
|
<input placeholder="请选择年月日时分" class="timeIpt" disabled v-model="regTime1" @click="showTime('regStartTime')">
|
|
<input placeholder="请选择年月日时分" class="timeIpt" disabled v-model="regTime1" @click="showTime('regStartTime')">
|
|
|
<span class="midZ">至</span>
|
|
<span class="midZ">至</span>
|
|
|
- <input placeholder="活动开始时间" class="timeIpt" disabled v-model="time1" style="background: white">
|
|
|
|
|
|
|
+ <input placeholder="自动带出" class="timeIpt" disabled v-model="form.activityStartTime" style="background: white">
|
|
|
<!-- <span>活动开始时间</span>-->
|
|
<!-- <span>活动开始时间</span>-->
|
|
|
</div>
|
|
</div>
|
|
|
</li>
|
|
</li>
|
|
|
<li class="detailLi2" style="border-bottom: none">
|
|
<li class="detailLi2" style="border-bottom: none">
|
|
|
<span class="liName" style="margin-bottom: 16rpx">活动参与</span>
|
|
<span class="liName" style="margin-bottom: 16rpx">活动参与</span>
|
|
|
<van-field
|
|
<van-field
|
|
|
- :value="form.contant"
|
|
|
|
|
|
|
+ :value="form.activityQuota"
|
|
|
autosize
|
|
autosize
|
|
|
type="textarea"
|
|
type="textarea"
|
|
|
placeholder="请填写限制人数等"
|
|
placeholder="请填写限制人数等"
|
|
|
class="myField"
|
|
class="myField"
|
|
|
maxlength="2000"
|
|
maxlength="2000"
|
|
|
show-word-limit
|
|
show-word-limit
|
|
|
|
|
+ @change="changeQuota"
|
|
|
/>
|
|
/>
|
|
|
</li>
|
|
</li>
|
|
|
</ul>
|
|
</ul>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="buttonBox">
|
|
<div class="buttonBox">
|
|
|
<button class="btn zcBtn">暂存</button>
|
|
<button class="btn zcBtn">暂存</button>
|
|
|
- <button class="btn fbBtn">发布</button>
|
|
|
|
|
|
|
+ <button class="btn fbBtn" @tap="submit('发布')">发布</button>
|
|
|
</div>
|
|
</div>
|
|
|
<van-popup
|
|
<van-popup
|
|
|
:show="timeShow"
|
|
:show="timeShow"
|
|
@@ -167,55 +175,90 @@
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
|
|
|
+import {getByCodes} from "@/js_sdk/http";
|
|
|
export default {
|
|
export default {
|
|
|
data(){
|
|
data(){
|
|
|
- return{
|
|
|
|
|
|
|
+ return {
|
|
|
|
|
+ dc_key:['activity_type'],
|
|
|
timeShow:false,
|
|
timeShow:false,
|
|
|
isCheck:false,
|
|
isCheck:false,
|
|
|
isCheck2:false,
|
|
isCheck2:false,
|
|
|
- time1:'',
|
|
|
|
|
time1Str:'',
|
|
time1Str:'',
|
|
|
time2Str:'',
|
|
time2Str:'',
|
|
|
- time2:'',
|
|
|
|
|
regTime1:'',
|
|
regTime1:'',
|
|
|
regTime1Str:'',
|
|
regTime1Str:'',
|
|
|
place:'',
|
|
place:'',
|
|
|
currentDate: new Date().getTime(),
|
|
currentDate: new Date().getTime(),
|
|
|
form:{
|
|
form:{
|
|
|
- contant:''
|
|
|
|
|
|
|
+ activityName:'',
|
|
|
|
|
+ activityType:'3',
|
|
|
|
|
+ activityPhone: '',
|
|
|
|
|
+ activitiesNotice: '',
|
|
|
|
|
+ activityContent: '',
|
|
|
|
|
+ activityAddress:'',
|
|
|
|
|
+ activityEndTime:'',
|
|
|
|
|
+ activityStartTime:'',
|
|
|
|
|
+ registrationConditions:'',
|
|
|
|
|
+ activityAddressDetail:'',
|
|
|
|
|
+ activityQuota:'',
|
|
|
|
|
+ longitude:'',
|
|
|
|
|
+ latitude:'',
|
|
|
},
|
|
},
|
|
|
phone:'',
|
|
phone:'',
|
|
|
- checkList:[
|
|
|
|
|
- {name:'培训',isCheck:true},
|
|
|
|
|
- {name:'法务',isCheck:false},
|
|
|
|
|
- {name:'财税',isCheck:false},
|
|
|
|
|
- {name:'私募',isCheck:false},
|
|
|
|
|
- ],
|
|
|
|
|
|
|
+ tabList:[],
|
|
|
fileList:[],
|
|
fileList:[],
|
|
|
optionsType:'',
|
|
optionsType:'',
|
|
|
- timePickerType:''
|
|
|
|
|
|
|
+ timePickerType:'',
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
onLoad(options) {
|
|
onLoad(options) {
|
|
|
- console.log(options);
|
|
|
|
|
- this.optionsType = options.type
|
|
|
|
|
- if (options.type==='待处理'){
|
|
|
|
|
- uni.setNavigationBarTitle({
|
|
|
|
|
- title: '报修处理',
|
|
|
|
|
- });
|
|
|
|
|
- }else if(options.type==='已处理'){
|
|
|
|
|
- uni.setNavigationBarTitle({
|
|
|
|
|
- title: '报修详情',
|
|
|
|
|
- });
|
|
|
|
|
- }else {
|
|
|
|
|
- uni.setNavigationBarTitle({
|
|
|
|
|
- title: '报修派单',
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ console.log('options',options);
|
|
|
|
|
+ },
|
|
|
|
|
+ onShow(){
|
|
|
|
|
+ this.getByCodes()
|
|
|
},
|
|
},
|
|
|
methods:{
|
|
methods:{
|
|
|
|
|
+ toMap(){
|
|
|
|
|
+ let _this = this
|
|
|
|
|
+ uni.chooseLocation({
|
|
|
|
|
+ success: function (res) {
|
|
|
|
|
+ console.log('选择的位置:', res.name);
|
|
|
|
|
+ _this.form.activityAddress = res.name
|
|
|
|
|
+ console.log('纬度:' + res.latitude + ',经度:' + res.longitude);
|
|
|
|
|
+ _this.form.longitude = res.longitude
|
|
|
|
|
+ _this.form.latitude = res.latitude
|
|
|
|
|
+ // 其他业务逻辑
|
|
|
|
|
+ },
|
|
|
|
|
+ fail: function (error) {
|
|
|
|
|
+ console.error('Choose location failed: ' + JSON.stringify(error));
|
|
|
|
|
+ },
|
|
|
|
|
+ complete: function () {
|
|
|
|
|
+ console.log('chooseLocation operation is complete');
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+ changeActivityName(e){
|
|
|
|
|
+ this.form.activityName = e.detail
|
|
|
|
|
+ },
|
|
|
|
|
+ changeNotice(e){
|
|
|
|
|
+ this.form.activitiesNotice = e.detail
|
|
|
|
|
+ },
|
|
|
|
|
+ changeContent(e){
|
|
|
|
|
+ this.form.activityContent = e.detail
|
|
|
|
|
+ },
|
|
|
|
|
+ changeCond(e){
|
|
|
|
|
+ this.form.registrationConditions = e.detail
|
|
|
|
|
+ },
|
|
|
|
|
+ changeQuota(e){
|
|
|
|
|
+ this.form.activityQuota = e.detail
|
|
|
|
|
+ },
|
|
|
|
|
+ async getByCodes() {
|
|
|
|
|
+ let data = await getByCodes(JSON.stringify(this.dc_key));
|
|
|
|
|
+ this.tabList = this.$common.handleDicList(data).activity_type;
|
|
|
|
|
+ console.log('this.tabList',this.tabList)
|
|
|
|
|
+ },
|
|
|
clickCheck(item){
|
|
clickCheck(item){
|
|
|
- item.isCheck = !item.isCheck
|
|
|
|
|
|
|
+ this.form.activityType = item.value
|
|
|
},
|
|
},
|
|
|
selectTime(e){
|
|
selectTime(e){
|
|
|
const dateString = this.timestampToDate(e.detail);
|
|
const dateString = this.timestampToDate(e.detail);
|
|
@@ -226,10 +269,10 @@ export default {
|
|
|
this.$showToast("请选择合理时间");
|
|
this.$showToast("请选择合理时间");
|
|
|
return
|
|
return
|
|
|
}else{
|
|
}else{
|
|
|
- this.time1 = dateString
|
|
|
|
|
|
|
+ this.form.activityStartTime = dateString
|
|
|
}
|
|
}
|
|
|
}else{
|
|
}else{
|
|
|
- this.time1 = dateString
|
|
|
|
|
|
|
+ this.form.activityStartTime = dateString
|
|
|
}
|
|
}
|
|
|
}else if(this.timePickerType === 'actEndTime'){
|
|
}else if(this.timePickerType === 'actEndTime'){
|
|
|
this.time2Str = e.detail
|
|
this.time2Str = e.detail
|
|
@@ -238,10 +281,10 @@ export default {
|
|
|
this.$showToast("请选择合理时间");
|
|
this.$showToast("请选择合理时间");
|
|
|
return
|
|
return
|
|
|
}else{
|
|
}else{
|
|
|
- this.time2 = dateString
|
|
|
|
|
|
|
+ this.form.activityEndTime = dateString
|
|
|
}
|
|
}
|
|
|
}else{
|
|
}else{
|
|
|
- this.time2 = dateString
|
|
|
|
|
|
|
+ this.form.activityEndTime = dateString
|
|
|
}
|
|
}
|
|
|
}else if(this.timePickerType === 'regStartTime'){
|
|
}else if(this.timePickerType === 'regStartTime'){
|
|
|
this.regTime1Str = e.detail
|
|
this.regTime1Str = e.detail
|
|
@@ -260,17 +303,70 @@ export default {
|
|
|
// console.log(dateString)
|
|
// console.log(dateString)
|
|
|
},
|
|
},
|
|
|
showTime(e){
|
|
showTime(e){
|
|
|
- this.timePickerType = e
|
|
|
|
|
- this.timeShow = true
|
|
|
|
|
|
|
+ if (e === 'regStartTime'){
|
|
|
|
|
+ if (!this.form.activityStartTime){
|
|
|
|
|
+ this.$showToast("请先在上方选择活动开始时间");
|
|
|
|
|
+ }else{
|
|
|
|
|
+ this.timePickerType = e
|
|
|
|
|
+ this.timeShow = true
|
|
|
|
|
+ }
|
|
|
|
|
+ } else{
|
|
|
|
|
+ this.timePickerType = e
|
|
|
|
|
+ this.timeShow = true
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
|
|
+
|
|
|
|
|
+ submit(e){
|
|
|
|
|
+ const _this = this;
|
|
|
|
|
+ if (_this.form.activityName === "") {
|
|
|
|
|
+ this.$showToast("请填写活动主题");
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ if (_this.form.activityType === "") {
|
|
|
|
|
+ this.$showToast("请选择活动类型");
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ if (_this.form.registrationStartTime === "") {
|
|
|
|
|
+ this.$showToast("请选择报名开始时间");
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ if (_this.form.registrationEndTime === "") {
|
|
|
|
|
+ this.$showToast("请选择报名结束时间");
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ if (_this.form.activityStartTime === "") {
|
|
|
|
|
+ this.$showToast("请选择活动开始时间");
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ if (_this.form.activityEndTime === "") {
|
|
|
|
|
+ this.$showToast("请选择活动结束时间");
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ if (!_this.fileList.length) {
|
|
|
|
|
+ this.$showToast("请上传主题图");
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ if (_this.form.activityPhone === "") {
|
|
|
|
|
+ this.$showToast("请输入联系电话");
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ if (_this.form.activityAddress === "") {
|
|
|
|
|
+ this.$showToast("请输入活动地址");
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ // 差报名条件等必填
|
|
|
|
|
+ console.log(_this.form)
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
deleteRYXXZP(event) {
|
|
deleteRYXXZP(event) {
|
|
|
this.fileList.splice(event.detail.index, 1);
|
|
this.fileList.splice(event.detail.index, 1);
|
|
|
this.$forceUpdate();
|
|
this.$forceUpdate();
|
|
|
},
|
|
},
|
|
|
uploadRYXXZP(event) {
|
|
uploadRYXXZP(event) {
|
|
|
- console.log(event)
|
|
|
|
|
|
|
+ // console.log(event)
|
|
|
let that = this;
|
|
let that = this;
|
|
|
const { file } = event.detail;
|
|
const { file } = event.detail;
|
|
|
|
|
+ console.log(event.detail)
|
|
|
uni.uploadFile({
|
|
uni.uploadFile({
|
|
|
url: that.$constant.BASE_URI + "/wx/fileController/upload",
|
|
url: that.$constant.BASE_URI + "/wx/fileController/upload",
|
|
|
filePath: file.url,
|
|
filePath: file.url,
|
|
@@ -279,15 +375,29 @@ export default {
|
|
|
success(res) {
|
|
success(res) {
|
|
|
// 上传完成需要更新 fileList
|
|
// 上传完成需要更新 fileList
|
|
|
let data = JSON.parse(res.data);
|
|
let data = JSON.parse(res.data);
|
|
|
- that.fileList.push({
|
|
|
|
|
- imgUrl: "/FileController/download/" + data.data[0],
|
|
|
|
|
- id: data.data[0],
|
|
|
|
|
- url:
|
|
|
|
|
- that.$constant.BASE_URI +
|
|
|
|
|
- "/FileController/download/" +
|
|
|
|
|
- data.data[0],
|
|
|
|
|
- isImage: true,
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ if (event.detail.file.type==='image'){
|
|
|
|
|
+ that.fileList.push({
|
|
|
|
|
+ imgUrl: "/FileController/download/" + data.data[0],
|
|
|
|
|
+ id: data.data[0],
|
|
|
|
|
+ url:
|
|
|
|
|
+ that.$constant.BASE_URI +
|
|
|
|
|
+ "/FileController/download/" +
|
|
|
|
|
+ data.data[0],
|
|
|
|
|
+ type:event.detail.file.type,
|
|
|
|
|
+ isImage:true,
|
|
|
|
|
+ });
|
|
|
|
|
+ }else{
|
|
|
|
|
+ that.fileList.push({
|
|
|
|
|
+ imgUrl: "/FileController/download/" + data.data[0],
|
|
|
|
|
+ id: data.data[0],
|
|
|
|
|
+ url:
|
|
|
|
|
+ that.$constant.BASE_URI +
|
|
|
|
|
+ "/FileController/download/" +
|
|
|
|
|
+ data.data[0],
|
|
|
|
|
+ type:event.detail.file.type,
|
|
|
|
|
+ isVideo:true
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
fail(res) {},
|
|
fail(res) {},
|
|
|
});
|
|
});
|
|
@@ -425,7 +535,8 @@ export default {
|
|
|
display: flex;
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
- margin-top: 8rpx;
|
|
|
|
|
|
|
+ font-size: 32rpx;
|
|
|
|
|
+ margin: 12rpx 0;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|