|
@@ -69,8 +69,11 @@ export default {
|
|
Swipe, SwipeItem, Tab, Tabs, List,
|
|
Swipe, SwipeItem, Tab, Tabs, List,
|
|
},
|
|
},
|
|
created () {
|
|
created () {
|
|
- //获取自己的userId
|
|
|
|
- if (!this.$route.query.code) {
|
|
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+ mounted () {
|
|
|
|
+ //获取自己的userId
|
|
|
|
+ if (!this.$route.query.code) {
|
|
let user_id = sessionStorage.getLocalstorage('user_id')
|
|
let user_id = sessionStorage.getLocalstorage('user_id')
|
|
if (user_id && user_id != undefined && user_id != '') {
|
|
if (user_id && user_id != undefined && user_id != '') {
|
|
this.myId = user_id
|
|
this.myId = user_id
|
|
@@ -85,8 +88,6 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
- },
|
|
|
|
- mounted () {
|
|
|
|
this.indexswiperapi()
|
|
this.indexswiperapi()
|
|
this.indexcategoryapi(this.id, this.limit, this.page)
|
|
this.indexcategoryapi(this.id, this.limit, this.page)
|
|
this.getSwiperUrlapi()
|
|
this.getSwiperUrlapi()
|