|
@@ -32,7 +32,7 @@
|
|
<image :src="'https://file.rongcyl.cn/festatic/bkm/imgv2/button3.png'" @click="toInvite" />
|
|
<image :src="'https://file.rongcyl.cn/festatic/bkm/imgv2/button3.png'" @click="toInvite" />
|
|
</view>
|
|
</view>
|
|
<view class="right">
|
|
<view class="right">
|
|
- <image :src="'https://file.rongcyl.cn/festatic/bkm/imgv2/button1.png'" />
|
|
|
|
|
|
+ <image :src="'https://file.rongcyl.cn/festatic/bkm/imgv2/button1.png'" @click="showQRcode" />
|
|
<image
|
|
<image
|
|
:src="'https://file.rongcyl.cn/festatic/bkm/imgv2/button2.png'"
|
|
:src="'https://file.rongcyl.cn/festatic/bkm/imgv2/button2.png'"
|
|
@click="$navigateTo('/pages/raffle/raffle')"
|
|
@click="$navigateTo('/pages/raffle/raffle')"
|
|
@@ -54,6 +54,15 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
+
|
|
|
|
+ <uni-popup class="popup" ref="popup" type="center">
|
|
|
|
+ <image
|
|
|
|
+ class="qrcodeImg"
|
|
|
|
+ :show-menu-by-longpress="true"
|
|
|
|
+ :src="'https://file.rongcyl.cn/festatic/bkm/imgv2/QRcode.png'"
|
|
|
|
+ mode="widthFix"
|
|
|
|
+ />
|
|
|
|
+ </uni-popup>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -115,6 +124,9 @@ export default {
|
|
clearInterval(this.timer)
|
|
clearInterval(this.timer)
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ showQRcode() {
|
|
|
|
+ this.$refs.popup.open()
|
|
|
|
+ },
|
|
drawCard(value) {
|
|
drawCard(value) {
|
|
let url = ''
|
|
let url = ''
|
|
if (value.type == 1) {
|
|
if (value.type == 1) {
|
|
@@ -128,7 +140,9 @@ export default {
|
|
} else if (value.type == 5) {
|
|
} else if (value.type == 5) {
|
|
url = '/pages/drawCard_first/drawCard_first'
|
|
url = '/pages/drawCard_first/drawCard_first'
|
|
}
|
|
}
|
|
- this.$navigateTo(url, { id: value.id })
|
|
|
|
|
|
+ this.$navigateTo(url, {
|
|
|
|
+ id: value.id,
|
|
|
|
+ })
|
|
},
|
|
},
|
|
getHot() {
|
|
getHot() {
|
|
let params = {
|
|
let params = {
|
|
@@ -170,7 +184,9 @@ export default {
|
|
// console.log(this.barrageIndex, 'this.barrageIndex')
|
|
// console.log(this.barrageIndex, 'this.barrageIndex')
|
|
if (this.messageList.length > 0) {
|
|
if (this.messageList.length > 0) {
|
|
this.timeOut = setTimeout(() => {
|
|
this.timeOut = setTimeout(() => {
|
|
- let barrage = { text: this.messageList[this.barrageIndex].content }
|
|
|
|
|
|
+ let barrage = {
|
|
|
|
+ text: this.messageList[this.barrageIndex].content,
|
|
|
|
+ }
|
|
this.$set(barrage, 'right', -400)
|
|
this.$set(barrage, 'right', -400)
|
|
this.$set(barrage, 'top', this.randomTop())
|
|
this.$set(barrage, 'top', this.randomTop())
|
|
this.$set(barrage, 'tag', false)
|
|
this.$set(barrage, 'tag', false)
|
|
@@ -220,7 +236,8 @@ export default {
|
|
height: 180px;
|
|
height: 180px;
|
|
position: relative;
|
|
position: relative;
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
- background-color: rgba(0, 0, 0, 0.2); /* 背景色,可根据需要调整 */
|
|
|
|
|
|
+ background-color: rgba(0, 0, 0, 0.2);
|
|
|
|
+ /* 背景色,可根据需要调整 */
|
|
}
|
|
}
|
|
|
|
|
|
.barrage-item {
|
|
.barrage-item {
|
|
@@ -234,6 +251,7 @@ export default {
|
|
border-radius: 15px;
|
|
border-radius: 15px;
|
|
background-color: rgba(0, 0, 0, 0.3);
|
|
background-color: rgba(0, 0, 0, 0.3);
|
|
}
|
|
}
|
|
|
|
+
|
|
.container {
|
|
.container {
|
|
/* padding: 20px; */
|
|
/* padding: 20px; */
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
@@ -244,6 +262,7 @@ export default {
|
|
height: 180px;
|
|
height: 180px;
|
|
width: 100%;
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
+
|
|
.headBarrage {
|
|
.headBarrage {
|
|
height: 180px;
|
|
height: 180px;
|
|
width: 100%;
|
|
width: 100%;
|
|
@@ -355,6 +374,7 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
.bullet {
|
|
.bullet {
|
|
height: 30px;
|
|
height: 30px;
|
|
line-height: 30px;
|
|
line-height: 30px;
|
|
@@ -363,4 +383,8 @@ export default {
|
|
background-color: rgba(0, 0, 0, 0.3);
|
|
background-color: rgba(0, 0, 0, 0.3);
|
|
color: #fff;
|
|
color: #fff;
|
|
}
|
|
}
|
|
|
|
+.qrcodeImg {
|
|
|
|
+ width: 70vw;
|
|
|
|
+ border-radius: 5px;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|