|
@@ -7,10 +7,7 @@
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="20">
|
|
<el-col :span="20">
|
|
|
<div class="tab">
|
|
<div class="tab">
|
|
|
- <tab
|
|
|
|
|
- :titles="$t('page.views.info.index.titles')"
|
|
|
|
|
- :currIndex.sync="currIndex"
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ <tab :titles="titles" :currIndex.sync="currIndex" />
|
|
|
<div class="btnDiv">
|
|
<div class="btnDiv">
|
|
|
<router-link to="/info/add">
|
|
<router-link to="/info/add">
|
|
|
<el-button class="buyBtn" size="mini">{{
|
|
<el-button class="buyBtn" size="mini">{{
|
|
@@ -53,8 +50,7 @@
|
|
|
import { Component, Vue, Watch, Prop } from "vue-property-decorator";
|
|
import { Component, Vue, Watch, Prop } from "vue-property-decorator";
|
|
|
@Component({ name: "infoList" })
|
|
@Component({ name: "infoList" })
|
|
|
export default class extends Vue {
|
|
export default class extends Vue {
|
|
|
- @Prop(String)
|
|
|
|
|
- private index!: string;
|
|
|
|
|
|
|
+ @Prop(String) private index!: string;
|
|
|
private currIndex = 0;
|
|
private currIndex = 0;
|
|
|
@Watch("index", { immediate: true })
|
|
@Watch("index", { immediate: true })
|
|
|
indexChange() {
|
|
indexChange() {
|
|
@@ -67,6 +63,14 @@ export default class extends Vue {
|
|
|
get managerUrl() {
|
|
get managerUrl() {
|
|
|
return process.env.VUE_APP_MANAGER_URL;
|
|
return process.env.VUE_APP_MANAGER_URL;
|
|
|
}
|
|
}
|
|
|
|
|
+ get titles() {
|
|
|
|
|
+ return `${this.$t("page.views.info.index.titles")}`
|
|
|
|
|
+ .split(",")
|
|
|
|
|
+ .map((title, i) => ({
|
|
|
|
|
+ title,
|
|
|
|
|
+ url: `/info/${i}`
|
|
|
|
|
+ }));
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
@@ -99,13 +103,13 @@ export default class extends Vue {
|
|
|
padding: 0 1.6rem;
|
|
padding: 0 1.6rem;
|
|
|
.name {
|
|
.name {
|
|
|
width: 80%;
|
|
width: 80%;
|
|
|
- float: left;
|
|
|
|
|
|
|
+ display: inline-block;
|
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
|
color: #333;
|
|
color: #333;
|
|
|
}
|
|
}
|
|
|
.date {
|
|
.date {
|
|
|
width: 20%;
|
|
width: 20%;
|
|
|
- float: left;
|
|
|
|
|
|
|
+ float: right;
|
|
|
text-align: right;
|
|
text-align: right;
|
|
|
color: #666;
|
|
color: #666;
|
|
|
white-space: nowrap;
|
|
white-space: nowrap;
|