about.vue 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <template>
  2. <view>
  3. <view class="top"><image src="../../static/bj.jpg" mode="aspectFill"></image></view>
  4. <view class="content">
  5. <view class="title">
  6. <text class="mt">谢通门</text>
  7. 县隶属于日喀则市,位于西藏自治区日喀则市西北部、雅鲁藏布江北岸。东邻南木林县和日喀则市桑珠孜区,北接那曲市申扎县,西邻昂仁县,南与萨迦县和拉孜县接壤。位于东经87°4′至89°1′,北纬29°18′至30°26′,县人民政府驻卡嘎镇。县城距日喀则市人民政府83千米。截至2014年,谢通门县辖1个镇、18个乡。总面积13960平方千米。
  8. 谢通门县被命名为“四好农村路”全国
  9. <text class="mt">示范县。</text>
  10. </view>
  11. <view class="info">
  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">日喀则市</text>
  22. </view>
  23. </view>
  24. </view>
  25. </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. .top {
  55. position: relative;
  56. height: 300px;
  57. color: white;
  58. image {
  59. width: 100%;
  60. height: 300px;
  61. position: absolute;
  62. }
  63. }
  64. .content {
  65. padding: 15px;
  66. .title {
  67. padding: 10px;
  68. box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  69. border-radius: 5px;
  70. .mt {
  71. font-size: 25px;
  72. font-weight: bold;
  73. padding-left: 5px;
  74. padding-right: 5px;
  75. }
  76. }
  77. .info {
  78. box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  79. margin-top: 10px;
  80. border-radius: 5px;
  81. .item {
  82. padding: 15px;
  83. border-bottom: 1px solid #f1f1f1;
  84. color: black;
  85. font-size: 15px;
  86. overflow: hidden;
  87. .tag {
  88. float: right;
  89. color: $dar2;
  90. }
  91. }
  92. }
  93. }
  94. </style>