Browse Source

首页消息列表

pull/97/head
pengda 1 month ago
parent
commit
a54f1523b6
  1. BIN
      src/assets/home/notice_1.png
  2. BIN
      src/assets/home/notice_2.png
  3. BIN
      src/assets/home/notice_3.png
  4. BIN
      src/assets/home/notice_4.png
  5. BIN
      src/assets/home/notice_5.png
  6. BIN
      src/assets/home/notice_tag_1.png
  7. BIN
      src/assets/home/notice_tag_2.png
  8. 25
      src/views/agent/home.vue

BIN
src/assets/home/notice_1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 711 B

BIN
src/assets/home/notice_2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 727 B

BIN
src/assets/home/notice_3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
src/assets/home/notice_4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 695 B

BIN
src/assets/home/notice_5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 538 B

BIN
src/assets/home/notice_tag_1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 528 B

BIN
src/assets/home/notice_tag_2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 601 B

25
src/views/agent/home.vue

@ -8,11 +8,11 @@
<span class="hoverCommon" @click="lookMoreSystem">查看更多</span> <span class="hoverCommon" @click="lookMoreSystem">查看更多</span>
</h2> </h2>
<div class="systemNotice-main"> <div class="systemNotice-main">
<div class="sales-item flex" v-for="(item) in systemList" :key="item.name"> <div class="sales-item flex" v-for="(item, key) in noticeList.slice(0, 4)" :key="item.title">
<img :src="require(`@/assets/home/NEW.svg`)" alt=""> <img :src="require('@/assets/home/notice_tag_'+(key+1)+'.png')" alt="">
<div class="column"> <div class="column">
<b class="flex">{{ item.label }} <img class="systemIcon" src="@/assets/home/systemIcon.svg" alt=""> </b> <b class="flex">{{ item.title }} <img class="systemIcon" src="@/assets/home/systemIcon.svg" alt=""> </b>
<p>{{ item.desc }}</p> <p v-html="item.content">{{ item.content }}</p>
</div> </div>
</div> </div>
</div> </div>
@ -171,6 +171,7 @@ export default {
expireServices: [], expireServices: [],
walletList: [], walletList: [],
noticeList: [],
isShowSpec: false, isShowSpec: false,
@ -218,6 +219,7 @@ export default {
this.getSaleStats() this.getSaleStats()
this.getExpireServices() this.getExpireServices()
this.getWalletList() this.getWalletList()
this.getNoticeList()
}, },
methods: { methods: {
getSupplyServiceList() { getSupplyServiceList() {
@ -290,6 +292,21 @@ export default {
console.error(error, 'error') console.error(error, 'error')
}) })
}, },
getNoticeList(){
this.$http('POST', '/agentnew/ajax_get_notice_list', {
},{
headers:{
'Auth': this.token
}
}).then(response => {
this.$nextTick(() => {
this.noticeList = response.data
})
}).catch(error => {
console.error(error, 'error')
})
},
lookTaoBaoExpire() { lookTaoBaoExpire() {
// //
location.href = '/agent/payList' location.href = '/agent/payList'

Loading…
Cancel
Save