questionnaireEdit.vue 6.4 KB

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