浏览代码

feat:提交代码

longzhicheng 1 年之前
父节点
当前提交
07f60b91f9
共有 1 个文件被更改,包括 2 次插入5 次删除
  1. 2 5
      src/subPages/pages/movies/moviesTicketList.vue

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

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