Info.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. <template>
  2. <div>
  3. <common @asynCallBack="asynCallBack"></common>
  4. <top-header :pageTitle="pageTitle" :routeName="routeName" ></top-header>
  5. <div class="mui-content vongi-fklist vongi-spkh" v-if="buystatus&&list.length" >
  6. <div class="vongi-spkh-title flew">
  7. <div class="mui-media-body">
  8. <span class="mui-media-object mui-pull-left">
  9. <img :src="person_data.faceImageUrl" :alt="person_data.name">
  10. </span> {{person_data.name}}
  11. </div>
  12. <p class='mui-ellipsis'>有效期至{{endtime}} <a @click="goToPay()" >续期</a></p>
  13. </div>
  14. <ul class="mui-table-view openfyy-list">
  15. <li class="mui-table-view-cell mui-media" v-for="(mod,index) in list">
  16. <a @click="goToPlay(mod.id)" >
  17. <div class="vongi-video-img">
  18. <img src="~$project/assets/img/gkke02.png" v-if="!mod.picUrl" width="100%">
  19. <img :src="mod.picUrl" v-if="mod.picUrl" width="100%">
  20. </div>
  21. <div class="mui-media-body flew">
  22. {{mod.roomAddress}}
  23. <p class='mui-ellipsis'>[{{mod.status=='1'?'在线':'离线'}}]</p>
  24. </div>
  25. </a>
  26. </li>
  27. </ul>
  28. </div>
  29. <!--未开通服务状态-->
  30. <div class="mui-content vongi-spkh" v-if="!buystatus">
  31. <div class="vongi-payyes-icon">
  32. <img src="~$project/assets/img/gkke01.png" width="128" />
  33. <h2>暂未开通视频看护服务</h2>
  34. </div>
  35. <div class="vongi-rec-btn-white">
  36. <div class="vongi-rec-btn" @click="goToPay()">开通服务</div>
  37. </div>
  38. </div>
  39. <!--已购买尚未开通状态-->
  40. <div class="mui-content vongi-spkh" v-if="buystatus&&!list.length" >
  41. <div class="vongi-payyes-icon">
  42. <img src="~$project/assets/img/spkh.png" />
  43. <h2>感谢您购买视频看护服务<br>现已加入安装排期计划</h2>
  44. </div>
  45. </div>
  46. <div class="fyy-footer" v-if="buystatus&&!list.length">
  47. <div class="fyy-footer-text">
  48. 我们将会通过电话方式与您确定上门安装时间<br>
  49. 请保持联系方式的通讯畅通<br>
  50. 服务咨询电话: 400-8899-619
  51. </div>
  52. </div>
  53. <loading :visible="isLoading"></loading>
  54. </div>
  55. </template>
  56. <script>
  57. import * as API from '@/apis/Master/live'
  58. import Common from '$project/components/Common.vue'
  59. import Loading from '$project/components/Loading.vue'
  60. import TopHeader from '$project/components/TopHeader.vue'
  61. import {
  62. mapGetters,
  63. mapMutations
  64. } from 'vuex'
  65. import {
  66. currentTimeStamp,
  67. parseUnixTime
  68. } from '$project/utils'
  69. export default {
  70. name: 'MasterLiveInfo',
  71. components: {
  72. Common,
  73. Loading,
  74. TopHeader
  75. },
  76. data() {
  77. return {
  78. pageTitle: '视频看护',
  79. buystatus: false,
  80. list: [],
  81. endtime: null,
  82. isLoading: false,
  83. routeName:'Master'
  84. }
  85. },
  86. created() {
  87. },
  88. methods: {
  89. goToPlay(cameraId) {
  90. this.$router.push({
  91. name: 'MasterLiveRoom',
  92. query: {
  93. id: cameraId
  94. }
  95. })
  96. },
  97. goToPay() {
  98. this.$router.push({
  99. name: 'MasterLiveShow',
  100. })
  101. },
  102. queryCameraList() {
  103. this.isLoading = true;
  104. API.queryCameraList({
  105. //currentId:this.student_current_info.id
  106. }).then(response => {
  107. this.isLoading = false;
  108. this.buystatus = response.buystatus;
  109. if (this.buystatus) {
  110. this.list = response.list;
  111. this.endtime = response.endtime;
  112. }
  113. if(false){
  114. this.$router.push({
  115. name: 'MasterLiveShow',
  116. query: {
  117. routeName: "Master"
  118. }
  119. })
  120. }
  121. }).catch(error => {
  122. this.isLoading = false;
  123. mui.toast(error);
  124. })
  125. },asynCallBack(){},
  126. },
  127. mounted() {
  128. this.queryCameraList();
  129. },
  130. destroyed() {
  131. },
  132. computed: {
  133. ...mapGetters({
  134. openId: 'wx_openid',
  135. token: 'token',
  136. person_data: 'person_data',
  137. person_popedom: 'person_popedom',
  138. })
  139. }
  140. }
  141. </script>
  142. <style scoped src="$project/assets/css/pension.css"></style>
  143. <style scoped src="$project/assets/css/xpwyfyy.css"></style>
  144. <style src="$project/assets/css/iconfont.css"></style>
  145. <style>
  146. </style>