charlie_jvx3C 发表于 2017-2-17 19:35

<script> import { mapMutations } from 'vuex' import { film, playDate} from '../components/' export default{         data () {                 return {                         filmLists: [],                         itemId: 0,                         selDateNum: 0,                         cinemaData: {},                         selFilm: {},                         palyDate: [                                 {date: '今天 12-15', num: 0},                                 {date: '明天 12-16', num: 1},                                 {date: '后天 12-17', num: 2},                                 {date: '周五 12-18', num: 3}                         ]                 }         },         components: {                 film,                 playDate         },         watch: {                 itemId () {                         this.selFilm = this.getDataById(this.filmLists, this.itemId)                 }         },         methods: {                 ...mapMutations([                   'pushLoadStack',                   'completeLoad',                   'showCityList',                   'updateAreaData'                 ]),                 requestData (url, fn) {                   this.pushLoadStack()                   this.$http.get(url).then(fn).then(this.completeLoad)                 },                 getDataById (array, id) {                         for (let i = 0; i < array.length; i++) {                                 if (array.id == id) {                                         return array                                 }                         }                         return false                 },                 selectDateTab (event) {                         let num = +event.target.getAttribute('data-num')                         this.selDateNum = num                 }         },         created () {                 this.requestData('/movie/cinema_detail', (response) => {                         let data = response.data                         this.filmLists = data.data.data.returnValue.shows                         this.selFilm = this.filmLists                 })                 this.cinemaData = this.getDataById(this.$store.state.cinema.area, this.$route.params.id)                 if (!this.cinemaData) {                         this.$router.push('/')                 }         } } </script><script> import { mapMutations } from 'vuex' import { film, playDate} from '../components/' export default{         data () {                 return {                         filmLists: [],                         itemId: 0,                         selDateNum: 0,                         cinemaData: {},                         selFilm: {},                         palyDate: [                                 {date: '今天 12-15', num: 0},                                 {date: '明天 12-16', num: 1},                                 {date: '后天 12-17', num: 2},                                 {date: '周五 12-18', num: 3}                         ]                 }         },         components: {                 film,                 playDate         },         watch: {                 itemId () {                         this.selFilm = this.getDataById(this.filmLists, this.itemId)                 }         },         methods: {                 ...mapMutations([                   'pushLoadStack',                   'completeLoad',                   'showCityList',                   'updateAreaData'                 ]),                 requestData (url, fn) {                   this.pushLoadStack()                   this.$http.get(url).then(fn).then(this.completeLoad)                 },                 getDataById (array, id) {                         for (let i = 0; i < array.length; i++) {                                 if (array.id == id) {                                         return array                                 }                         }                         return false                 },                 selectDateTab (event) {                         let num = +event.target.getAttribute('data-num')                         this.selDateNum = num                 }         },         created () {                 this.requestData('/movie/cinema_detail', (response) => {                         let data = response.data                         this.filmLists = data.data.data.returnValue.shows                         this.selFilm = this.filmLists                 })                 this.cinemaData = this.getDataById(this.$store.state.cinema.area, this.$route.params.id)                 if (!this.cinemaData) {                         this.$router.push('/')                 }         } } </script><script> import { mapMutations } from 'vuex' import { film, playDate} from '../components/' export default{         data () {                 return {                         filmLists: [],                         itemId: 0,                         selDateNum: 0,                         cinemaData: {},                         selFilm: {},                         palyDate: [                                 {date: '今天 12-15', num: 0},                                 {date: '明天 12-16', num: 1},                                 {date: '后天 12-17', num: 2},                                 {date: '周五 12-18', num: 3}                         ]                 }         },         components: {                 film,                 playDate         },         watch: {                 itemId () {                         this.selFilm = this.getDataById(this.filmLists, this.itemId)                 }         },         methods: {                 ...mapMutations([                   'pushLoadStack',                   'completeLoad',                   'showCityList',                   'updateAreaData'                 ]),                 requestData (url, fn) {                   this.pushLoadStack()                   this.$http.get(url).then(fn).then(this.completeLoad)                 },                 getDataById (array, id) {                         for (let i = 0; i < array.length; i++) {                                 if (array.id == id) {                                         return array                                 }                         }                         return false                 },                 selectDateTab (event) {                         let num = +event.target.getAttribute('data-num')                         this.selDateNum = num                 }         },         created () {                 this.requestData('/movie/cinema_detail', (response) => {                         let data = response.data                         this.filmLists = data.data.data.returnValue.shows                         this.selFilm = this.filmLists                 })                 this.cinemaData = this.getDataById(this.$store.state.cinema.area, this.$route.params.id)                 if (!this.cinemaData) {                         this.$router.push('/')                 }         } } </script>

charlie_jvx3C 发表于 2017-2-17 19:36

的撒范德萨范德萨范德萨发

yttx2014 发表于 2017-2-27 18:48

学习学习!

blovesun 发表于 2017-3-2 13:35

感谢分享

xjjinglong 发表于 2017-4-9 17:42

2016欧美动作片《王牌贱谍:格林斯比》好

yybawang 发表于 2017-4-12 21:13

强烈支持楼主ing……

瑞雪嘉年 发表于 2017-4-26 22:23

看看如何哦,呵呵

的华国 发表于 2017-5-26 16:48

111111111111111111111111111111111111111

我常说无语 发表于 2017-8-5 01:01

很给力,ZNDS有你更精彩!

asianbingwang 发表于 2017-11-13 17:14

老铁666!必须支持一波!
页: 49 50 51 52 53 54 55 56 57 58 [59] 60
查看完整版本: 2016欧美动作片《王牌贱谍:格林斯比》1080P+720P 中英字幕