index.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <!-- 我的-服务中心 -->
  2. <template>
  3. <!-- 竖向菜单 -->
  4. <view style="margin-bottom: 50upx;margin-top: 0upx;" class="main_width my_bg_box">
  5. <view style="width: 92%;margin-left: 4%;overflow: hidden;">
  6. <view @click="menu_click(item.key)" class="menu_item" :key="item.key" v-for="(item, index) in menu">
  7. <view style="display: flex;align-items: center;">
  8. <view style="color: #666666;">{{item.name}}</view>
  9. </view>
  10. <view style="color: #666666;font-size: 26upx;">{{item.con||''}} ></view>
  11. </view>
  12. </view>
  13. </view>
  14. </template>
  15. <script>
  16. import commonData from '../../../commonData.js'
  17. import commonFun from '../../../commonFun.js'
  18. export default {
  19. data() {
  20. return {
  21. picurls: '',
  22. sys_role: commonData.sys_role, //角色
  23. menu: [{
  24. key: 'guide',
  25. name: '新手指南',
  26. },
  27. {
  28. key: 'opinion',
  29. name: '意见反馈',
  30. },
  31. {
  32. key: 'message',
  33. name: '联系客服',
  34. con: '4006788729',
  35. },
  36. {
  37. key: '../../login/web?index=6',
  38. name: '用户协议',
  39. },
  40. {
  41. key: '../../login/web?index=7',
  42. name: '隐私政策',
  43. },
  44. ],
  45. }
  46. },
  47. methods: {
  48. // 查看小优保险
  49. check_ins() {
  50. uni.previewImage({
  51. urls: [this.picurls],
  52. current: 0,
  53. });
  54. },
  55. get_ins(bizId) {
  56. commonFun.requestUrl('&WsAjaxBiz=Public&WsAjaxAction=entityDataHandle', {
  57. bizCatalog: 'AgreementEntity',
  58. handleMode: 'fetch',
  59. bizId,
  60. }, res => {
  61. if (res.status) {
  62. this.picurls = commonFun.serverUrlReq + res.data.Result.picurls
  63. console.log('获取操指南')
  64. console.log(this.picurls)
  65. }
  66. uni.hideLoading()
  67. })
  68. },
  69. menu_click(e) {
  70. console.log(e)
  71. if (e == 'message') {
  72. uni.makePhoneCall({
  73. phoneNumber: '4006788729'
  74. });
  75. } else if (e == 'guide') {
  76. uni.navigateTo({
  77. url: '/pages/login/web?index=' + (this.sys_role == 0 ? 10 : 11)
  78. })
  79. } else {
  80. uni.navigateTo({
  81. url: './' + e
  82. })
  83. }
  84. },
  85. },
  86. components: {},
  87. onLoad() {
  88. this.get_ins(this.sys_role == 0 ? 9 : 10)
  89. },
  90. }
  91. </script>
  92. <style>
  93. .menu_item {
  94. display: flex;
  95. flex-direction: row;
  96. justify-content: space-between;
  97. align-items: center;
  98. height: 50upx;
  99. border-bottom: 2upx solid #E5E5E5;
  100. height: 110upx;
  101. }
  102. </style>