Browse Source

添加公告

master
luyisha 2 years ago
parent
commit
fa8dac0061
  1. 4
      src/api/member.js
  2. 1
      src/i18n/de.json
  3. 1
      src/i18n/en.json
  4. 1
      src/i18n/fra.json
  5. 1
      src/i18n/it.json
  6. 1
      src/i18n/jp.json
  7. 1
      src/i18n/kor.json
  8. 1
      src/i18n/pt.json
  9. 1
      src/i18n/spa.json
  10. 1
      src/i18n/tr.json
  11. 1
      src/i18n/tw.json
  12. 12
      src/views/notice/index.vue

4
src/api/member.js

@ -145,6 +145,10 @@ class Member {
static agent(data){
return server.post('/agent/register',data)
}
// 公告列表
static notice(data){
return server.get('/notice',{params:data})
}
}
export default Member;

1
src/i18n/de.json

@ -38,6 +38,7 @@
"c9":"kurze Einführung"
},
"common": {
"announcement": "Bekanntmachung",
"a3":"Aufzeichnungen über den Kauf",
"option":"Handel mit Optionen",
"exchange":"Devisenhandel",

1
src/i18n/en.json

@ -38,6 +38,7 @@
"c9":"brief introduction"
},
"common": {
"announcement": "Announcement",
"million": "million",
"user": "users trust us",
"tradings": "trading transactions",

1
src/i18n/fra.json

@ -38,6 +38,7 @@
"c9":"Introduction"
},
"common": {
"announcement": "annonce",
"a3":"Ostosta koskevat tiedot",
"option":"Opérations d'options",
"exchange":"Négociation de devises",

1
src/i18n/it.json

@ -38,6 +38,7 @@
"c9":"breve introduzione"
},
"common": {
"announcement": "annuncio",
"a3":"Registri di acquisto",
"option":"Scambio di opzioni",
"exchange":"Commercio di valuta",

1
src/i18n/jp.json

@ -38,6 +38,7 @@
"c9":"概要"
},
"common": {
"announcement": "発表",
"a3":"購入申請記録",
"option":"約束権",
"exchange":"通貨取引",

1
src/i18n/kor.json

@ -38,6 +38,7 @@
"c9":"간단 한 소개"
},
"common": {
"announcement": "발표",
"a3":"구 매 신청 기록",
"option":"옵션",
"exchange":"통화 거래",

1
src/i18n/pt.json

@ -38,6 +38,7 @@
"c9":"Breve introdução"
},
"common": {
"announcement": "anúncio",
"a3":"Registos de Compras",
"option":"Operações de opção",
"exchange":"Troca de moeda",

1
src/i18n/spa.json

@ -38,6 +38,7 @@
"c9":"Introducción"
},
"common": {
"announcement": "anuncio",
"a3":"Registro de pedidos",
"option":"Comercio de opciones",
"exchange":"Comercio de divisas",

1
src/i18n/tr.json

@ -38,6 +38,7 @@
"c9":"kısa tanıtım"
},
"common":{
"announcement": "duyuru",
"a3":"Satın alma kaydı",
"option":"Opsiyon ticareti",
"exchange":"Döviz ticareti",

1
src/i18n/tw.json

@ -38,6 +38,7 @@
"c9":"簡介"
},
"common": {
"announcement": "公告",
"million": "幾百萬",
"user": "用戶信任我們",
"tradings": "交易",

12
src/views/notice/index.vue

@ -3,7 +3,7 @@
<div class="bg-panel my-4 p-4 rounded">
<div class="list">
<router-link :to="`/notice/${item.id}`" class="item d-flex border-bottom p-2 justify-content-between" v-for="item in list" :key="item.id">
<div class="title text-truncate">
<div class="title text-truncate color-light">
{{item.title}}
</div>
<div class="time">
@ -39,11 +39,11 @@ export default {
getList() {
let data = {
page: this.page,
type:'notice'
// type:'notice'
}
Member.article(data).then(res => {
Member.notice(data).then(res => {
this.detail = res;
this.list = res.data;
this.list = res;
})
},
}
@ -53,6 +53,10 @@ export default {
.list{
.item{
color: #758696;
.color-light{
color: #fff;
}
&:hover{
color: white;
}

Loading…
Cancel
Save