Index.vue 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <template><page-meta :root-font-size="fontSize+'px'"></page-meta>
  2. <seller-base :show="false">
  3. <view class="div container">
  4. <view class="div common-header-wrap">
  5. <view :style="'height:'+navHeight+'px'"></view>
  6. <view class="common-header-holder"></view>
  7. <view class="common-header-fixed">
  8. <title-header />
  9. <uni-nav-bar title="店铺分销" class="common-header" left-icon="back" @clickLeft="goBack()">
  10. </uni-nav-bar>
  11. </view>
  12. </view>
  13. <view class="div main-content">
  14. <view class="div" @click="goSellerInviterGoodsList">
  15. <flex-line :is-link="true" :show-border="true"><text class="span line-name">分销商品管理</text></flex-line>
  16. </view>
  17. <view class="div" @click="goSellerInviterOrderList">
  18. <flex-line :is-link="true" :show-border="true"><text class="span line-name">分销业绩</text></flex-line>
  19. </view>
  20. </view>
  21. </view>
  22. </seller-base>
  23. </template>
  24. <script>
  25. import {getFontSize} from '@/util/common'
  26. import TitleHeader from '../../TitleHeader'
  27. import SellerBase from '../SellerBase'
  28. import flexLine from '../../flexLine'
  29. export default {
  30. name: 'Index',
  31. data(){
  32. return {
  33. navHeight:0
  34. }
  35. },
  36. components:{TitleHeader,SellerBase,flexLine,},
  37. mounted(){
  38. // #ifdef MP-WEIXIN
  39. this.navHeight = uni.getMenuButtonBoundingClientRect().height
  40. // #endif
  41. },
  42. computed:{
  43. fontSize(){
  44. return getFontSize()
  45. }
  46. },
  47. methods:{
  48. goBack(){uni.navigateBack({delta:1})},
  49. goSellerInviterGoodsList () {
  50. uni.navigateTo({url:'/pages/seller/inviter/GoodsList'})
  51. },
  52. goSellerInviterOrderList () {
  53. uni.navigateTo({url:'/pages/seller/inviter/OrderList'})
  54. }
  55. }
  56. }
  57. </script>
  58. <style scoped lang="scss">
  59. .main-content{background: #fff;padding:0 $pageSpace}
  60. </style>