活动问卷
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 

150 líneas
2.7 KiB

  1. <template>
  2. <view class="page">
  3. <view class="header" :style="{height: CustomBar+'px', paddingTop: StatusBar+'px'}">
  4. 问卷调查
  5. </view>
  6. <!-- 背景板 -->
  7. <image class="bgImg" src="../../static/image/bg2.png" mode=""></image>
  8. <!-- 图片 -->
  9. <view class="titleBox">
  10. <image class="img1" src="../../static/image/texttitle.png" mode=""></image>
  11. <image class="img2" src="../../static/image/sign.png" mode=""></image>
  12. </view>
  13. <!-- 内容 -->
  14. <view class="container">
  15. <!-- 循环 -->
  16. <view v-for="(data, index) in list" class="c-item" :key="index">
  17. <view class="lside">
  18. {{ data.surveyTitle }}
  19. </view>
  20. <view class="rside" @tap="toNextPage(data)">
  21. 详情
  22. </view>
  23. </view>
  24. </view>
  25. </view>
  26. </template>
  27. <script>
  28. export default {
  29. data() {
  30. return {
  31. list: [], // 问卷列表
  32. }
  33. },
  34. onLoad() {
  35. console.log(this.$request, this.$apiUrls)
  36. this.getframesurveylist()
  37. },
  38. methods: {
  39. // 问卷列表
  40. getframesurveylist() {
  41. this.$request.get(this.$apiUrls.getframesurveylist, { status: 0 }).then(res => {
  42. this.list = res.data
  43. })
  44. },
  45. // 跳转下一页
  46. toNextPage(data) {
  47. uni.navigateTo({
  48. url: `/pages/questionnaire/questionnaire?id=${data.surveyId}&name=${data.surveyTitle}&shareLogo=${data.shareLogo}&qrCode=${data.qrCode}`
  49. })
  50. }
  51. }
  52. }
  53. </script>
  54. <style lang="scss" scoped>
  55. .page {
  56. position: relative;
  57. z-index: 0;
  58. width: 100vw;
  59. height: 100vh;
  60. display: flex;
  61. flex-direction: column;
  62. .header {
  63. flex-shrink: 0;
  64. width: 100%;
  65. color: #fff;
  66. display: flex;
  67. align-items: center;
  68. justify-content: center;
  69. }
  70. .bgImg {
  71. position: absolute;
  72. top: 0;
  73. left: 0;
  74. right: 0;
  75. bottom: 0;
  76. z-index: -1;
  77. width: 100%;
  78. height: 100%;
  79. }
  80. .titleBox {
  81. flex-shrink: 0;
  82. width: 100%;
  83. display: flex;
  84. justify-content: center;
  85. align-items: center;
  86. .img1 {
  87. width: 420rpx;
  88. height: 88rpx;
  89. }
  90. .img2 {
  91. margin: 0 0 0 26rpx;
  92. width: 260rpx;
  93. height: 260rpx;
  94. }
  95. }
  96. .container {
  97. flex-grow: 1;
  98. padding: 0 30rpx;
  99. width: 100%;
  100. overflow-y: auto;
  101. .c-item {
  102. margin: 0 0 32rpx 0;
  103. padding: 0 30rpx;
  104. width: 100%;
  105. height: 168rpx;
  106. background: #EDFBF7;
  107. border-radius: 16rpx;
  108. display: flex;
  109. justify-content: space-between;
  110. align-items: center;
  111. .lside {
  112. font-size: 32rpx;
  113. font-weight: 600;
  114. color: #000000;
  115. }
  116. .rside {
  117. width: 160rpx;
  118. height: 72rpx;
  119. display: flex;
  120. align-items: center;
  121. justify-content: center;
  122. background: #3D78F6;
  123. border-radius: 8rpx;
  124. font-size: 32rpx;
  125. font-weight: 400;
  126. color: #FFFFFF;
  127. }
  128. }
  129. }
  130. }
  131. </style>