|
@@ -8,27 +8,35 @@
|
|
|
<template v-else>
|
|
|
<template v-if="isMobile">
|
|
|
<!-- 手机端 -->
|
|
|
- <div class="small" :class="{ bg: status === 'not-open' }">
|
|
|
+ <div class="small" :class="{
|
|
|
+ bg: status === 'not-open',
|
|
|
+ custom: detail.postBizData.posterType === 2 && detail.postBizData.customPosterInstalled,
|
|
|
+ }">
|
|
|
<template v-if="status === 'not-open'">
|
|
|
- <img class="lottery" :src=" require('../static/svg/icon-luck-mark.svg') " />
|
|
|
- <div class="head">
|
|
|
- <img :src="detail.postBizData.postUserInfo.avatarUrl" />
|
|
|
- <span>{{ detail.postBizData.postUserInfo.nickName }}</span>
|
|
|
- </div>
|
|
|
- <div class="price">
|
|
|
- <div class="usdt">{{ detail.postBizData.currencySymbol }} GIVEAWAY</div>
|
|
|
- <div class="money">
|
|
|
- <img :src="detail.postBizData.currencyIconPath" />
|
|
|
- <font-amount :fontSize="60" :amount="detail.postBizData.amountValue"></font-amount>
|
|
|
+ <template v-if="detail.postBizData.posterType === 2 && detail.postBizData.customPosterInstalled">
|
|
|
+ <img class="customImg" :src="detail.postBizData.customPosterInstalled" />
|
|
|
+ </template>
|
|
|
+ <template v-else>
|
|
|
+ <img class="lottery" :src=" require('../static/svg/icon-luck-mark.svg') " />
|
|
|
+ <div class="head">
|
|
|
+ <img :src="detail.postBizData.postUserInfo.avatarUrl" />
|
|
|
+ <span>{{ detail.postBizData.postUserInfo.nickName }}</span>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- <div class="time">
|
|
|
- <img class="img" :src=" require('../static/svg/icon-time.svg') " />
|
|
|
- {{ validity || '00:00:00' }}
|
|
|
- </div>
|
|
|
- <div class="box">
|
|
|
- <img src="../static/subject/icon-box.png" />
|
|
|
- </div>
|
|
|
+ <div class="price">
|
|
|
+ <div class="usdt">{{ detail.postBizData.currencySymbol }} GIVEAWAY</div>
|
|
|
+ <div class="money">
|
|
|
+ <img :src="detail.postBizData.currencyIconPath" />
|
|
|
+ <font-amount :fontSize="60" :amount="detail.postBizData.amountValue"></font-amount>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="time">
|
|
|
+ <img class="img" :src=" require('../static/svg/icon-time.svg') " />
|
|
|
+ {{ validity || '00:00:00' }}
|
|
|
+ </div>
|
|
|
+ <div class="box">
|
|
|
+ <img src="../static/subject/icon-box.png" />
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
</template>
|
|
|
<template v-else>
|
|
|
<div class="succTop">
|
|
@@ -109,27 +117,47 @@
|
|
|
</div>
|
|
|
<div class="show">
|
|
|
<div class="center">
|
|
|
- <div class="giveaway" :class="{ bg: status === 'not-open' }">
|
|
|
+ <div class="giveaway" :class="{
|
|
|
+ bg: status === 'not-open',
|
|
|
+ custom: detail.postBizData.posterType === 2 && detail.postBizData.customPosterInstalled,
|
|
|
+ }">
|
|
|
<template v-if="status === 'not-open'">
|
|
|
- <img class="lottery" :src=" require('../static/svg/icon-luck-mark.svg') " />
|
|
|
- <div class="head">
|
|
|
- <img :src="detail.postBizData.postUserInfo.avatarUrl" />
|
|
|
- <span>{{ detail.postBizData.postUserInfo.nickName }}</span>
|
|
|
- </div>
|
|
|
- <div class="price">
|
|
|
- <div class="usdt">{{ detail.postBizData.currencySymbol }} GIVEAWAY</div>
|
|
|
- <div class="money">
|
|
|
- <img :src="detail.postBizData.currencyIconPath" />
|
|
|
- <font-amount :fontSize="60" :amount="detail.postBizData.amountValue"></font-amount>
|
|
|
+ <template v-if="detail.postBizData.posterType === 2 && detail.postBizData.customPosterInstalled">
|
|
|
+ <img class="customImg" :src="detail.postBizData.customPosterInstalled" />
|
|
|
+ <div class="customBottom">
|
|
|
+ <div class="theme">
|
|
|
+ <img class="icon" :src="require('../static/svg/icon-last-time.svg')"/>
|
|
|
+ <span class="time2">{{ validity || '00:00:00' }}</span>
|
|
|
+ <span class="info">Left</span>
|
|
|
+ </div>
|
|
|
+ <div class="winner-info">
|
|
|
+ <span class="count">{{detail.postBizData.totalCount}} Winners</span>
|
|
|
+ <span>to Share </span>
|
|
|
+ <span class="prize-name">{{detail.postBizData.amountValue + ' ' + detail.postBizData.currencySymbol}}</span>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- <div class="time">
|
|
|
- <img class="img" :src=" require('../static/svg/icon-time.svg') " />
|
|
|
- {{ validity || '00:00:00' }}
|
|
|
- </div>
|
|
|
- <div class="box">
|
|
|
- <img src="../static/subject/icon-box.png" />
|
|
|
- </div>
|
|
|
+ </template>
|
|
|
+ <template v-else>
|
|
|
+ <img class="lottery" :src=" require('../static/svg/icon-luck-mark.svg') " />
|
|
|
+ <div class="head">
|
|
|
+ <img :src="detail.postBizData.postUserInfo.avatarUrl" />
|
|
|
+ <span>{{ detail.postBizData.postUserInfo.nickName }}</span>
|
|
|
+ </div>
|
|
|
+ <div class="price">
|
|
|
+ <div class="usdt">{{ detail.postBizData.currencySymbol }} GIVEAWAY</div>
|
|
|
+ <div class="money">
|
|
|
+ <img :src="detail.postBizData.currencyIconPath" />
|
|
|
+ <font-amount :fontSize="60" :amount="detail.postBizData.amountValue"></font-amount>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="time">
|
|
|
+ <img class="img" :src=" require('../static/svg/icon-time.svg') " />
|
|
|
+ {{ validity || '00:00:00' }}
|
|
|
+ </div>
|
|
|
+ <div class="box">
|
|
|
+ <img src="../static/subject/icon-box.png" />
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
</template>
|
|
|
<template v-else>
|
|
|
<div class="succTop">
|
|
@@ -246,7 +274,7 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
name: 'og:image',
|
|
|
- content: this.detail.postBizData.imagePath || ''
|
|
|
+ content: this.detail.postBizData.imagePath || this.detail.postBizData.customPosterUninstalled || ''
|
|
|
},
|
|
|
// twitter
|
|
|
{
|
|
@@ -263,7 +291,7 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
name: 'twitter:image',
|
|
|
- content: this.detail.postBizData.imagePath || ''
|
|
|
+ content: this.detail.postBizData.imagePath || this.detail.postBizData.customPosterUninstalled || ''
|
|
|
}
|
|
|
]
|
|
|
}
|
|
@@ -590,6 +618,9 @@ body,
|
|
|
&.bg {
|
|
|
background: linear-gradient(17.98deg, #3438FF 3.69%, #8B56FC 74.32%);
|
|
|
}
|
|
|
+ &.custom {
|
|
|
+ height: auto!important;
|
|
|
+ }
|
|
|
.lottery {
|
|
|
position: absolute;
|
|
|
top: 0;
|
|
@@ -705,6 +736,9 @@ body,
|
|
|
&.bg {
|
|
|
background: linear-gradient(17.98deg, #3438FF 3.69%, #8B56FC 74.32%);
|
|
|
}
|
|
|
+ &.custom {
|
|
|
+ background: #111214!important;
|
|
|
+ }
|
|
|
.lottery {
|
|
|
position: absolute;
|
|
|
top: 0;
|
|
@@ -1057,4 +1091,47 @@ body,
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+.customImg {
|
|
|
+ width: 100%;
|
|
|
+ min-height: 373px;
|
|
|
+}
|
|
|
+.customBottom {
|
|
|
+ width: 100%;
|
|
|
+ background:#111214;
|
|
|
+ padding: 10px 16px;
|
|
|
+ font-weight: 500;
|
|
|
+ font-size: 12px;
|
|
|
+ line-height: 14px;
|
|
|
+ letter-spacing: 0.3px;
|
|
|
+ color: #838383;
|
|
|
+ line-height: 20px;
|
|
|
+ .theme {
|
|
|
+ display: flex;
|
|
|
+ height: 20px;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: flex-start;
|
|
|
+ .icon {
|
|
|
+ width: 12px;
|
|
|
+ }
|
|
|
+ .time2 {
|
|
|
+ margin: 0 4px;
|
|
|
+ color: #1D9BF0;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .winner-info {
|
|
|
+ display: flex;
|
|
|
+ height: 20px;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: flex-start;
|
|
|
+ .count{
|
|
|
+ color: #1D9BF0;
|
|
|
+ margin-right: 4px;
|
|
|
+ }
|
|
|
+ .prize-name {
|
|
|
+ color: #1D9BF0;
|
|
|
+ margin-left: 4px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|