This commit is contained in:
jiangnan 2023-08-03 13:02:16 +08:00
parent fe9fd1c789
commit 55713a73f2
2 changed files with 44 additions and 119 deletions

View File

@ -23,7 +23,7 @@
<u-radio-group @change="selectForm1" v-model="programs" :borderBottom="true" placement="column"
iconPlacement="right">
<u-radio :customStyle="{ marginBottom: '16px' }" v-for="(item, index) in program" :key="index" :label="item.name"
labelSize="28rpx" labelColor="#231F1C" :name="item.id" activeColor="#99241B ">
labelSize="28rpx" labelColor="#231F1C" :name="item.name" activeColor="#99241B ">
</u-radio>
<u-button class="custom-style" style="background-color:#99241B ; color: #FFFFFF; margin-top: 32rpx;"
type="default" @click="showType = false">确认</u-button>
@ -41,9 +41,9 @@
</view>
</view>
<u-popup :show="showTypes" @close="close" closeOnClickOverlay :round="5" customStyle="padding: 16px;">
<u-radio-group @change="selectForm1" v-model="teams" :borderBottom="true" placement="column" iconPlacement="right">
<u-radio-group @change="selectForm2" v-model="teams" :borderBottom="true" placement="column" iconPlacement="right">
<u-radio :customStyle="{ marginBottom: '16px' }" v-for="(item, index) in team" :key="index" :label="item.name"
labelSize="28rpx" labelColor="#231F1C" :name="item.id" activeColor="#99241B ">
labelSize="28rpx" labelColor="#231F1C" :name="item.name" activeColor="#99241B ">
</u-radio>
<u-button class="custom-style" style="background-color:#99241B ; color: #FFFFFF; margin-top: 32rpx;"
type="default" @click="showTypes = false">确认</u-button>
@ -106,8 +106,10 @@ export default {
ok: true,
team: [],
teams: '',
teamsId: '',
program: [],
programs: '',
programsId: '',
showTypes: false
}
},
@ -128,32 +130,6 @@ export default {
this.eTime = gettime
this.wTime = gettime
},
//
// getTypeList () {
// this.http.request('/hallType/list', {}, "GET").then(res => {
// if (res.code == 200) {
// this.radiolist1 = res.data.records
// }
// }).catch(e => {
// uni.showToast({
// title: e.data.message,
// icon: "none",
// });
// })
// },
//
// getUserList () {
// this.http.request('/hall/yhlx', {}, "GET").then(res => {
// if (res.code == 200) {
// this.radiolist2 = res.data
// }
// }).catch(e => {
// uni.showToast({
// title: e.data.message,
// icon: "none",
// });
// })
// },
close () {
this.showType = false
this.showTime = false
@ -161,9 +137,18 @@ export default {
},
selectForm1 (form) {
let _this = this
this.radiolist1.forEach(function (item) {
this.program.forEach((item) => {
if (item.name == form) {
_this.typeId = item.code
_this.teamsId = item.id
}
})
},
selectForm2 (form) {
let _this = this
this.team.forEach(function (item) {
if (item.name == form) {
_this.programsId = item.id
}
})
},
@ -179,82 +164,6 @@ export default {
}
this.showTime = false
},
// selectForm2 () {
// let _this = this
// let code = []
// this.radiolist2.forEach(function (item) {
// _this.radiovalue2.forEach(function (ele) {
// if (item.label == ele) {
// code.push(item.value)
// }
// })
// })
// this.userTypeValue = code.join(',')
// this.userType = this.radiovalue2.join(',')
// this.showUser = false
// },
changeTrue (e) {
console.log('change', e);
},
valChange (e) {
console.log('当前值为: ' + e.value)
},
//
deletePic (event) {
this[`fileList${event.name}`].splice(event.index, 1)
},
//
// async afterRead (event) {
// // mutiple true , file
// let lists = [].concat(event.file)
// let fileListLen = this[`fileList${event.name}`].length
// lists.map((item) => {
// this[`fileList${event.name}`].push({
// ...item,
// status: 'uploading',
// message: ''
// })
// })
// for (let i = 0; i < lists.length; i++) {
// const result = await this.uploadFilePromise(lists[i].url)
// let item = this[`fileList${event.name}`][fileListLen]
// this[`fileList${event.name}`].splice(fileListLen, 1, Object.assign(item, {
// status: 'success',
// message: '',
// url: result
// }))
// fileListLen++
// }
// },
// uploadFilePromise (url) {
// let token = uni.getStorageSync('token');
// return new Promise((resolve, reject) => {
// let a = uni.uploadFile({
// url: http.config.baseUrl + '/file/upload',
// filePath: url,
// name: 'file',
// formData: {
// user: 'test'
// },
// header: {
// "X-Token": token
// },
// success: (res) => {
// if (JSON.parse(res.data).code == 200) {
// setTimeout(() => {
// resolve(JSON.parse(res.data).data.path)
// }, 1000)
// } else {
// uni.showToast({
// title: JSON.parse(res.data).message,
// icon: "none",
// });
// this.fileList3.pop()
// }
// }
// });
// })
// },
next () {
this.ok = true
if (this.title == '') {
@ -317,8 +226,8 @@ export default {
this.http.request('/artCountryside/add', {
title: this.title,
showId: this.programs,
teams: this.teams,
showId: this.programsId,
teamId: this.teamsId,
endTime: this.eTime,
startTime: this.wTime,
}, "POST").then(res => {
@ -355,7 +264,6 @@ export default {
})
}
}
}
</script>

View File

@ -19,7 +19,9 @@
<view v-if="team.length > 0">
<view class="teamBox" v-for="(item, index) in team">
<view class="teamBox-right">
<image :src="item.file" mode=""></image>
<!-- <image :src="item.file" mode=""></image> -->
<image src="../../static/txIcon.png" mode=""></image>
<!-- txIcon -->
</view>
<view class="teamBox-left">
<view class="teamMinbox-top">
@ -41,7 +43,8 @@
<view v-if="program.length > 0">
<view class="teamBox" v-for="(item, index) in program">
<view class="teamBox-right">
<image :src="item.file" mode=""></image>
<!-- <image :src="item.file" mode=""></image> -->
<image src="../../static/txIcon.png" mode=""></image>
</view>
<view class="teamBox-left">
<view class="teamMinbox-top">
@ -65,15 +68,24 @@
</view>
<view class="main" v-if="mainList.length > 0">
<view class="mainList" v-for="(item, i) in mainList" :key="i">
<view class="mainListImg" @click="toDetail(item.id)">
<!-- <view class="mainListImg" @click="toDetail(item.id)">
<img class='img' :src="item.enclosure" alt="">
</view>
</view> -->
<view class="text">
<view class="text1">{{ item.title }}</view>
<view class="text2">{{ item.content }}</view>
<view class="text3">
<view class="time">节目{{ item.teamName }}</view>
</view>
<view class="text3">
<view class="time">团队{{ item.showName }}</view>
</view>
<view class="text3">
<img class='mainListTime' src="../../static/orderHall/mainListTime.png" alt="">
<view class="time">截止时间{{ item.deadline }}</view>
<view class="time">开始时间{{ item.startTime }}</view>
</view>
<view class="text3">
<img class='mainListTime' src="../../static/orderHall/mainListTime.png" alt="">
<view class="time">截止时间{{ item.endTime }}</view>
</view>
</view>
</view>
@ -209,6 +221,8 @@ export default {
height: 140rpx;
padding: 18rpx 10rpx;
background-color: #fff;
// background-color: rgb(241, 243, 244);
border: 1px solid rgb(241, 243, 244);
margin-bottom: 20rpx;
display: flex;
@ -276,10 +290,13 @@ image {
.main {
padding: 32rpx;
// background-color: #F4F5F7;
// background-color: rgb(241, 243, 244);
border: 1px solid rgb(241, 243, 244);
border-radius: 16rpx;
.mainList {
margin-bottom: 32rpx;
border-radius: 16rpx;
// border-radius: 16rpx;
// background-color: rgb(241, 243, 244);
overflow: hidden;
.mainListImg {
@ -300,7 +317,7 @@ image {
.text {
padding: 32rpx;
background-color: #FFF;
// background-color: #FFF;
.text1 {
font-size: 32rpx;