展品维保小程序前端代码接口
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

100 lines
1.7 KiB

2 weeks ago
  1. <template>
  2. <view class="page">
  3. <!-- 主要内容区域 -->
  4. <view class="main-content">
  5. <!-- 签到成功图片 -->
  6. <view class="success-image-container">
  7. <image class="success-image" src="/static/签到成功.png" mode="aspectFit"></image>
  8. </view>
  9. <!-- 获得积分文字 -->
  10. <view class="points-text">
  11. <text class="points-label">获得{{score}}积分</text>
  12. </view>
  13. </view>
  14. <!-- 底部按钮区域 -->
  15. <view class="bottom-section">
  16. <view class="button-container">
  17. <uv-button
  18. type="primary"
  19. text="我知道了"
  20. @click="goBack"
  21. customStyle="width: 600rpx; height: 88rpx; border-radius: 44rpx; background: #218CDD; font-size: 32rpx;"
  22. ></uv-button>
  23. </view>
  24. </view>
  25. </view>
  26. </template>
  27. <script>
  28. export default {
  29. data() {
  30. return {
  31. score: 0
  32. }
  33. },
  34. methods: {
  35. // 返回上一页
  36. goBack() {
  37. uni.navigateBack({
  38. delta: 1
  39. })
  40. }
  41. },
  42. onLoad(options) {
  43. this.score = options.score
  44. },
  45. }
  46. </script>
  47. <style lang="scss" scoped>
  48. .page {
  49. background-color: #F3F7F8;
  50. min-height: 100vh;
  51. display: flex;
  52. flex-direction: column;
  53. position: relative;
  54. }
  55. .main-content {
  56. flex: 1;
  57. display: flex;
  58. flex-direction: column;
  59. align-items: center;
  60. justify-content: center;
  61. padding: 0 60rpx;
  62. box-sizing: border-box;
  63. }
  64. .success-image-container {
  65. // margin-bottom: 80rpx;
  66. display: flex;
  67. justify-content: center;
  68. .success-image {
  69. width: 480rpx;
  70. height: 320rpx;
  71. }
  72. }
  73. .points-text {
  74. text-align: center;
  75. .points-label {
  76. font-size: 36rpx;
  77. color: #333;
  78. font-weight: 600;
  79. line-height: 1.4;
  80. }
  81. }
  82. .bottom-section {
  83. padding: 60rpx 60rpx 120rpx;
  84. box-sizing: border-box;
  85. }
  86. .button-container {
  87. display: flex;
  88. justify-content: center;
  89. }
  90. </style>