09月22日, 2014 1664次
import {c1,new1,top1} from "../../apis" export default { data() { return { moviesList:[] } }, onReady(){ this.pageInit(); }, computed:{ nowPlayingList(){ return this.$store.state.nowPlayingList; } }, methods: { pageInit(){ uni.showLoading({ title: '加载中' }); Promise.all([ this._com1(), this._new1(), this._top1() ]).then((res)=>{ uni.hideLoading(); let rel=[]; res.map((item)=>{ rel.push(item[1].data) }) this.moviesList=rel; console.log(this.moviesList) }) }, toDtails(id){ uni.navigateTo({ url:"../dtails/dtails?id="+id }) }, toClass(title){ uni.navigateTo({ url:"../class/class?title="+title }) }, _com1(){ return com1({ city:this.$store.state.city, start:"0", count:"8" }) }, _new1(){ return new1({ city:this.$store.state.city, start:"0", count:"8" }) }, _top1(){ return top1({ city:this.$store.state.city, start:"0", count:"8" }) } } }
暂无留言,赶快评论吧