success.vue 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <template>
  2. <view>
  3. <image class="navbg" src="../../images/duihao-bg.png"></image>
  4. <view class="nav-box">
  5. <image class="nav-box-duihao" src="../../images/duihao.png"></image>
  6. <view class="nav-box-title">下单成功</view>
  7. <view class="nav-box-desc">请保持电话畅通,我们将尽快联系您</view>
  8. </view>
  9. <view class="order-btn" @click="goIndex">返回首页</view>
  10. </view>
  11. </template>
  12. <script>
  13. var app = getApp();
  14. export default {
  15. data() {
  16. return {
  17. }
  18. },
  19. onLoad() {
  20. },
  21. onShow() {
  22. },
  23. methods: {
  24. goIndex(){
  25. uni.reLaunch({ //关闭所有页面,跳转到闪屏页
  26. url: '/pages/index/index'
  27. })
  28. },
  29. }
  30. }
  31. </script>
  32. <style lang="scss" scoped>
  33. .navbg{
  34. width: 100%;
  35. height: 374rpx;
  36. }
  37. .nav-box{
  38. text-align: center;
  39. position: absolute;
  40. z-index: 10;
  41. width: 100%;
  42. height: 240rpx;
  43. top: 130rpx;
  44. left: 0;
  45. color: #333333;
  46. }
  47. .nav-box-duihao{
  48. width: 100rpx;
  49. height: 100rpx;
  50. }
  51. .nav-box-title{
  52. line-height: 75rpx;
  53. font-size: 36rpx;
  54. font-weight: 500;
  55. }
  56. .nav-box-desc{
  57. font-size: 24rpx;
  58. font-weight: 400;
  59. }
  60. .order-btn{
  61. width: 238rpx;
  62. height: 70rpx;
  63. line-height: 70rpx;
  64. border-radius: 35rpx;
  65. border: 1rpx solid #B3B3B3;
  66. text-align: center;
  67. color: #808080;
  68. font-size: 30rpx;
  69. margin: 0 auto;
  70. margin-top: 20rpx;
  71. }
  72. </style>