|
@@ -32,17 +32,11 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div
|
|
|
- class="package-btn"
|
|
|
+ :class="['package-btn', {end: +type === 7}]"
|
|
|
:style="!+type ? 'margin-bottom: 24px;' : ''"
|
|
|
@click="btnFun"
|
|
|
>
|
|
|
- {{
|
|
|
- +type
|
|
|
- ? info.bargainingStatus === 1
|
|
|
- ? `继续砍价${info.remainingQuantity || 0}次`
|
|
|
- : '邀请好友助力免单'
|
|
|
- : '帮他助力'
|
|
|
- }}
|
|
|
+ {{ btnName }}
|
|
|
</div>
|
|
|
<div class="package-expire" v-if="+type && time">
|
|
|
免单失效时间:<van-count-down :time="time" />
|
|
@@ -79,12 +73,12 @@
|
|
|
<div v-if="item.assistType === 1">
|
|
|
道具砍掉<span>{{ item.assistPrice }}元</span>
|
|
|
</div>
|
|
|
- <div v-else-if="item.assistType === 2 || item.assistType === 3">
|
|
|
+ <div
|
|
|
+ v-else-if="item.assistType === 2 || item.assistType === 3"
|
|
|
+ >
|
|
|
为您砍价<span>{{ item.assistPrice }}元</span>
|
|
|
</div>
|
|
|
- <div v-else>
|
|
|
- 为您加油打气
|
|
|
- </div>
|
|
|
+ <div v-else>为您加油打气</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -370,6 +364,19 @@ export default {
|
|
|
? validityPeriodTimeStamp - this.systemTime * 1000
|
|
|
: 0;
|
|
|
},
|
|
|
+ btnName() {
|
|
|
+ let name = null;
|
|
|
+ if (+this.type === 7) {
|
|
|
+ name = '活动已到期';
|
|
|
+ } else {
|
|
|
+ name = +this.type
|
|
|
+ ? this.info.bargainingStatus === 1
|
|
|
+ ? `继续砍价${this.info.remainingQuantity || 0}次`
|
|
|
+ : '邀请好友助力免单'
|
|
|
+ : '帮他助力';
|
|
|
+ }
|
|
|
+ return name;
|
|
|
+ },
|
|
|
},
|
|
|
methods: {
|
|
|
// 轮播活动参加的人的信息
|
|
@@ -505,7 +512,8 @@ export default {
|
|
|
break;
|
|
|
case 4: // 失败,领取下一台云机界面
|
|
|
this.expireVisible = true;
|
|
|
- break;
|
|
|
+ case 7: // 活动已结束
|
|
|
+ return;
|
|
|
}
|
|
|
|
|
|
const data = await this.getSystemTime();
|
|
@@ -635,6 +643,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
btnFun() {
|
|
|
+ if(+this.type === 7) return
|
|
|
if (!+this.type) this.assistanceBool = true;
|
|
|
if (+this.type) {
|
|
|
switch (this.info.bargainingStatus) {
|
|
@@ -658,10 +667,7 @@ export default {
|
|
|
if (this.$userAgent.isSzx || this.$userAgent.isSzxBrowser) {
|
|
|
this.$native.share(shareInfo);
|
|
|
} else {
|
|
|
- if (
|
|
|
- this.$userAgent.isIos &&
|
|
|
- !this.$userAgent.isWx
|
|
|
- ) {
|
|
|
+ if (this.$userAgent.isIos && !this.$userAgent.isWx) {
|
|
|
await this.$native.clipboard.writeText(res.data.link);
|
|
|
setTimeout(() => {
|
|
|
this.$toast.success('链接复制成功');
|
|
@@ -965,6 +971,9 @@ export default {
|
|
|
text-align: center;
|
|
|
font-style: normal;
|
|
|
// margin-bottom: 24px;
|
|
|
+ &.end{
|
|
|
+ opacity: .5;
|
|
|
+ }
|
|
|
}
|
|
|
.package-expire {
|
|
|
margin-top: 12px;
|
|
@@ -1040,7 +1049,7 @@ export default {
|
|
|
&::-webkit-scrollbar {
|
|
|
display: none !important; /* 对于 Chrome, Safari 和 Opera 隐藏滚动条 */
|
|
|
}
|
|
|
- .van-empty {
|
|
|
+ ::v-deep .van-empty {
|
|
|
padding: 0 !important;
|
|
|
}
|
|
|
}
|