custormerDetail.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <template>
  2. <view class="page-container">
  3. <!-- 公共组件-每个页面必须引入 -->
  4. <public-module></public-module>
  5. <view class="row d-flex a-center">
  6. <view class="left">交强保单号:</view>
  7. <span class="right d-flex flex-1">
  8. {{orderInfo.jqpolicyno}}
  9. </span>
  10. </view>
  11. <view class="row d-flex a-center">
  12. <view class="left">商业保单号:</view>
  13. <span class="right d-flex flex-1">
  14. {{orderInfo.sypolicyno}}
  15. </span>
  16. </view>
  17. <view class="row d-flex a-center">
  18. <view class="left">车牌号</view>
  19. <span class="right d-flex flex-1">
  20. {{orderInfo.licenseNo}}
  21. </span>
  22. </view>
  23. <view class="row d-flex a-center">
  24. <view class="left">车架号</view>
  25. <span class="right d-flex flex-1">
  26. {{orderInfo.frameNo}}
  27. </span>
  28. </view>
  29. <view class="row d-flex a-center">
  30. <view class="left">投保人</view>
  31. <span class="right d-flex flex-1">
  32. {{orderInfo.ownerinfo.name}}
  33. </span>
  34. </view>
  35. <view class="row d-flex a-center">
  36. <view class="left">电话</view>
  37. <span class="right d-flex flex-1">
  38. {{orderInfo.ownerinfo.mobile}}
  39. </span>
  40. </view>
  41. <block v-for ="(riskItem,riskIndex) in orderInfo.riskinfo" :key="riskIndex" >
  42. <template v-if="riskItem.riskCode == '0507'">
  43. <view class="row d-flex a-center">
  44. <view class="left">交强险</view>
  45. <span class="right d-flex flex-1">
  46. ¥{{riskItem.premium}}
  47. </span>
  48. </view>
  49. <view class="row d-flex a-center">
  50. <view class="left">车船税</view>
  51. <span class="right d-flex flex-1">
  52. ¥{{orderInfo.taxamount}}
  53. </span>
  54. </view>
  55. </template>
  56. </block>
  57. <block v-for ="(riskItem,riskIndex) in orderInfo.riskinfo" :key="riskIndex" >
  58. <template v-if="riskItem.riskCode == '0510'">
  59. <view class="row d-flex a-center">
  60. <view class="left">商业险</view>
  61. <span class="right d-flex flex-1">
  62. ¥{{riskItem.premium}}
  63. </span>
  64. </view>
  65. </template>
  66. </block>
  67. <view class="row d-flex a-center">
  68. <view class="left" style="font-size: 30upx;font-weight: bold;">合计金额</view>
  69. <span class="right d-flex flex-1" style="font-size: 34upx;font-weight: bold; color: #DCAD32;">
  70. ¥{{orderInfo.sumpremium}}
  71. </span>
  72. </view>
  73. </view>
  74. </template>
  75. <script>
  76. export default {
  77. data() {
  78. return {
  79. orderInfo:{}
  80. }
  81. },
  82. onLoad() {
  83. const eventChannel = this.getOpenerEventChannel()
  84. // 监听acceptData事件,获取上一页面通过eventChannel传送到当前页面的数据
  85. eventChannel.on('acceptData', async(data) => {
  86. this.orderInfo = data.item;
  87. })
  88. },
  89. methods: {
  90. }
  91. }
  92. </script>
  93. <style>
  94. .page-container .row{
  95. padding: 0upx 50upx;
  96. height: 80upx;
  97. border-bottom: 1px solid #F9F9F9;
  98. }
  99. .page-container .row .left{
  100. width: 200upx;
  101. flex-shrink: 0;
  102. font-size: 28upx;
  103. }
  104. .page-container .row .right{
  105. font-size: 28upx;
  106. text-align: end;
  107. }
  108. </style>