Ver código fonte

feat:提交代码

longzhicheng 1 ano atrás
pai
commit
07f60b91f9
1 arquivos alterados com 2 adições e 5 exclusões
  1. 2 5
      src/subPages/pages/movies/moviesTicketList.vue

+ 2 - 5
src/subPages/pages/movies/moviesTicketList.vue

@@ -125,7 +125,6 @@
125
 
125
 
126
 	onLoad( (option) => {
126
 	onLoad( (option) => {
127
 		let info = option.info
127
 		let info = option.info
128
-		console.log("===option.info",option.info);
129
 		 filmSign =option.film_sign
128
 		 filmSign =option.film_sign
130
 		if (info) {
129
 		if (info) {
131
 			initInfo.value = JSON.parse(decodeURIComponent(info))
130
 			initInfo.value = JSON.parse(decodeURIComponent(info))
@@ -164,7 +163,7 @@
164
 	}
163
 	}
165
 	
164
 	
166
 	function getmoviesList() {
165
 	function getmoviesList() {
167
-		uni.showLoading()
166
+		uni.showLoading({title:'加载中...'})
168
 		apiGetHomeMovieList().then(res => {
167
 		apiGetHomeMovieList().then(res => {
169
 			moviesList.value =res.film_list
168
 			moviesList.value =res.film_list
170
 			for (var i = 0; i < res.film_list.length; i++) {
169
 			for (var i = 0; i < res.film_list.length; i++) {
@@ -210,15 +209,13 @@
210
 
209
 
211
 	
210
 	
212
 	function getCinemafilmSchedList(){
211
 	function getCinemafilmSchedList(){
213
-		uni.showLoading()
214
 		let params =
212
 		let params =
215
 		`film_sign=${moviesList.value[currentMoviesIndex.value].film_sign}&cinema_sign=${initInfo.value.cinema_sign}`
213
 		`film_sign=${moviesList.value[currentMoviesIndex.value].film_sign}&cinema_sign=${initInfo.value.cinema_sign}`
216
 		apiGetCinemafilmSchedList(params).then(res=>{
214
 		apiGetCinemafilmSchedList(params).then(res=>{
217
 	        dateList.value =  res.show_date
215
 	        dateList.value =  res.show_date
218
 			totalList.value = res.cinema_sched
216
 			totalList.value = res.cinema_sched
219
 			cinemaList.value = res.cinema_sched[dateList.value[0].date]
217
 			cinemaList.value = res.cinema_sched[dateList.value[0].date]
220
-			uni.hideLoading()
221
-		})
218
+		}).finally(()=>{uni.hideLoading()})
222
 	}
219
 	}
223
 	
220
 	
224
 	onPullDownRefresh(() => {
221
 	onPullDownRefresh(() => {