pageMenu.vue 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <template>
  2. <view class="pageMenu">
  3. <u-tabs ref="tabs" :list="menuList" :current="current" @change="change" :bar-height="0"></u-tabs>
  4. </view>
  5. </template>
  6. <script>
  7. export default {
  8. name:'PageMenu',
  9. props:['currentIndex'],
  10. data(){
  11. return {
  12. current:this.currentIndex,
  13. menuList:[
  14. {
  15. id:0,
  16. name:this.$t('common.FinancialInstitutions'),
  17. path:'/pages/financialService/financialOrgans/organsList'
  18. },{
  19. id:1,
  20. name:this.$t('common.InvestmentGuide'),
  21. path:'/pages/financialService/investmentGuide/guideList'
  22. },
  23. {
  24. id:2,
  25. name:this.$t('common.ProjectAppraisal'),
  26. path:'/pages/financialService/projectEvaluation/evaluationList'
  27. },
  28. {
  29. id:3,
  30. name:this.$t('common.FundIdeas'),
  31. path:'/pages/financialService/financialFundIdeas/fundIdeasList'
  32. }
  33. ],
  34. menuListEn:[
  35. {
  36. id:0,
  37. name:'FinancialInstitutions',
  38. path:'/pages/financialService/financialOrgans/organsList'
  39. },{
  40. id:1,
  41. name:'InvestmentGuide',
  42. path:'/pages/financialService/investmentGuide/guideList'
  43. },{
  44. id:2,
  45. name:'ProjectAppraisal',
  46. path:'/pages/financialService/projectEvaluation/evaluationList'
  47. },{
  48. id:3,
  49. name:'FundIdeas',
  50. path:'/pages/financialService/financialFundIdeas/fundIdeasList'
  51. }
  52. ]
  53. }
  54. },
  55. methods:{
  56. change(index) {
  57. this.current = index;
  58. uni.redirectTo({
  59. url:this.menuList[index].path
  60. })
  61. }
  62. }
  63. }
  64. </script>
  65. <style lang="scss" scoped>
  66. .pageMenu{
  67. border-bottom:1px solid #eee;
  68. margin-top:50rpx;
  69. height:44px;
  70. }
  71. </style>