You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

преди 1 година
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <template>
  2. <view class="page" id="more">
  3. <!-- 分块显示功能区 -->
  4. <template v-for="(group, title) in listitem">
  5. <view :key="title" class="margin-bottom">
  6. <!-- 区块标题 -->
  7. <l-title>{{ group.FTName }}</l-title>
  8. <!-- 按钮组 -->
  9. <view class="function-list cu-list grid no-border col-4">
  10. <view v-for="(item, index) in group.PermFunction" :key="index"
  11. class="cu-item text-center flex flex-wrap justify-center align-center">
  12. <view @click="funcListClick(item)" style="backgroundColor:#62bbff;"
  13. class="app-item align-center flex flex-wrap justify-center align-center">
  14. <l-icon type="calendar" color="white" class="text-sl" />
  15. </view>
  16. <text>{{ item && item.FName }}</text>
  17. </view>
  18. </view>
  19. </view>
  20. </template>
  21. </view>
  22. </template>
  23. <script>
  24. import without from 'lodash/without'
  25. import concat from 'lodash/concat'
  26. import keyBy from 'lodash/keyBy'
  27. import mapKeys from 'lodash/mapKeys'
  28. import mapValues from 'lodash/mapValues'
  29. import groupBy from 'lodash/groupBy'
  30. export default {
  31. data() {
  32. return {
  33. allList: [],
  34. myList: [],
  35. editList: [],
  36. searchText: '',
  37. listitem: [],
  38. focus: false,
  39. edit: false
  40. }
  41. },
  42. async onLoad() {
  43. await this.init()
  44. },
  45. methods: {
  46. // 页面初始化
  47. async init() {
  48. this.LOADING('加载菜单中…')
  49. this.HTTP_GET(
  50. 'quanjiang/sso/list'
  51. ).then(res => {
  52. this.listitem = res
  53. this.HIDE_LOADING()
  54. })
  55. },
  56. // 点击按钮
  57. funcListClick(item) {
  58. if(item.FInterfaceUrl.indexOf('http')!=-1){
  59. let option = {
  60. FInterfaceUrl:item.FInterfaceUrl,
  61. FName:item.FName
  62. }
  63. uni.navigateTo({
  64. url:`/pages/SSO/MyApp/listview?data=`+ encodeURIComponent(JSON.stringify(option))
  65. })
  66. }else{
  67. console.log(item.FInterfaceUrl)
  68. let FInterfaceUrldata = item.FInterfaceUrl
  69. if(FInterfaceUrldata.indexOf('sysid')!=-1 && FInterfaceUrldata.indexOf('openid')!=-1 ){
  70. let sysid = item.FInterfaceUrl.slice(item.FInterfaceUrl.indexOf('sysid')+6,item.FInterfaceUrl.indexOf('openid')-1)
  71. let openid = item.FInterfaceUrl.slice(item.FInterfaceUrl.lastIndexOf ('openid')+7)
  72. let FName = item.FName
  73. let dataitem = {
  74. sysid,openid,FName
  75. }
  76. console.log(dataitem)
  77. uni.navigateTo({
  78. url:`/pages/SSO/MyApp/attestation?item=${JSON.stringify(dataitem)}`
  79. })
  80. }
  81. }
  82. },
  83. }
  84. }
  85. </script>
  86. <style lang="less" scoped>
  87. .function-list {
  88. padding-bottom: 0;
  89. .cu-item {
  90. .app-item {
  91. border-radius: 50%;
  92. height: 45px;
  93. width: 45px;
  94. }
  95. }
  96. }
  97. </style>
  98. <style lang="less">
  99. #more {
  100. .function-list .cu-item text[class*='cuIcon'] {
  101. margin-top: 0 !important;
  102. }
  103. }
  104. page {
  105. // padding-top: 100rpx;
  106. }
  107. </style>