about.vue 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <template>
  2. <view>
  3. <!--#ifdef APP-PLUS-->
  4. <view class="lz-status_bar">
  5. <view class="lz-top_view"></view>
  6. </view>
  7. <!--#endif-->
  8. <!-- #ifndef MP-WEIXIN -->
  9. <view class="kaoshi-head">
  10. <view class="kaoshi-head-top">
  11. <view class="kaoshi-head-left" @tap="$navigateBack">
  12. <view class="iconfont icon-zuojiantou"></view>
  13. </view>
  14. <view class="kaoshi-head-m">{{title}}</view>
  15. <view class="kaoshi-head-right"></view>
  16. </view>
  17. </view>
  18. <!--#endif-->
  19. <view class="index-tiku notice-detail">
  20. <view class="notice-detail-content" v-if="id == 1">
  21. <uParse :content="lianxi" />
  22. </view>
  23. <view class="notice-detail-content" v-if="id == 2">
  24. <uParse :content="about" />
  25. </view>
  26. </view>
  27. </view>
  28. </template>
  29. <script>
  30. import uParse from '@/components/uParse/gaoyia-parse/parse.vue';
  31. export default {
  32. data() {
  33. return {
  34. id: '',
  35. title: '',
  36. about: '',
  37. lianxi: '',
  38. }
  39. },
  40. onLoad(opts) {
  41. if (opts && opts.id) {
  42. this.id = opts.id
  43. if (this.id == 1) {
  44. this.title = '联系客服'
  45. } else if (this.id == 2) {
  46. this.title = '关于我们'
  47. }
  48. }
  49. // #ifdef MP-WEIXIN
  50. wx.showShareMenu({
  51. withShareTicket: true,
  52. menus: ["shareAppMessage", "shareTimeline"]
  53. })
  54. // #endif
  55. this.getsettingindex()
  56. },
  57. components: {
  58. uParse
  59. },
  60. methods: {
  61. async getsettingindex() {
  62. let res = await this.$myHttp.post({
  63. url: this.$myHttp.urlMap.settingindex,
  64. needLogin: false
  65. })
  66. if (res.code == 1) {
  67. this.lianxi = res.data[1].value
  68. this.about = res.data[0].value
  69. }
  70. },
  71. }
  72. }
  73. </script>
  74. <style>
  75. page {
  76. background: #fff;
  77. }
  78. .notice-detail-content {
  79. line-height: 23px;
  80. }
  81. .notice-detail {
  82. width: 92%;
  83. margin: 12px auto;
  84. font-size: 16px;
  85. background: #fff;
  86. }
  87. .notice-detail-content image {
  88. width: 100% !important;
  89. }
  90. </style>