This commit is contained in:
lnn19986213 2022-07-19 11:18:52 +08:00
commit 75eb5b96cd
2 changed files with 119 additions and 113 deletions

View File

@ -1,6 +1,6 @@
{
"name" : "艺象心",
"appid" : "__UNI__77CA6BC",
"appid" : "__UNI__C2FB70F",
"description" : "",
"versionName" : "1.0.0",
"versionCode" : "100",

View File

@ -1,110 +1,115 @@
<template>
<view>
<view class="tabss" style="display: flex;justify-content: space-between; align-items: center;background-color: #FFFFFF; ">
<view @click="clickTab(1)" :class="{'acttiveSty': tabNum==1}" style="flex: 1; text-align: center;height: 40px; line-height: 40px;">
<view class="tabss"
style="display: flex;justify-content: space-between; align-items: center;background-color: #FFFFFF; ">
<view @click="clickTab(1)" :class="{'acttiveSty': tabNum==1}"
style="flex: 1; text-align: center;height: 40px; line-height: 40px;">
<text>已发布</text>
</view>
<view style="flex: 1;text-align: center;" :class="{'acttiveSty': tabNum==2}" @click="clickTab(2)">
<text>已接单</text>
<view style="flex: 1;text-align: center;" :class="{'acttiveSty': tabNum==2}" @click="clickTab(2)">
<text>已接单</text>
</view>
</view>
<view class="art_act_itm" v-for="(item,i) in orderList" :key="i" @click="goActDeat(i)" v-if="tabNum==1">
<!-- <image src="../../static/icon12.jpg" mode=""></image> -->
<image :src="item.enclosure" 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="title">
{{item.title}}
<view class="main" >
<view class="art_act_itm" v-for="(item,i) in orderList" :key="i" @click="goActDeat(i)" v-if="tabNum==1">
<!-- <image src="../../static/icon12.jpg" mode=""></image> -->
<image :src="item.enclosure" 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="title">
{{item.title}}
</view>
<view class="tag_sta_end" v-if='item.state=="3"'>
已完成
</view>
<view class="tag_sta_going" v-if='item.state=="1"||item.state=="0"'>
进行中
</view>
<view class="tag_sta_end" v-if='item.state== "2"'>
待评价
</view>
</view>
<view class="tag_sta_end" v-if='item.state=="3"'>
已完成
<view class="act_time">
活动时间 {{item.createdAt}}
</view>
<view class="tag_sta_going" v-if='item.state=="1"||item.state=="0"'>
进行中
<view class="but_box" style="margin-top: 20rpx;">
<view style="width: 236rpx;margin: 0 10rpx; " v-if='!(item.state== "0")'>
<u-button icon="photo-fill" shape="circle" text="已传图片" @click="touploadedimg(item.images)">
</u-button>
</view>
<view style="width: 236rpx; margin: 0 10rpx;" v-if='item.state=="1"' @click="done(item.id)">
<u-button color="#99241B" shape="circle" text="确认完成"></u-button>
</view>
<view style="width: 236rpx;margin: 0 10rpx; " v-if='(item.state== "0")'>
<u-button icon="photo-fill" shape="circle" color="#99241B" plain text="图片上传"
@click="toUpimgPage(item.id)"></u-button>
</view>
<view style="width: 190rpx;margin: 0 10rpx; " v-if='item.state== "2" '>
<u-button plain color="#99241B" shape="circle" text="评价" @click="pingjia(i,item.id)"></u-button>
</view>
<view style="width: 190rpx;margin: 0 10rpx; " v-if='item.state== "3"'>
<!-- <view style="width: 190rpx;margin: 0 10rpx; " > -->
<u-button shape="circle" text="已评价" @click="toEvlauedpg(item.id)"></u-button>
</view>
</view>
<view class="tag_sta_end" v-if='item.state== "2"'>
待评价
</view>
</view>
<view class="act_time">
活动时间 {{item.createdAt}}
</view>
<view class="but_box" style="margin-top: 20rpx;">
<view style="width: 236rpx;margin: 0 10rpx; " v-if='!(item.state== "0")'>
<u-button icon="photo-fill" shape="circle" text="已传图片" @click="touploadedimg(item.images)">
</u-button>
</view>
<view style="width: 236rpx; margin: 0 10rpx;" v-if='item.state=="1"' @click="done(item.id)">
<u-button color="#99241B" shape="circle" text="确认完成"></u-button>
</view>
<view style="width: 236rpx;margin: 0 10rpx; " v-if='(item.state== "0")'>
<u-button icon="photo-fill" shape="circle" color="#99241B" plain text="图片上传"
@click="toUpimgPage(item.id)"></u-button>
</view>
<view style="width: 190rpx;margin: 0 10rpx; " v-if='item.state== "2" '>
<u-button plain color="#99241B" shape="circle" text="评价" @click="pingjia(i,item.id)"></u-button>
</view>
<view style="width: 190rpx;margin: 0 10rpx; " v-if='item.state== "3"'>
<!-- <view style="width: 190rpx;margin: 0 10rpx; " > -->
<u-button shape="circle" text="已评价" @click="toEvlauedpg(item.id)"></u-button>
</view>
</view>
</view>
</view>
<view class="art_act_itm" v-for="(item,i) in orderList" :key="i" @click="goActDeat(i)" v-if="tabNum==2">
<!-- <image :src="../../static/icon12.jpg" mode=""></image> -->
<image :src="item.enclosure" 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="title">
{{item.title}}
<view class="art_act_itm" v-for="(item,i) in orderList" :key="i" @click="goActDeat(i)" v-if="tabNum==2">
<image :src="item.enclosure" 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="title">
{{item.title}}
</view>
<view class="tag_sta" v-if="item.state=='0'">
已报名
</view>
<view class="tag_sta_end" v-if='item.state=="2"'>
已完成
</view>
<view class="tag_sta_going" v-if='item.state=="1"'>
进行中
</view>
</view>
<view class="tag_sta" v-if="item.state=='0'">
已报名
<view class="act_time">
活动时间 {{item.createdAt}}
</view>
<view class="tag_sta_end" v-if='item.state=="2"'>
已完成
<view class="but_box" style="margin-top: 20rpx;">
<view style="width: 236rpx;margin: 0 10rpx; " v-if='item.state== "0"'>
<u-button shape="circle" text="取消报名" @click="cancleBM(item.id)"></u-button>
</view>
<view style="width: 236rpx;margin: 0 10rpx; " v-if='item.state== "3"'>
<u-button shape="circle" text="收到的评价" @click="receiveevlaue(item.id)"></u-button>
</view>
</view>
<view class="tag_sta_going" v-if='item.state=="1"'>
进行中
</view>
</view>
<view class="act_time">
活动时间 {{item.createdAt}}
</view>
<view class="but_box" style="margin-top: 20rpx;">
<view style="width: 236rpx;margin: 0 10rpx; " v-if='item.state== "0"'>
<u-button shape="circle" text="取消报名" @click="cancleBM(item.id)"></u-button>
</view>
<view style="width: 236rpx;margin: 0 10rpx; " v-if='item.state== "3"'>
<u-button shape="circle" text="收到的评价" @click="receiveevlaue(item.id)"></u-button>
</view>
</view>
</view>
</view>
@ -112,9 +117,7 @@
<u-modal :show="show" @close="close()" :closeOnClickOverlay="true">
<u-modal :show="show" @close="close()" :closeOnClickOverlay="true">
<view class="pinContent">
<view class="pinContent_itm" v-for='(v,i) in baomingpingjia' :key="i">
@ -142,8 +145,8 @@
<u-modal :show="showShoudao" @close="closeRecive()" title="收到的评价" :closeOnClickOverlay="true">
<u-rate count=5 v-model='starsvalue' ></u-rate>
<u-rate count=5 v-model='starsvalue' readonly></u-rate>
<view slot="confirmButton" style="display: flex; justify-content: center; align-items: center;">
<view style="width: 400rpx;">
@ -153,7 +156,10 @@
</u-modal>
<view v-if="!(orderList.length>0)" >
<u-empty mode="data" icon="http://cdn.uviewui.com/uview/empty/data.png" >
</u-empty>
</view>
</view>
</template>
@ -173,15 +179,11 @@
}],
starvalue: 0,
orderList: [],
list1: [{
name: '已发布',
}, {
name: '已接单',
}, ],
tabNum: 1,
pingjiaobj: {},
baomingpingjia: [],
starsvalue:0
starsvalue: 0
};
},
@ -190,14 +192,14 @@
},
methods: {
receiveevlaue(id) {
// /hallUser/sdpj
this.showShoudao = true
this.http.request('/hallUser/sdpj?id=' + id, {}, "POST").then(res => {
if (res.code == 200) {
// this.clickTab(1)
this.starsvalue=res.data.evaluate
this.starsvalue = res.data.evaluate
this.showShoudao = true
}
}).catch(e => {
uni.showToast({
@ -374,19 +376,23 @@
<style lang="scss">
page {
width: calc(100% - 64rpx);
margin: 0rpx 32rpx;
/* width: calc(100% - 64rpx);
margin: 0rpx 32rpx; */
background-color: #F5F5F5 !important;
}
.main{
padding: 0rpx 32rpx;
}
image {
width: 100%;
height: 60%;
}
.acttiveSty{
color: #9A2720;
font-weight: 700;
}
.acttiveSty {
color: #9A2720;
font-weight: 700;
}
.but_box {
display: flex;
justify-content: flex-end;