Przeglądaj źródła

抽奖页面更换测试地址

@dongkboy 1 tydzień temu
rodzic
commit
1a1fc9999e
1 zmienionych plików z 51 dodań i 45 usunięć
  1. 51 45
      pages/lottery/index.vue

+ 51 - 45
pages/lottery/index.vue

@@ -4,55 +4,61 @@
 	</view>
 </template>
 <script>
-import { mapState } from 'vuex';
-export default {
-	data() {
-		return {
-			webviewStyles: {
-				progress: {
-					color: '#FF3333'
+	import {
+		mapState
+	} from 'vuex';
+	export default {
+		data() {
+			return {
+				webviewStyles: {
+					progress: {
+						color: '#FF3333'
+					}
+				},
+				to_url: '',
+			}
+		},
+		computed: {
+			...mapState(['userInfo', 'system_code']),
+		},
+		onLoad(options) {
+			// jzg-7kP9xL2mN5vQ8zR1jW  ,晋掌柜
+			// gyy-aB4cD6eF8gH0iJ2kL4  ,广誉源
+			// bdsh-X9yZ1wV3uT5sR7qP9o  ,本地生活
+
+			let currentPlatform = 'jzg-7kP9xL2mN5vQ8zR1jW'; // 当前平台
+
+			// let currentUser = '2043971820430372866'
+			let currentUser = this.userInfo.sysUser.userId // 当前用户id
+
+			let tenantId = this.system_code // 晋掌柜 租户id  需要传不需要不传
+
+			let activityId = options.activityId; // 当前活动id
+			let localActivityTableId = options.localActivityTableId; // 当前活动id
+
+			// this.to_url = 'http://192.168.5.21:8080/custh5/#/packageF/pages/activity/lottery/turntable?activityId='+ activityId + '&currentPlatform='+currentPlatform+'&currentUser='+currentUser;
+
+			this.to_url =
+				'https://test.baoxianzhanggui.com/custh5/#/packageF/pages/activity/lottery/turntable?activityId=' +
+				activityId + '&localActivityTableId=' + localActivityTableId + '&currentPlatform=' + currentPlatform +
+				'&currentUser=' + currentUser + '&tenantId=' + tenantId;
+		},
+		methods: {
+			// 这个 getMessage 在 H5 下其实不会被调到,可以保留给 App/小程序用
+			getMessage(event) {
+				console.log(event);
+				const list = event.detail && event.detail.data
+				const urlType = list && list[list.length - 1]
+				switch (urlType && urlType.type) {
+					case 'back':
+						uni.navigateBack()
+						break
+					default:
 				}
-			},
-			to_url: '',
-		}
-	},
-	computed: {
-		...mapState(['userInfo', 'system_code']),
-	},
-	onLoad(options) {
-		// jzg-7kP9xL2mN5vQ8zR1jW  ,晋掌柜
-		// gyy-aB4cD6eF8gH0iJ2kL4  ,广誉源
-		// bdsh-X9yZ1wV3uT5sR7qP9o  ,本地生活
-
-		let currentPlatform = 'jzg-7kP9xL2mN5vQ8zR1jW';// 当前平台
-
-		// let currentUser = '2043971820430372866'
-		let currentUser = this.userInfo.sysUser.userId // 当前用户id
-
-		let tenantId = this.system_code// 晋掌柜 租户id  需要传不需要不传
-
-		let activityId = options.activityId;// 当前活动id
-		let localActivityTableId = options.localActivityTableId;// 当前活动id
-
-		// this.to_url = 'http://192.168.5.21:8080/custh5/#/packageF/pages/activity/lottery/turntable?activityId='+ activityId + '&currentPlatform='+currentPlatform+'&currentUser='+currentUser;
-
-		this.to_url = 'https://life.baoxianzhanggui.com/custh5/#/packageF/pages/activity/lottery/turntable?activityId=' + activityId + '&localActivityTableId=' + localActivityTableId + '&currentPlatform=' + currentPlatform + '&currentUser=' + currentUser + '&tenantId=' + tenantId;
-	},
-	methods: {
-		// 这个 getMessage 在 H5 下其实不会被调到,可以保留给 App/小程序用
-		getMessage(event) {
-			const list = event.detail && event.detail.data
-			const urlType = list && list[list.length - 1]
-			switch (urlType && urlType.type) {
-				case 'back':
-					uni.navigateBack()
-					break
-				default:
 			}
 		}
-	}
 
-}
+	}
 </script>
 
 <style lang="scss" scoped></style>