cpfa.vue 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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 class="cpfapryukan">
  9. <text v-for="(item,index) in list" :key="index" style="display: block;">
  10. {{item}}
  11. </text>
  12. </view>
  13. </view>
  14. </view>
  15. </template>
  16. <style>
  17. page {
  18. background: #FAFAFA;
  19. }
  20. </style>
  21. <script>
  22. export default {
  23. data() {
  24. return {
  25. id:0,
  26. list:[]
  27. }
  28. },
  29. onLoad(e) {
  30. this.id = e.id
  31. console.log(this.id)
  32. this.getDetail()
  33. },
  34. methods:{
  35. getDetail(){
  36. this.$post({
  37. data:{
  38. do:'GetExamination',
  39. data:{
  40. id:this.id
  41. }
  42. }
  43. }).then(res=>{
  44. console.log(res)
  45. // let arr = []
  46. // res.data.map(item=>{
  47. // arr.push(item[1])
  48. // })
  49. this.list = res.data
  50. })
  51. }
  52. }
  53. }
  54. </script>
  55. <style lang="scss" scoped>
  56. </style>