questionnairePreview.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. <template>
  2. <view class="default_page adffc" :style="{'height':h+'px', 'padding-top':mt+'px'}">
  3. <cus-header title='问卷预览'></cus-header>
  4. <view class="top">
  5. <view class="top-title">{{'GW+MC PREILL36测评题库版本'}}</view>
  6. <view class="top-progress adfac">
  7. <view class="top-progress-text">测评进度</view>
  8. <view class="top-progress-box">
  9. <view class="top-progress-box-current" :style="{'width':(0/36*100)+'%'}"></view>
  10. </view>
  11. <view class="top-progress-num"><span>{{0}}</span>/{{36}}</view>
  12. </view>
  13. </view>
  14. <view class="list">
  15. <question-item v-for="(item,index) in list" :key="index" :item="item"></question-item>
  16. </view>
  17. <view class="bottom adfacjb">
  18. <view class="zt_btn" @click="handleBack">返回</view>
  19. </view>
  20. </view>
  21. </template>
  22. <script>
  23. import QuestionItem from '@/components/QuestionItem/index3.vue'
  24. export default {
  25. components:{ QuestionItem },
  26. data(){
  27. return {
  28. list:[
  29. {
  30. question:'我们的团队成员可以清晰阐述团队的共享目的 We can collectively and clearly articulate our shared purpose',
  31. userAnswer:[
  32. {
  33. assessmentMethod:1,
  34. answer:'',
  35. questionOption:[
  36. { questionOption:'1-强烈不同意(Strongly disagree)' },
  37. { questionOption:'2-不同意(Disagree)' },
  38. { questionOption:'3-中立(Neutral)' },
  39. { questionOption:'4-同意(Agree)' },
  40. { questionOption:'5-完全同意(Totally agree)' }
  41. ]
  42. },
  43. {
  44. assessmentMethod:2,
  45. answer:'',
  46. questionOption:[
  47. { questionOption:'1-强烈不同意(Strongly disagree)' },
  48. { questionOption:'2-不同意(Disagree)' },
  49. { questionOption:'3-中立(Neutral)' },
  50. { questionOption:'4-同意(Agree)' },
  51. { questionOption:'5-完全同意(Totally agree)' }
  52. ]
  53. },
  54. ]
  55. }
  56. ],
  57. }
  58. },
  59. methods:{
  60. handleBack(){
  61. uni.navigateBack();
  62. }
  63. }
  64. }
  65. </script>
  66. <style scoped lang="scss">
  67. .default_page{
  68. padding: 0 0 192rpx;
  69. background: #FFFFFF;
  70. box-sizing: border-box;
  71. .top{
  72. padding: 40rpx 24rpx 50rpx;
  73. &-title{
  74. font-family: PingFang-SC, PingFang-SC;
  75. font-weight: bold;
  76. font-size: 40rpx;
  77. color: #002846;
  78. line-height: 51rpx;
  79. }
  80. &-progress{
  81. margin-top: 35rpx;
  82. &-text{
  83. font-family: PingFangSC, PingFang SC;
  84. font-weight: 400;
  85. font-size: 30rpx;
  86. color: #002846;
  87. line-height: 30rpx;
  88. }
  89. &-box{
  90. flex: 1;
  91. width: 100%;
  92. height: 14rpx;
  93. margin: 0 20rpx;
  94. background: #F0F2F8;
  95. border-radius: 8rpx;
  96. position: relative;
  97. &-current{
  98. height: 14rpx;
  99. background: #FFD750;
  100. border-radius: 8rpx;
  101. position: absolute;
  102. left: 0;
  103. top: 0;
  104. }
  105. }
  106. &-num{
  107. font-family: PingFangSC, PingFang SC;
  108. font-weight: 400;
  109. font-size: 26rpx;
  110. color: #667E90;
  111. line-height: 26rpx;
  112. span{
  113. font-size: 36rpx;
  114. color: #199C9C;
  115. line-height: 36rpx;
  116. }
  117. }
  118. }
  119. }
  120. .list{
  121. flex: 1;
  122. padding: 0 24rpx;
  123. overflow-y: auto;
  124. }
  125. .bottom{
  126. width: 100%;
  127. background: #FFFFFF;
  128. box-shadow: 0rpx -2rpx 6rpx 0rpx rgba(0,0,0,0.07);
  129. padding: 20rpx 40rpx 54rpx;
  130. box-sizing: border-box;
  131. position: fixed;
  132. left: 0;
  133. bottom: 0;
  134. z-index: 1000;
  135. &-right{
  136. width: 100%;
  137. height: 88rpx;
  138. background: linear-gradient( 90deg, #33A7A7 0%, #64BBBB 100%);;
  139. border-radius: 44rpx;
  140. font-family: PingFang-SC, PingFang-SC;
  141. font-weight: bold;
  142. font-size: 32rpx;
  143. color: #FFFFFF;
  144. line-height: 88rpx;
  145. text-align: center;
  146. letter-spacing: 2rpx;
  147. }
  148. }
  149. }
  150. </style>