浏览代码

线上购票bug修复

hwb0 3 年之前
父节点
当前提交
a747bc1b79
共有 3 个文件被更改,包括 19 次插入5 次删除
  1. 1 1
      packageOther/about/index.vue
  2. 4 1
      packagePrize/rolling/index.vue
  3. 14 3
      packagePrize/ticket/index.vue

+ 1 - 1
packageOther/about/index.vue

@@ -4,7 +4,7 @@
 		<view class="about">
 			<view class="flex about-logo">
 				<image src="../../static/public/logo.png" mode=""></image>
-				<view class="edition">v 2.0.3</view>
+				<view class="edition">v 2.0.4</view>
 			</view>
 			<view class="about-action">
 				<u-cell-group :border="false">

+ 4 - 1
packagePrize/rolling/index.vue

@@ -109,6 +109,7 @@
 				boxId: '',
 				isTry: null,
 				orderId: '',
+				ticketId: '',
 				rotateShow: true,
 				circularShow: true
 			}
@@ -126,6 +127,7 @@
 				this.boxId = options.boxId
 				this.isTry = Number(options.isTry)
 				this.orderId = options.orderId
+				this.ticketId = options.ticketId
 			}
 		},
 		
@@ -144,7 +146,8 @@
 				let data = {
 					boxId: _this.boxId,
 					isTry: _this.isTry,
-					orderId: _this.orderId
+					orderId: _this.orderId,
+					ticketId: _this.ticketId
 				}
 				
 				let num = 0

+ 14 - 3
packagePrize/ticket/index.vue

@@ -99,9 +99,20 @@
 			},
 
 			toChoice(item) {
-				uni.navigateTo({
-					url: `/packagePrize/choice/index?id=${ item.ticketId }&type=onLine`
-				})
+				console.log(item);
+				let type = item.type && JSON.parse(item.type).value
+				
+				if(type == 'offline') {
+					uni.navigateTo({
+						url: `/packagePrize/choice/index?id=${ item.ticketId }&type=offLine`
+					})
+				} else if (type == 'online') {
+					uni.navigateTo({
+						url: `/packagePrize/rolling/index?ticketId=${ item.ticketId }&isTry=0`
+					})
+				} else {
+					uni.$u.toast('请联系客服')
+				}
 			},
 
 			changeTab(e) {