lilei 4 gadi atpakaļ
vecāks
revīzija
c87e49388c
1 mainītis faili ar 10 papildinājumiem un 4 dzēšanām
  1. 10 4
      pages/shopTour/shopTour.vue

+ 10 - 4
pages/shopTour/shopTour.vue

@@ -295,15 +295,21 @@ export default {
 		},
 		// 获取视频地址
 		getStoreVideoUrl(item) {
+			let _this = this
 			getVideoUrl({ streamId: item.streamId, outProtocol: 'hls' }).then(res => {
 				console.log(res);
 				if (res.status == 200 && res.data) {
 					this.wv.evalJS("vm.getVideoUrlSuccess('" + res.data.url + "')");
 				} else {
-					uni.showToast({
-						icon: 'none',
-						title: '获取视频地址失败,请返回重试'
-					});
+					clzConfirm({
+						title: '提示',
+						content: '获取视频地址失败,点击确定重试?',
+						showCancel: false,
+						buttons:['确定'],
+						success: function(res){
+							_this.getStoreVideoUrl(item)
+						}
+					})
 				}
 			});
 		},