This commit is contained in:
parent
dd621898c1
commit
03005b7e0b
|
@ -96,7 +96,7 @@
|
|||
// 与vue中的proxyTable配置大致上一致,此处我同时代理了两个
|
||||
"/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", // 目标接口域名
|
||||
"changeOrigin" : true, // 是否跨域
|
||||
|
|
|
@ -82,11 +82,21 @@
|
|||
<view class="btn" @click="throwWork">报名</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="" v-else>
|
||||
<view class="" v-else-if="data.status == 1">
|
||||
<view class="orderBtn">
|
||||
<view class="btnQ">报名已截止</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>
|
||||
<!-- 红色按钮ed -->
|
||||
<view class="activityDetails">
|
||||
|
@ -97,7 +107,7 @@
|
|||
</view>
|
||||
<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="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>{{ v.averageScore }}</text>
|
||||
</view>
|
||||
|
|
|
@ -29,18 +29,15 @@
|
|||
<view class="textList" v-if="isExpert">
|
||||
<view class="type">
|
||||
<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 class="line"></view>
|
||||
<!-- 红色按钮 -->
|
||||
<view>
|
||||
<view class="" v-if="isExpert">
|
||||
<view class="orderBtn" v-if="data.isScore">
|
||||
<view class="btnQ">已评分</view>
|
||||
</view>
|
||||
<view class="orderBtn" v-else>
|
||||
<view class="" v-if="isExpert && data.status != 2">
|
||||
<view class="orderBtn" >
|
||||
<view class="btn" @click="toScore">评分</view>
|
||||
</view>
|
||||
</view>
|
||||
|
|
|
@ -1,243 +1,282 @@
|
|||
<template>
|
||||
<!-- 文艺下乡 -->
|
||||
<view class="wyxx">
|
||||
<view class="tabTitle">
|
||||
<view :class="tabC == '0' ? 'tabsC' : 'tabs'" @click="toTab('0')">
|
||||
<view> 组织架构 </view>
|
||||
<view class="line"></view>
|
||||
</view>
|
||||
<view :class="tabC == '1' ? 'tabsC' : 'tabs'" @click="toTab('1')">
|
||||
<view> 人员信息 </view>
|
||||
<view class="line"></view>
|
||||
</view>
|
||||
<view :class="tabC == '2' ? 'tabsC' : 'tabs'" @click="toTab('2')">
|
||||
<view> 发展历程 </view>
|
||||
<view class="line"></view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="forms" v-if="tabC == '0'">
|
||||
<view class="teamBox" v-for="(item, index) in 2" :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 class="forms" v-if="tabC == '1'">
|
||||
<view
|
||||
class="teamBox"
|
||||
v-for="item in list"
|
||||
:key="item.id"
|
||||
@click="onInfo(item.id)"
|
||||
>
|
||||
<view class="teamBox-right">
|
||||
<view class="item-image">
|
||||
{{ item.userName }}
|
||||
<!-- <image src="../../static/txIcon.png" mode=""></image> -->
|
||||
</view>
|
||||
</view>
|
||||
<view class="teamBox-left">
|
||||
<view class="teamMinbox-top">
|
||||
<view class="title">{{ item.userName }}</view>
|
||||
<view class="street">{{ item.identity }}</view>
|
||||
</view>
|
||||
<view class="teamMinbox-bottom">
|
||||
{{ item.introduce }}
|
||||
</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>
|
||||
<!-- 文艺下乡 -->
|
||||
<view class="wyxx" :style="{backgroundImage: 'url('+background+')'}">
|
||||
<view class="tabTitle">
|
||||
<view :class="tabC == '2' ? 'tabsC' : 'tabs'" @click="toTab('2')">
|
||||
<view> 发展历程 </view>
|
||||
<view class="line"></view>
|
||||
</view>
|
||||
<view :class="tabC == '0' ? 'tabsC' : 'tabs'" @click="toTab('0')">
|
||||
<view> 组织架构 </view>
|
||||
<view class="line"></view>
|
||||
</view>
|
||||
<view :class="tabC == '1' ? 'tabsC' : 'tabs'" @click="toTab('1')">
|
||||
<view> 人员信息 </view>
|
||||
<view class="line"></view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="forms" v-if="tabC == '0'">
|
||||
<image :src="zzjg" mode="widthFix" style="width: 100%;"></image>
|
||||
</view>
|
||||
<view class="forms" v-if="tabC == '1'">
|
||||
<!-- <view class="teamBox" v-for="item in list" :key="item.id" @click="onInfo(item.id)"> -->
|
||||
<view class="teamBox" v-for="item in list" :key="item.id">
|
||||
<view class="teamBox-right">
|
||||
<view class="item-image">
|
||||
{{ item.userName }}
|
||||
<!-- <image src="../../static/txIcon.png" mode=""></image> -->
|
||||
</view>
|
||||
</view>
|
||||
<view class="teamBox-left">
|
||||
<view class="teamMinbox-top">
|
||||
<view class="title">{{ item.userName }}</view>
|
||||
<view class="street">{{ item.identity }}</view>
|
||||
</view>
|
||||
<view class="teamMinbox-bottom">
|
||||
{{ item.introduce }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="wljj" v-if="tabC == '2'">
|
||||
<view class="wlTitle">象山县文联简介</view>
|
||||
<p>
|
||||
象山县文学艺术界联合会,简称象山县文联,是党领导下由全县文艺家协会组成的人民团体,是党和政府联系文艺工作者的桥梁和纽带。县文联成立于1986年12月。现有12个文艺家协会、公安文联、华翔文联和18个乡镇(街道)文联。县级文艺家协会会员1200余人,乡镇(街道)文联会员2300余人,部门文联和企业文联会员190余人,其中国家级会员74人。机关内设创作研究室、文艺家服务中心。下辖青年画院,联系德和根艺美术馆。主办文学刊物《象山港》。
|
||||
</p>
|
||||
<p>
|
||||
近几年来,县文联深入学习贯彻党的十九大精神和习近平总书记系列重要讲话精神,紧紧围绕“出作品出人才、出影响出形象”总体目标,团结带领全县文艺工作者,坚持以人民为中心的创作导向,专心致志搞创作,同心同德促繁荣,各方面工作取得可喜成绩。出版专著书刊50余部,在国家级报刊上发表文章50余篇,60余件作品获得专业性全国级奖项。其中有中国民间文艺山花奖4
|
||||
件,中国曲艺牡丹奖1 件,全国群星奖2 件,全国摄影艺术展奖4 件,省优秀文学作品奖2 件,市“五个一工程奖”2件。并使我县先后获得“中国民间艺术(竹根雕)之乡”、“中国渔文化之乡”等荣誉称号。
|
||||
</p>
|
||||
<p>
|
||||
围绕中心、服务大局,精心组织了一系列重大文艺品牌活动,文艺惠民活动深入人心,以“送万福进万家”、“送欢乐下基层”“文艺快闪”等为代表的一批文艺活动形成品牌效应,为团结引领各领域文艺人才提供强大保障。
|
||||
</p>
|
||||
<p>
|
||||
展望未来,县文联将团结带领广大文艺工作者,紧紧围绕县委、县政府的中心工作,开拓创新,携手共进,勇攀艺术高峰,为加快建设海洋文化强县作出新的贡献!
|
||||
</p>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
tabC: "0",
|
||||
list: [],
|
||||
};
|
||||
},
|
||||
onShow() {
|
||||
this.get();
|
||||
},
|
||||
methods: {
|
||||
get() {
|
||||
this.http
|
||||
.request("/organPerson/list", {}, "GET")
|
||||
.then((res) => {
|
||||
if (res.code == 200) {
|
||||
this.list = res.data.records;
|
||||
}
|
||||
})
|
||||
.catch((err) => {
|
||||
uni.showToast({
|
||||
title: e.data.message,
|
||||
icon: "none",
|
||||
});
|
||||
});
|
||||
},
|
||||
toTab(val) {
|
||||
this.tabC = val;
|
||||
},
|
||||
onInfo(obj) {
|
||||
this.http
|
||||
.request("/organPerson/details", { id: obj }, "GET")
|
||||
.then((res) => {
|
||||
if (res.code == 200) {
|
||||
}
|
||||
})
|
||||
.catch((err) => {
|
||||
uni.showToast({
|
||||
title: e.data.message,
|
||||
icon: "none",
|
||||
});
|
||||
});
|
||||
},
|
||||
},
|
||||
};
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
tabC: "0",
|
||||
list: [],
|
||||
background:'',
|
||||
zzjg: ''
|
||||
};
|
||||
},
|
||||
onShow() {
|
||||
this.get();
|
||||
},
|
||||
methods: {
|
||||
get() {
|
||||
this.http
|
||||
.request("/organPerson/list", {}, "GET")
|
||||
.then((res) => {
|
||||
if (res.code == 200) {
|
||||
this.list = res.data.records;
|
||||
this.getBackgroundImage()
|
||||
}
|
||||
})
|
||||
.catch((err) => {
|
||||
uni.showToast({
|
||||
title: e.data.message,
|
||||
icon: "none",
|
||||
});
|
||||
});
|
||||
},
|
||||
toTab(val) {
|
||||
this.tabC = val;
|
||||
},
|
||||
onInfo(obj) {
|
||||
this.http
|
||||
.request("/organPerson/details", {
|
||||
id: obj
|
||||
}, "GET")
|
||||
.then((res) => {
|
||||
if (res.code == 200) {}
|
||||
})
|
||||
.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>
|
||||
|
||||
<style lang="scss">
|
||||
.wyxx {
|
||||
background-color: #fefefe;
|
||||
}
|
||||
.wyxx {
|
||||
width: 100%;
|
||||
min-height: 100%;
|
||||
background-color: #fefefe;
|
||||
background-position: center top;
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
|
||||
.tabTitle {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
background: #ffffff;
|
||||
.tabTitle {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
|
||||
.tabs {
|
||||
width: 33.3%;
|
||||
text-align: center;
|
||||
padding: 32rpx 0 0rpx;
|
||||
font-size: 28rpx;
|
||||
font-weight: 400;
|
||||
color: #333333;
|
||||
.tabs {
|
||||
width: 33.3%;
|
||||
text-align: center;
|
||||
padding: 32rpx 0 0rpx;
|
||||
font-size: 28rpx;
|
||||
font-weight: 400;
|
||||
color: #333333;
|
||||
|
||||
.line {
|
||||
width: 36rpx;
|
||||
height: 4rpx;
|
||||
margin: 10rpx auto 8rpx;
|
||||
}
|
||||
}
|
||||
.line {
|
||||
width: 36rpx;
|
||||
height: 4rpx;
|
||||
margin: 10rpx auto 8rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.tabsC {
|
||||
width: 33.3%;
|
||||
text-align: center;
|
||||
padding: 32rpx 0 0;
|
||||
font-size: 28rpx;
|
||||
font-weight: 600;
|
||||
color: #000;
|
||||
.tabsC {
|
||||
width: 33.3%;
|
||||
text-align: center;
|
||||
padding: 32rpx 0 0;
|
||||
font-size: 28rpx;
|
||||
font-weight: 600;
|
||||
color: #000;
|
||||
|
||||
.line {
|
||||
width: 44rpx;
|
||||
height: 4rpx;
|
||||
margin: 10rpx auto 8rpx;
|
||||
background-color: #a02521;
|
||||
}
|
||||
}
|
||||
}
|
||||
.line {
|
||||
width: 44rpx;
|
||||
height: 4rpx;
|
||||
margin: 10rpx auto 8rpx;
|
||||
background-color: #a02521;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.forms {
|
||||
width: 90%;
|
||||
// height: 40rpx;
|
||||
// background-color: skyblue;
|
||||
margin: 40rpx auto 0rpx;
|
||||
.teamBox {
|
||||
height: 140rpx;
|
||||
padding: 18rpx 10rpx;
|
||||
background-color: #fff;
|
||||
margin-bottom: 20rpx;
|
||||
display: flex;
|
||||
.teamBox-right {
|
||||
margin-right: 20rpx;
|
||||
width: 159rpx;
|
||||
height: 159rpx;
|
||||
.item-image {
|
||||
width: 159rpx;
|
||||
height: 159rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: rgba(152, 149, 149, 0.5);
|
||||
color: rgb(240, 239, 239);
|
||||
font-style: 64rpx;
|
||||
font-weight: bolder;
|
||||
border-radius: 50%;
|
||||
overflow: hidden;
|
||||
image {
|
||||
width: 159rpx;
|
||||
height: 159rpx;
|
||||
border-radius: 50%;
|
||||
background-size: contain;
|
||||
}
|
||||
}
|
||||
}
|
||||
.teamBox-left {
|
||||
// width: 400rpx;
|
||||
.teamMinbox-top {
|
||||
display: flex;
|
||||
margin-bottom: 16rpx;
|
||||
.title {
|
||||
font-weight: 600;
|
||||
font-size: 32rpx;
|
||||
max-width: 160rpx;
|
||||
overflow: hidden; /* 超出一行文字自动隐藏 */
|
||||
text-overflow: ellipsis; /*文字隐藏后添加省略号*/
|
||||
white-space: nowrap;
|
||||
}
|
||||
.street {
|
||||
height: 40rpx;
|
||||
border-radius: 30rpx;
|
||||
background-color: rgba(240, 240, 240, 1);
|
||||
color: #a02521;
|
||||
margin-left: 18rpx;
|
||||
padding: 2rpx 20rpx;
|
||||
max-width: 120rpx;
|
||||
overflow: hidden; /* 超出一行文字自动隐藏 */
|
||||
text-overflow: ellipsis; /*文字隐藏后添加省略号*/
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
.teamMinbox-bottom {
|
||||
font-size: 28rpx;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
.forms {
|
||||
width: 686rpx;
|
||||
// height: 40rpx;
|
||||
// background-color: skyblue;
|
||||
padding: 40rpx 32rpx 0rpx;
|
||||
|
||||
.teamBox {
|
||||
height: 140rpx;
|
||||
padding: 18rpx 10rpx;
|
||||
background-color: #fff;
|
||||
margin-bottom: 20rpx;
|
||||
display: flex;
|
||||
|
||||
.teamBox-right {
|
||||
margin-right: 20rpx;
|
||||
width: 159rpx;
|
||||
height: 159rpx;
|
||||
|
||||
.item-image {
|
||||
width: 159rpx;
|
||||
height: 159rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: rgba(152, 149, 149, 0.5);
|
||||
color: rgb(240, 239, 239);
|
||||
font-style: 64rpx;
|
||||
font-weight: bolder;
|
||||
border-radius: 50%;
|
||||
overflow: hidden;
|
||||
|
||||
image {
|
||||
width: 159rpx;
|
||||
height: 159rpx;
|
||||
border-radius: 50%;
|
||||
background-size: contain;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.teamBox-left {
|
||||
|
||||
// width: 400rpx;
|
||||
.teamMinbox-top {
|
||||
display: flex;
|
||||
margin-bottom: 16rpx;
|
||||
|
||||
.title {
|
||||
font-weight: 600;
|
||||
font-size: 32rpx;
|
||||
max-width: 160rpx;
|
||||
overflow: hidden;
|
||||
/* 超出一行文字自动隐藏 */
|
||||
text-overflow: ellipsis;
|
||||
/*文字隐藏后添加省略号*/
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.street {
|
||||
height: 40rpx;
|
||||
border-radius: 30rpx;
|
||||
background-color: rgba(240, 240, 240, 1);
|
||||
color: #a02521;
|
||||
margin-left: 18rpx;
|
||||
padding: 2rpx 20rpx;
|
||||
max-width: 120rpx;
|
||||
overflow: hidden;
|
||||
/* 超出一行文字自动隐藏 */
|
||||
text-overflow: ellipsis;
|
||||
/*文字隐藏后添加省略号*/
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
|
||||
.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>
|
|
@ -1,350 +1,358 @@
|
|||
<template>
|
||||
<view class="box">
|
||||
<view class="form_line">
|
||||
<view class="form_left">
|
||||
标题
|
||||
</view>
|
||||
<view class="form_right">
|
||||
<u--input placeholder="请输入名称" v-model="title" clearable border="none" inputAlign="right" style="color: #251B1D;">
|
||||
</u--input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="form_line">
|
||||
<view class="form_left">
|
||||
节目
|
||||
</view>
|
||||
<view class="form_right" @click="showType = true">
|
||||
<u--input placeholder="请选择" clearable border="none" inputAlign="right" style="color: #251B1D;"
|
||||
suffixIcon="arrow-right" readonly v-model="programs" disabledColor="#ffffff">
|
||||
</u--input>
|
||||
</view>
|
||||
</view>
|
||||
<u-popup :show="showType" @close="close" closeOnClickOverlay :round="5" customStyle="padding: 16px;">
|
||||
<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.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>
|
||||
</u-radio-group>
|
||||
</u-popup>
|
||||
<view class="box">
|
||||
<view class="form_line">
|
||||
<view class="form_left">
|
||||
标题
|
||||
</view>
|
||||
<view class="form_right">
|
||||
<u--input placeholder="请输入名称" v-model="title" clearable border="none" inputAlign="right"
|
||||
style="color: #251B1D;">
|
||||
</u--input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="form_line">
|
||||
<view class="form_left">
|
||||
节目
|
||||
</view>
|
||||
<view class="form_right" @click="showType = true">
|
||||
<u--input placeholder="请选择" clearable border="none" inputAlign="right" style="color: #251B1D;"
|
||||
suffixIcon="arrow-right" readonly v-model="programs" disabledColor="#ffffff">
|
||||
</u--input>
|
||||
</view>
|
||||
</view>
|
||||
<u-popup :show="showType" @close="close" closeOnClickOverlay :round="5" customStyle="padding: 16px;">
|
||||
<scroll-view style='height: 500rpx;' scroll-y="true">
|
||||
<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.name"
|
||||
activeColor="#99241B ">
|
||||
</u-radio>
|
||||
</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_left">
|
||||
团队
|
||||
</view>
|
||||
<view class="form_right" @click="showTypes = true">
|
||||
<u--input placeholder="请选择" clearable border="none" inputAlign="right" style="color: #251B1D;"
|
||||
suffixIcon="arrow-right" readonly v-model="teams" disabledColor="#ffffff">
|
||||
</u--input>
|
||||
</view>
|
||||
</view>
|
||||
<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">
|
||||
<u-radio :customStyle="{ marginBottom: '16px' }" v-for="(item, index) in team" :key="index" :label="item.name"
|
||||
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>
|
||||
</u-radio-group>
|
||||
</u-popup>
|
||||
<view class="form_line">
|
||||
<view class="form_left">
|
||||
团队
|
||||
</view>
|
||||
<view class="form_right" @click="showTypes = true">
|
||||
<u--input placeholder="请选择" clearable border="none" inputAlign="right" style="color: #251B1D;"
|
||||
suffixIcon="arrow-right" readonly v-model="teams" disabledColor="#ffffff">
|
||||
</u--input>
|
||||
</view>
|
||||
</view>
|
||||
<u-popup :show="showTypes" @close="close" closeOnClickOverlay :round="5" customStyle="padding: 16px;">
|
||||
<scroll-view style='height: 500rpx;' scroll-y="true">
|
||||
<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.name"
|
||||
activeColor="#99241B ">
|
||||
</u-radio>
|
||||
</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_left">
|
||||
开始时间
|
||||
</view>
|
||||
<view class="form_right">
|
||||
<uni-datetime-picker type="datetime" v-model="wTime" :border="false" :clearIcon="false" />
|
||||
<!-- <u--input placeholder="请选择" clearable border="none" inputAlign="right" style="color: #251B1D;"
|
||||
<view class="form_line">
|
||||
<view class="form_left">
|
||||
开始时间
|
||||
</view>
|
||||
<view class="form_right">
|
||||
<uni-datetime-picker type="datetime" v-model="wTime" :border="false" :clearIcon="false" />
|
||||
<!-- <u--input placeholder="请选择" clearable border="none" inputAlign="right" style="color: #251B1D;"
|
||||
suffixIcon="calendar" readonly v-model="wTime" disabledColor="#ffffff">
|
||||
</u--input> -->
|
||||
</view>
|
||||
</view>
|
||||
<view class="form_line">
|
||||
<view class="form_left">
|
||||
截止时间
|
||||
</view>
|
||||
<view class="form_right">
|
||||
<uni-datetime-picker type="datetime" v-model="eTime" :border="false" :clearIcon="false" />
|
||||
<!-- <u--input placeholder="请选择" clearable border="none" inputAlign="right" style="color: #251B1D;"
|
||||
</view>
|
||||
</view>
|
||||
<view class="form_line">
|
||||
<view class="form_left">
|
||||
截止时间
|
||||
</view>
|
||||
<view class="form_right">
|
||||
<uni-datetime-picker type="datetime" v-model="eTime" :border="false" :clearIcon="false" />
|
||||
<!-- <u--input placeholder="请选择" clearable border="none" inputAlign="right" style="color: #251B1D;"
|
||||
suffixIcon="calendar" readonly v-model="eTime" disabledColor="#ffffff">
|
||||
</u--input> -->
|
||||
</view>
|
||||
</view>
|
||||
<view class="operation" @click="next">
|
||||
发布
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="operation" @click="next">
|
||||
发布
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import http from '../../request/interface.js'
|
||||
export default {
|
||||
data () {
|
||||
return {
|
||||
title: '',
|
||||
typeId: '',
|
||||
showType: false,
|
||||
type: '',
|
||||
radiolist1: [],
|
||||
text1: '',
|
||||
text2: '',
|
||||
showTime: false,
|
||||
timeTab: 0,
|
||||
eTime: '',
|
||||
wTime: '',
|
||||
timeValue: Number(new Date()),
|
||||
showUser: false,
|
||||
userType: '',
|
||||
userTypeValue: 'wyrc,zyz',
|
||||
radiovalue2: [],
|
||||
radiolist2: [],
|
||||
morePer: true,
|
||||
perNumber: 1,
|
||||
fileList3: [],
|
||||
ok: true,
|
||||
team: [],
|
||||
teams: '',
|
||||
teamsId: '',
|
||||
program: [],
|
||||
programs: '',
|
||||
programsId: '',
|
||||
showTypes: false
|
||||
}
|
||||
},
|
||||
onShow () {
|
||||
import http from '../../request/interface.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
title: '',
|
||||
typeId: '',
|
||||
showType: false,
|
||||
type: '',
|
||||
radiolist1: [],
|
||||
text1: '',
|
||||
text2: '',
|
||||
showTime: false,
|
||||
timeTab: 0,
|
||||
eTime: '',
|
||||
wTime: '',
|
||||
timeValue: Number(new Date()),
|
||||
showUser: false,
|
||||
userType: '',
|
||||
userTypeValue: 'wyrc,zyz',
|
||||
radiovalue2: [],
|
||||
radiolist2: [],
|
||||
morePer: true,
|
||||
perNumber: 1,
|
||||
fileList3: [],
|
||||
ok: true,
|
||||
team: [],
|
||||
teams: '',
|
||||
teamsId: '',
|
||||
program: [],
|
||||
programs: '',
|
||||
programsId: '',
|
||||
showTypes: false
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
|
||||
},
|
||||
async onLoad () {
|
||||
await this.getCurrentTime()
|
||||
await this.teamandprogram()
|
||||
},
|
||||
methods: {
|
||||
getCurrentTime () {
|
||||
//获取当前时间并打印
|
||||
let yy = new Date().getFullYear();
|
||||
let mm = new Date().getMonth() + 1;
|
||||
let dd = new Date().getDate();
|
||||
let gettime = yy + '-' + mm + '-' + dd;
|
||||
this.eTime = gettime
|
||||
this.wTime = gettime
|
||||
},
|
||||
close () {
|
||||
this.showType = false
|
||||
this.showTime = false
|
||||
this.showUser = false
|
||||
this.showTypes = false
|
||||
},
|
||||
selectForm1 (form) {
|
||||
let _this = this
|
||||
this.program.forEach((item) => {
|
||||
if (item.name == form) {
|
||||
_this.teamsId = item.id
|
||||
}
|
||||
})
|
||||
},
|
||||
},
|
||||
async onLoad() {
|
||||
await this.getCurrentTime()
|
||||
await this.teamandprogram()
|
||||
},
|
||||
methods: {
|
||||
getCurrentTime() {
|
||||
//获取当前时间并打印
|
||||
let yy = new Date().getFullYear();
|
||||
let mm = new Date().getMonth() + 1;
|
||||
let dd = new Date().getDate();
|
||||
let gettime = yy + '-' + mm + '-' + dd;
|
||||
this.eTime = gettime
|
||||
this.wTime = gettime
|
||||
},
|
||||
close() {
|
||||
this.showType = false
|
||||
this.showTime = false
|
||||
this.showUser = false
|
||||
this.showTypes = false
|
||||
},
|
||||
selectForm1(form) {
|
||||
let _this = this
|
||||
this.program.forEach((item) => {
|
||||
if (item.name == form) {
|
||||
_this.teamsId = item.id
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
selectForm2 (form) {
|
||||
let _this = this
|
||||
this.team.forEach(function (item) {
|
||||
if (item.name == form) {
|
||||
_this.programsId = item.id
|
||||
}
|
||||
})
|
||||
},
|
||||
chooseTime (val) {
|
||||
this.showTime = true
|
||||
this.timeTab = val
|
||||
},
|
||||
sureTime (e) {
|
||||
if (this.timeTab == 0) {
|
||||
this.eTime = uni.$u.timeFormat(e.value, 'yyyy-mm-dd hh:MM')
|
||||
} else {
|
||||
this.wTime = uni.$u.timeFormat(e.value, 'yyyy-mm-dd hh:MM')
|
||||
}
|
||||
this.showTime = false
|
||||
},
|
||||
next () {
|
||||
this.ok = true
|
||||
if (this.title == '') {
|
||||
uni.showToast({
|
||||
title: '请输入名称',
|
||||
icon: "none",
|
||||
});
|
||||
this.ok = false
|
||||
return
|
||||
}
|
||||
if (this.teams == '') {
|
||||
uni.showToast({
|
||||
title: '请选择团队',
|
||||
icon: "none",
|
||||
});
|
||||
this.ok = false
|
||||
return
|
||||
}
|
||||
if (this.programs == '') {
|
||||
uni.showToast({
|
||||
title: '请选择团队',
|
||||
icon: "none",
|
||||
});
|
||||
this.ok = false
|
||||
return
|
||||
}
|
||||
if (this.eTime == '') {
|
||||
uni.showToast({
|
||||
title: '请选择截止日期',
|
||||
icon: "none",
|
||||
});
|
||||
this.ok = false
|
||||
return
|
||||
}
|
||||
if (this.wTime == '') {
|
||||
uni.showToast({
|
||||
title: '请选择开始日期',
|
||||
icon: "none",
|
||||
});
|
||||
this.ok = false
|
||||
return
|
||||
}
|
||||
if (this.eTime.length < 12) {
|
||||
uni.showToast({
|
||||
title: '请选择截止时间',
|
||||
icon: "none",
|
||||
});
|
||||
this.ok = false
|
||||
return
|
||||
}
|
||||
if (this.wTime.length < 12) {
|
||||
uni.showToast({
|
||||
title: '请选择活动时间',
|
||||
icon: "none",
|
||||
});
|
||||
this.ok = false
|
||||
return
|
||||
}
|
||||
if (this.ok) {
|
||||
selectForm2(form) {
|
||||
let _this = this
|
||||
this.team.forEach(function(item) {
|
||||
if (item.name == form) {
|
||||
_this.programsId = item.id
|
||||
}
|
||||
})
|
||||
},
|
||||
chooseTime(val) {
|
||||
this.showTime = true
|
||||
this.timeTab = val
|
||||
},
|
||||
sureTime(e) {
|
||||
if (this.timeTab == 0) {
|
||||
this.eTime = uni.$u.timeFormat(e.value, 'yyyy-mm-dd hh:MM')
|
||||
} else {
|
||||
this.wTime = uni.$u.timeFormat(e.value, 'yyyy-mm-dd hh:MM')
|
||||
}
|
||||
this.showTime = false
|
||||
},
|
||||
next() {
|
||||
this.ok = true
|
||||
if (this.title == '') {
|
||||
uni.showToast({
|
||||
title: '请输入名称',
|
||||
icon: "none",
|
||||
});
|
||||
this.ok = false
|
||||
return
|
||||
}
|
||||
if (this.teams == '') {
|
||||
uni.showToast({
|
||||
title: '请选择团队',
|
||||
icon: "none",
|
||||
});
|
||||
this.ok = false
|
||||
return
|
||||
}
|
||||
if (this.programs == '') {
|
||||
uni.showToast({
|
||||
title: '请选择团队',
|
||||
icon: "none",
|
||||
});
|
||||
this.ok = false
|
||||
return
|
||||
}
|
||||
if (this.eTime == '') {
|
||||
uni.showToast({
|
||||
title: '请选择截止日期',
|
||||
icon: "none",
|
||||
});
|
||||
this.ok = false
|
||||
return
|
||||
}
|
||||
if (this.wTime == '') {
|
||||
uni.showToast({
|
||||
title: '请选择开始日期',
|
||||
icon: "none",
|
||||
});
|
||||
this.ok = false
|
||||
return
|
||||
}
|
||||
if (this.eTime.length < 12) {
|
||||
uni.showToast({
|
||||
title: '请选择截止时间',
|
||||
icon: "none",
|
||||
});
|
||||
this.ok = false
|
||||
return
|
||||
}
|
||||
if (this.wTime.length < 12) {
|
||||
uni.showToast({
|
||||
title: '请选择活动时间',
|
||||
icon: "none",
|
||||
});
|
||||
this.ok = false
|
||||
return
|
||||
}
|
||||
if (this.ok) {
|
||||
|
||||
this.http.request('/artCountryside/add', {
|
||||
title: this.title,
|
||||
showId: this.programsId,
|
||||
teamId: this.teamsId,
|
||||
endTime: this.eTime,
|
||||
startTime: this.wTime,
|
||||
}, "POST").then(res => {
|
||||
if (res.code == 200) {
|
||||
uni.navigateBack()
|
||||
}
|
||||
}).catch(e => {
|
||||
uni.showToast({
|
||||
title: e.data.message,
|
||||
icon: "none",
|
||||
});
|
||||
})
|
||||
}
|
||||
},
|
||||
teamandprogram () {
|
||||
this.http.request('/artTeam/list', {}, 'GET').then(res => {
|
||||
if (res.code === 200) {
|
||||
this.team = []
|
||||
this.program = []
|
||||
res.data.records.forEach((item, index) => {
|
||||
if (item.type == 'team') {
|
||||
this.team.push(item)
|
||||
} else {
|
||||
this.program.push(item)
|
||||
}
|
||||
});
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.data.message,
|
||||
icon: "error",
|
||||
});
|
||||
}
|
||||
}).catch(err => {
|
||||
this.http.request('/artCountryside/add', {
|
||||
title: this.title,
|
||||
showId: this.programsId,
|
||||
teamId: this.teamsId,
|
||||
endTime: this.eTime,
|
||||
startTime: this.wTime,
|
||||
}, "POST").then(res => {
|
||||
if (res.code == 200) {
|
||||
uni.navigateBack()
|
||||
}
|
||||
}).catch(e => {
|
||||
uni.showToast({
|
||||
title: e.data.message,
|
||||
icon: "none",
|
||||
});
|
||||
})
|
||||
}
|
||||
},
|
||||
teamandprogram() {
|
||||
this.http.request('/artTeam/list', {}, 'GET').then(res => {
|
||||
if (res.code === 200) {
|
||||
this.team = []
|
||||
this.program = []
|
||||
res.data.records.forEach((item, index) => {
|
||||
if (item.type == 'team') {
|
||||
this.team.push(item)
|
||||
} else {
|
||||
this.program.push(item)
|
||||
}
|
||||
});
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.data.message,
|
||||
icon: "error",
|
||||
});
|
||||
}
|
||||
}).catch(err => {
|
||||
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style></style>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.box {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow-y: auto;
|
||||
position: relative;
|
||||
}
|
||||
.box {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow-y: auto;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/deep/ .uni-icons {
|
||||
display: none;
|
||||
}
|
||||
/deep/ .uni-icons {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/deep/ .uni-date-x {
|
||||
text-align: right;
|
||||
padding: 0;
|
||||
}
|
||||
/deep/ .uni-date-x {
|
||||
text-align: right;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.form_line {
|
||||
width: 686rpx;
|
||||
padding: 0 32rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 32rpx;
|
||||
justify-content: space-between;
|
||||
height: 104rpx;
|
||||
border-bottom: 1rpx solid #dadbde;
|
||||
.form_line {
|
||||
width: 686rpx;
|
||||
padding: 0 32rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 32rpx;
|
||||
justify-content: space-between;
|
||||
height: 104rpx;
|
||||
border-bottom: 1rpx solid #dadbde;
|
||||
|
||||
.form_right {
|
||||
width: 450rpx;
|
||||
}
|
||||
}
|
||||
.form_right {
|
||||
width: 450rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.form_box {
|
||||
width: 686rpx;
|
||||
padding: 0 32rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 32rpx;
|
||||
justify-content: space-between;
|
||||
height: 104rpx;
|
||||
}
|
||||
.form_box {
|
||||
width: 686rpx;
|
||||
padding: 0 32rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 32rpx;
|
||||
justify-content: space-between;
|
||||
height: 104rpx;
|
||||
}
|
||||
|
||||
.text_box {
|
||||
width: 686rpx;
|
||||
padding: 0 32rpx;
|
||||
}
|
||||
.text_box {
|
||||
width: 686rpx;
|
||||
padding: 0 32rpx;
|
||||
}
|
||||
|
||||
.gap {
|
||||
color: #AFADB0;
|
||||
background: #F5F5F5;
|
||||
opacity: 1;
|
||||
padding: 10rpx 32rpx;
|
||||
font-size: 32rpx;
|
||||
}
|
||||
.gap {
|
||||
color: #AFADB0;
|
||||
background: #F5F5F5;
|
||||
opacity: 1;
|
||||
padding: 10rpx 32rpx;
|
||||
font-size: 32rpx;
|
||||
}
|
||||
|
||||
::v-deep .u-upload__wrap {
|
||||
padding: 32rpx;
|
||||
}
|
||||
::v-deep .u-upload__wrap {
|
||||
padding: 32rpx;
|
||||
}
|
||||
|
||||
.upload {
|
||||
padding: 32rpx;
|
||||
}
|
||||
.upload {
|
||||
padding: 32rpx;
|
||||
}
|
||||
|
||||
.operation {
|
||||
width: 654rpx;
|
||||
height: 96rpx;
|
||||
margin: 32rpx 48rpx 48rpx;
|
||||
text-align: center;
|
||||
line-height: 96rpx;
|
||||
background-color: #99241B;
|
||||
color: #fff;
|
||||
font-size: 36rpx;
|
||||
font-weight: 600;
|
||||
position: absolute;
|
||||
bottom: 0rpx;
|
||||
}
|
||||
</style>
|
||||
.operation {
|
||||
width: 654rpx;
|
||||
height: 96rpx;
|
||||
margin: 32rpx 48rpx 48rpx;
|
||||
text-align: center;
|
||||
line-height: 96rpx;
|
||||
background-color: #99241B;
|
||||
color: #fff;
|
||||
font-size: 36rpx;
|
||||
font-weight: 600;
|
||||
position: absolute;
|
||||
bottom: 0rpx;
|
||||
}
|
||||
</style>
|
|
@ -52,24 +52,19 @@
|
|||
</view>
|
||||
<!-- 红色按钮 -->
|
||||
<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="btn" @click="toDp">下乡点评</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="btnQ">已评价</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="" v-else-if="data.artCountrysideState == 3">
|
||||
<view class="orderBtn">
|
||||
<view class="btnQ">已逾期</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 红色按钮ed -->
|
||||
<view class="activityDetails">
|
||||
<view class="activityDetails" v-if="data.artCountrysideState == 2">
|
||||
<view class="item_ul">
|
||||
<view class="title">
|
||||
<image class="icon" src="../../static/detailIcon/icon0.png" mode="scaleToFill"></image>
|
||||
|
@ -95,6 +90,7 @@
|
|||
<view class="ppEva">
|
||||
{{ data.evaluate }}
|
||||
</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>
|
||||
|
@ -112,6 +108,7 @@
|
|||
list: [],
|
||||
list2: [],
|
||||
userList: [],
|
||||
imgArr: [],
|
||||
currentNum: 0,
|
||||
isCheck: 0,
|
||||
}
|
||||
|
@ -128,6 +125,10 @@
|
|||
this.http.request(`/artCountryside/details?id=${this.id}`, {}, 'GET').then(res => {
|
||||
if (res.code == 200) {
|
||||
this.data = res.data
|
||||
if (res.data.photos) {
|
||||
this.imgArr = res.data.photos.split(",")
|
||||
}
|
||||
console.log((this.imgArr))
|
||||
this.load = false
|
||||
} else {
|
||||
this.load = false
|
||||
|
@ -170,7 +171,7 @@
|
|||
padding: 24rpx;
|
||||
display: flex;
|
||||
background: #F4F5F7;
|
||||
|
||||
|
||||
.icon {
|
||||
width: 40rpx;
|
||||
height: 40rpx;
|
||||
|
@ -178,7 +179,7 @@
|
|||
// display: none;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.item_li {
|
||||
padding: 16rpx 32rpx 32rpx;
|
||||
margin: 0rpx 0 32rpx;
|
||||
|
@ -208,25 +209,35 @@
|
|||
|
||||
.content {}
|
||||
}
|
||||
|
||||
.pgPart{
|
||||
|
||||
.pgPart {
|
||||
padding: 24rpx;
|
||||
.ppTop{
|
||||
|
||||
.ppTop {
|
||||
display: flex;
|
||||
font-size: 32rpx;
|
||||
.pptImg{
|
||||
|
||||
.pptImg {
|
||||
width: 88rpx;
|
||||
height: 88rpx;
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
}
|
||||
.ppTime{
|
||||
|
||||
.ppTime {
|
||||
font-size: 24rpx;
|
||||
margin: 20rpx 0 0;
|
||||
}
|
||||
.ppEva{
|
||||
|
||||
.ppEva {
|
||||
padding: 20rpx 0;
|
||||
}
|
||||
|
||||
.imgSt {
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
margin: 20rpx 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -136,15 +136,9 @@
|
|||
this.http
|
||||
.request(`/artCountryside/list`, data, "GET")
|
||||
.then((res) => {
|
||||
if (res.code === 200) {
|
||||
if (res.code == 200) {
|
||||
this.mainList = res.data.records;
|
||||
this.loadings = false;
|
||||
} else {
|
||||
this.loadings = false;
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: "error",
|
||||
});
|
||||
}
|
||||
})
|
||||
.catch((err) => {
|
||||
|
|
|
@ -19,10 +19,10 @@
|
|||
<view class="title">
|
||||
{{ item.title }}
|
||||
</view>
|
||||
<view class="tag_sta_end" v-if="item.state == '2'"> 已完成 </view>
|
||||
<view class="tag_sta_fail" v-if="item.state == '3'">已逾期</view>
|
||||
<view class="tag_sta_end" v-if="item.state == '1'"> 进行中 </view>
|
||||
<view class="tag_sta_end" v-if="item.state == '0'">
|
||||
<view class="tag_sta_end" v-if="item.artCountrysideState == '2'"> 已完成 </view>
|
||||
<view class="tag_sta_fail" v-if="item.artCountrysideState == '3' && item.state == 0">待评价</view>
|
||||
<view class="tag_sta_end" v-if="item.artCountrysideState == '1'"> 进行中 </view>
|
||||
<view class="tag_sta_end" v-if="item.artCountrysideState == '0'">
|
||||
未开始
|
||||
</view>
|
||||
</view>
|
||||
|
@ -31,34 +31,33 @@
|
|||
{{ onDate(item.endTime) }}
|
||||
</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 v-if="tabNum == 2">
|
||||
<view class="art_act_itm" v-for="(item, i) in receivingList" :key="i">
|
||||
<image @click="goActDeat(item.id)" :src="item.photos" mode=""></image>
|
||||
<view class="bottom_part" style="padding: 0 12px">
|
||||
<view class="ddd" style="display: flex;justify-content: space-between;align-items: center;">
|
||||
<view class="tag_sta_end" v-if="item.state == '2'"> 已完成 </view>
|
||||
<view class="tag_sta_fail" v-if="item.state == '3'">已逾期</view>
|
||||
<view class="tag_sta_end" v-if="item.state == '1'"> 进行中 </view>
|
||||
<view class="tag_sta_end" v-if="item.state == '0'">
|
||||
未开始
|
||||
</view>
|
||||
</view>
|
||||
<view class="act_time">
|
||||
活动时间: {{ onDate(item.startTime) }} -
|
||||
{{ onDate(item.endTime) }}
|
||||
<view v-if="!(issueList.length > 0)">
|
||||
<u-empty mode="list" icon="http://cdn.uviewui.com/uview/empty/list.png">
|
||||
</u-empty>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="tabNum == 2">
|
||||
<view class="art_act_itm" v-for="(item, i) in receivingList" :key="i">
|
||||
<image @click="goActDeat(item.id)" :src="item.photos" mode=""></image>
|
||||
<view class="bottom_part" style="padding: 0 12px">
|
||||
<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 class="tag_sta_fail" v-if="item.artCountrysideState == '3' && item.state == 0">待评价</view>
|
||||
<view class="tag_sta_end" v-if="item.artCountrysideState == '1'"> 进行中 </view>
|
||||
<view class="tag_sta_end" v-if="item.artCountrysideState == '0'">
|
||||
未开始
|
||||
</view>
|
||||
</view>
|
||||
<view class="act_time">
|
||||
活动时间: {{ onDate(item.startTime) }} -
|
||||
{{ onDate(item.endTime) }}
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="!(receivingList.length > 0)">
|
||||
<u-empty mode="list" icon="http://cdn.uviewui.com/uview/empty/list.png">
|
||||
</u-empty>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="!(receivingList.length > 0)">
|
||||
<u-empty mode="list" icon="http://cdn.uviewui.com/uview/empty/list.png">
|
||||
</u-empty>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
@ -97,7 +96,7 @@
|
|||
id: "",
|
||||
};
|
||||
},
|
||||
onShow() {
|
||||
onLoad() {
|
||||
this.isAdmin = uni.getStorageSync("isAdmin");
|
||||
this.isVillageAdmin = uni.getStorageSync("isVillageAdmin");
|
||||
this.tabNum = this.isAdmin ? 1 : this.isVillageAdmin ? 2 : null;
|
||||
|
@ -195,9 +194,9 @@
|
|||
}
|
||||
},
|
||||
goActDeat(id) {
|
||||
uni.navigateTo({
|
||||
url: `/pagesD/wyxx/detail?id=${id}`,
|
||||
});
|
||||
uni.navigateTo({
|
||||
url: `/pagesD/wyxx/detail?id=${id}`,
|
||||
});
|
||||
},
|
||||
|
||||
toEvlauedpg(value) {
|
||||
|
|
|
@ -5,10 +5,10 @@
|
|||
|
||||
export default {
|
||||
config: {
|
||||
// baseUrl: "http://192.168.1.3:8080/h5/api", //俞燕红-小程序不能配跨域
|
||||
// baseUrl: "http://192.168.1.31:8080/h5/api", //俞燕红-小程序不能配跨域
|
||||
// baseUrl: "/pre", //俞燕红-跨域
|
||||
baseUrl: "https://yxx.ydool.net/h5/api", //线上
|
||||
// baseUrl: "/h5/api", //h5
|
||||
// baseUrl: "https://yxx.ydool.net/h5/api", //线上
|
||||
baseUrl: "/h5/api", //h5
|
||||
header: {
|
||||
'Content-Type': 'application/json;charset=UTF-8',
|
||||
// 'Content-Type':'application/x-www-form-urlencoded'
|
||||
|
|
Loading…
Reference in New Issue