This commit is contained in:
parent
27eb9d064c
commit
691956da32
|
@ -1,12 +1,14 @@
|
|||
<template>
|
||||
<view>
|
||||
<!-- <u-tabs :list="list1" ></u-tabs> -->
|
||||
<view class="tabss" style="display: flex;justify-content: space-between; align-items: center;">
|
||||
<view class="but-L" style="flex: 1;">
|
||||
<u-button color="#99241B" text="已发布" @click="clickTab(1)"></u-button>
|
||||
|
||||
<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 class="but-R" style="flex: 1;">
|
||||
<u-button color="#99241B" text="已接单" @click="clickTab(2)"></u-button>
|
||||
<view style="flex: 1;text-align: center;" :class="{'acttiveSty': tabNum==2}" @click="clickTab(2)">
|
||||
<text>已接单</text>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
@ -96,10 +98,10 @@
|
|||
<u-button shape="circle" text="取消报名" @click="cancleBM(item.id)"></u-button>
|
||||
</view>
|
||||
|
||||
<!-- <view style="width: 236rpx;margin: 0 10rpx; " v-if='item.state== "2"'>
|
||||
<u-button shape="circle" text="收到的评价" @click="receiveevlaue()"></u-button>
|
||||
<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>
|
||||
|
||||
|
@ -139,9 +141,9 @@
|
|||
</u-modal>
|
||||
|
||||
|
||||
<u-modal :show="showShoudao" @close="showShoudao()" title="收到的评价" :closeOnClickOverlay="true">
|
||||
<u-modal :show="showShoudao" @close="closeRecive()" title="收到的评价" :closeOnClickOverlay="true">
|
||||
|
||||
<u-rate count=5 value="1"></u-rate>
|
||||
<u-rate count=5 v-model='starsvalue' ></u-rate>
|
||||
|
||||
<view slot="confirmButton" style="display: flex; justify-content: center; align-items: center;">
|
||||
<view style="width: 400rpx;">
|
||||
|
@ -179,6 +181,7 @@
|
|||
tabNum: 1,
|
||||
pingjiaobj: {},
|
||||
baomingpingjia: [],
|
||||
starsvalue:0
|
||||
|
||||
};
|
||||
},
|
||||
|
@ -186,8 +189,22 @@
|
|||
this.clickTab(1)
|
||||
},
|
||||
methods: {
|
||||
receiveevlaue() {
|
||||
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.showShoudao = true
|
||||
|
||||
}
|
||||
}).catch(e => {
|
||||
uni.showToast({
|
||||
title: e.data.message,
|
||||
icon: "none",
|
||||
});
|
||||
})
|
||||
},
|
||||
done(id) {
|
||||
this.http.request('/hallUser/complete?id=' + id, {}, "POST").then(res => {
|
||||
|
@ -366,7 +383,10 @@
|
|||
width: 100%;
|
||||
height: 60%;
|
||||
}
|
||||
|
||||
.acttiveSty{
|
||||
color: #9A2720;
|
||||
font-weight: 700;
|
||||
}
|
||||
.but_box {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
|
|
Loading…
Reference in New Issue