workOrderResult.vue 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <template>
  2. <view class="app-content">
  3. <view class="billing_box_bg">
  4. <view class="top-view"> </view>
  5. <view class="result-view">
  6. <view class="iconfont iconchenggong"></view>
  7. <view class="result-title">操作成功</view>
  8. <view class="result-title" v-if="sn!=''">制作单序号:{{sn}}</view>
  9. <button class="admin-button-com big blue" style="width:45vw;" @click="goBackHome">返回</button>
  10. </view>
  11. </view>
  12. </view>
  13. </template>
  14. <script>
  15. import { getInfoByOrderId } from "@/api/work";
  16. export default {
  17. name: "success",
  18. data () {
  19. return {
  20. sn:''
  21. }
  22. },
  23. onLoad (option) {
  24. let id = option.id
  25. getInfoByOrderId({orderId:id}).then(res=>{
  26. if(res.code == 1){
  27. this.sn = res.data.info.sn
  28. }
  29. })
  30. },
  31. methods: {
  32. goBackHome() {
  33. uni.navigateBack({})
  34. }
  35. }
  36. };
  37. </script>
  38. <style lang="scss" scoped>
  39. .go-back{
  40. width: 80%;
  41. height: 80upx;
  42. color: #FFFFFF;
  43. margin-top: 50upx;
  44. background: #3385FF;
  45. border-radius: 10upx;
  46. font-size:30upx;
  47. }
  48. .billing_box_bg {
  49. position: relative;
  50. padding: 60upx 30upx;
  51. display: flex;
  52. background: white;
  53. flex-direction: column;
  54. background-color: #f5f5f5;
  55. .top-view {
  56. position: absolute;
  57. top: 0;
  58. left: 0;
  59. width: 100%;
  60. height: 299upx;
  61. background: #3385ff;
  62. border-radius: 0upx 0upx 83upx 83upx;
  63. }
  64. .result-view {
  65. position: relative;
  66. display: flex;
  67. flex-direction: column;
  68. align-items: center;
  69. padding: 70upx;
  70. width: 100%;
  71. background: #ffffff;
  72. border-radius: 20upx;
  73. z-index: 1;
  74. .iconchenggong {
  75. font-size: 170upx;
  76. color: $mainColor1;
  77. }
  78. .result-title {
  79. margin: 50upx 0 70upx;
  80. font-size: 32upx;
  81. }
  82. }
  83. }
  84. </style>