about.vue 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <template>
  2. <view class="content">
  3. <view class="logo">
  4. <image class="logo" src="../../static/img3.jpg" mode=""></image>
  5. <view class="version">{{ item.title }}</view>
  6. </view>
  7. <view class="item">
  8. <view class="name" @click="phone()">
  9. 联系电话
  10. <text class="tag">{{ item.helpPhone }}</text>
  11. </view>
  12. </view>
  13. <view class="item">
  14. <view class="name">
  15. 邮箱
  16. <text class="tag">xxxxxxx</text>
  17. </view>
  18. </view>
  19. <view class="item">
  20. <view class="name">
  21. 地址
  22. <text class="tag">xxxxx</text>
  23. </view>
  24. </view>
  25. <view class="copyright">Copyright © 2021 {{ item.title }} 版权所有</view>
  26. </view>
  27. </template>
  28. <script>
  29. export default {
  30. data() {
  31. return {
  32. item: {}
  33. };
  34. },
  35. onLoad(e) {
  36. this.$http.request({
  37. url: this.$http.urls.getAboutUs,
  38. success: res => {
  39. console.log('asd:' + JSON.stringify(res));
  40. this.item = res.data.data.aboutUs;
  41. }
  42. });
  43. },
  44. methods: {
  45. phone() {
  46. uni.makePhoneCall({
  47. phoneNumber: this.item.helpPhone
  48. });
  49. }
  50. }
  51. };
  52. </script>
  53. <style lang="scss">
  54. .content {
  55. padding: 15px 5px 15px 5px;
  56. .logo {
  57. text-align: center;
  58. image {
  59. width: 100px;
  60. height: 100px;
  61. margin: 0 auto;
  62. border-radius: 50%;
  63. }
  64. .version {
  65. margin-bottom: 20px;
  66. color: $dar;
  67. margin-top: 5px;
  68. }
  69. }
  70. .item {
  71. padding: 15px;
  72. border-bottom: 1px solid #f1f1f1;
  73. color: black;
  74. font-size: 15px;
  75. overflow: hidden;
  76. .tag {
  77. float: right;
  78. color: $dar2;
  79. }
  80. }
  81. }
  82. </style>