about.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <template>
  2. <view>
  3. <view class="top"><image src="../../static/bj.jpg" mode="aspectFill"></image></view>
  4. <view class="content">
  5. <section
  6. class="wwei-editor"
  7. style="color: rgb(51, 51, 51); font-family: 微软雅黑; font-size: 12px; white-space: normal; text-align: center; margin: 0px 1em; line-height: 1.6em;"
  8. >
  9. <img src="http://pro.wwei.cn/Public/wxeditor/css/gs640.png" style="border: 0px; width: 266px; vertical-align: middle; height: 36px !important;" />
  10. <section style="color: white; font-size: 1em; margin-top: -2.1em; white-space: nowrap;">请输入标题</section>
  11. </section>
  12. <view class="item">
  13. <view class="name" @click="phone()">
  14. 联系电话
  15. <text class="tag">{{ item.helpPhone }}</text>
  16. </view>
  17. </view>
  18. <view class="item">
  19. <view class="name">
  20. 邮箱
  21. <text class="tag">xxxxxxx</text>
  22. </view>
  23. </view>
  24. <view class="item">
  25. <view class="name">
  26. 地址
  27. <text class="tag">xxxxx</text>
  28. </view>
  29. </view>
  30. <view class="copyright">Copyright © 2021 {{ item.title }} 版权所有</view>
  31. </view>
  32. </view>
  33. </template>
  34. <script>
  35. export default {
  36. data() {
  37. return {
  38. item: {}
  39. };
  40. },
  41. onLoad(e) {
  42. this.$http.request({
  43. url: this.$http.urls.getAboutUs,
  44. success: res => {
  45. console.log('asd:' + JSON.stringify(res));
  46. this.item = res.data.data.aboutUs;
  47. }
  48. });
  49. },
  50. methods: {
  51. phone() {
  52. uni.makePhoneCall({
  53. phoneNumber: this.item.helpPhone
  54. });
  55. }
  56. }
  57. };
  58. </script>
  59. <style lang="scss">
  60. .top {
  61. position: relative;
  62. height: 300px;
  63. color: white;
  64. .wd {
  65. position: absolute;
  66. top: 70px;
  67. left: 20px;
  68. z-index: 11;
  69. .head {
  70. width: 75px;
  71. height: 75px;
  72. border-radius: 50%;
  73. }
  74. .xs {
  75. margin-left: 90px;
  76. width: 100%;
  77. font-weight: bold;
  78. margin-top: 10px;
  79. .nickName {
  80. margin-top: 20px;
  81. }
  82. .nh {
  83. font-size: 12px;
  84. font-weight: normal;
  85. margin-top: 5px;
  86. }
  87. }
  88. }
  89. image {
  90. width: 100%;
  91. height: 300px;
  92. position: absolute;
  93. }
  94. }
  95. .content {
  96. padding: 15px 5px 15px 5px;
  97. .logo {
  98. text-align: center;
  99. image {
  100. width: 100px;
  101. height: 100px;
  102. margin: 0 auto;
  103. border-radius: 50%;
  104. }
  105. .version {
  106. margin-bottom: 20px;
  107. color: $dar;
  108. margin-top: 5px;
  109. }
  110. }
  111. .item {
  112. padding: 15px;
  113. border-bottom: 1px solid #f1f1f1;
  114. color: black;
  115. font-size: 15px;
  116. overflow: hidden;
  117. .tag {
  118. float: right;
  119. color: $dar2;
  120. }
  121. }
  122. }
  123. </style>