活动问卷
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 

207 lignes
3.8 KiB

  1. <template>
  2. <view class="page">
  3. <image class="sucLogo" src="../../static/image/successlogo.png" mode="widthFix"></image>
  4. <view class="text1">
  5. 您的调查问卷已提交成功
  6. </view>
  7. <view class="text2">
  8. 客服会尽快联系您!
  9. </view>
  10. <view class="text3">
  11. 客服电话:<text @tap="callPhone(pageData.phone)">{{ pageData.phone }}</text>
  12. </view>
  13. <view class="shareBtn" @tap="open('sharePopup')">
  14. <text>转发</text>
  15. </view>
  16. <uni-popup ref="sharePopup" type="bottom">
  17. <view class="shareBox">
  18. <view class="btnBoxs">
  19. <view class="items">
  20. <button class="items" type="default" open-type="share">
  21. <text>小程序</text>
  22. <text>分享</text>
  23. </button>
  24. </view>
  25. <view class="items" @tap="openImg">
  26. <text>二维码</text>
  27. <text>分享</text>
  28. </view>
  29. </view>
  30. <view class="shareBtns" @tap="close('sharePopup')">
  31. 关闭
  32. </view>
  33. </view>
  34. </uni-popup>
  35. </view>
  36. </template>
  37. <script>
  38. export default {
  39. data() {
  40. return {
  41. id: '',
  42. pageData: {}, //
  43. };
  44. },
  45. onShareAppMessage() {
  46. return {
  47. title: this.pageData.shareTitle,
  48. path: `/pages/questionnaire/questionnaire?id=${this.id}&type=share`,
  49. imageUrl: this.pageData.shareLogo,
  50. };
  51. },
  52. onLoad(option) {
  53. if (option.id) this.id = option.id
  54. this.backframesurveycusList()
  55. },
  56. methods: {
  57. // 详情
  58. backframesurveycusList() {
  59. this.$request.get(this.$apiUrls.backframesurveycusList, {
  60. id: this.id
  61. }).then(res => {
  62. console.log(res)
  63. this.pageData = res.data
  64. })
  65. },
  66. // 弹窗开启
  67. open(inParams) {
  68. this.$refs[inParams].open()
  69. },
  70. // 弹窗关闭
  71. close(inParams) {
  72. this.$refs[inParams].close()
  73. },
  74. openImg() {
  75. uni.previewImage({
  76. urls: [this.pageData.qrCode],
  77. })
  78. },
  79. // 拨打电话
  80. callPhone(phone) {
  81. uni.makePhoneCall({
  82. phoneNumber: phone
  83. })
  84. },
  85. }
  86. }
  87. </script>
  88. <style lang="scss" scoped>
  89. .page {
  90. position: relative;
  91. z-index: 0;
  92. width: 100vw;
  93. height: 100vh;
  94. display: flex;
  95. flex-direction: column;
  96. align-items: center;
  97. background: #FFFFFF;
  98. .sucLogo {
  99. margin: 200rpx 0 24rpx;
  100. width: 240rpx;
  101. }
  102. .text1 {
  103. font-size: 36rpx;
  104. font-weight: 600;
  105. color: #000000;
  106. line-height: 50rpx;
  107. }
  108. .text2 {
  109. margin: 24rpx 0 0 0;
  110. font-size: 32rpx;
  111. font-weight: 400;
  112. color: #333333;
  113. line-height: 48rpx;
  114. }
  115. .text3 {
  116. font-size: 32rpx;
  117. font-weight: 400;
  118. color: #333333;
  119. line-height: 48rpx;
  120. }
  121. .shareBtn {
  122. position: fixed;
  123. bottom: 258rpx;
  124. right: 30rpx;
  125. width: 104rpx;
  126. height: 104rpx;
  127. border-radius: 50%;
  128. background: linear-gradient(180deg, #3D78F6 0%, #336CE6 100%);
  129. box-shadow: 0 4rpx 8rpx 0 rgba(61, 120, 246, 0.5);
  130. font-size: 28rpx;
  131. font-weight: 400;
  132. color: #FFFFFF;
  133. display: inline-flex;
  134. flex-direction: column;
  135. justify-content: center;
  136. align-items: center;
  137. }
  138. .shareBox {
  139. width: 100%;
  140. height: 424rpx;
  141. background: #F9F9F9;
  142. border-radius: 16rpx 16rpx 1px 1px;
  143. .btnBoxs {
  144. padding: 60rpx 0;
  145. width: 100%;
  146. display: flex;
  147. justify-content: center;
  148. .items {
  149. margin: 0 80rpx;
  150. width: 160rpx;
  151. height: 160rpx;
  152. background: linear-gradient(180deg, #3D78F6 0%, #336CE6 100%);
  153. box-shadow: 0 4rpx 8rpx 0 rgba(61, 120, 246, 0.5);
  154. border-radius: 50%;
  155. display: inline-flex;
  156. flex-direction: column;
  157. justify-content: center;
  158. align-items: center;
  159. font-size: 30rpx;
  160. font-weight: 400;
  161. color: #FFFFFF;
  162. line-height: 42rpx;
  163. }
  164. }
  165. .shareBtns {
  166. margin: 0 auto;
  167. width: 670rpx;
  168. height: 120rpx;
  169. background: #FFFFFF;
  170. border-radius: 16rpx;
  171. font-size: 32rpx;
  172. font-weight: 600;
  173. color: #000000;
  174. text-align: center;
  175. line-height: 120rpx;
  176. }
  177. }
  178. }
  179. </style>