questionnaireFill.vue 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  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="memo adfac" v-if="type==='questionnaire'" @click="noticeShow=true">
  15. <text>问卷答题说明</text>
  16. <image :src="imgBase+'icon_memo.png'"></image>
  17. </div>
  18. <div class="list">
  19. <question-item v-for="(item,index) in list" :key="index" :item="item"></question-item>
  20. </div>
  21. <div class="bottom adfacjb">
  22. <div class="bottom-left adffcac" @click="teamShow=true" v-if="!type">
  23. <image :src="imgBase+'team_info.png'"></image>
  24. <text>团队信息</text>
  25. </div>
  26. <div class="bottom-left adfac" v-else-if="type==='questionnaire'">
  27. <div class="bottom-left-pre adffcac" @click="teamShow=true">
  28. <image :src="imgBase+'questionnaire_info.png'"></image>
  29. <text>团队信息</text>
  30. </div>
  31. <div class="bottom-left-pre adffcac" @click="userShow=true">
  32. <image :src="imgBase+'questionnaire_users.png'"></image>
  33. <text>团队人员</text>
  34. </div>
  35. </div>
  36. <div class="bottom-right" :class="{'questionnaire':type==='questionnaire'}" @click="confirmSubmit">提交问卷</div>
  37. </div>
  38. <cus-notice title="问卷答题说明" :show="noticeShow" :content="noticeContent"
  39. @close="noticeShow=false" @handleKnow="noticeShow=false"></cus-notice>
  40. <cus-team-info :show="teamShow" :teamInfo="teamInfo" @close="teamShow=false"></cus-team-info>
  41. <cus-team-user :show="userShow" :list="teamUserList" @close="userShow=false"></cus-team-user>
  42. </view>
  43. </template>
  44. <script>
  45. import QuestionItem from '@/components/QuestionItem/index3.vue'
  46. import CusNotice from '@/components/CusNotice/index.vue'
  47. import CusTeamInfo from '@/components/CusTeamInfo/index.vue'
  48. import CusTeamUser from '@/components/CusTeamUser/index.vue'
  49. export default {
  50. components:{ CusNotice, QuestionItem, CusTeamInfo, CusTeamUser },
  51. data(){
  52. return {
  53. type:'',
  54. noticeShow:false,
  55. noticeContent:`问卷答题说明<br/><br/>问卷答题说明<br/><br/>问卷答题说明<br/><br/>问卷答题说明`,
  56. teamShow:false,
  57. userShow:false,
  58. teamUserList:[],
  59. list:[
  60. {
  61. question:'我们的团队成员可以清晰阐述团队的共享目的 We can collectively and clearly articulate our shared purpose',
  62. userAnswer:[
  63. {
  64. assessmentMethod:1,
  65. answer:'',
  66. questionOption:[
  67. { questionOption:'1-强烈不同意(Strongly disagree)' },
  68. { questionOption:'2-不同意(Disagree)' },
  69. { questionOption:'3-中立(Neutral)' },
  70. { questionOption:'4-同意(Agree)' },
  71. { questionOption:'5-完全同意(Totally agree)' }
  72. ]
  73. },
  74. {
  75. assessmentMethod:2,
  76. answer:'',
  77. questionOption:[
  78. { questionOption:'1-强烈不同意(Strongly disagree)' },
  79. { questionOption:'2-不同意(Disagree)' },
  80. { questionOption:'3-中立(Neutral)' },
  81. { questionOption:'4-同意(Agree)' },
  82. { questionOption:'5-完全同意(Totally agree)' }
  83. ]
  84. },
  85. ]
  86. }
  87. ],
  88. teamInfo:{
  89. aaa:'',
  90. bbb:'',
  91. ccc:'',
  92. ddd:'',
  93. eee:'',
  94. fff:'',
  95. ggg:'',
  96. hhh:'',
  97. iii:'',
  98. }
  99. }
  100. },
  101. onLoad(options) {
  102. this.type = options.type;
  103. },
  104. methods:{
  105. confirmSubmit(){
  106. let url = '/pagesPublish/questionnaireResult'
  107. if(this.type === 'questionnaire') url = '/pagesPublish/submitResult'
  108. uni.navigateTo({ url })
  109. }
  110. }
  111. }
  112. </script>
  113. <style scoped lang="scss">
  114. .default_page{
  115. padding: 0 0 192rpx;
  116. background: #FFFFFF;
  117. box-sizing: border-box;
  118. .top{
  119. padding: 40rpx 24rpx 50rpx;
  120. &-title{
  121. font-family: PingFang-SC, PingFang-SC;
  122. font-weight: bold;
  123. font-size: 40rpx;
  124. color: #002846;
  125. line-height: 51rpx;
  126. }
  127. &-progress{
  128. margin-top: 35rpx;
  129. &-text{
  130. font-family: PingFangSC, PingFang SC;
  131. font-weight: 400;
  132. font-size: 30rpx;
  133. color: #002846;
  134. line-height: 30rpx;
  135. }
  136. &-box{
  137. flex: 1;
  138. width: 100%;
  139. height: 14rpx;
  140. margin: 0 20rpx;
  141. background: #F0F2F8;
  142. border-radius: 8rpx;
  143. position: relative;
  144. &-current{
  145. height: 14rpx;
  146. background: #7CC5C5;
  147. border-radius: 8rpx;
  148. position: absolute;
  149. left: 0;
  150. top: 0;
  151. }
  152. }
  153. &-num{
  154. font-family: PingFangSC, PingFang SC;
  155. font-weight: 400;
  156. font-size: 26rpx;
  157. color: #667E90;
  158. line-height: 26rpx;
  159. span{
  160. font-size: 36rpx;
  161. color: #833478;
  162. line-height: 36rpx;
  163. }
  164. }
  165. }
  166. }
  167. .memo{
  168. margin: -20rpx 0 50rpx 24rpx;
  169. text{
  170. font-family: PingFangSC, PingFang SC;
  171. font-weight: 400;
  172. font-size: 24rpx;
  173. color: #AD78A6;
  174. line-height: 30rpx;
  175. }
  176. image{
  177. width: 24rpx;
  178. height: 24rpx;
  179. margin-left: 9rpx;
  180. }
  181. }
  182. .list{
  183. flex: 1;
  184. padding: 0 24rpx;
  185. overflow-y: auto;
  186. }
  187. .bottom{
  188. width: 100%;
  189. background: #FFFFFF;
  190. box-shadow: 0rpx -2rpx 6rpx 0rpx rgba(0,0,0,0.07);
  191. padding: 20rpx 40rpx 54rpx;
  192. box-sizing: border-box;
  193. position: fixed;
  194. left: 0;
  195. bottom: 0;
  196. z-index: 1000;
  197. &-left{
  198. image{
  199. width: 42rpx;
  200. height: 42rpx;
  201. }
  202. text{
  203. font-family: PingFangSC, PingFang SC;
  204. font-weight: 400;
  205. font-size: 24rpx;
  206. color: #536387;
  207. line-height: 40rpx;
  208. margin-top: 2rpx;
  209. }
  210. &-pre{
  211. &:last-child{
  212. margin-left: 40rpx;
  213. }
  214. }
  215. }
  216. &-right{
  217. width: 448rpx;
  218. height: 88rpx;
  219. background: #904A87;
  220. border-radius: 44rpx;
  221. font-family: PingFang-SC, PingFang-SC;
  222. font-weight: bold;
  223. font-size: 32rpx;
  224. color: #FFFFFF;
  225. line-height: 88rpx;
  226. text-align: center;
  227. letter-spacing: 2rpx;
  228. &.questionnaire{
  229. width: 383rpx;
  230. }
  231. }
  232. }
  233. }
  234. </style>