result.vue 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <template>
  2. <view class="app-content">
  3. <appResult>
  4. <button class="admin-button-com blue big" @click="gotoDetail">订单详情</button>
  5. <button class="admin-button-com big" @click="gotoPlace">返回</button>
  6. </appResult>
  7. </view>
  8. </template>
  9. <script>
  10. import appResult from "@/components/app-result";
  11. import { getDetB} from "@/api/order";
  12. export default {
  13. name: "result",
  14. components: {
  15. appResult
  16. },
  17. data(){
  18. return {
  19. name:'',
  20. index:0,
  21. type:[],
  22. orderInfo: {}
  23. }
  24. },
  25. methods: {
  26. init(){
  27. let orderId = this.option.orderId?this.option.orderId:0
  28. getDetB({id: orderId}).then(res => {
  29. this.orderInfo = res.data
  30. })
  31. },
  32. gotoDetail() {
  33. this.pageTo({url:`/admin/order/detail?id=${this.option.orderId}`, type: 2})
  34. },
  35. gotoPlace() {
  36. uni.navigateBack({ delta: 1 })
  37. }
  38. }
  39. };
  40. </script>
  41. <style lang="scss" scoped>
  42. .admin-button-com {
  43. margin-bottom:60upx;
  44. width: 100%;
  45. }
  46. .zuhe-box{
  47. width: 100%;
  48. padding: 0 20upx;
  49. margin-bottom: 20upx;
  50. background-color: #fff;
  51. .zuhe-remark{
  52. color: #333;
  53. font-size: 32upx;
  54. font-weight: 700;
  55. line-height: 88upx;
  56. }
  57. .zuhe-center{
  58. font-size: 28upx;
  59. height: 90upx;
  60. box-sizing: border-box;
  61. .zuhe-title{
  62. color: #666;
  63. }
  64. &>input{
  65. border: 1px solid #eee!important;
  66. border-radius: 5upx!important;
  67. }
  68. .zuhe-val{
  69. position: relative;
  70. width: 70%;
  71. height: 60upx;
  72. padding: 10upx;
  73. color: #333;
  74. border: 1px solid #868686;
  75. border: none;
  76. &.active:before {
  77. content: ' ';
  78. height: 22upx;
  79. width: 22upx;
  80. border-width: 2upx 2upx 0 0;
  81. border-color: #868686;
  82. border-style: solid;
  83. -webkit-transform: matrix(0.5, 0.5, -0.5, 0.5, 0, 0);
  84. transform: matrix(0.5, 0.5, -0.5, 0.5, 0, 0);
  85. position: absolute;
  86. top: 50%;
  87. margin-top: -12upx;
  88. right: 30upx;
  89. }
  90. }
  91. }
  92. }
  93. </style>