|
|
@ -5,7 +5,7 @@ |
|
|
|
<evaluateItem :info="coachInfo" key="2"/> |
|
|
|
|
|
|
|
<view class="btnBox"> |
|
|
|
<view class="btnBg" @click="submintFn">提交</view> |
|
|
|
<view class="btnBg" @click="submintFn" :class="{active: btnActive}">提交</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</template> |
|
|
@ -51,9 +51,10 @@ |
|
|
|
"studentName": "张三", |
|
|
|
"studentIdcard": "", |
|
|
|
"studentPhone": "", |
|
|
|
"serviceLevel": 0, |
|
|
|
"schoolInfo": 0, |
|
|
|
"schoolLevel": 0, |
|
|
|
"qualityLevel": 0, |
|
|
|
"serviceLevel": 0, |
|
|
|
"teachLevel": 0, |
|
|
|
"subject": 0, |
|
|
|
"description": "随便", |
|
|
@ -68,11 +69,21 @@ |
|
|
|
}, |
|
|
|
onLoad() { |
|
|
|
this.schoolInfo.userId = this.$store.state.user.vuex_loginInfo.userId |
|
|
|
this.coachInfo.userId = this.$store.state.user.vuex_loginInfo.userId |
|
|
|
this.coachInfo.studentPhone = this.vuex_userInfo.studentPhone |
|
|
|
this.getStudentinfoFn() |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
btnActive() { |
|
|
|
// if(this.schoolInfo.) |
|
|
|
let {schoolInfo, coachInfo} = this |
|
|
|
let num1 = schoolInfo.schoolLevel + schoolInfo.qualityLevel + schoolInfo.teachLevel + schoolInfo.serviceLevel |
|
|
|
let num2 = coachInfo.qualityLevel + coachInfo.teachLevel + coachInfo.serviceLevel |
|
|
|
if(num1&&num2) { |
|
|
|
return true |
|
|
|
}else { |
|
|
|
return false |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
@ -93,7 +104,10 @@ |
|
|
|
} |
|
|
|
const res = await addSchoolComment(this.schoolInfo) |
|
|
|
const res2 = await addCoachComment(this.coachInfo) |
|
|
|
|
|
|
|
this.$u.toast('评价成功') |
|
|
|
setTimeout(()=>{ |
|
|
|
this.$goPage('/pages/mineEntry/myEvaluate/myEvaluate') |
|
|
|
},1500) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -109,6 +123,10 @@ |
|
|
|
.btnBg { |
|
|
|
margin: 124rpx auto 0 auto; |
|
|
|
width: 396rpx; |
|
|
|
opacity: 0.5; |
|
|
|
&.active { |
|
|
|
opacity: 1; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.textareaBg { |
|
|
|