|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
- <view style="background-image: linear-gradient(#FF8000,#FFA524,#FF8000); width: 100%; height: 100%;">
|
|
|
-
|
|
|
+ <view style="background-image: linear-gradient(#ff8e0c,#ffc555 80%,#ff8e0c); width: 100%; height: 100%;">
|
|
|
+
|
|
|
<view v-if="pagesNum > 1">
|
|
|
<u-navbar title="免费抽奖" :border="true" :placeholder="true" :autoBack="true" bgColor="#fff" />
|
|
|
</view>
|
|
@@ -11,7 +11,7 @@
|
|
|
</view>
|
|
|
</u-navbar>
|
|
|
</view>
|
|
|
-
|
|
|
+
|
|
|
<view class="wrap">
|
|
|
<view class="wrap-fakeNum">
|
|
|
<view class="fakeNum">{{info.fakeNum}}人已参与</view>
|
|
@@ -60,9 +60,14 @@
|
|
|
<view>
|
|
|
<image :src="itemTwo.picUrl" mode="aspectFit"></image>
|
|
|
</view>
|
|
|
- <view class="textone ells-one" v-if="itemTwo.prizeType && JSON.parse(itemTwo.prizeType).value == 'coin'" > {{itemTwo.title}}x{{itemTwo.value}} </view>
|
|
|
+ <view class="textone ells-one"
|
|
|
+ v-if="itemTwo.prizeType && JSON.parse(itemTwo.prizeType).value == 'coin'">
|
|
|
+ {{itemTwo.title}}x{{itemTwo.value}}
|
|
|
+ </view>
|
|
|
<view class="textone ells-one" v-else> {{itemTwo.title}} </view>
|
|
|
- <view class="texttwo ells-one" v-if="itemTwo.prizeType && JSON.parse(itemTwo.prizeType).value != 'coin'"> ¥{{$numberFormat(itemTwo.value)}} </view>
|
|
|
+ <view class="texttwo ells-one"
|
|
|
+ v-if="itemTwo.prizeType && JSON.parse(itemTwo.prizeType).value != 'coin'">
|
|
|
+ ¥{{$numberFormat(itemTwo.value)}} </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="effectstwo"></view>
|
|
@@ -81,15 +86,23 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="effectsthree-position">{{item.quantity}}个名额 </view>
|
|
|
- <view class="effectsthree-positionTwo" v-for="(itemTwo,index) in item.prizeList"
|
|
|
+ <view style="padding-top: 120rpx;"></view>
|
|
|
+ <view class="effectsthree-positionTwo flex" v-for="(itemTwo,index) in item.prizeList"
|
|
|
:key="index">
|
|
|
<view>
|
|
|
<image :src="itemTwo.picUrl" mode="aspectFit" class="imatwo"></image>
|
|
|
</view>
|
|
|
- <image src="../static/activity/effectssix.png" mode="" class="imgone"></image>
|
|
|
- <view class="textone" v-if="itemTwo.prizeType && JSON.parse(itemTwo.prizeType).value == 'coin'" > {{itemTwo.title}}x{{itemTwo.value}} </view>
|
|
|
- <view class="textone" v-else> {{itemTwo.title}} </view>
|
|
|
- <view class="texttwo" v-if="itemTwo.prizeType && JSON.parse(itemTwo.prizeType).value != 'coin'"> ¥{{$numberFormat(itemTwo.value)}} </view>
|
|
|
+ <view>
|
|
|
+ <view class="textone ells-one"
|
|
|
+ v-if="itemTwo.prizeType && JSON.parse(itemTwo.prizeType).value == 'coin'">
|
|
|
+ {{itemTwo.title}}x{{itemTwo.value}}
|
|
|
+ </view>
|
|
|
+ <view class="textone ells-one" v-else> {{itemTwo.title}}</view>
|
|
|
+ <view class="texttwo ells-one"
|
|
|
+ v-if="itemTwo.prizeType && JSON.parse(itemTwo.prizeType).value != 'coin'">
|
|
|
+ ¥{{$numberFormat(itemTwo.value)}} </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
</view>
|
|
|
</view>
|
|
|
<view v-if="item.prizeList.length > 1 " class="wrap-award-explain">以上奖品随机获得一件</view>
|
|
@@ -117,12 +130,17 @@
|
|
|
</view>
|
|
|
|
|
|
<!-- 关注公众号 -->
|
|
|
- <view class="wrap-account">
|
|
|
- <image src="../static/activity/gzh.png" mode=""></image>
|
|
|
+ <view class="wrap-account" @click="toWeixin">
|
|
|
+ <view class="wrap-account-view">
|
|
|
+ <image src="../static/activity/logo.png" mode=""></image>
|
|
|
+ <text>关注盲票公众号,获取中奖提醒</text>
|
|
|
+ <view>去关注</view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
|
|
|
<!-- 图文介绍 -->
|
|
|
<view class="wrap-descriptiontwo">
|
|
|
+ <view style="padding: 36rpx 24rpx 36rpx;">图文介绍</view>
|
|
|
<view v-html="description">{{description}} </view>
|
|
|
</view>
|
|
|
|
|
@@ -130,8 +148,8 @@
|
|
|
|
|
|
<view class="footer-fixed">
|
|
|
<view class="flex btn">
|
|
|
- <button v-if="info.status && JSON.parse(info.status).value == 3" type="default"
|
|
|
- @click="exChange" open-type="share">获取抽奖码</button>
|
|
|
+ <button v-if="info.status && JSON.parse(info.status).value == 3" type="default" @click="exChange"
|
|
|
+ open-type="share">获取抽奖码</button>
|
|
|
<u-count-down v-else :time="activityTimeTwo" format="DD:HH:mm:ss" autoStart millisecond
|
|
|
@change="onChange">
|
|
|
<button class="buttoncol" type="default">
|
|
@@ -141,7 +159,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
-<!-- <u-popup :show="popupShow" mode="bottom" @close="close" closeable>
|
|
|
+ <!-- <u-popup :show="popupShow" mode="bottom" @close="close" closeable>
|
|
|
<view class="popupcode">获取抽奖码</view>
|
|
|
<view class="popupcodetwo">
|
|
|
<view class="popupcodetwo-view">邀请好友助力,获取抽奖码</view>
|
|
@@ -151,15 +169,17 @@
|
|
|
<button type="default" class="popupcodethree-default" open-type="share">立即邀请好友助力</button>
|
|
|
</view>
|
|
|
</u-popup> -->
|
|
|
-
|
|
|
+
|
|
|
<!-- <u-popup v-if="info.status && JSON.parse(info.status).value == 4" mode="bottom" @close="close" closeable> -->
|
|
|
- <u-popup v-if="info.status && JSON.parse(info.status).value == 4" show="true" mode="center" @close="close" round="11">
|
|
|
+ <u-popup v-if="info.status && JSON.parse(info.status).value == 4" show="true" mode="center" @close="close"
|
|
|
+ round="11">
|
|
|
<view style="text-align: center;width: 600rpx; height: 500rpx;">
|
|
|
- <view style="color: #666;margin-top: 110rpx;font-size: 40rpx;">来晚了,活动已结束</view>
|
|
|
- <view style="color: #666;margin-top: 50rpx;font-size: 36rpx;">点击前往查看新的免费抽奖活动</view>
|
|
|
- <button @click="toActivity" type="default" style="background-color: #FF8000;color: #fff; width: 300rpx;margin-top: 70rpx;">确定</button>
|
|
|
+ <view style="color: #666;margin-top: 110rpx;font-size: 40rpx;">来晚了,活动已结束</view>
|
|
|
+ <view style="color: #666;margin-top: 50rpx;font-size: 36rpx;">点击前往查看新的免费抽奖活动</view>
|
|
|
+ <button @click="toActivity" type="default"
|
|
|
+ style="background-color: #FF8000;color: #fff; width: 300rpx;margin-top: 70rpx;">确定</button>
|
|
|
</view>
|
|
|
- </u-popup>
|
|
|
+ </u-popup>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -250,6 +270,13 @@
|
|
|
this.popupShow = false
|
|
|
},
|
|
|
|
|
|
+ //公众号
|
|
|
+ toWeixin() {
|
|
|
+ uni.navigateTo({
|
|
|
+ url: `/packageOperate/activity/wxofficial`
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* 处理富文本里的图片宽度自适应
|
|
@@ -282,7 +309,7 @@
|
|
|
return {
|
|
|
title: '超值宝贝免费抽,参与活动仅需3秒',
|
|
|
path: `/pages/index/index?marketingId=${ this.info.id }&inviteCode=${ this.inviteCode }`,
|
|
|
- imageUrl:'https://mp-public-test-1307117429.cos.ap-shanghai.myqcloud.com/70/EJ305PQR2IBE45O9AFAI',
|
|
|
+ imageUrl: 'https://mp-public-test-1307117429.cos.ap-shanghai.myqcloud.com/70/EJ305PQR2IBE45O9AFAI',
|
|
|
}
|
|
|
},
|
|
|
}
|
|
@@ -518,34 +545,31 @@
|
|
|
|
|
|
&-positionTwo {
|
|
|
width: 100%;
|
|
|
- height: 600rpx;
|
|
|
- text-align: center;
|
|
|
+ height: 220rpx;
|
|
|
+ // text-align: center;
|
|
|
+ padding: 0 62rpx;
|
|
|
+ justify-content: flex-start;
|
|
|
+
|
|
|
+
|
|
|
|
|
|
.imatwo {
|
|
|
- position: relative;
|
|
|
- width: 350rpx;
|
|
|
- height: 350rpx;
|
|
|
- margin-top: 70rpx;
|
|
|
- z-index: 10;
|
|
|
+ width: 150rpx;
|
|
|
+ height: 150rpx;
|
|
|
+
|
|
|
}
|
|
|
|
|
|
.textone {
|
|
|
- position: relative;
|
|
|
- bottom: 200rpx;
|
|
|
- z-index: 10;
|
|
|
color: #333333;
|
|
|
font-size: 30rpx;
|
|
|
- line-height: 40rpx;
|
|
|
+ margin-left: 20rpx;
|
|
|
+ line-height: 75rpx;
|
|
|
}
|
|
|
|
|
|
.texttwo {
|
|
|
-
|
|
|
- position: relative;
|
|
|
- bottom: 195rpx;
|
|
|
- z-index: 10;
|
|
|
+ margin-left: 20rpx;
|
|
|
color: #FE2616;
|
|
|
font-size: 28rpx;
|
|
|
- line-height: 34rpx;
|
|
|
+ line-height: 75rpx;
|
|
|
}
|
|
|
|
|
|
.imgone {
|
|
@@ -555,6 +579,7 @@
|
|
|
bottom: 80rpx;
|
|
|
margin-left: 0%;
|
|
|
z-index: 0;
|
|
|
+
|
|
|
// width: 45%;
|
|
|
// height: 45%;
|
|
|
}
|
|
@@ -615,12 +640,20 @@
|
|
|
height: 200rpx;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.codesix {
|
|
|
- line-height: 1rpx;color: #9A9FB4; font-size: 30rpx;
|
|
|
+ line-height: 1rpx;
|
|
|
+ color: #9A9FB4;
|
|
|
+ font-size: 30rpx;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
&-codesix {
|
|
|
- text-align: center;line-height: 200rpx;padding-bottom: 10rpx; font-size: 28rpx; color: #666;
|
|
|
+ text-align: center;
|
|
|
+ line-height: 200rpx;
|
|
|
+ padding-bottom: 10rpx;
|
|
|
+ font-size: 28rpx;
|
|
|
+ color: #666;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -632,12 +665,43 @@
|
|
|
}
|
|
|
|
|
|
&-account {
|
|
|
- margin: 15rpx 15rpx 0 15rpx;
|
|
|
+ height: 100rpx;
|
|
|
+ border-radius: 22rpx;
|
|
|
+ background-color: #fff;
|
|
|
+ margin: 30rpx 30rpx 0 30rpx;
|
|
|
+
|
|
|
+ &-view {
|
|
|
+ padding: 0 20rpx;
|
|
|
+
|
|
|
+ image {
|
|
|
+ width: 64rpx;
|
|
|
+ height: 64rpx;
|
|
|
+ vertical-align: -50%;
|
|
|
+ }
|
|
|
+
|
|
|
+ text {
|
|
|
+ line-height: 100rpx;
|
|
|
+ margin: 20rpx;
|
|
|
+ font-size: 30rpx;
|
|
|
+ color: #333333;
|
|
|
+ }
|
|
|
+
|
|
|
+ view {
|
|
|
+ text-align: center;
|
|
|
+ border-radius: 6rpx;
|
|
|
+ display: inline-block;
|
|
|
+ height: 44rpx;
|
|
|
+ line-height: 44rpx;
|
|
|
+ font-size: 26rpx;
|
|
|
+ width: 112rpx;
|
|
|
+ color: #f9822c;
|
|
|
+ background-color: #fff;
|
|
|
+ border: 2rpx solid #f9822c;
|
|
|
+ }
|
|
|
|
|
|
- image {
|
|
|
- width: 100%;
|
|
|
- height: 152rpx;
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -676,6 +740,7 @@
|
|
|
border-radius: 48rpx;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.buttoncol {
|
|
|
background-color: #555;
|
|
|
}
|