index.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <template>
  2. <view>
  3. <u-navbar placeholder :autoBack="true" v-hideNav>
  4. <template slot="center">
  5. <view class="navbar_center_wrap">
  6. <text class="name">{{ item }}</text>
  7. </view>
  8. </template>
  9. </u-navbar>
  10. <detail :orderId="orderId" :clueId="clueId" :params="params"></detail>
  11. </view>
  12. </template>
  13. <script>
  14. import detail from "./page/detail.vue";
  15. import qs from 'qs';
  16. export default {
  17. components: {
  18. detail
  19. },
  20. onPullDownRefresh() {
  21. uni.stopPullDownRefresh();
  22. // 刷新
  23. uni.redirectTo({
  24. url: `/pages/orderDetail/index?` + qs.stringify(this.params),
  25. })
  26. },
  27. onLoad(option) {
  28. const { item, orderId, type, clueId } = option;
  29. this.item = item;
  30. this.orderId = orderId;
  31. this.params = option;
  32. this.clueId = clueId;
  33. uni.setNavigationBarTitle({
  34. title: item
  35. });
  36. },
  37. data() {
  38. return {
  39. item: "",
  40. orderId: "",
  41. clueId: "",
  42. params: {},
  43. }
  44. },
  45. mounted() {
  46. }
  47. }
  48. </script>
  49. <style lang="scss" scoped>
  50. .navbar_center_wrap {
  51. text-align: center;
  52. width: 200rpx;
  53. display: flex;
  54. flex-direction: column;
  55. align-items: center;
  56. .pinyin {
  57. font-size: 22rpx;
  58. color: #b3b3c6;
  59. }
  60. }
  61. </style>