index.vue 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <script>
  2. import propertyList from '@/utils/propertyList.js';
  3. import template1 from './template1.vue';
  4. import template2 from './template2.vue';
  5. export default {
  6. components: {
  7. template1,
  8. template2
  9. },
  10. props: {
  11. userInfo: {
  12. type: Object,
  13. default: () => {}
  14. },
  15. orderData: {
  16. type: Object,
  17. default: () => {}
  18. },
  19. orderMenu: {
  20. type: Array,
  21. default() {
  22. return [];
  23. }
  24. },
  25. orderAdminData: {
  26. type: Object,
  27. default: () => {}
  28. }
  29. },
  30. watch: {
  31. orderData: {
  32. handler(nVal, oVal) {
  33. // this.iconFilter(nVal.style);
  34. },
  35. immediate: true,
  36. deep: true
  37. }
  38. },
  39. data() {
  40. return {
  41. property: []
  42. };
  43. },
  44. methods: {}
  45. };
  46. </script>
  47. <template>
  48. <view>
  49. <template1 v-if="orderData.style == 1" :orderMenu="orderMenu" :notPayOrder="orderAdminData.not_pay_order" :commission="orderAdminData.commission"></template1>
  50. <template2 v-if="orderData.style == 2 || orderData.style == 3" :notPayOrder="orderAdminData.not_pay_order" :orderStyle="orderData.style" :orderMenu="orderMenu"></template2>
  51. </view>
  52. </template>
  53. <style lang="scss" scoped>
  54. // /deep/ .section-content .uni-badge-left-margin {
  55. // position: absolute;
  56. // top: 0rpx;
  57. // right: 44rpx;
  58. // /deep/.uni-badge--error {
  59. // background-color: #fff !important;
  60. // }
  61. // /deep/.uni-badge {
  62. // color: var(--view-theme);
  63. // border: 1px solid var(--view-theme);
  64. // z-index: 29;
  65. // }
  66. // }
  67. .text-primary-con {
  68. color: var(--view-theme);
  69. }
  70. </style>