Ver Fonte

去除多余项

hwb0 há 3 anos atrás
pai
commit
ec7bba1f39

+ 2 - 3
components/pay-popup/pay-popup.vue

@@ -67,7 +67,6 @@
 		},
 		methods: {
 			changeChecked(e) {
-				console.log(e);
 				this.checked = e
 			},
 
@@ -82,9 +81,9 @@
 				this.$emit('close')
 			},
 			
-			success(){
+			success(id){
 				this.checked = false
-				this.$emit('success')
+				this.$emit('success', id)
 			},
 
 			pay() {

+ 0 - 1
components/vear-carousel/vear-carousel.vue

@@ -29,7 +29,6 @@
 		},
 		methods: {
 			swiperChange(e) {
-				console.log(e);
 				this.dontFirstAnimation = false
 				this.currentIndex = e.detail.current
 				this.$emit('changeTicket', this.currentIndex)

+ 3 - 6
pages/choice/index.vue

@@ -38,6 +38,7 @@
 		},
 		onLoad(options) {
 			this.ticketId = options.id
+			this.orderId = options.orderId
 			this.getPrizeList()
 		},
 		methods: {
@@ -45,9 +46,8 @@
 				uni.showLoading({
 					title: '加载中'
 				});
-				$http.post('/api/v1/mp/user/ticket/queryHitPrizeList', {
-					ticketId: this.ticketId
-				}).then(res => {
+				let data = this.orderId ? { orderId: this.orderId } : { ticketId: this.ticketId }
+				$http.post('/api/v1/mp/user/ticket/queryHitPrizeList', data).then(res => {
 					uni.hideLoading();
 					if (res.code == 0) {
 						res.data.forEach(item => {
@@ -55,7 +55,6 @@
 						})
 						this.prizeList = res.data
 						this.total = res.data.length
-						console.log(this.total);
 					}
 				}).catch(() => {
 					uni.hideLoading();
@@ -68,13 +67,11 @@
 					return
 				}
 				this.actionIndex = index
-				console.log(item, index);
 			},
 
 			confirmPrize() {
 				let _this = this
 				let item = _this.prizeList[_this.actionIndex]
-				console.log(item);
 				uni.showModal({
 					title: '提示',
 					content: '确定选择该奖品吗?',

+ 0 - 3
pages/index/index.vue

@@ -108,7 +108,6 @@
 			},
 
 			getTicket(index) {
-				console.log(index);
 				this.currentIndex = index
 			},
 
@@ -132,7 +131,6 @@
 					orderNum: 1
 				}
 				$http.post('/api/v1/mp/user/ticket/order/settle', data).then(res => {
-					console.log(res);
 					if (res.code == 0) {
 						let info = {
 							...res.data,
@@ -140,7 +138,6 @@
 						}
 						this.payInfo = info
 						this.payShow = true
-						console.log(info);
 					}
 				}).catch(() => {
 					uni.$u.toast('开刮失败,请重试!');

+ 0 - 2
pages/lucky/index.vue

@@ -114,7 +114,6 @@
 					autoCoupon: 1
 				}
 				$http.post('/api/v1/mp/user/ticket/order/settle', data).then(res => {
-					console.log(res);
 					if (res.code == 0) {
 						let info = {
 							...res.data,
@@ -123,7 +122,6 @@
 						}
 						this.payInfo = info
 						this.payShow = true
-						console.log(info);
 					}
 				})
 			},

+ 0 - 1
pages/prize/detail.vue

@@ -39,7 +39,6 @@
 				title: '加载中'
 			});
 			this.info = JSON.parse(options.info)
-			console.log(this.info);
 			setTimeout(() => {
 				uni.hideLoading();
 				this.couponQrCode()

+ 0 - 1
pages/prize/index.vue

@@ -122,7 +122,6 @@
 						})
 						_this.total = res.total
 						_this.list = _this.list.concat(res.rows)
-						console.log(_this.list);
 					}
 				}).catch(() => {
 					uni.hideLoading();

+ 0 - 3
pages/prizeGoods/detail.vue

@@ -44,7 +44,6 @@
 					boxId: id
 				}).then(res => {
 					uni.hideLoading();
-					console.log(res);
 					if (res.code == 0) {
 						this.info = res.data
 						let picUrlArr = res.data.picUrl.split(',')
@@ -79,7 +78,6 @@
 					orderNum: 1
 				}
 				$http.post('/api/v1/mp/user/ticket/order/settle', data).then(res => {
-					console.log(res);
 					if (res.code == 0) {
 						let info = {
 							...res.data,
@@ -88,7 +86,6 @@
 						}
 						this.payInfo = info
 						this.payShow = true
-						console.log(info);
 					}
 				})
 			},

+ 1 - 1
pages/process/index.vue

@@ -35,7 +35,7 @@
 
 			toChoice() {
 				uni.redirectTo({
-					url: `/pages/choice/index?id=${ this.id }`
+					url: `/pages/choice/index?orderId=${ this.id }`
 				})
 			},
 		}

+ 0 - 1
pages/ticket/index.vue

@@ -66,7 +66,6 @@
 					status: this.state
 				}).then(res => {
 					uni.hideLoading();
-					console.log(res);
 					if (res.code == 0) {
 						res.rows.forEach(item => {
 							item.picUrl = env.filePublic + item.picUrl

+ 0 - 6
pages/ticketBox/detail.vue

@@ -80,17 +80,13 @@
 					boxId: id
 				}).then(res => {
 					uni.hideLoading();
-					console.log(res);
 					if (res.code == 0) {
 						this.info = res.data
 						let picUrlArr = res.data.picUrl.split(',')
 						picUrlArr.forEach(item => {
 							this.picUrlArr.push(env.filePublic + item)
 						})
-
 						let prizeList = res.data.prizeList
-						console.log(prizeList);
-
 						prizeList.forEach(item => {
 							item.picUrl = env.filePublic + item.picUrl
 						})
@@ -122,7 +118,6 @@
 					orderNum: 1
 				}
 				$http.post('/api/v1/mp/user/ticket/order/settle', data).then(res => {
-					console.log(res);
 					if (res.code == 0) {
 						let info = {
 							...res.data,
@@ -131,7 +126,6 @@
 						}
 						this.payInfo = info
 						this.payShow = true
-						console.log(info);
 					}
 				})
 			},