siteDetail.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <template>
  2. <view>
  3. <view >
  4. <!-- 基本信息start -->
  5. <view class="basic-info">
  6. <view class="info-tit margin-left-xs">
  7. <text class="cuIcon-titles margin-right-xs"></text>
  8. 详细信息
  9. </view>
  10. <view class="info-content">
  11. <view class="info-one-info ">
  12. <text>站点名称:</text>
  13. <text>{{data.siteName}}</text>
  14. </view>
  15. <view>
  16. <text>地址:</text>
  17. <text>{{data.address}}</text>
  18. </view>
  19. <view>
  20. <text>定位:</text>
  21. <text>{{data.longitude}} , {{data.latitude}}</text>
  22. </view>
  23. <view>
  24. <text>联系人:</text>
  25. <text>{{data.userName}}</text>
  26. </view>
  27. <view>
  28. <text>联系电话:</text>
  29. <text>{{data.phone}}</text>
  30. </view>
  31. </view>
  32. </view>
  33. <!-- 基本信息end -->
  34. </view>
  35. </view>
  36. </template>
  37. <script>
  38. export default {
  39. data() {
  40. return {
  41. radio: 'A',
  42. radio: 'B',
  43. modalName: null,
  44. data:{}
  45. }
  46. },
  47. onLoad(option) {
  48. console.log(option.id)
  49. this.getData({"id":option.id})
  50. },
  51. methods: {
  52. async getData(ming) {
  53. const res= await this.$myRequest({
  54. url:'SiteManagement/getSiteList',
  55. data:ming
  56. })
  57. console.log(res.data.data[0])
  58. this.data=res.data.data[0]
  59. // this.cuIconList=res.data.data videoMonitoringCount
  60. },
  61. submit() {
  62. uni.makePhoneCall({
  63. phoneNumber: '15122423833' //仅为示例
  64. });
  65. },
  66. mapLocation(){
  67. uni.openLocation({
  68. latitude: 31.469465,
  69. longitude: 121.327514,
  70. success: function() {
  71. console.log('success');
  72. }
  73. });
  74. },
  75. RadioChange(e) {
  76. this.radio = e.detail.value
  77. },
  78. textareaAInput(e) {
  79. this.textareaAValue = e.detail.value
  80. },
  81. }
  82. }
  83. </script>
  84. <style lang="scss">
  85. .timeBox {
  86. height: 88rpx;
  87. background: #EFF4FF;
  88. line-height: 88rpx;
  89. .time {
  90. color: #333
  91. }
  92. }
  93. .info-tit {
  94. color: #4074E7;
  95. line-height: 90rpx;
  96. height: 90rpx;
  97. }
  98. // 基本信息
  99. .info-content>view {
  100. margin-left: 24rpx;
  101. border-bottom: 1px solid #EDEDED;
  102. line-height: 92rpx;
  103. color: #666;
  104. }
  105. .info-content view text:first-child {
  106. width: 160rpx;
  107. display: inline-block
  108. }
  109. </style>