|
@@ -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>
|