邓洁 : 点击轮播图跳转到详情
This commit is contained in:
@@ -94,9 +94,9 @@
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
shopInfo:{
|
||||
// shopInfo:{
|
||||
|
||||
}
|
||||
// }
|
||||
|
||||
}
|
||||
},
|
||||
@@ -112,9 +112,17 @@
|
||||
}
|
||||
},
|
||||
onLoad: function(options) {
|
||||
const shopInfomation = JSON.parse(decodeURIComponent(options.shopInfo))
|
||||
console.log(shopInfomation);
|
||||
this.shopInfo = shopInfomation
|
||||
// const shopInfomation = JSON.parse(decodeURIComponent(options.shopInfo))
|
||||
// console.log(shopInfomation);
|
||||
// this.shopInfo = shopInfomation
|
||||
console.log('detail',options);
|
||||
//点击轮播图跳转详情, 传递的参数id, type
|
||||
if(options.id){
|
||||
|
||||
}
|
||||
if(options.type){
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -55,7 +55,11 @@
|
||||
methods: {
|
||||
getBanner() {
|
||||
this.$api.getBanner().then(res => {
|
||||
this.swiperList = res.data.data.map(item => this.$api.imgUrl + item.img)
|
||||
res.data.data.forEach(item=>{
|
||||
item.img =this.$api.imgUrl + item.img
|
||||
})
|
||||
this.swiperList = res.data.data
|
||||
// .map(item => this.$api.imgUrl + item.img)
|
||||
})
|
||||
},
|
||||
getNotice() {
|
||||
|
||||
Reference in New Issue
Block a user