耀实惠小程序
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.

53 lines
1004 B

  1. <template>
  2. <view class="success flex align-center flex-column">
  3. <view class="success-top flex align-center flex-column">
  4. <image class="success-image" :src="src" mode="widthFix"></image>
  5. <text class="theme-color font-30 font-weight-bold">{{text}}</text>
  6. </view>
  7. <com-view class="success-btn theme-color font-30 flex align-center justify-center" @click="confirm">{{ btnText }}</com-view>
  8. </view>
  9. </template>
  10. <script>
  11. export default {
  12. props: {
  13. text: {
  14. type: String,
  15. default: ''
  16. },
  17. btnText: {
  18. type: String,
  19. default: ''
  20. },
  21. src: {
  22. type: String,
  23. default: ''
  24. }
  25. },
  26. methods: {
  27. confirm (){
  28. this.$emit('confirm')
  29. }
  30. }
  31. }
  32. </script>
  33. <style lang="scss" scoped>
  34. .success {
  35. padding-top: 80rpx;
  36. &-top {
  37. margin-bottom: 80rpx;
  38. }
  39. &-image {
  40. width: 360rpx;
  41. margin-bottom: 60rpx;
  42. }
  43. &-btn {
  44. width: 520rpx;
  45. height: 80rpx;
  46. background: #fff;
  47. border: 4rpx solid $u-type-primary;
  48. border-radius: 26rpx;
  49. }
  50. }
  51. </style>