This commit is contained in:
闫世杰 2023-08-04 12:29:30 +08:00
parent 2b63a06256
commit 778945c8cf
1 changed files with 36 additions and 20 deletions

View File

@ -132,13 +132,13 @@
</view>
<view
style="width: 190rpx; margin: 0 10rpx"
v-if="item.state == '3'"
v-if="item.state == '2'"
>
<!-- <view style="width: 190rpx;margin: 0 10rpx; " > -->
<u-button
shape="circle"
text="已评价"
@click="toEvlauedpg(item.id)"
@click="toEvlauedpg(item.evaluate)"
></u-button>
</view>
</view>
@ -180,7 +180,7 @@
<view class="title">
{{ item.title }}
</view>
<view class="tag_sta" v-if="item.state == '0'"> 已报名 </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'">
进行中
@ -191,7 +191,7 @@
{{ onDate(item.endTime) }}
</view>
<view class="but_box" style="margin-top: 20rpx">
<view
<!-- <view
style="width: 236rpx; margin: 0 10rpx"
v-if="item.state == '0'"
>
@ -200,15 +200,15 @@
text="取消报名"
@click="cancleBM(item.id)"
></u-button>
</view>
</view> -->
<view
style="width: 236rpx; margin: 0 10rpx"
v-if="item.state == '3'"
v-if="item.state == '2'"
>
<u-button
shape="circle"
text="收到的评价"
@click="receiveevlaue(item.id)"
@click="toEvlauedpg(item.evaluate)"
></u-button>
</view>
</view>
@ -274,6 +274,7 @@
>
<view class="pinContent">
<textarea
:disabled="id == ''"
cols="30"
rows="10"
v-model="evaluate"
@ -286,11 +287,19 @@
>
<view style="width: 400rpx">
<u-button
v-if="id != ''"
color="#99241B"
shape="circle"
text="提交"
@click="onSubmit()"
></u-button>
<u-button
v-else
color="#99241B"
shape="circle"
text="确认"
@click="show = false"
></u-button>
</view>
</view>
</u-modal>
@ -465,19 +474,25 @@ export default {
this.show = true;
},
onSubmit() {
let obj
if (this.id == "") {
this.show = false;
return;
}
this.http
.request(
"/artCountryside/evaluate",
{ id: this.id, evaluate: this.evaluate },
`/artCountryside/evaluate?id=${this.id}&evaluate=${this.evaluate}`,
{},
"POST"
)
.then((res) => {
if (res.code == 200) {
uni.showToast({
title: err.data.message,
icon: "none",
title: "评价成功",
});
this.show = false;
this.moreOrder(true);
this.id = "";
this.evaluate = "";
} else {
uni.showToast({
title: err.data.message,
@ -491,9 +506,11 @@ export default {
icon: "none",
});
});
// this.show = false;
},
moreOrder() {
moreOrder(page = null) {
if (page) {
this.page = 1;
}
if (this.tabNum == 1) {
this.myPosts();
} else if (this.tabNum == 2) {
@ -567,11 +584,10 @@ export default {
// }
// },
// toEvlauedpg(id) {
// uni.navigateTo({
// url: `/pagesA/my/evaluated?id=` + id,
// });
// },
toEvlauedpg(value) {
this.show = true;
this.evaluate = value;
},
// sureS() {
// this.http
@ -621,7 +637,7 @@ image {
}
.tag_sta {
width: 100rpx;
width: 160rpx;
height: 48rpx;
background: #f9f2f2;
border-radius: 8rpx;