Commit 4c085ba5 authored by 黄奎's avatar 黄奎

页面修改

parent 3470bb60
<template> <template>
<view class="indexpage"> <view class="indexpage">
<div class="wenjuan_dc" @click="goTongji()"> <div class="wenjuan_dc" @click="goTongji()" >
<img src="../../static/image/wjdc.png" alt="" /> <img src="../../static/image/wjdc.png" alt="" />
</div> </div>
<navbar class="navbarSticky" bg="#F5F5F5"> <navbar class="navbarSticky" bg="#F5F5F5">
...@@ -197,12 +197,17 @@ ...@@ -197,12 +197,17 @@
pageData: { pageData: {
LearningGardenList: [] LearningGardenList: []
}, },
SurveyObj:{
ActivitySurveyId:0,
ActivitySurveyGuestId:0,
},
userData: {} userData: {}
}); });
let methods = { let methods = {
goTongji() { goTongji() {
this.jumpPage('/pages/study/questionNaire?ActivitySurveyId=6'); console.log("SurveyObj",data.SurveyObj);
this.jumpPage('/pages/study/questionNaire?ActivitySurveyId='+data.SurveyObj.ActivitySurveyId+"&ActivitySurveyGuestId="+data.SurveyObj.ActivitySurveyGuestId);
}, },
jumpPage(url) { jumpPage(url) {
uni.navigateTo({ uni.navigateTo({
...@@ -313,6 +318,8 @@ ...@@ -313,6 +318,8 @@
proxy.$request("/AppletIndex/GetIndexInfo_V2", {}).then(res => { proxy.$request("/AppletIndex/GetIndexInfo_V2", {}).then(res => {
data.pageData = res.Data data.pageData = res.Data
uni.setStorageSync("indexData", res.Data); uni.setStorageSync("indexData", res.Data);
data.SurveyObj.ActivitySurveyId=res.Data.ActivitySurveyId;
data.SurveyObj.ActivitySurveyGuestId=res.Data.ActivitySurveyGuestId;
if (data.pageData.LearningGardenList.length > 0) { if (data.pageData.LearningGardenList.length > 0) {
data.pageData.LearningGardenList.forEach((x, y) => { data.pageData.LearningGardenList.forEach((x, y) => {
if (x.List.length > 0) { if (x.List.length > 0) {
......
...@@ -10,40 +10,36 @@ ...@@ -10,40 +10,36 @@
<view class="QuestionInner" v-for="(item,index) in dataObj.CourseArrangementList" :key="index"> <view class="QuestionInner" v-for="(item,index) in dataObj.CourseArrangementList" :key="index">
{{item.Title}} {{item.Title}}
<view style="margin:20rpx 0 30rpx 0;"> <view style="margin:20rpx 0 30rpx 0;">
<van-rate v-model="item.ScoreNum" :size="25" @change="onChange(item)" color="#ffd21e" <van-rate v-model="item.ScoreNum" :size="25" @change="onChange(item)" color="#ffd21e" void-icon="star" void-color="#eee" />
void-icon="star" void-color="#eee" />
</view> </view>
</view> </view>
<view class="QuestionTitle">教师授课情形</view> <view class="QuestionTitle">教师授课情形</view>
<view class="QuestionInner" v-for="(item,index) in dataObj.TeachersSituationList" :key="index"> <view class="QuestionInner" v-for="(item,index) in dataObj.TeachersSituationList" :key="index">
{{item.Title}} {{item.Title}}
<view style="margin:20rpx 0 30rpx 0;"> <view style="margin:20rpx 0 30rpx 0;">
<van-rate v-model="item.ScoreNum" :size="25" @change="onChange(item)" color="#ffd21e" <van-rate v-model="item.ScoreNum" :size="25" @change="onChange(item)" color="#ffd21e" void-icon="star" void-color="#eee" />
void-icon="star" void-color="#eee" />
</view> </view>
</view> </view>
<view class="QuestionTitle">助教老师</view> <view class="QuestionTitle">助教老师</view>
<view class="QuestionInner" v-for="(item,index) in dataObj.TeachingAssistantList" :key="index"> <view class="QuestionInner" v-for="(item,index) in dataObj.TeachingAssistantList" :key="index">
{{item.Title}} {{item.Title}}
<view style="margin:20rpx 0 30rpx 0;"> <view style="margin:20rpx 0 30rpx 0;">
<van-rate v-model="item.ScoreNum" :size="25" @change="onChange(item)" color="#ffd21e" <van-rate v-model="item.ScoreNum" :size="25" @change="onChange(item)" color="#ffd21e" void-icon="star" void-color="#eee" />
void-icon="star" void-color="#eee" />
</view> </view>
</view> </view>
<view class="QuestionTitle">学习环境</view> <view class="QuestionTitle">学习环境</view>
<view class="QuestionInner" v-for="(item,index) in dataObj.LearningEnvironmentList" :key="index"> <view class="QuestionInner" v-for="(item,index) in dataObj.LearningEnvironmentList" :key="index">
{{item.Title}} {{item.Title}}
<view style="margin:20rpx 0 30rpx 0;"> <view style="margin:20rpx 0 30rpx 0;">
<van-rate v-model="item.ScoreNum" :size="25" @change="onChange(item)" color="#ffd21e" <van-rate v-model="item.ScoreNum" :size="25" @change="onChange(item)" color="#ffd21e" void-icon="star" void-color="#eee" />
void-icon="star" void-color="#eee" />
</view> </view>
</view> </view>
<view class="QuestionTitle">意见与建议</view> <view class="QuestionTitle">意见与建议</view>
<view class="QuestionInner" v-for="(item,index) in dataObj.OpinionandsuggestionList" :key="index"> <view class="QuestionInner" v-for="(item,index) in dataObj.OpinionandsuggestionList" :key="index">
<view style="margin-top:20rpx;"> <view style="margin-top:20rpx;">
<textarea type="text" v-model="item.TextContent" class="input textarea" placeholder="请填写建议" <textarea type="text" v-model="item.TextContent" class="input textarea" placeholder="请填写建议" placeholder-style="textarea-placeholder"
placeholder-style="textarea-placeholder" :maxlength="300" /> :maxlength="300" />
</view> </view>
</view> </view>
</view> </view>
...@@ -72,8 +68,15 @@ ...@@ -72,8 +68,15 @@
export default { export default {
components: {}, components: {},
onLoad(options) { onLoad(options) {
if (options&&options.ActivitySurveyId) { if (options) {
this.msg.ActivitySurveyId = options.ActivitySurveyId; if(options.ActivitySurveyId)
{
this.msg.ActivitySurveyId = options.ActivitySurveyId;
}
if(options.ActivitySurveyGuestId)
{
this.msg.ActivitySurveyGuestId = options.ActivitySurveyGuestId;
}
} }
this.GetSurveyInfo(); this.GetSurveyInfo();
}, },
...@@ -83,7 +86,8 @@ ...@@ -83,7 +86,8 @@
} = getCurrentInstance(); } = getCurrentInstance();
let data = reactive({ let data = reactive({
msg: { msg: {
ActivitySurveyId:0 ActivitySurveyId:0,
ActivitySurveyGuestId:0,
}, },
count: 5, count: 5,
dataObj: {} dataObj: {}
...@@ -106,6 +110,8 @@ ...@@ -106,6 +110,8 @@
var UserInfo = uni.getStorageSync('userInfo'); var UserInfo = uni.getStorageSync('userInfo');
this.dataObj.StudentId = UserInfo.Id; this.dataObj.StudentId = UserInfo.Id;
this.dataObj.UserType=2; this.dataObj.UserType=2;
this.dataObj.ActivitySurveyId=this.msg.ActivitySurveyId;
this.dataObj.ActivitySurveyGuestId=this.msg.ActivitySurveyGuestId;
let res = saveGuestSurvey(this.dataObj).then(res => { let res = saveGuestSurvey(this.dataObj).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
uni.showToast({ uni.showToast({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment