liyongli 2 年之前
父節點
當前提交
0589780981
共有 1 個文件被更改,包括 11 次插入8 次删除
  1. 11 8
      src/view/SilkRoadSpringFestivalGala/pages/eight.vue

+ 11 - 8
src/view/SilkRoadSpringFestivalGala/pages/eight.vue

@@ -262,8 +262,11 @@ function mygift() {
 
 function playVideo() {
   let url = "https://cxzx.smcic.net/topic/tool/media/ad.mp4";
-  if (Math.random() >= 0.5)
+  const random = Math.random();
+  if (random >= 0.3 && random < 0.6)
     url = "https://cxzx.smcic.net/topic/tool/media/changanhua.M4V";
+  else if (random >= 0.3)
+    url = "https://cxzx.smcic.net/topic/tool/media/qinnongbank.mp4";
   emits("showVideo", url);
 }
 
@@ -366,14 +369,14 @@ defineExpose({
 }
 </style>
 <style lang="scss">
-.van-card__title{
-    font-size: 14px;
-    height: 50px;
-    line-height: 50px;
+.van-card__title {
+  font-size: 14px;
+  height: 50px;
+  line-height: 50px;
 }
-.van-card__bottom{
-    height: 40px;
-    line-height: 40px;
+.van-card__bottom {
+  height: 40px;
+  line-height: 40px;
 }
 .eight {
   .van-col {