diff --git a/app.js b/app.js index 14672bf..1188526 100644 --- a/app.js +++ b/app.js @@ -21,7 +21,7 @@ App({ unique_key: "wechatxcx" }).then(res => { let data = JSON.parse(res.data); - data.isTest = data.isTest59? true : false; + data.isTest = data.isTest60? true : false; this.globalData.configJson = data }).then(() => { // 获取ui配置文件 diff --git a/pages/list/movieticket/list/info/index.js b/pages/list/movieticket/list/info/index.js index 6246e89..829bd7f 100644 --- a/pages/list/movieticket/list/info/index.js +++ b/pages/list/movieticket/list/info/index.js @@ -18,7 +18,7 @@ Page({ commonApi._post("Cinema/getMovieDetail",{ show_id:options.id }).then(res=>{ - let showFlag = new Date(res.data.open_day.replace(/-/g,'/')).getTime()<=new Date().getTime(); + let showFlag = new Date(res.data.open_time.replace(/-/g,'/')).getTime()<=new Date().getTime(); res.data.listimg = res.data.listimg.split(",") || [] this.setData({ info:res.data, diff --git a/pages/list/movieticket/list/info/index.wxml b/pages/list/movieticket/list/info/index.wxml index 8960ea8..8076186 100644 --- a/pages/list/movieticket/list/info/index.wxml +++ b/pages/list/movieticket/list/info/index.wxml @@ -4,7 +4,7 @@ {{info.title}} - {{info.duration?(info.duration+'分钟/'):''}}{{info.type?(info.type+'/'):''}}{{info.country}} + {{info.duration?(info.duration+'分钟/'):''}}{{info.type?(info.type):''}}{{info.country?'/'+info.country:''}} {{info.open_day}}{{info.country?('在'+info.country):''}}上映 评分:{{info.remark}} @@ -25,5 +25,5 @@ - 立即购票 + \ No newline at end of file