duanshenglang před 2 týdny
rodič
revize
40363f5f78
2 změnil soubory, kde provedl 27 přidání a 20 odebrání
  1. 1 0
      lottery/qw/material.html
  2. 26 20
      lottery/qwMaterial.html

+ 1 - 0
lottery/qw/material.html

@@ -167,6 +167,7 @@
   }
   .foot_btn {
     display: flex;
+    justify-content: space-between;
     gap: 10px;
     padding: 10px 30px;
     background: #FFFFFF;

+ 26 - 20
lottery/qwMaterial.html

@@ -21,10 +21,10 @@
 
   <script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
   <script src="https://open.work.weixin.qq.com/wwopen/js/jwxwork-1.0.0.js"></script>
-  <script src="js/vconsole.min.js"></script>
+  <!-- <script src="js/vconsole.min.js"></script>
     <script>
   		  var vConsole = new window.VConsole();
-  		</script>
+  		</script> -->
 </head>
 <style>
   body {
@@ -165,6 +165,7 @@
   }
   .foot_btn {
     display: flex;
+    justify-content: space-between;
     gap: 10px;
     padding: 10px 30px;
     background: #FFFFFF;
@@ -762,9 +763,10 @@
         return result
       },
       handleCheckboxClick (item) {
-        if (this.contentType === 15) {
-            this.showVideoType = true
-        } else if (this.contentType === 17) {
+        // if (this.contentType === 15) {
+        //     this.showVideoType = true
+        // } else 
+        if (this.contentType === 17) {
           this.showImgType = true
         }
       },
@@ -868,20 +870,24 @@
                 }
               })
               // 原生视频
-            } else if (contentType === 15) {
-              wx.invoke('sendChatMessage', {
-                msgtype: "video", //消息类型,必填
-                enterChat: true,
-                file:
-                {
-                  mediaid: data,
-                },
-              }, function (res) {
-                if (res.err_msg == 'sendChatMessage:ok') {
-                  //发送成功
-                }
-              })
             }
+            // else if (contentType === 15) {
+            //   wx.invoke('sendChatMessage', {
+            //     msgtype: "video", //消息类型,必填
+            //     enterChat: true,
+            //     file:
+            //     {
+            //       mediaid: data,
+            //     },
+            //   }, function (res) {
+            //     console.log('信息', res)
+            //     if (res.err_msg == 'sendChatMessage:ok') {
+            //       //发送成功
+            //     } else {
+            //       console.log('发送视频失败', res)
+            //     }
+            //   })
+            // }
           } else {
             vant.Toast.fail(msg)
           }
@@ -893,8 +899,8 @@
       handleConfirm() {
         let obj = {}
         obj = this.itemList.filter(item => item.id === this.materialData)[0]
-        // 文章,表单,外部链接
-        if (this.contentType === 0 || this.contentType === 2 || this.contentType === 4) {
+        // 文章,表单,外部链接, 视频链接
+        if (this.contentType === 0 || this.contentType === 2 || this.contentType === 4 || this.contentType === 15) {
           this.sendNews(obj)
           // 文件
         } else if (this.contentType === 3) {