success.vue 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <template>
  2. <view class="success-box">
  3. <view class="box-1"></view>
  4. <view class="img-1">
  5. <image class="img-2" src="@/static/img/s-2.png" mode="scaleToFill"></image>
  6. <view class="text-align-center fs-32 fc-3 fw-400 mb-25 ">支付成功</view>
  7. <view class="text-align-center fs-42 fc-3 fw-b mb-120 ">¥{{totalPrice}}</view>
  8. <view class="fs-30 text-align-center fc-6 fw-400 ">请取走你的小票和商品</view>
  9. </view>
  10. <view class="box-border-box box-2">
  11. <view class="" @click="buy()">继续购买</view>
  12. </view>
  13. </view>
  14. </template>
  15. <script>
  16. export default {
  17. data(){
  18. return{
  19. totalPrice:'',
  20. }
  21. },
  22. onLoad(e) {
  23. this.totalPrice = e.money
  24. },
  25. methods:{
  26. buy(){
  27. uni.reLaunch({
  28. url:'/pages/index/index'
  29. })
  30. }
  31. },
  32. }
  33. </script>
  34. <style scoped lang="scss">
  35. .success-box{
  36. width: 100%;
  37. height: 100vh;
  38. background-color: #F2F3F5;
  39. position: relative;
  40. .box-2{
  41. margin-top: 600rpx;
  42. padding: 0 40rpx;
  43. view{
  44. width: 46%;
  45. height: 83rpx;
  46. line-height: 83rpx;
  47. border-radius: 69rpx;
  48. border: 2rpx solid #1778FD;
  49. text-align: center;
  50. color: #1778FD;
  51. font-size: 32rpx;
  52. margin: 0 auto;
  53. }
  54. }
  55. .box-1{
  56. width: 750rpx;
  57. height: 272rpx;
  58. background: #0473CF;
  59. border-radius: 0 0 100rpx 100rpx;
  60. }
  61. .img-1{
  62. background: url('@/static/img/s-1.png') no-repeat;
  63. background-size: 100% 100%;
  64. position: absolute;
  65. top: 185rpx;
  66. left: 48rpx;
  67. width: 650rpx;
  68. height: 610rpx;
  69. z-index: 0;
  70. box-sizing: border-box;
  71. padding-top: 78rpx;
  72. }
  73. .img-2{
  74. width: 160rpx;
  75. height: 127rpx;
  76. margin: 0 auto 35rpx auto;
  77. z-index: 2;
  78. }
  79. .mb-120{
  80. margin-bottom: 140rpx;
  81. }
  82. }
  83. </style>