Bladeren bron

兑换码规则 游戏大厅

lsx 2 jaren geleden
bovenliggende
commit
abaf89bc05

+ 15 - 12
src/packageOperate/activity/record.vue

@@ -118,10 +118,11 @@
 		},
 		onShow() {
 			this.pagesNum = getCurrentPages().length
+			this.pageList()
 		},
 		onLoad(opthios) {
 			this.marketingId = opthios.id
-			this.pageList()
+			// this.pageList()
 		},
 		methods: {
 			toActivity() {
@@ -159,23 +160,25 @@
 						})
 						this.total = res.total
 						this.list = this.list.concat(res.rows)
+						
+						try {
+							const value = uni.getStorageSync(this.marketingId);
+							if (value) {
+						
+							} else {
+								this.successFail()
+								uni.setStorageSync(this.marketingId, this.marketingId);
+							}
+						} catch (e) {
+							// error
+						}
 					}
 				}).catch(() => {
 					uni.hideLoading();
 					this.loading = false
 				});
 
-				try {
-					const value = uni.getStorageSync(this.marketingId);
-					if (value) {
-
-					} else {
-						this.successFail()
-						uni.setStorageSync(this.marketingId, this.marketingId);
-					}
-				} catch (e) {
-					// error
-				}
+				
 
 			},
 			close() {

+ 3 - 2
src/packageOperate/exchange/index.vue

@@ -14,8 +14,9 @@
 				</view>
 				<view class="wrap-code-text">
 					兑换规则说明:<br>
-					1、兑换码有有限期限制,具体以盲票科技为准。<br>
-					2、兑换码不找零不兑现。
+					1、输入兑换码即可兑换相应奖品。<br>
+					2、兑换码有效期有限制,超期失效。<br>
+					3、兑换码不找零、不兑现,使用支配权归用户所有,可自用也可转赠他人
 				</view>
 			</view>
 			<button @click="submit" type="button">提交兑换</button>

+ 1 - 1
src/packageOther/about/index.vue

@@ -22,7 +22,7 @@
 			<view class="flex about-logo">
 				<image src="../../static/public/logo.png" mode="scaleToFill"></image>
 				<!-- #ifndef MP-ALIPAY -->
-				<view class="edition">v 1.1.3</view>
+				<view class="edition">v 1.1.4</view>
 				<!-- #endif -->
 				<!-- #ifdef MP-ALIPAY -->
 				<view class="edition">v 2.2.6</view>

+ 61 - 22
src/pages/index/index.vue

@@ -23,6 +23,11 @@
 
 				<!-- 查看规则 -->
 				<view class="rule">
+					<!-- #ifdef MP-WEIXIN -->
+					<view class="rule-gameimg flex">
+						<image src="../../static/index/games.png" @click="toExternalGames" mode="scaleToFill"></image>
+					</view>
+					<!-- #endif -->
 					<!-- #ifndef MP-ALIPAY -->
 					<!-- <view class="rule-content flex" @click="contactService">
 						<image src="../../static/index/index_tip_bgTwo.png" mode="scaleToFill"></image>
@@ -34,18 +39,19 @@
 					</view>
 					<!-- #endif -->
 				</view>
-				<!-- <view @click="toLucky">这是测试盲票开奖入口</view> -->
+				<!-- <view @click="toLucky">这是测试盲票开奖入口</view> -->
 				<!-- <view @click="toStore">这是测试门店盲票列表入口</view> -->
 				<!-- 盲票轮播 -->
 				<view class="ticket">
 					<view class="ticket-bgc" @click="ticketLeft()">
 						<image src="../../static/index/index_anniu.png" mode="scaleToFill"></image>
 					</view>
-					<swiper class="ticket-swiper" :current="ticketIndex" :autoplay="false" :circular="true"
-						:duration="200" @change="changeTicket">
+					<swiper class="ticket-swiper" :current="ticketIndex" :autoplay="false" :circular="true" :duration="200"
+						@change="changeTicket">
 						<swiper-item v-for="(item, index) in ticketList" :key="index">
-							<view class="ticket-swiper-item flex" @click="toTicketBox(item)">
-								<image class="ticket-swiper-item-box" :src="item.picUrl[0]" mode="aspectFit"></image>
+							<view class="ticket-swiper-item flex">
+								<image class="ticket-swiper-item-box" @click="toTicketBox(item)" :src="item.picUrl[0]" mode="aspectFit">
+								</image>
 							</view>
 						</swiper-item>
 					</swiper>
@@ -56,7 +62,7 @@
 						<image src="../../static/index/index_tip_left.png" mode="scaleToFill"></image>
 					</view>
 				</view>
-				
+
 				<!-- 投诉建议 -->
 				<view class="proposal flex">
 					<view class="proposal-time flex" v-if="activityTime && activityTime > 0" @click="toActivity">
@@ -75,9 +81,8 @@
 
 				<!-- 盲票名称轮播 -->
 				<view class="ticket-title" flex>
-					<swiper class="ticket-title-swiper flex" :duration="0" :current="ticketTitleIndex"
-						previous-margin="80px" next-margin="80px" :autoplay="false" :circular="true"
-						@change="changeTicketTitle">
+					<swiper class="ticket-title-swiper flex" :duration="0" :current="ticketTitleIndex" previous-margin="80px"
+						next-margin="80px" :autoplay="false" :circular="true" @change="changeTicketTitle">
 						<swiper-item v-for="(item, index) in ticketList" :key="index">
 							<view class="ticket-title-swiper-item flex" @click="clickTicketTitle(index)"
 								:class="{ 'action': ticketTitleIndex == index }">
@@ -320,16 +325,16 @@
 					this.percentage = uni.$u.range(0, 100, num * (index + 1))
 				}
 			},
