cp-fa.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <template>
  2. <view class="ayuu">
  3. <view class="cpfapryu">
  4. <view class="indhuyr">
  5. <view class="indjbrr"></view>
  6. <text>解决方案</text>
  7. </view>
  8. <view style="padding: 10rpx;">
  9. <view class="res-title">专家解决意见</view>
  10. <view class='res-content' v-if="content">{{content}}</view>
  11. <view class='res-none' v-else>专家暂时还未给出意见</view>
  12. </view>
  13. <view class="cpfapryukan">
  14. <view class="f-item" v-for="(item,index) in result" :key="index">
  15. <text>{{item.name}}</text>
  16. <view class="items" v-for="(items,indexs) in item.value" :key="indexs">
  17. <text>{{items.name}}</text>
  18. <text>{{items.res}}</text>
  19. </view>
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. </template>
  25. <style>
  26. page {
  27. background: #FAFAFA;
  28. }
  29. </style>
  30. <script>
  31. export default {
  32. data() {
  33. return {
  34. id: 0,
  35. result: [],
  36. content: '',
  37. }
  38. },
  39. onLoad(e) {
  40. this.id = e.id || 0
  41. this.getInfo()
  42. },
  43. methods: {
  44. getInfo() {
  45. this.$post({
  46. data: {
  47. do: 'GetExamination',
  48. data: {
  49. id: this.id,
  50. pay_type: uni.getStorageSync('') // 支付类型1=普通用户,2=会员用户
  51. }
  52. }
  53. }).then(res => {
  54. this.result = res.data.res;
  55. this.content = res.data.content;
  56. })
  57. }
  58. }
  59. }
  60. </script>
  61. <style>
  62. .f-item {
  63. display: flex;
  64. flex-direction: column;
  65. justify-content: flex-start;
  66. margin-bottom: 30rpx;
  67. }
  68. .items {
  69. display: flex;
  70. width: 100%;
  71. border: 1rpx solid #ebebeb;
  72. margin-top: 20rpx;
  73. }
  74. .items>text {
  75. padding: 10rpx 0;
  76. width: 50%;
  77. text-align: center;
  78. }
  79. .res-title {
  80. font-size: 28rpx;
  81. margin: 20rpx 0;
  82. }
  83. .res-content {
  84. font-size: 27rpx;
  85. color: #000;
  86. padding: 30rpx 10rpx;
  87. border-radius: 10rpx;
  88. font-weight: bold;
  89. font-weight: bold;
  90. border: 1px dotted #d6d6d6;
  91. }
  92. .res-none {
  93. font-size: 27rpx;
  94. background-color: #d6d6d6e6;
  95. color: #fff;
  96. padding: 45rpx 0;
  97. border-radius: 10rpx;
  98. font-weight: bold;
  99. text-align: center;
  100. }
  101. </style>
  102. <style lang="scss" scoped>
  103. </style>