questionnaireFill.vue 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. <template>
  2. <view class="default_page adffc" :style="{'height':h+'px', 'padding-top':mt+'px'}">
  3. <cus-header title='填写问卷'></cus-header>
  4. <div class="top">
  5. <div class="top-title">{{'GW+MC PREILL36测评题库版本'}}</div>
  6. <div class="top-progress adfac">
  7. <div class="top-progress-text">测评进度</div>
  8. <div class="top-progress-box">
  9. <div class="top-progress-box-current" :style="{'width':(2/36*100)+'%'}"></div>
  10. </div>
  11. <div class="top-progress-num"><span>{{2}}</span>/{{36}}</div>
  12. </div>
  13. </div>
  14. <div class="list">
  15. <question-item v-for="(item,index) in list" :key="index" :item="item"></question-item>
  16. </div>
  17. <div class="bottom adfacjb">
  18. <div class="bottom-left adffcac" @click="teamShow=true">
  19. <image :src="imgBase+'team_info.png'"></image>
  20. <text>团队信息</text>
  21. </div>
  22. <div class="bottom-right" @click="confirmSubmit">提交问卷</div>
  23. </div>
  24. <cus-team-info :show="teamShow" :teamInfo="teamInfo" @close="teamShow=false"></cus-team-info>
  25. </view>
  26. </template>
  27. <script>
  28. import QuestionItem from '@/components/QuestionItem/index3.vue'
  29. import CusTeamInfo from '@/components/CusTeamInfo/index.vue'
  30. import CusTeamUser from '@/components/CusTeamUser/index.vue'
  31. export default {
  32. components:{ QuestionItem, CusTeamInfo, CusTeamUser },
  33. data(){
  34. return {
  35. teamShow:false,
  36. list:[
  37. {
  38. question:'我们的团队成员可以清晰阐述团队的共享目的 We can collectively and clearly articulate our shared purpose',
  39. userAnswer:[
  40. {
  41. assessmentMethod:1,
  42. answer:'',
  43. questionOption:[
  44. { questionOption:'1-强烈不同意(Strongly disagree)' },
  45. { questionOption:'2-不同意(Disagree)' },
  46. { questionOption:'3-中立(Neutral)' },
  47. { questionOption:'4-同意(Agree)' },
  48. { questionOption:'5-完全同意(Totally agree)' }
  49. ]
  50. },
  51. {
  52. assessmentMethod:2,
  53. answer:'',
  54. questionOption:[
  55. { questionOption:'1-强烈不同意(Strongly disagree)' },
  56. { questionOption:'2-不同意(Disagree)' },
  57. { questionOption:'3-中立(Neutral)' },
  58. { questionOption:'4-同意(Agree)' },
  59. { questionOption:'5-完全同意(Totally agree)' }
  60. ]
  61. },
  62. ]
  63. }
  64. ],
  65. teamInfo:{
  66. aaa:'',
  67. bbb:'',
  68. ccc:'',
  69. ddd:'',
  70. eee:'',
  71. fff:'',
  72. ggg:'',
  73. hhh:'',
  74. iii:'',
  75. }
  76. }
  77. },
  78. methods:{
  79. confirmSubmit(){
  80. uni.navigateTo({
  81. url:'/pagesPublish/questionnaireResult'
  82. })
  83. }
  84. }
  85. }
  86. </script>
  87. <style scoped lang="scss">
  88. .default_page{
  89. padding: 0 0 192rpx;
  90. background: #FFFFFF;
  91. box-sizing: border-box;
  92. .top{
  93. padding: 40rpx 24rpx 50rpx;
  94. &-title{
  95. font-family: PingFang-SC, PingFang-SC;
  96. font-weight: bold;
  97. font-size: 40rpx;
  98. color: #002846;
  99. line-height: 51rpx;
  100. }
  101. &-progress{
  102. margin-top: 35rpx;
  103. &-text{
  104. font-family: PingFangSC, PingFang SC;
  105. font-weight: 400;
  106. font-size: 30rpx;
  107. color: #002846;
  108. line-height: 30rpx;
  109. }
  110. &-box{
  111. flex: 1;
  112. width: 100%;
  113. height: 14rpx;
  114. margin: 0 20rpx;
  115. background: #F0F2F8;
  116. border-radius: 8rpx;
  117. position: relative;
  118. &-current{
  119. height: 14rpx;
  120. background: #7CC5C5;
  121. border-radius: 8rpx;
  122. position: absolute;
  123. left: 0;
  124. top: 0;
  125. }
  126. }
  127. &-num{
  128. font-family: PingFangSC, PingFang SC;
  129. font-weight: 400;
  130. font-size: 26rpx;
  131. color: #667E90;
  132. line-height: 26rpx;
  133. span{
  134. font-size: 36rpx;
  135. color: #833478;
  136. line-height: 36rpx;
  137. }
  138. }
  139. }
  140. }
  141. .list{
  142. flex: 1;
  143. padding: 0 24rpx;
  144. overflow-y: auto;
  145. }
  146. .bottom{
  147. width: 100%;
  148. background: #FFFFFF;
  149. box-shadow: 0rpx -2rpx 6rpx 0rpx rgba(0,0,0,0.07);
  150. padding: 20rpx 40rpx 54rpx;
  151. box-sizing: border-box;
  152. position: fixed;
  153. left: 0;
  154. bottom: 0;
  155. z-index: 1000;
  156. &-left{
  157. image{
  158. width: 42rpx;
  159. height: 42rpx;
  160. }
  161. text{
  162. font-family: PingFangSC, PingFang SC;
  163. font-weight: 400;
  164. font-size: 24rpx;
  165. color: #536387;
  166. line-height: 40rpx;
  167. margin-top: 2rpx;
  168. }
  169. }
  170. &-right{
  171. width: 448rpx;
  172. height: 88rpx;
  173. background: #904A87;
  174. border-radius: 44rpx;
  175. font-family: PingFang-SC, PingFang-SC;
  176. font-weight: bold;
  177. font-size: 32rpx;
  178. color: #FFFFFF;
  179. line-height: 88rpx;
  180. text-align: center;
  181. letter-spacing: 2rpx;
  182. }
  183. }
  184. }
  185. </style>