-			
-			toLucky() {
+
+			toLucky() {
 				uni.navigateTo({
 					url: `/pages/lucky/index?id=9a4b315da3ef4db5ea378c05f8b0b626f87d793d66714d29dcc7f4ccf9441317`
 				})
-			},
-			toStore() {
-				uni.navigateTo({
-					url: `/packageOperate/store/index?channelId=26`
-				})
+			},
+			toStore() {
+				uni.navigateTo({
+					url: `/packageOperate/store/index?channelId=26`
+				})
 			},
 
 			// 投诉建议
@@ -350,6 +355,24 @@
 				// #endif
 			},
 
+			// 跳转酷玩星球
+			toExternalGames() {
+					/**
+					 * envVersion 类型为字符串
+					 * envVersion: 'develop', //开发版
+					 * envVersion: 'trial', //体验版
+					 * envVersion: 'release',//正式版
+					 */
+					uni.navigateToMiniProgram({
+						appId: 'wx6b4030841ccd653b', // appid
+						// path: '/pages/index/index', // 首页路径
+						envVersion: "release",
+						success: res => {
+							// 打开成功
+						},
+					})
+			},
+
 			// 活动
 			getActivityList() {
 				$http.post(`/api/v1/mp/user/marketing/recent`, {}).then(res => {
@@ -538,15 +561,14 @@
 						url: `/packagePrize/goods/index?id=424&boxId=${ this.ticketInfo.boxId }`
 					})
 				} else if (item.refType && JSON.parse(item.refType).value === 'coupon' || JSON.parse(item.refType)
-					.value === 'coupon_pkg') {
-					if (item.couponDetail) {
-						uni.setStorageSync('couponDetail', item.couponDetail);
+					.value === 'coupon_pkg') {
+					if (item.couponDetail) {
+						uni.setStorageSync('couponDetail', item.couponDetail);
 					}
 					uni.navigateTo({
 						url: `/packagePrize/goods/index?id=425&boxId=${ this.ticketInfo.boxId }`
 					})
 				}
-
 			},
 
 			toActivity() {
@@ -700,9 +722,14 @@
 	.rule {
 		display: flex;
 		align-items: center;
+		/* #ifndef MP-WEIXIN */
 		justify-content: flex-end;
+		/* #endif */
+		/* #ifdef MP-WEIXIN */
+		justify-content: space-between;
+		/* #endif */
 		height: 34rpx;
-		padding-right: 34rpx; //
+		padding: 0 34rpx; //
 		margin-bottom: 24rpx;
 
 		&-content {
@@ -721,6 +748,18 @@
 				color: #FFFFFF;
 			}
 		}
+
+		&-gameimg {
+			width: 165rpx;
+			height: 155rpx;
+
+			image {
+				width: 165rpx;
+				height: 155rpx;
+				margin-top: 64px;
+				z-index: 100000;
+			}
+		}
 	}
 
 	// 盲票
@@ -1190,4 +1229,4 @@
 			left: 110%;
 		}
 	}
-</style>
+</style>

BIN
src/static/index/games.png