questionnaireEdit.vue 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. <template>
  2. <view class="default_page" :style="{'min-height':h+'px', 'padding-top':mt+'px'}">
  3. <cus-header title='编辑问卷'></cus-header>
  4. <div class="box adfacjb" style="padding: 32rpx 24rpx 40rpx;">
  5. <div class="box-left">
  6. <div class="box-title">问卷名称</div>
  7. <div class="box-tip" style="margin-top: 32rpx;">{{'GW+MC PREILL36测评题库版本'}}</div>
  8. </div>
  9. <div class="box-right adfac">
  10. <text>预览</text>
  11. <image :src="imgBase+'my_arrow_right.png'"></image>
  12. </div>
  13. </div>
  14. <div class="box" style="padding: 32rpx 24rpx;">
  15. <div class="box-title">选择团队</div>
  16. <div class="box-team adfacjb">
  17. <div class="box-tip">{{'甜梦2025一期团队'}}</div>
  18. <image :src="imgBase+'my_arrow_right.png'"></image>
  19. </div>
  20. </div>
  21. <div class="box" style="padding: 32rpx 24rpx 0;">
  22. <div class="box-title">问卷作答时间设置</div>
  23. <div class="box-time adfacjb" style="margin-top: 32rpx;">
  24. <div class="box-time-left">开始时间</div>
  25. <div class="box-time-right adfac">
  26. <text>{{'2025-10-13 00:00'}}</text>
  27. <image :src="imgBase+'my_arrow_right.png'"></image>
  28. </div>
  29. </div>
  30. <div class="box-time adfacjb">
  31. <div class="box-time-left">截止时间</div>
  32. <div class="box-time-right adfac">
  33. <text>{{'2025-10-20 00:00'}}</text>
  34. <image :src="imgBase+'my_arrow_right.png'"></image>
  35. </div>
  36. </div>
  37. </div>
  38. <div class="box" style="padding: 32rpx 24rpx 18rpx;">
  39. <div class="box-title adfacjb">
  40. <text>限制每位用户提交次数</text>
  41. <u-switch v-model="limit" activeColor="#833478" size="38"></u-switch>
  42. </div>
  43. <div class="box-num adfacjb">
  44. <div class="box-num-title">可提交次数</div>
  45. <div class="box-num-right">
  46. <cus-number-box :min="1" :number="dto.submitNum" @valChange="valChange"></cus-number-box>
  47. </div>
  48. </div>
  49. </div>
  50. <div class="box" style="padding: 30rpx 24rpx 0;">
  51. <div class="box-title adfacjb">
  52. <text>团队人员</text>
  53. <div class="box-add">+ 添加</div>
  54. </div>
  55. <div class="box-user">
  56. <div class="box-user-item adfacjb" v-for="(item,index) in dto.userList" :key="index">
  57. <div class="box-user-item-left">
  58. <div class="box-user-item-left-name adfac">
  59. <text>{{'吴亦可'}}</text>
  60. <div class="type">{{'赞助人Sponsor'}}</div>
  61. </div>
  62. <div class="box-user-item-left-email">{{'123456789@qq.com'}}</div>
  63. </div>
  64. <image class="box-user-item-right" :src="imgBase+''"></image>
  65. </div>
  66. </div>
  67. </div>
  68. <div class="bottom">
  69. <div class="zt_btn">确认发布</div>
  70. </div>
  71. </view>
  72. </template>
  73. <script>
  74. import CusNumberBox from '@/components/CusNumberBox/index.vue'
  75. export default {
  76. components:{ CusNumberBox },
  77. data(){
  78. return {
  79. limit:true,
  80. dto:{
  81. submitNum:1,
  82. userList:[1,1,1,1]
  83. }
  84. }
  85. },
  86. methods:{
  87. valChange(e){
  88. this.dto.submitNum = e;
  89. }
  90. }
  91. }
  92. </script>
  93. <style scoped lang="scss">
  94. .default_page{
  95. padding: 0 24rpx 182rpx;
  96. box-sizing: border-box;
  97. .box{
  98. background: #FFFFFF;
  99. box-shadow: inset 0rpx -1rpx 0rpx 0rpx rgba(229,231,235,0.5);
  100. border-radius: 24rpx;
  101. margin-top: 20rpx;
  102. &-title,&-title>text{
  103. font-family: PingFang-SC, PingFang-SC;
  104. font-weight: bold;
  105. font-size: 32rpx;
  106. color: #002846;
  107. line-height: 32rpx;
  108. }
  109. &-tip{
  110. font-family: PingFangSC, PingFang SC;
  111. font-weight: 400;
  112. font-size: 30rpx;
  113. color: #667E90;
  114. line-height: 32rpx;
  115. overflow: hidden;
  116. text-overflow: ellipsis;
  117. white-space: nowrap;
  118. }
  119. &-left{
  120. width: calc(100% - 150rpx);
  121. }
  122. &-right{
  123. &>text{
  124. font-family: PingFangSC, PingFang SC;
  125. font-weight: 400;
  126. font-size: 26rpx;
  127. color: #33A7A7;
  128. line-height: 32rpx;
  129. }
  130. &>image{
  131. width: 32rpx;
  132. height: 32rpx;
  133. margin-left: 10rpx;
  134. }
  135. }
  136. &-team{
  137. margin-top: 31rpx;
  138. &>image{
  139. width: 36rpx;
  140. height: 36rpx;
  141. }
  142. }
  143. &-time{
  144. padding: 33rpx 0;
  145. box-shadow: inset 0rpx -1rpx 0rpx 0rpx rgba(229,231,235,0.5);
  146. &-left{
  147. font-family: PingFangSC, PingFang SC;
  148. font-weight: 400;
  149. font-size: 30rpx;
  150. color: #002846;
  151. line-height: 32rpx;
  152. }
  153. &-right{
  154. &>text{
  155. font-family: PingFangSC, PingFang SC;
  156. font-weight: 400;
  157. font-size: 30rpx;
  158. color: #667E90;
  159. line-height: 32rpx;
  160. }
  161. &>image{
  162. width: 36rpx;
  163. height: 36rpx;
  164. margin-left: 10rpx;
  165. }
  166. }
  167. }
  168. &-num{
  169. margin-top: 65rpx;
  170. &-left{
  171. font-family: PingFangSC, PingFang SC;
  172. font-weight: 400;
  173. font-size: 30rpx;
  174. color: #002846;
  175. line-height: 32rpx;
  176. }
  177. }
  178. &-add{
  179. width: 120rpx;
  180. height: 54rpx;
  181. border-radius: 27rpx;
  182. border: 1rpx solid #33A7A7;
  183. font-family: PingFang-SC, PingFang-SC;
  184. font-weight: bold;
  185. font-size: 24rpx;
  186. color: #33A7A7;
  187. line-height: 54rpx;
  188. text-align: center;
  189. }
  190. &-user{
  191. margin-top: 21rpx;
  192. &-item{
  193. box-shadow: inset 0rpx -1rpx 0rpx 0rpx #EFEFEF;
  194. border-radius: 24rpx;
  195. padding: 30rpx 0 36rpx;
  196. &-left{
  197. &-name{
  198. text{
  199. font-family: PingFangSC, PingFang SC;
  200. font-weight: 400;
  201. font-size: 30rpx;
  202. color: #002846;
  203. line-height: 32rpx;
  204. }
  205. .type{
  206. background: #F8F4F8;
  207. border-radius: 21rpx;
  208. margin-left: 20rpx;
  209. padding: 5rpx 16rpx;
  210. font-family: PingFangSC, PingFang SC;
  211. font-weight: 400;
  212. font-size: 22rpx;
  213. color: #9F6196;
  214. line-height: 30rpx;
  215. text-align: center;
  216. }
  217. }
  218. &-email{
  219. font-family: PingFangSC, PingFang SC;
  220. font-weight: 400;
  221. font-size: 28rpx;
  222. color: #667E90;
  223. line-height: 28rpx;
  224. margin-top: 20rpx;
  225. }
  226. }
  227. &-right{
  228. width: 36rpx;
  229. height: 36rpx;
  230. }
  231. }
  232. }
  233. }
  234. .bottom{
  235. width: 100%;
  236. height: 162rpx;
  237. background: #FFFFFF;
  238. padding: 20rpx 50rpx;
  239. box-sizing: border-box;
  240. position: fixed;
  241. left: 0;
  242. bottom: 0;
  243. z-index: 888;
  244. }
  245. }
  246. </style>