index.vue 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <template>
  2. <view class="container">
  3. <view class="panel">
  4. <view class="img-box">
  5. <image v-if="id" src="../static/result2.png" class="image"></image>
  6. <image v-else src="../static/result1.png" class="image"></image>
  7. <view v-if="id">订单已全部核销</view>
  8. <view v-else>暂无待核销订单</view>
  9. </view>
  10. <view class="btn-box">
  11. <navigator v-if="id" class="btn" :url="'/pages/admin/orderDetail/index?id='+id+'&storeNum='+storeNum" hover-class="none">订单详情</navigator>
  12. <navigator class="btn" :url="storeNum?'/pages/admin/work/index':'/pages/admin/work/store'" hover-class="none">返回工作台</navigator>
  13. </view>
  14. </view>
  15. </view>
  16. </template>
  17. <script>
  18. // import Name from './components/Name.vue'
  19. import {
  20. HTTP_REQUEST_URL
  21. } from '@/config/app';
  22. export default {
  23. components: {
  24. // Name
  25. },
  26. data() {
  27. return {
  28. imgHost: HTTP_REQUEST_URL,
  29. id: 0,
  30. storeNum:1
  31. }
  32. },
  33. onLoad(option) {
  34. this.storeNum = parseInt(option.storeNum);
  35. this.id = option.id || 0;
  36. },
  37. }
  38. </script>
  39. <style lang="scss" scoped>
  40. .container {
  41. padding: 40rpx 20rpx;
  42. .panel {
  43. padding: 64rpx 105rpx 98rpx;
  44. border-radius: 24rpx;
  45. background: #FFFFFF;
  46. }
  47. .img-box {
  48. text-align: center;
  49. font-size: 36rpx;
  50. line-height: 50rpx;
  51. color: #333333;
  52. }
  53. .image {
  54. width: 173rpx;
  55. height: 163rpx;
  56. margin-bottom: 34rpx;
  57. }
  58. .btn-box {
  59. margin-top: 60rpx;
  60. }
  61. .btn {
  62. height: 88rpx;
  63. border: 1rpx solid #2A7EFB;
  64. border-radius: 44rpx;
  65. text-align: center;
  66. font-weight: 500;
  67. line-height: 86rpx;
  68. color: #2A7EFB;
  69. transform: rotateZ(360deg);
  70. +.btn {
  71. margin-top: 24rpx;
  72. }
  73. &:first-child {
  74. background: #2A7EFB;
  75. color: #FFFFFF;
  76. }
  77. }
  78. }
  79. </style>