outcome-1.vue 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <template>
  2. <div id="personnel-1">
  3. <van-row>
  4. <van-col span="24" class="main">
  5. <van-col span="24" class="list" v-for="(item, index) in list" :key="index">
  6. <van-col span="24" class="title textOver">
  7. {{ item.name }}
  8. </van-col>
  9. <van-col span="24" class="other">
  10. <van-col span="24" class="otherInfo">
  11. <p v-html="item.content"></p>
  12. </van-col>
  13. </van-col>
  14. </van-col>
  15. </van-col>
  16. </van-row>
  17. </div>
  18. </template>
  19. <script>
  20. import { mapState, createNamespacedHelpers } from 'vuex';
  21. export default {
  22. name: 'personnel-1',
  23. props: {
  24. list: { type: Array },
  25. },
  26. components: {},
  27. data: function () {
  28. return {};
  29. },
  30. created() {},
  31. methods: {},
  32. computed: {
  33. ...mapState(['user']),
  34. },
  35. metaInfo() {
  36. return { title: this.$route.meta.title };
  37. },
  38. watch: {
  39. test: {
  40. deep: true,
  41. immediate: true,
  42. handler(val) {},
  43. },
  44. },
  45. };
  46. </script>
  47. <style lang="less" scoped>
  48. .main {
  49. padding: 0 10px;
  50. .list {
  51. background-color: #fff;
  52. margin: 0 0 8px 0;
  53. padding: 8px;
  54. border-radius: 5px;
  55. border: 1px solid #f1f1f1;
  56. .title {
  57. font-size: 16px;
  58. font-weight: bold;
  59. margin: 0 0 5px 0;
  60. }
  61. .other {
  62. margin: 0 0 5px 0;
  63. .otherInfo {
  64. font-size: 14px;
  65. color: #666;
  66. margin: 0 0 5px 0;
  67. span {
  68. color: #000;
  69. }
  70. }
  71. }
  72. .btn {
  73. text-align: center;
  74. .van-button {
  75. margin: 0 5px;
  76. }
  77. }
  78. }
  79. }
  80. </style>