workOrderResult.vue 1.8 KB

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