safeGuard.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <template>
  2. <view>
  3. <view class="basic-info">
  4. <view class="info-content">
  5. <view class="info-one-info ">
  6. <text>单位名称:</text>
  7. <text>{{this.getData.company}}</text>
  8. </view>
  9. <view class="info-one-info ">
  10. <text>维保单位:</text>
  11. <text>{{this.getData.maintenance_company}}</text>
  12. </view>
  13. <view class="info-one-info ">
  14. <text style="width:auto!important">开始日期:</text>
  15. <text>{{this.getData.start_time}}</text>
  16. </view>
  17. <view class="info-one-info ">
  18. <text>结束日期:</text>
  19. <text>{{this.getData.end_time}}</text>
  20. </view>
  21. <view class="info-one-info ">
  22. <text>销售人员:</text>
  23. <text>{{this.getData.salesman}}</text>
  24. </view>
  25. <view class="info-one-info ">
  26. <text>联系电话:</text>
  27. <text>{{this.getData.salesman_phone}}</text>
  28. </view>
  29. <view class="info-one-info " >
  30. <text style="width:120px!important">客户联系人:</text>
  31. <text>{{this.getData.customer}}</text>
  32. </view>
  33. <view class="info-one-info ">
  34. <text >客户电话:</text>
  35. <text>{{this.getData.customer_phone}}</text>
  36. </view>
  37. <view class="info-one-info ">
  38. <text>合同状态:</text>
  39. <text class="online">{{this.getData.status}}</text>
  40. </view>
  41. <view class="info-one-info ">
  42. <text>详细内容:</text>
  43. <a :href="`${this.getData.url}`" download>点击下载查看详情</a>
  44. </view>
  45. </view>
  46. </view>
  47. </view>
  48. </template>
  49. <script>
  50. export default {
  51. data() {
  52. return {
  53. getData: {}
  54. }
  55. },
  56. onNavigationBarButtonTap(e) {
  57. console.log(e)
  58. uni.navigateTo({
  59. url: '/pages/safeGuard/QA/QA',
  60. success: res => {},
  61. fail: () => {},
  62. complete: () => {}
  63. });
  64. },
  65. onLoad: function(option) {
  66. this.getSafeGuardData({
  67. 'company_code': uni.getStorageSync('selectedCode')
  68. })
  69. },
  70. methods: {
  71. // 视频列表数据请求
  72. async getSafeGuardData(params = {}) {
  73. const res = await this.$myRequest({
  74. url: 'RiskProtection/getRiskProtectionData',
  75. data: params,
  76. showLoading: true
  77. })
  78. this.getData = res.data.data[0];
  79. console.log(this.getData.url)
  80. },
  81. //下载文件
  82. downLoadFile() {
  83. alert(this.getData.url)
  84. uni.redirectTo({
  85. url: 'http://47.103.74.123/fileUpload/火灾公众责任保险投保单-2009.doc'
  86. })
  87. }
  88. }
  89. }
  90. </script>
  91. <style lang="scss">
  92. </style>