resultOrder.vue 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <template>
  2. <view class="pages">
  3. <view class="success-box">
  4. <view class="success-tit">质保单领取成功</view>
  5. <view class="success-code">
  6. <image></image>
  7. </view>
  8. <view class="success-tips">车主可用微信扫此二维码查看质保单详情</view>
  9. </view>
  10. <view class="buttons">
  11. <u-button type="primary" @click="saveForm">保存二维码并查看质保信息</u-button>
  12. </view>
  13. </view>
  14. </template>
  15. <script>
  16. export default {
  17. data() {
  18. return {
  19. detail: null
  20. }
  21. },
  22. onLoad() {
  23. this.detail = this.$store.state.vuex_uuidTempData
  24. },
  25. methods: {
  26. // 保存二维码到相册并打开详情页面
  27. saveForm(){
  28. uni.redirectTo({
  29. url: "/pagesA/qualityPolicy/orderDetail"
  30. })
  31. }
  32. }
  33. }
  34. </script>
  35. <style lang="less">
  36. .pages{
  37. height: 100vh;
  38. background: #fff;
  39. .success-box{
  40. text-align: center;
  41. display: flex;
  42. flex-direction: column;
  43. justify-content: center;
  44. margin-top: 10vh;
  45. .success-tit{
  46. font-weight: bold;
  47. color: #4CAF50;
  48. font-size: 1rem;
  49. }
  50. .success-code{
  51. padding: 2rem;
  52. image{
  53. width: 10rem;
  54. height: 10rem;
  55. }
  56. }
  57. .success-tips{
  58. color: #fd920e;
  59. }
  60. }
  61. .buttons{
  62. position: fixed;
  63. bottom: 0;
  64. left: 0;
  65. padding: 1rem 3rem 3rem;
  66. background: #fff;
  67. width: 100%;
  68. }
  69. }
  70. </style>