@@ -164,6 +163,7 @@ export default {
footers
},
name: 'HelloWorld',
+ dicts: ['imitation_type'],
// props: {
// msg: String
// },
@@ -179,8 +179,15 @@ export default {
},
input4: '',
xlist: [],
- indexList: [],
- newList: [[], []],
+ indexList: [
+ {},
+ {},
+ {},
+ {},
+ {}
+ ],
+ newList1: [],
+ newList2: [],
noticeList: [],
show_search: true,
nationalVirtualLass: [],
@@ -257,7 +264,6 @@ export default {
"http://124.221.227.225:1255/assets/banner.png",
"http://124.221.227.225:1255/assets/banner.png"
],
- newList2: [],
}
},
mounted() {
@@ -269,8 +275,6 @@ export default {
computed: {
customswiper() {
let swiper;
- // @4.1.1 版本使用 .$swiper
- // @3.1.3 版本直接 .swiper 即可
if (this.isMounted) swiper = this.$refs.mySwiper.$swiper;
return swiper;
},
@@ -299,58 +303,53 @@ export default {
}
},
goDeatails(data) {
-
imitationId(data.id).then(res => {
// console.log(res,'调用成功')
})
- window.open(data.imitationLink, '_blank');
- },
- goDeatail(data) {
- // console.log(data)
- if (data.linkType == 0) {
- this.$router.push({
- name: 'details',
- query: {id: data.id}
- });
- }
- if (data.linkType == 1) {
- imitationId(data.id).then(res => {
- })
- window.open(data.link, '_blank');
- }
+ window.open(data.imitationLink);
},
+
/** 顶部tab列表 */
tabLsit() {
getTab().then(response => {
if (response.code == 200) {
this.tablist = response.data;
let indexIds = this.tablist[0].children;
- this.categoryQuery.categoryId = indexIds[3].id
- getinfo(this.categoryQuery).then(res => {
+ getinfo(
+ {categoryId:indexIds[0].id,
+ pageNum: 1,
+ pageSize: 10}).then(res => {
res.data.list.forEach(item => {
- this.bannerlist.push(process.env.VUE_APP_BASE_API + item.imageUrl)
+ this.bannerlist.push({
+ imgUrl:process.env.VUE_APP_BASE_API + item.contentImg,
+ link:item.link,
+ linkType:item.linkType,
+ id:item.id
+ })
})
})
this.indexList = indexIds
- this.categoryQuery.categoryId = indexIds[0].id
- getinfoPart(this.categoryQuery).then(res => {
+ getinfoPart({categoryId:indexIds[1].id,
+ pageNum: 1,
+ pageSize: 10}).then(res => {
res.data.list.forEach(item => {
item.contentImg = process.env.VUE_APP_BASE_API + item.contentImg
})
- this.newList[0] = res.data.list.slice(0, 4)
- this.newList[1] = res.data.list.slice(4, 8)
+ this.newList1 = res.data.list.slice(0, 4)
+ this.newList2 = res.data.list.slice(4, 8)
+
})
- this.categoryQuery.categoryId = indexIds[1].id
- getinfoPart(this.categoryQuery).then(res => {
+ getinfoPart({categoryId:indexIds[2].id,
+ pageNum: 1,
+ pageSize: 10}).then(res => {
this.noticeList = res.data.list
})
}
})
},
getWebBaseInfo() {
- imitationList().then(res => {
- // console.log(res,'虚')
- var firstEightItems = res.rows.slice(0, 8);
+ imitationList({pageNum:1,pageSize:8}).then(res => {
+ var firstEightItems = res.rows;
firstEightItems.forEach(item => {
this.xlist.push(item);
});
diff --git a/ruoyi-ui/src/views/officialWebsite/Components/footer.vue b/ruoyi-ui/src/views/officialWebsite/Components/footer.vue
index 54e7818..0327288 100644
--- a/ruoyi-ui/src/views/officialWebsite/Components/footer.vue
+++ b/ruoyi-ui/src/views/officialWebsite/Components/footer.vue
@@ -73,6 +73,7 @@ export default {
this.baseInfo = res.data
this.baseInfo.webImg = process.env.VUE_APP_BASE_API + this.baseInfo.webImg
})
+
},
toTop(){
window.scrollTo({ top: 0, behavior: 'smooth' });
diff --git a/ruoyi-ui/src/views/officialWebsite/cases.vue b/ruoyi-ui/src/views/officialWebsite/cases.vue
index dc86383..4204f8d 100644
--- a/ruoyi-ui/src/views/officialWebsite/cases.vue
+++ b/ruoyi-ui/src/views/officialWebsite/cases.vue
@@ -13,43 +13,15 @@
首页 合作企业
-
+