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

页面修改

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