This commit is contained in:
lnn19986213 2023-08-28 14:03:06 +08:00
parent dd621898c1
commit 03005b7e0b
9 changed files with 676 additions and 618 deletions

View File

@ -96,7 +96,7 @@
// vueproxyTable, // vueproxyTable,
"/pre" : { "/pre" : {
// //
"target" : "http://192.168.1.3:8080/h5/api", // "target" : "http://192.168.1.31:8080/h5/api", //
// "target" : "https://yxx.ydool.net/h5/api", // // "target" : "https://yxx.ydool.net/h5/api", //
"changeOrigin" : true, // "changeOrigin" : true, //

View File

@ -82,11 +82,21 @@
<view class="btn" @click="throwWork">报名</view> <view class="btn" @click="throwWork">报名</view>
</view> </view>
</view> </view>
<view class="" v-else> <view class="" v-else-if="data.status == 1">
<view class="orderBtn"> <view class="orderBtn">
<view class="btnQ">报名已截止</view> <view class="btnQ">报名已截止</view>
</view> </view>
</view> </view>
<view class="" v-else-if="data.status == 2">
<view class="orderBtn">
<view class="btnQ">活动已结束</view>
</view>
</view>
<view class="" v-else>
<view class="orderBtn">
<view class="btnQ">活动未开始</view>
</view>
</view>
</view> </view>
<!-- 红色按钮ed --> <!-- 红色按钮ed -->
<view class="activityDetails"> <view class="activityDetails">
@ -97,7 +107,7 @@
</view> </view>
<view class="worksPart" v-if="workList.length > 0"> <view class="worksPart" v-if="workList.length > 0">
<view class="workItems" v-for="(v,i) in workList" :key="i" @click="goWorkDetail(v.id)"> <view class="workItems" v-for="(v,i) in workList" :key="i" @click="goWorkDetail(v.id)">
<view class="sort" v-if="data.status != 0"> <view class="sort" v-if="data.status == 2">
<text>NO.<text style="font-size: 32rpx;">{{ i+1 }}</text></text> <text>NO.<text style="font-size: 32rpx;">{{ i+1 }}</text></text>
<text>{{ v.averageScore }}</text> <text>{{ v.averageScore }}</text>
</view> </view>

View File

@ -29,18 +29,15 @@
<view class="textList" v-if="isExpert"> <view class="textList" v-if="isExpert">
<view class="type"> <view class="type">
<img class='textImg' src="../../static/detailIcon/icon10.png" alt=""> <img class='textImg' src="../../static/detailIcon/icon10.png" alt="">
<view class="text1">您的评分<text class="redText" v-if="data.myScore">{{ data.myScore }}</text><text>暂无</text></view> <view class="text1">您的评分<text class="redText" v-if="data.myScore">{{ data.myScore }}</text><text v-else>暂无</text></view>
</view> </view>
</view> </view>
</view> </view>
<view class="line"></view> <view class="line"></view>
<!-- 红色按钮 --> <!-- 红色按钮 -->
<view> <view>
<view class="" v-if="isExpert"> <view class="" v-if="isExpert && data.status != 2">
<view class="orderBtn" v-if="data.isScore"> <view class="orderBtn" >
<view class="btnQ">已评分</view>
</view>
<view class="orderBtn" v-else>
<view class="btn" @click="toScore">评分</view> <view class="btn" @click="toScore">评分</view>
</view> </view>
</view> </view>

View File

@ -1,243 +1,282 @@
<template> <template>
<!-- 文艺下乡 --> <!-- 文艺下乡 -->
<view class="wyxx"> <view class="wyxx" :style="{backgroundImage: 'url('+background+')'}">
<view class="tabTitle"> <view class="tabTitle">
<view :class="tabC == '0' ? 'tabsC' : 'tabs'" @click="toTab('0')"> <view :class="tabC == '2' ? 'tabsC' : 'tabs'" @click="toTab('2')">
<view> 组织架构 </view> <view> 发展历程 </view>
<view class="line"></view> <view class="line"></view>
</view> </view>
<view :class="tabC == '1' ? 'tabsC' : 'tabs'" @click="toTab('1')"> <view :class="tabC == '0' ? 'tabsC' : 'tabs'" @click="toTab('0')">
<view> 人员信息 </view> <view> 组织架构 </view>
<view class="line"></view> <view class="line"></view>
</view> </view>
<view :class="tabC == '2' ? 'tabsC' : 'tabs'" @click="toTab('2')"> <view :class="tabC == '1' ? 'tabsC' : 'tabs'" @click="toTab('1')">
<view> 发展历程 </view> <view> 人员信息 </view>
<view class="line"></view> <view class="line"></view>
</view> </view>
</view> </view>
<view class="forms" v-if="tabC == '0'"> <view class="forms" v-if="tabC == '0'">
<view class="teamBox" v-for="(item, index) in 2" :key="index"> <image :src="zzjg" mode="widthFix" style="width: 100%;"></image>
<view class="teamBox-right"> </view>
<view class="item-image"> <view class="forms" v-if="tabC == '1'">
<image src="../../static/txIcon.png" mode=""></image> <!-- <view class="teamBox" v-for="item in list" :key="item.id" @click="onInfo(item.id)"> -->
</view> <view class="teamBox" v-for="item in list" :key="item.id">
</view> <view class="teamBox-right">
<view class="teamBox-left"> <view class="item-image">
<view class="teamMinbox-top"> {{ item.userName }}
<view class="title">xx团队</view> <!-- <image src="../../static/txIcon.png" mode=""></image> -->
<view class="street">丹东街道</view> </view>
</view> </view>
<view class="teamMinbox-bottom"> <view class="teamBox-left">
xx团队xx团队xx团队xx团队xx团队xx团队xx团队xx团队xx团队xx团队xx团队xx团队xx团队xx团队xx团队xx团队xx团队 <view class="teamMinbox-top">
</view> <view class="title">{{ item.userName }}</view>
</view> <view class="street">{{ item.identity }}</view>
</view> </view>
</view> <view class="teamMinbox-bottom">
<view class="forms" v-if="tabC == '1'"> {{ item.introduce }}
<view </view>
class="teamBox" </view>
v-for="item in list" </view>
:key="item.id" </view>
@click="onInfo(item.id)" <view class="wljj" v-if="tabC == '2'">
> <view class="wlTitle">象山县文联简介</view>
<view class="teamBox-right"> <p>
<view class="item-image">  象山县文学艺术界联合会简称象山县文联是党领导下由全县文艺家协会组成的人民团体是党和政府联系文艺工作者的桥梁和纽带县文联成立于1986年12月现有12个文艺家协会公安文联华翔文联和18个乡镇街道文联县级文艺家协会会员1200余人乡镇街道文联会员2300余人部门文联和企业文联会员190余人其中国家级会员74人机关内设创作研究室文艺家服务中心下辖青年画院联系德和根艺美术馆主办文学刊物象山港
{{ item.userName }} </p>
<!-- <image src="../../static/txIcon.png" mode=""></image> --> <p>
</view> 近几年来县文联深入学习贯彻党的十九大精神和习近平总书记系列重要讲话精神紧紧围绕出作品出人才出影响出形象总体目标团结带领全县文艺工作者坚持以人民为中心的创作导向专心致志搞创作同心同德促繁荣各方面工作取得可喜成绩出版专著书刊50余部在国家级报刊上发表文章50余篇60余件作品获得专业性全国级奖项其中有中国民间文艺山花奖4
</view> 中国曲艺牡丹奖1 全国群星奖2 全国摄影艺术展奖4 省优秀文学作品奖2 五个一工程奖2并使我县先后获得中国民间艺术竹根雕之乡中国渔文化之乡等荣誉称号
<view class="teamBox-left"> </p>
<view class="teamMinbox-top"> <p>
<view class="title">{{ item.userName }}</view>  围绕中心服务大局精心组织了一系列重大文艺品牌活动文艺惠民活动深入人心送万福进万家送欢乐下基层文艺快闪等为代表的一批文艺活动形成品牌效应为团结引领各领域文艺人才提供强大保障
<view class="street">{{ item.identity }}</view> </p>
</view> <p>
<view class="teamMinbox-bottom"> 展望未来县文联将团结带领广大文艺工作者紧紧围绕县委县政府的中心工作开拓创新携手共进勇攀艺术高峰为加快建设海洋文化强县作出新的贡献
{{ item.introduce }} </p>
</view> </view>
</view> </view>
</view>
</view>
<view class="forms" v-if="tabC == '2'">
<view class="teamBox" v-for="(item, index) in 3" :key="index">
<view class="teamBox-right">
<view class="item-image">
<image src="../../static/txIcon.png" mode=""></image>
</view>
</view>
<view class="teamBox-left">
<view class="teamMinbox-top">
<view class="title">xx团队</view>
<view class="street">丹东街道</view>
</view>
<view class="teamMinbox-bottom">
xx团队xx团队xx团队xx团队xx团队xx团队xx团队xx团队xx团队xx团队xx团队xx团队xx团队xx团队xx团队xx团队xx团队
</view>
</view>
</view>
</view>
</view>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
tabC: "0", tabC: "0",
list: [], list: [],
}; background:'',
}, zzjg: ''
onShow() { };
this.get(); },
}, onShow() {
methods: { this.get();
get() { },
this.http methods: {
.request("/organPerson/list", {}, "GET") get() {
.then((res) => { this.http
if (res.code == 200) { .request("/organPerson/list", {}, "GET")
this.list = res.data.records; .then((res) => {
} if (res.code == 200) {
}) this.list = res.data.records;
.catch((err) => { this.getBackgroundImage()
uni.showToast({ }
title: e.data.message, })
icon: "none", .catch((err) => {
}); uni.showToast({
}); title: e.data.message,
}, icon: "none",
toTab(val) { });
this.tabC = val; });
}, },
onInfo(obj) { toTab(val) {
this.http this.tabC = val;
.request("/organPerson/details", { id: obj }, "GET") },
.then((res) => { onInfo(obj) {
if (res.code == 200) { this.http
} .request("/organPerson/details", {
}) id: obj
.catch((err) => { }, "GET")
uni.showToast({ .then((res) => {
title: e.data.message, if (res.code == 200) {}
icon: "none", })
}); .catch((err) => {
}); uni.showToast({
}, title: e.data.message,
}, icon: "none",
}; });
});
},
//
getBackgroundImage() {
this.http.request('/indexImage/wlBackgroundImage', {}, "GET").then(res => {
if (res.code == 200) {
this.zzjg = res.data[0].imagePath
this.background = res.data[1].imagePath
}
}).catch(e => {
uni.showToast({
title: e.data.message,
icon: "none",
});
})
},
},
};
</script> </script>
<style lang="scss"> <style lang="scss">
.wyxx { .wyxx {
background-color: #fefefe; width: 100%;
} min-height: 100%;
background-color: #fefefe;
background-position: center top;
background-size: 100% 100%;
}
.tabTitle { .tabTitle {
display: flex; display: flex;
width: 100%; width: 100%;
background: #ffffff;
.tabs { .tabs {
width: 33.3%; width: 33.3%;
text-align: center; text-align: center;
padding: 32rpx 0 0rpx; padding: 32rpx 0 0rpx;
font-size: 28rpx; font-size: 28rpx;
font-weight: 400; font-weight: 400;
color: #333333; color: #333333;
.line { .line {
width: 36rpx; width: 36rpx;
height: 4rpx; height: 4rpx;
margin: 10rpx auto 8rpx; margin: 10rpx auto 8rpx;
} }
} }
.tabsC { .tabsC {
width: 33.3%; width: 33.3%;
text-align: center; text-align: center;
padding: 32rpx 0 0; padding: 32rpx 0 0;
font-size: 28rpx; font-size: 28rpx;
font-weight: 600; font-weight: 600;
color: #000; color: #000;
.line { .line {
width: 44rpx; width: 44rpx;
height: 4rpx; height: 4rpx;
margin: 10rpx auto 8rpx; margin: 10rpx auto 8rpx;
background-color: #a02521; background-color: #a02521;
} }
} }
} }
.forms { .forms {
width: 90%; width: 686rpx;
// height: 40rpx; // height: 40rpx;
// background-color: skyblue; // background-color: skyblue;
margin: 40rpx auto 0rpx; padding: 40rpx 32rpx 0rpx;
.teamBox {
height: 140rpx; .teamBox {
padding: 18rpx 10rpx; height: 140rpx;
background-color: #fff; padding: 18rpx 10rpx;
margin-bottom: 20rpx; background-color: #fff;
display: flex; margin-bottom: 20rpx;
.teamBox-right { display: flex;
margin-right: 20rpx;
width: 159rpx; .teamBox-right {
height: 159rpx; margin-right: 20rpx;
.item-image { width: 159rpx;
width: 159rpx; height: 159rpx;
height: 159rpx;
display: flex; .item-image {
align-items: center; width: 159rpx;
justify-content: center; height: 159rpx;
background: rgba(152, 149, 149, 0.5); display: flex;
color: rgb(240, 239, 239); align-items: center;
font-style: 64rpx; justify-content: center;
font-weight: bolder; background: rgba(152, 149, 149, 0.5);
border-radius: 50%; color: rgb(240, 239, 239);
overflow: hidden; font-style: 64rpx;
image { font-weight: bolder;
width: 159rpx; border-radius: 50%;
height: 159rpx; overflow: hidden;
border-radius: 50%;
background-size: contain; image {
} width: 159rpx;
} height: 159rpx;
} border-radius: 50%;
.teamBox-left { background-size: contain;
// width: 400rpx; }
.teamMinbox-top { }
display: flex; }
margin-bottom: 16rpx;
.title { .teamBox-left {
font-weight: 600;
font-size: 32rpx; // width: 400rpx;
max-width: 160rpx; .teamMinbox-top {
overflow: hidden; /* 超出一行文字自动隐藏 */ display: flex;
text-overflow: ellipsis; /*文字隐藏后添加省略号*/ margin-bottom: 16rpx;
white-space: nowrap;
} .title {
.street { font-weight: 600;
height: 40rpx; font-size: 32rpx;
border-radius: 30rpx; max-width: 160rpx;
background-color: rgba(240, 240, 240, 1); overflow: hidden;
color: #a02521; /* 超出一行文字自动隐藏 */
margin-left: 18rpx; text-overflow: ellipsis;
padding: 2rpx 20rpx; /*文字隐藏后添加省略号*/
max-width: 120rpx; white-space: nowrap;
overflow: hidden; /* 超出一行文字自动隐藏 */ }
text-overflow: ellipsis; /*文字隐藏后添加省略号*/
white-space: nowrap; .street {
} height: 40rpx;
} border-radius: 30rpx;
.teamMinbox-bottom { background-color: rgba(240, 240, 240, 1);
font-size: 28rpx; color: #a02521;
overflow: hidden; margin-left: 18rpx;
text-overflow: ellipsis; padding: 2rpx 20rpx;
display: -webkit-box; max-width: 120rpx;
-webkit-line-clamp: 2; overflow: hidden;
-webkit-box-orient: vertical; /* 超出一行文字自动隐藏 */
} text-overflow: ellipsis;
} /*文字隐藏后添加省略号*/
} white-space: nowrap;
} }
</style> }
.teamMinbox-bottom {
font-size: 28rpx;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
}
}
}
.wljj {
padding: 40rpx 32rpx 60rpx;
width: 686rpx;
background-position: center top;
background-size: 100% auto;
.wlTitle {
width: 100%;
text-align: center;
font-size: 60rpx;
font-weight: bold;
color: #6F6053;
margin: 40rpx 0 60rpx;
}
p {
text-indent: 2em;
font-size: 30rpx;
font-family: Source Han Sans CN;
font-weight: 400;
color: #000000;
line-height: 62rpx;
}
}
</style>

View File

@ -1,350 +1,358 @@
<template> <template>
<view class="box"> <view class="box">
<view class="form_line"> <view class="form_line">
<view class="form_left"> <view class="form_left">
标题 标题
</view> </view>
<view class="form_right"> <view class="form_right">
<u--input placeholder="请输入名称" v-model="title" clearable border="none" inputAlign="right" style="color: #251B1D;"> <u--input placeholder="请输入名称" v-model="title" clearable border="none" inputAlign="right"
</u--input> style="color: #251B1D;">
</view> </u--input>
</view> </view>
<view class="form_line"> </view>
<view class="form_left"> <view class="form_line">
节目 <view class="form_left">
</view> 节目
<view class="form_right" @click="showType = true"> </view>
<u--input placeholder="请选择" clearable border="none" inputAlign="right" style="color: #251B1D;" <view class="form_right" @click="showType = true">
suffixIcon="arrow-right" readonly v-model="programs" disabledColor="#ffffff"> <u--input placeholder="请选择" clearable border="none" inputAlign="right" style="color: #251B1D;"
</u--input> suffixIcon="arrow-right" readonly v-model="programs" disabledColor="#ffffff">
</view> </u--input>
</view> </view>
<u-popup :show="showType" @close="close" closeOnClickOverlay :round="5" customStyle="padding: 16px;"> </view>
<u-radio-group @change="selectForm1" v-model="programs" :borderBottom="true" placement="column" <u-popup :show="showType" @close="close" closeOnClickOverlay :round="5" customStyle="padding: 16px;">
iconPlacement="right"> <scroll-view style='height: 500rpx;' scroll-y="true">
<u-radio :customStyle="{ marginBottom: '16px' }" v-for="(item, index) in program" :key="index" :label="item.name" <u-radio-group @change="selectForm1" v-model="programs" :borderBottom="true" placement="column"
labelSize="28rpx" labelColor="#231F1C" :name="item.name" activeColor="#99241B "> iconPlacement="right">
</u-radio> <u-radio :customStyle="{ marginBottom: '16px' }" v-for="(item, index) in program" :key="index"
<u-button class="custom-style" style="background-color:#99241B ; color: #FFFFFF; margin-top: 32rpx;" :label="item.name" labelSize="28rpx" labelColor="#231F1C" :name="item.name"
type="default" @click="showType = false">确认</u-button> activeColor="#99241B ">
</u-radio-group> </u-radio>
</u-popup> </u-radio-group>
</scroll-view>
<u-button class="custom-style" style="background-color:#99241B ; color: #FFFFFF; margin-top: 32rpx;"
type="default" @click="showType = false">确认</u-button>
</u-popup>
<view class="form_line"> <view class="form_line">
<view class="form_left"> <view class="form_left">
团队 团队
</view> </view>
<view class="form_right" @click="showTypes = true"> <view class="form_right" @click="showTypes = true">
<u--input placeholder="请选择" clearable border="none" inputAlign="right" style="color: #251B1D;" <u--input placeholder="请选择" clearable border="none" inputAlign="right" style="color: #251B1D;"
suffixIcon="arrow-right" readonly v-model="teams" disabledColor="#ffffff"> suffixIcon="arrow-right" readonly v-model="teams" disabledColor="#ffffff">
</u--input> </u--input>
</view> </view>
</view> </view>
<u-popup :show="showTypes" @close="close" closeOnClickOverlay :round="5" customStyle="padding: 16px;"> <u-popup :show="showTypes" @close="close" closeOnClickOverlay :round="5" customStyle="padding: 16px;">
<u-radio-group @change="selectForm2" v-model="teams" :borderBottom="true" placement="column" iconPlacement="right"> <scroll-view style='height: 500rpx;' scroll-y="true">
<u-radio :customStyle="{ marginBottom: '16px' }" v-for="(item, index) in team" :key="index" :label="item.name" <u-radio-group @change="selectForm2" v-model="teams" :borderBottom="true" placement="column"
labelSize="28rpx" labelColor="#231F1C" :name="item.name" activeColor="#99241B "> iconPlacement="right">
</u-radio> <u-radio :customStyle="{ marginBottom: '16px' }" v-for="(item, index) in team" :key="index"
<u-button class="custom-style" style="background-color:#99241B ; color: #FFFFFF; margin-top: 32rpx;" :label="item.name" labelSize="28rpx" labelColor="#231F1C" :name="item.name"
type="default" @click="showTypes = false">确认</u-button> activeColor="#99241B ">
</u-radio-group> </u-radio>
</u-popup> </u-radio-group>
</scroll-view>
<u-button class="custom-style" style="background-color:#99241B ; color: #FFFFFF; margin-top: 32rpx;"
type="default" @click="showTypes = false">确认</u-button>
</u-popup>
<view class="form_line"> <view class="form_line">
<view class="form_left"> <view class="form_left">
开始时间 开始时间
</view> </view>
<view class="form_right"> <view class="form_right">
<uni-datetime-picker type="datetime" v-model="wTime" :border="false" :clearIcon="false" /> <uni-datetime-picker type="datetime" v-model="wTime" :border="false" :clearIcon="false" />
<!-- <u--input placeholder="请选择" clearable border="none" inputAlign="right" style="color: #251B1D;" <!-- <u--input placeholder="请选择" clearable border="none" inputAlign="right" style="color: #251B1D;"
suffixIcon="calendar" readonly v-model="wTime" disabledColor="#ffffff"> suffixIcon="calendar" readonly v-model="wTime" disabledColor="#ffffff">
</u--input> --> </u--input> -->
</view> </view>
</view> </view>
<view class="form_line"> <view class="form_line">
<view class="form_left"> <view class="form_left">
截止时间 截止时间
</view> </view>
<view class="form_right"> <view class="form_right">
<uni-datetime-picker type="datetime" v-model="eTime" :border="false" :clearIcon="false" /> <uni-datetime-picker type="datetime" v-model="eTime" :border="false" :clearIcon="false" />
<!-- <u--input placeholder="请选择" clearable border="none" inputAlign="right" style="color: #251B1D;" <!-- <u--input placeholder="请选择" clearable border="none" inputAlign="right" style="color: #251B1D;"
suffixIcon="calendar" readonly v-model="eTime" disabledColor="#ffffff"> suffixIcon="calendar" readonly v-model="eTime" disabledColor="#ffffff">
</u--input> --> </u--input> -->
</view> </view>
</view> </view>
<view class="operation" @click="next"> <view class="operation" @click="next">
发布 发布
</view> </view>
</view> </view>
</template> </template>
<script> <script>
import http from '../../request/interface.js' import http from '../../request/interface.js'
export default { export default {
data () { data() {
return { return {
title: '', title: '',
typeId: '', typeId: '',
showType: false, showType: false,
type: '', type: '',
radiolist1: [], radiolist1: [],
text1: '', text1: '',
text2: '', text2: '',
showTime: false, showTime: false,
timeTab: 0, timeTab: 0,
eTime: '', eTime: '',
wTime: '', wTime: '',
timeValue: Number(new Date()), timeValue: Number(new Date()),
showUser: false, showUser: false,
userType: '', userType: '',
userTypeValue: 'wyrc,zyz', userTypeValue: 'wyrc,zyz',
radiovalue2: [], radiovalue2: [],
radiolist2: [], radiolist2: [],
morePer: true, morePer: true,
perNumber: 1, perNumber: 1,
fileList3: [], fileList3: [],
ok: true, ok: true,
team: [], team: [],
teams: '', teams: '',
teamsId: '', teamsId: '',
program: [], program: [],
programs: '', programs: '',
programsId: '', programsId: '',
showTypes: false showTypes: false
} }
}, },
onShow () { onShow() {
}, },
async onLoad () { async onLoad() {
await this.getCurrentTime() await this.getCurrentTime()
await this.teamandprogram() await this.teamandprogram()
}, },
methods: { methods: {
getCurrentTime () { getCurrentTime() {
// //
let yy = new Date().getFullYear(); let yy = new Date().getFullYear();
let mm = new Date().getMonth() + 1; let mm = new Date().getMonth() + 1;
let dd = new Date().getDate(); let dd = new Date().getDate();
let gettime = yy + '-' + mm + '-' + dd; let gettime = yy + '-' + mm + '-' + dd;
this.eTime = gettime this.eTime = gettime
this.wTime = gettime this.wTime = gettime
}, },
close () { close() {
this.showType = false this.showType = false
this.showTime = false this.showTime = false
this.showUser = false this.showUser = false
this.showTypes = false this.showTypes = false
}, },
selectForm1 (form) { selectForm1(form) {
let _this = this let _this = this
this.program.forEach((item) => { this.program.forEach((item) => {
if (item.name == form) { if (item.name == form) {
_this.teamsId = item.id _this.teamsId = item.id
} }
}) })
}, },
selectForm2 (form) { selectForm2(form) {
let _this = this let _this = this
this.team.forEach(function (item) { this.team.forEach(function(item) {
if (item.name == form) { if (item.name == form) {
_this.programsId = item.id _this.programsId = item.id
} }
}) })
}, },
chooseTime (val) { chooseTime(val) {
this.showTime = true this.showTime = true
this.timeTab = val this.timeTab = val
}, },
sureTime (e) { sureTime(e) {
if (this.timeTab == 0) { if (this.timeTab == 0) {
this.eTime = uni.$u.timeFormat(e.value, 'yyyy-mm-dd hh:MM') this.eTime = uni.$u.timeFormat(e.value, 'yyyy-mm-dd hh:MM')
} else { } else {
this.wTime = uni.$u.timeFormat(e.value, 'yyyy-mm-dd hh:MM') this.wTime = uni.$u.timeFormat(e.value, 'yyyy-mm-dd hh:MM')
} }
this.showTime = false this.showTime = false
}, },
next () { next() {
this.ok = true this.ok = true
if (this.title == '') { if (this.title == '') {
uni.showToast({ uni.showToast({
title: '请输入名称', title: '请输入名称',
icon: "none", icon: "none",
}); });
this.ok = false this.ok = false
return return
} }
if (this.teams == '') { if (this.teams == '') {
uni.showToast({ uni.showToast({
title: '请选择团队', title: '请选择团队',
icon: "none", icon: "none",
}); });
this.ok = false this.ok = false
return return
} }
if (this.programs == '') { if (this.programs == '') {
uni.showToast({ uni.showToast({
title: '请选择团队', title: '请选择团队',
icon: "none", icon: "none",
}); });
this.ok = false this.ok = false
return return
} }
if (this.eTime == '') { if (this.eTime == '') {
uni.showToast({ uni.showToast({
title: '请选择截止日期', title: '请选择截止日期',
icon: "none", icon: "none",
}); });
this.ok = false this.ok = false
return return
} }
if (this.wTime == '') { if (this.wTime == '') {
uni.showToast({ uni.showToast({
title: '请选择开始日期', title: '请选择开始日期',
icon: "none", icon: "none",
}); });
this.ok = false this.ok = false
return return
} }
if (this.eTime.length < 12) { if (this.eTime.length < 12) {
uni.showToast({ uni.showToast({
title: '请选择截止时间', title: '请选择截止时间',
icon: "none", icon: "none",
}); });
this.ok = false this.ok = false
return return
} }
if (this.wTime.length < 12) { if (this.wTime.length < 12) {
uni.showToast({ uni.showToast({
title: '请选择活动时间', title: '请选择活动时间',
icon: "none", icon: "none",
}); });
this.ok = false this.ok = false
return return
} }
if (this.ok) { if (this.ok) {
this.http.request('/artCountryside/add', { this.http.request('/artCountryside/add', {
title: this.title, title: this.title,
showId: this.programsId, showId: this.programsId,
teamId: this.teamsId, teamId: this.teamsId,
endTime: this.eTime, endTime: this.eTime,
startTime: this.wTime, startTime: this.wTime,
}, "POST").then(res => { }, "POST").then(res => {
if (res.code == 200) { if (res.code == 200) {
uni.navigateBack() uni.navigateBack()
} }
}).catch(e => { }).catch(e => {
uni.showToast({ uni.showToast({
title: e.data.message, title: e.data.message,
icon: "none", icon: "none",
}); });
}) })
} }
}, },
teamandprogram () { teamandprogram() {
this.http.request('/artTeam/list', {}, 'GET').then(res => { this.http.request('/artTeam/list', {}, 'GET').then(res => {
if (res.code === 200) { if (res.code === 200) {
this.team = [] this.team = []
this.program = [] this.program = []
res.data.records.forEach((item, index) => { res.data.records.forEach((item, index) => {
if (item.type == 'team') { if (item.type == 'team') {
this.team.push(item) this.team.push(item)
} else { } else {
this.program.push(item) this.program.push(item)
} }
}); });
} else { } else {
uni.showToast({ uni.showToast({
title: res.data.message, title: res.data.message,
icon: "error", icon: "error",
}); });
} }
}).catch(err => { }).catch(err => {
}) })
} }
} }
} }
</script> </script>
<style></style> <style></style>
<style lang="scss" scoped> <style lang="scss" scoped>
.box { .box {
width: 100%; width: 100%;
height: 100%; height: 100%;
overflow-y: auto; overflow-y: auto;
position: relative; position: relative;
} }
/deep/ .uni-icons { /deep/ .uni-icons {
display: none; display: none;
} }
/deep/ .uni-date-x { /deep/ .uni-date-x {
text-align: right; text-align: right;
padding: 0; padding: 0;
} }
.form_line { .form_line {
width: 686rpx; width: 686rpx;
padding: 0 32rpx; padding: 0 32rpx;
display: flex; display: flex;
align-items: center; align-items: center;
font-size: 32rpx; font-size: 32rpx;
justify-content: space-between; justify-content: space-between;
height: 104rpx; height: 104rpx;
border-bottom: 1rpx solid #dadbde; border-bottom: 1rpx solid #dadbde;
.form_right { .form_right {
width: 450rpx; width: 450rpx;
} }
} }
.form_box { .form_box {
width: 686rpx; width: 686rpx;
padding: 0 32rpx; padding: 0 32rpx;
display: flex; display: flex;
align-items: center; align-items: center;
font-size: 32rpx; font-size: 32rpx;
justify-content: space-between; justify-content: space-between;
height: 104rpx; height: 104rpx;
} }
.text_box { .text_box {
width: 686rpx; width: 686rpx;
padding: 0 32rpx; padding: 0 32rpx;
} }
.gap { .gap {
color: #AFADB0; color: #AFADB0;
background: #F5F5F5; background: #F5F5F5;
opacity: 1; opacity: 1;
padding: 10rpx 32rpx; padding: 10rpx 32rpx;
font-size: 32rpx; font-size: 32rpx;
} }
::v-deep .u-upload__wrap { ::v-deep .u-upload__wrap {
padding: 32rpx; padding: 32rpx;
} }
.upload { .upload {
padding: 32rpx; padding: 32rpx;
} }
.operation { .operation {
width: 654rpx; width: 654rpx;
height: 96rpx; height: 96rpx;
margin: 32rpx 48rpx 48rpx; margin: 32rpx 48rpx 48rpx;
text-align: center; text-align: center;
line-height: 96rpx; line-height: 96rpx;
background-color: #99241B; background-color: #99241B;
color: #fff; color: #fff;
font-size: 36rpx; font-size: 36rpx;
font-weight: 600; font-weight: 600;
position: absolute; position: absolute;
bottom: 0rpx; bottom: 0rpx;
} }
</style> </style>

View File

@ -52,24 +52,19 @@
</view> </view>
<!-- 红色按钮 --> <!-- 红色按钮 -->
<view v-if="data.isEvaluate"> <view v-if="data.isEvaluate">
<view class="" v-if="data.artCountrysideState == 1 && data.state == 0"> <view class="" v-if="data.artCountrysideState == 3 && data.state == 0">
<view class="orderBtn"> <view class="orderBtn">
<view class="btn" @click="toDp">下乡点评</view> <view class="btn" @click="toDp">下乡点评</view>
</view> </view>
</view> </view>
<view class="" v-else-if="data.artCountrysideState == 1 && data.state == 1"> <view class="" v-else-if="data.artCountrysideState == 2 && data.state == 1">
<view class="orderBtn"> <view class="orderBtn">
<view class="btnQ">已评价</view> <view class="btnQ">已评价</view>
</view> </view>
</view> </view>
<view class="" v-else-if="data.artCountrysideState == 3">
<view class="orderBtn">
<view class="btnQ">已逾期</view>
</view>
</view>
</view> </view>
<!-- 红色按钮ed --> <!-- 红色按钮ed -->
<view class="activityDetails"> <view class="activityDetails" v-if="data.artCountrysideState == 2">
<view class="item_ul"> <view class="item_ul">
<view class="title"> <view class="title">
<image class="icon" src="../../static/detailIcon/icon0.png" mode="scaleToFill"></image> <image class="icon" src="../../static/detailIcon/icon0.png" mode="scaleToFill"></image>
@ -95,6 +90,7 @@
<view class="ppEva"> <view class="ppEva">
{{ data.evaluate }} {{ data.evaluate }}
</view> </view>
<image v-if="imgArr.length > 0" v-for="(v, i) in imgArr" class="imgSt" :src="v" mode="widthFix" :key="i"></image>
</view> </view>
</view> </view>
</view> </view>
@ -112,6 +108,7 @@
list: [], list: [],
list2: [], list2: [],
userList: [], userList: [],
imgArr: [],
currentNum: 0, currentNum: 0,
isCheck: 0, isCheck: 0,
} }
@ -128,6 +125,10 @@
this.http.request(`/artCountryside/details?id=${this.id}`, {}, 'GET').then(res => { this.http.request(`/artCountryside/details?id=${this.id}`, {}, 'GET').then(res => {
if (res.code == 200) { if (res.code == 200) {
this.data = res.data this.data = res.data
if (res.data.photos) {
this.imgArr = res.data.photos.split(",")
}
console.log((this.imgArr))
this.load = false this.load = false
} else { } else {
this.load = false this.load = false
@ -170,7 +171,7 @@
padding: 24rpx; padding: 24rpx;
display: flex; display: flex;
background: #F4F5F7; background: #F4F5F7;
.icon { .icon {
width: 40rpx; width: 40rpx;
height: 40rpx; height: 40rpx;
@ -178,7 +179,7 @@
// display: none; // display: none;
} }
} }
.item_li { .item_li {
padding: 16rpx 32rpx 32rpx; padding: 16rpx 32rpx 32rpx;
margin: 0rpx 0 32rpx; margin: 0rpx 0 32rpx;
@ -208,25 +209,35 @@
.content {} .content {}
} }
.pgPart{ .pgPart {
padding: 24rpx; padding: 24rpx;
.ppTop{
.ppTop {
display: flex; display: flex;
font-size: 32rpx; font-size: 32rpx;
.pptImg{
.pptImg {
width: 88rpx; width: 88rpx;
height: 88rpx; height: 88rpx;
margin-right: 20rpx; margin-right: 20rpx;
} }
} }
.ppTime{
.ppTime {
font-size: 24rpx; font-size: 24rpx;
margin: 20rpx 0 0; margin: 20rpx 0 0;
} }
.ppEva{
.ppEva {
padding: 20rpx 0; padding: 20rpx 0;
} }
.imgSt {
width: 100%;
overflow: hidden;
margin: 20rpx 0;
}
} }
} }
} }

