罗世杰:临时提交

This commit is contained in:
LuoShijie
2023-11-16 20:51:49 +08:00
parent 971bf5efa6
commit 29ea1e1486
3 changed files with 25 additions and 6 deletions

View File

@@ -5,7 +5,7 @@
</view>
<view class="sub-detail u-flex">
<view class="title">
{{title}}
{{shopInfo.title}}
</view>
<view>
<u-grid :col="3">
@@ -73,7 +73,7 @@
<script>
export default {
props: {
list: {
swiperlist: {
type: Array,
default () {
return [
@@ -83,8 +83,15 @@
]
}
},
},
shopInfo: {
type: Object,
default () {
return {
title: "石锅饭铺面转让石锅饭铺面转让石锅饭铺面转",
}
}
}
},
data() {
return {
shopInfo:{
@@ -132,8 +139,6 @@
height: 100rpx;
background-color: #F8F8F8;
}
.swiper {
}
.title{
padding: 20rpx;
background-color: #fff;

View File

@@ -29,6 +29,7 @@
import HomeNoticeBar from "./HomeMainContent/HomeNoticeBar.vue"
import HomeNavCard from "./HomeMainContent/HomeNavCard.vue"
import Statistics from "./HomeMainContent/Statistics.vue"
import QQMapWX from "@/utils/qqmap-wx-jssdk.min.js"
export default {
components: {
@@ -49,6 +50,7 @@
this.getNotice()
this.getStat()
this.open()
this.getClassList()
},
methods: {
getBanner() {
@@ -64,6 +66,10 @@
getStat() {
this.$api.getStat().then(res => {
this.statNum = res.data.data
})
},
getClassList() {
this.$api.getClassList().then(res => {
console.log(res.data.data);
})
},

View File

@@ -204,6 +204,7 @@ const apiService = {
resolve(service.get(url))
})
},
//获取首页分析数据
getStat() {
const url = `/home/stat`
return new Promise((resolve, reject) => {
@@ -223,6 +224,13 @@ const apiService = {
return new Promise((resolve,reject) => {
resolve(service.get(url))
})
},
//获取行业和业态
getClassList(pid){
const url = `/home/classlist/?pid=${pid}`
return new Promise((resolve,reject) => {
resolve(service.post(url))
})
}
}
export {