123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- <template>
- <div id="learning-1">
- <van-row>
- <van-col span="24" class="main">
- <van-col span="24" class="list" v-for="(item, index) in list" :key="index">
- <van-col span="24" class="title textOver">
- {{ item.name }}
- </van-col>
- <van-col span="24" class="other">
- <van-col span="24" class="otherInfo">
- 单位:<span>{{ item.unit || '暂无' }}</span>
- </van-col>
- <van-col span="24" class="otherInfo">
- 职务:<span>{{ item.job || '暂无' }}</span>
- </van-col>
- <van-col span="24" class="otherInfo">
- 研究方向:<span>{{ item.directionId || '暂无' }}</span>
- </van-col>
- </van-col>
- <!-- <van-col span="24" class="btn">
- <van-button type="info" size="small" @click="toView(item)">详细信息</van-button>
- </van-col> -->
- </van-col>
- </van-col>
- </van-row>
- </div>
- </template>
- <script>
- import { mapState, createNamespacedHelpers } from 'vuex';
- export default {
- name: 'learning-1',
- props: {
- list: { type: Array },
- },
- components: {},
- data: function () {
- return {};
- },
- created() {},
- methods: {
- // 查看详情
- toView(data) {
- this.$emit('toView', data);
- },
- },
- computed: {
- ...mapState(['user']),
- },
- metaInfo() {
- return { title: this.$route.meta.title };
- },
- watch: {
- test: {
- deep: true,
- immediate: true,
- handler(val) {},
- },
- },
- };
- </script>
- <style lang="less" scoped>
- .main {
- padding: 0 10px;
- .list {
- background-color: #fff;
- margin: 0 0 8px 0;
- padding: 8px;
- border-radius: 5px;
- border: 1px solid #f1f1f1;
- .title {
- font-size: 16px;
- font-weight: bold;
- margin: 0 0 5px 0;
- }
- .other {
- margin: 0 0 5px 0;
- .otherInfo {
- font-size: 14px;
- color: #666;
- margin: 0 0 5px 0;
- span {
- color: #000;
- }
- }
- }
- .btn {
- text-align: center;
- .van-button {
- margin: 0 5px;
- }
- }
- }
- }
- </style>
|