View File

@ -136,15 +136,9 @@
this.http this.http
.request(`/artCountryside/list`, data, "GET") .request(`/artCountryside/list`, data, "GET")
.then((res) => { .then((res) => {
if (res.code === 200) { if (res.code == 200) {
this.mainList = res.data.records; this.mainList = res.data.records;
this.loadings = false; this.loadings = false;
} else {
this.loadings = false;
uni.showToast({
title: res.message,
icon: "error",
});
} }
}) })
.catch((err) => { .catch((err) => {

View File

@ -19,10 +19,10 @@
<view class="title"> <view class="title">
{{ item.title }} {{ item.title }}
</view> </view>
<view class="tag_sta_end" v-if="item.state == '2'"> 已完成 </view> <view class="tag_sta_end" v-if="item.artCountrysideState == '2'"> 已完成 </view>
<view class="tag_sta_fail" v-if="item.state == '3'">已逾期</view> <view class="tag_sta_fail" v-if="item.artCountrysideState == '3' && item.state == 0">待评价</view>
<view class="tag_sta_end" v-if="item.state == '1'"> 进行中 </view> <view class="tag_sta_end" v-if="item.artCountrysideState == '1'"> 进行中 </view>
<view class="tag_sta_end" v-if="item.state == '0'"> <view class="tag_sta_end" v-if="item.artCountrysideState == '0'">
未开始 未开始
</view> </view>
</view> </view>
@ -31,34 +31,33 @@
{{ onDate(item.endTime) }} {{ onDate(item.endTime) }}
</view> </view>
</view> </view>
<view v-if="!(issueList.length > 0)">
<u-empty mode="list" icon="http://cdn.uviewui.com/uview/empty/list.png">
</u-empty>
</view>
</view> </view>
<view v-if="!(issueList.length > 0)">
<view v-if="tabNum == 2"> <u-empty mode="list" icon="http://cdn.uviewui.com/uview/empty/list.png">
<view class="art_act_itm" v-for="(item, i) in receivingList" :key="i"> </u-empty>
<image @click="goActDeat(item.id)" :src="item.photos" mode=""></image> </view>
<view class="bottom_part" style="padding: 0 12px"> </view>
<view class="ddd" style="display: flex;justify-content: space-between;align-items: center;"> <view v-if="tabNum == 2">
<view class="tag_sta_end" v-if="item.state == '2'"> 已完成 </view> <view class="art_act_itm" v-for="(item, i) in receivingList" :key="i">
<view class="tag_sta_fail" v-if="item.state == '3'">已逾期</view> <image @click="goActDeat(item.id)" :src="item.photos" mode=""></image>
<view class="tag_sta_end" v-if="item.state == '1'"> 进行中 </view> <view class="bottom_part" style="padding: 0 12px">
<view class="tag_sta_end" v-if="item.state == '0'"> <view class="ddd" style="display: flex;justify-content: space-between;align-items: center;">
未开始 <view class="tag_sta_end" v-if="item.artCountrysideState == '2'"> 已完成 </view>
</view> <view class="tag_sta_fail" v-if="item.artCountrysideState == '3' && item.state == 0">待评价</view>
</view> <view class="tag_sta_end" v-if="item.artCountrysideState == '1'"> 进行中 </view>
<view class="act_time"> <view class="tag_sta_end" v-if="item.artCountrysideState == '0'">
活动时间 {{ onDate(item.startTime) }} - 未开始
{{ onDate(item.endTime) }}
</view> </view>
</view> </view>
<view class="act_time">
活动时间 {{ onDate(item.startTime) }} -
{{ onDate(item.endTime) }}
</view>
</view> </view>
<view v-if="!(receivingList.length > 0)"> </view>
<u-empty mode="list" icon="http://cdn.uviewui.com/uview/empty/list.png"> <view v-if="!(receivingList.length > 0)">
</u-empty> <u-empty mode="list" icon="http://cdn.uviewui.com/uview/empty/list.png">
</view> </u-empty>
</view> </view>
</view> </view>
</view> </view>
@ -97,7 +96,7 @@
id: "", id: "",
}; };
}, },
onShow() { onLoad() {
this.isAdmin = uni.getStorageSync("isAdmin"); this.isAdmin = uni.getStorageSync("isAdmin");
this.isVillageAdmin = uni.getStorageSync("isVillageAdmin"); this.isVillageAdmin = uni.getStorageSync("isVillageAdmin");
this.tabNum = this.isAdmin ? 1 : this.isVillageAdmin ? 2 : null; this.tabNum = this.isAdmin ? 1 : this.isVillageAdmin ? 2 : null;
@ -195,9 +194,9 @@
} }
}, },
goActDeat(id) { goActDeat(id) {
uni.navigateTo({ uni.navigateTo({
url: `/pagesD/wyxx/detail?id=${id}`, url: `/pagesD/wyxx/detail?id=${id}`,
}); });
}, },
toEvlauedpg(value) { toEvlauedpg(value) {

View File

@ -5,10 +5,10 @@
export default { export default {
config: { config: {
// baseUrl: "http://192.168.1.3:8080/h5/api", //俞燕红-小程序不能配跨域 // baseUrl: "http://192.168.1.31:8080/h5/api", //俞燕红-小程序不能配跨域
// baseUrl: "/pre", //俞燕红-跨域 // baseUrl: "/pre", //俞燕红-跨域
baseUrl: "https://yxx.ydool.net/h5/api", //线上 // baseUrl: "https://yxx.ydool.net/h5/api", //线上
// baseUrl: "/h5/api", //h5 baseUrl: "/h5/api", //h5
header: { header: {
'Content-Type': 'application/json;charset=UTF-8', 'Content-Type': 'application/json;charset=UTF-8',
// 'Content-Type':'application/x-www-form-urlencoded' // 'Content-Type':'application/x-www-form-urlencoded'