unknown
1 year ago
9 changed files with 403 additions and 72 deletions
-
6config/api.js
-
2config/site.config.js
-
10pages.json
-
159pages/carEntry/evaluate/comp/evaluateItem.vue
-
188pages/carEntry/evaluate/evaluate.vue
-
1pages/indexEntry/findShcool/comments/comments.vue
-
35pages/indexEntry/findShcool/shcoolComment/shcoolComment.vue
-
29pages/indexEntry/theory/theory.vue
-
45pages/indexEntry/webView/webView.vue
@ -1,91 +1,171 @@ |
|||
<template> |
|||
<view class="pageBgImg"> |
|||
<topNavbar title="评价"></topNavbar> |
|||
<evaluateItem :info="info"/> |
|||
<evaluateItem :info="{tit: '您对教练满意吗'}"/> |
|||
|
|||
<evaluateItem :info="schoolInfo" key="1"/> |
|||
<evaluateItem :info="coachInfo" key="2"/> |
|||
|
|||
<view class="btnBox"> |
|||
<view class="btnBg">提交</view> |
|||
<view class="btnBg" @click="submintFn">提交</view> |
|||
</view> |
|||
</view> |
|||
</template> |
|||
|
|||
<script> |
|||
import evaluateItem from './comp/evaluateItem' |
|||
import { getStudentinfo, addSchoolComment,addCoachComment } from '@/config/api.js' |
|||
export default { |
|||
components: { evaluateItem }, |
|||
components: { |
|||
evaluateItem |
|||
}, |
|||
data() { |
|||
return { |
|||
checked: false, |
|||
info: { |
|||
schoolInfo: { |
|||
tit: '您对驾校满意吗?', |
|||
school: 1, |
|||
"schoolId": 8750, |
|||
"schoolName": "赵六", |
|||
"stars": 0, |
|||
"studentId": '', |
|||
"studentName": "张三", |
|||
"studentIdcard": "", |
|||
"studentPhone": "", |
|||
"serviceLevel": 0, |
|||
"schoolLevel": 0, |
|||
"qualityLevel": 0, |
|||
"teachLevel": 0, |
|||
"subject": 0, |
|||
"description": "随便", |
|||
"images": "", |
|||
"videoUrl": "", |
|||
"anonymity": 0, |
|||
"userId": 0, |
|||
imgArr: [] |
|||
}, |
|||
coachInfo: { |
|||
tit: '您对驾校满意吗?', |
|||
"schoolId": 8750, |
|||
"schoolName": "赵六", |
|||
"stars": 0, |
|||
"studentId": '', |
|||
"studentName": "张三", |
|||
"studentIdcard": "", |
|||
"studentPhone": "", |
|||
"serviceLevel": 0, |
|||
"schoolLevel": 0, |
|||
"qualityLevel": 0, |
|||
"teachLevel": 0, |
|||
"subject": 0, |
|||
"description": "随便", |
|||
"images": "", |
|||
"videoUrl": "", |
|||
"anonymity": 0, |
|||
"userId": 0, |
|||
coachName: '', |
|||
imgArr: [] |
|||
} |
|||
} |
|||
}, |
|||
onLoad() { |
|||
this.schoolInfo.userId = this.$store.state.user.vuex_loginInfo.userId |
|||
this.getStudentinfoFn() |
|||
}, |
|||
computed: { |
|||
btnActive() { |
|||
// if(this.schoolInfo.) |
|||
} |
|||
}, |
|||
methods: { |
|||
// 获取用户驾校信息 |
|||
async getStudentinfoFn() { |
|||
const {data: res} = await getStudentinfo({id: this.schoolInfo.userId}) |
|||
this.coachInfo.schoolId = this.schoolInfo.schoolId = res.schoolId |
|||
this.coachInfo.schoolName = this.schoolInfo.schoolName = res.schoolName |
|||
this.coachInfo.coachName = res.coachName |
|||
this.coachInfo.coachId = res.coachId |
|||
}, |
|||
async submintFn() { |
|||
if(this.coachInfo.imgArr.length) { |
|||
this.coachInfo.images = this.coachInfo.imgArr.join(',') |
|||
} |
|||
if(this.schoolInfo.imgArr.length) { |
|||
this.schoolInfo.images = this.schoolInfo.imgArr.join(',') |
|||
} |
|||
const res = await addSchoolComment(this.schoolInfo) |
|||
const res2 = await addCoachComment(this.coachInfo) |
|||
|
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
|
|||
<style lang="scss" scoped> |
|||
@import '../../../common/css/textareaBg.scss'; |
|||
|
|||
.btnBox { |
|||
padding-bottom: 76rpx; |
|||
} |
|||
|
|||
.btnBg { |
|||
margin: 124rpx auto 0 auto; |
|||
width: 396rpx; |
|||
} |
|||
|
|||
.textareaBg { |
|||
margin-top: 22rpx; |
|||
} |
|||
|
|||
.card { |
|||
padding: 28rpx; |
|||
.top_row { |
|||
display: flex; |
|||
align-items: center; |
|||
padding-bottom: 24rpx; |
|||
border-bottom: 2rpx solid #E8E9EC; |
|||
justify-content: space-between; |
|||
.tit { |
|||
font-weight: 600; |
|||
color: #333333; |
|||
font-size: 32rpx; |
|||
} |
|||
|
|||
|
|||
} |
|||
|
|||
.user_row { |
|||
width: 100%; |
|||
height: 100rpx; |
|||
display: flex; |
|||
align-items: center; |
|||
.avatar { |
|||
width: 60rpx; |
|||
height: 60rpx; |
|||
border-radius: 50%; |
|||
overflow: hidden; |
|||
} |
|||
|
|||
.name { |
|||
font-size: 28rpx; |
|||
font-weight: 500; |
|||
padding-left: 26rpx; |
|||
} |
|||
} |
|||
|
|||
.star_row { |
|||
padding: 14rpx 0; |
|||
display: flex; |
|||
align-items: center; |
|||
.lab { |
|||
font-size: 28rpx; |
|||
font-weight: 500; |
|||
padding-right: 32rpx; |
|||
} |
|||
|
|||
.star { |
|||
|
|||
} |
|||
} |
|||
|
|||
.top_row { |
|||
display: flex; |
|||
align-items: center; |
|||
padding-bottom: 24rpx; |
|||
border-bottom: 2rpx solid #E8E9EC; |
|||
justify-content: space-between; |
|||
|
|||
.tit { |
|||
font-weight: 600; |
|||
color: #333333; |
|||
font-size: 32rpx; |
|||
} |
|||
|
|||
|
|||
} |
|||
|
|||
.user_row { |
|||
width: 100%; |
|||
height: 100rpx; |
|||
display: flex; |
|||
align-items: center; |
|||
|
|||
.avatar { |
|||
width: 60rpx; |
|||
height: 60rpx; |
|||
border-radius: 50%; |
|||
overflow: hidden; |
|||
} |
|||
|
|||
.name { |
|||
font-size: 28rpx; |
|||
font-weight: 500; |
|||
padding-left: 26rpx; |
|||
} |
|||
} |
|||
|
|||
.star_row { |
|||
padding: 14rpx 0; |
|||
display: flex; |
|||
align-items: center; |
|||
|
|||
.lab { |
|||
font-size: 28rpx; |
|||
font-weight: 500; |
|||
padding-right: 32rpx; |
|||
} |
|||
|
|||
.star {} |
|||
} |
|||
} |
|||
</style> |
@ -0,0 +1,45 @@ |
|||
<template> |
|||
<view> |
|||
<topNavbar title="学员报名"></topNavbar> |
|||
<!-- <web-view :webview-styles="webviewStyles" src="http://192.168.1.44:92/question/?uniItem=%7B%22phone%22%3A%2218267103167%22%2C%22cityCode%22%3A%223311%22%2C%22isUni%22%3A1%7D"></web-view> --> |
|||
<web-view :webview-styles="webviewStyles" class="custom-webview" :src="link" :update-title="true"></web-view> |
|||
<!-- <iframe src="https://your-h5-url.com" frameborder="0"></iframe> --> |
|||
</view> |
|||
</template> |
|||
|
|||
<script> |
|||
export default { |
|||
data() { |
|||
return { |
|||
webviewStyles: { |
|||
progress: { |
|||
color: '#FF3333' |
|||
}, |
|||
width: '100vw', // 设置 WebView 宽度为100%,占满整个屏幕宽度 |
|||
height: '100vh', // 设置 WebView 高度为100vh,占满整个屏幕高度 |
|||
}, |
|||
link: '' |
|||
} |
|||
}, |
|||
onLoad() { |
|||
this.link = this.$store.state.webViewUrl |
|||
console.log('噜噜哇'+ this.$store.state.webViewUrl) |
|||
// http://192.168.1.44:92/question/?uniItem=%7B%22phone%22%3A%2218267103167%22%2C%22cityCode%22%3A%223311%22%2C%22isUni%22%3A1%7D |
|||
// uni.hideNavigationBarLoading() |
|||
}, |
|||
// onReady() { |
|||
// uni.hideNavigationBarLoading(); |
|||
// } |
|||
} |
|||
</script> |
|||
|
|||
<style> |
|||
.custom-webview::after { |
|||
content: none !important; /* 隐藏返回按钮 */ |
|||
} |
|||
.iframe { |
|||
display: block; |
|||
width: 100vw; |
|||
height: 100vh; |
|||
} |
|||
</style> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue