暂存代码
This commit is contained in:
@@ -49,22 +49,34 @@
|
||||
|
||||
<script>
|
||||
import { searchList } from '@/api/product.js';
|
||||
import { SEARCH_TYPE } from '@/utils/enumUtils.js';
|
||||
|
||||
import { SEARCH_TYPE,APP_PAGE_TYPE } from '@/utils/enumUtils.js';
|
||||
import { getCarouselImage } from '@/api/common.js';
|
||||
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
swiperList:[
|
||||
'/static/home/banner03.png',
|
||||
],
|
||||
swiperList:[],
|
||||
productList:[],
|
||||
productListLoading:false,
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.getSearchList();
|
||||
this.getCarouselImage();
|
||||
},
|
||||
methods: {
|
||||
// 查询轮播图
|
||||
async getCarouselImage(){
|
||||
const params={
|
||||
pageUi:APP_PAGE_TYPE.GOOD,
|
||||
}
|
||||
const resp = await getCarouselImage(params);
|
||||
if(resp && resp.bizcode === 100){
|
||||
const data = resp.data || [];
|
||||
this.swiperList = data.length !== 0 ? data.map(obj=>obj.carouselImage) : [];
|
||||
}
|
||||
},
|
||||
jumpHome(){
|
||||
uni.switchTab({
|
||||
url: '/pages/home/home',
|
||||
|
||||
Reference in New Issue
Block a user