aboutUs.vue 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <template>
  2. <view class="index">
  3. <view class="top">
  4. <view class="logo"><image src="../../static/djs.png" mode=""></image></view>
  5. <text class="t1">{{ info.name }}</text>
  6. <!-- <text class="t2">版本号 1.0.0</text> -->
  7. </view>
  8. <view class="item" @tap="call">
  9. <text class="t1">客服电话</text>
  10. <text class="t2">{{ info.phone }}</text>
  11. </view>
  12. <view class="item">
  13. <text class="t1">工作时间</text>
  14. <text class="t2">{{ info.worktime }}</text>
  15. </view>
  16. <view class="item">
  17. <text class="t1">客服邮箱</text>
  18. <text class="t2">{{ info.email }}</text>
  19. </view>
  20. </view>
  21. </template>
  22. <script>
  23. import helper from '../../common/helper.js';
  24. import api from '../../common/api.js';
  25. export default {
  26. data() {
  27. return {
  28. host: helper.host,
  29. info: {}
  30. };
  31. },
  32. onLoad() {
  33. this.getInfo();
  34. },
  35. methods: {
  36. call() {
  37. uni.makePhoneCall({
  38. phoneNumber: this.info.phone
  39. });
  40. },
  41. async getInfo() {
  42. let res = await api.getSetting();
  43. this.info = res.data;
  44. }
  45. }
  46. };
  47. </script>
  48. <style lang="scss">
  49. .index {
  50. padding: 0 4%;
  51. }
  52. .top {
  53. display: flex;
  54. flex-direction: column;
  55. align-items: center;
  56. justify-content: center;
  57. margin-bottom: 10%;
  58. .logo {
  59. background-color: #32c45e;
  60. width: 200upx;
  61. height: 200upx;
  62. border-radius: 50%;
  63. image {
  64. width: 100%;
  65. height: 100%;
  66. }
  67. }
  68. .t1 {
  69. font-size: 46upx;
  70. font-weight: 800;
  71. margin-top: 10upx;
  72. }
  73. .t2 {
  74. font-size: 28upx;
  75. color: #999999;
  76. }
  77. }
  78. .item {
  79. font-size: 28upx;
  80. display: flex;
  81. justify-content: space-between;
  82. padding: 30upx 0;
  83. border-bottom: 1px solid #eeeeee;
  84. .t2{
  85. color: #999999;
  86. font-size: 24upx;
  87. }
  88. }
  89. </style>