From 453cfa9eb04e712362a7543fcf91ef57d868ebe4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=99=96?= Date: Tue, 7 Jul 2020 22:13:15 +0800 Subject: [PATCH] =?UTF-8?q?[=E7=9B=B4=E6=92=AD=E5=88=97=E8=A1=A8=E6=A0=87?= =?UTF-8?q?=E9=A2=98=E4=BF=AE=E6=94=B9]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.json | 6 ------ ext.json | 8 +++++++- pages2/live/livelist/index.json | 2 +- pages2/live/livelist/index.wxml | 2 +- project.config.json | 2 +- wxParse/html2json.js | 15 +++++++++++++++ 6 files changed, 25 insertions(+), 10 deletions(-) diff --git a/app.json b/app.json index 1894c8e..e4d5450 100644 --- a/app.json +++ b/app.json @@ -64,12 +64,6 @@ "pages/integralmall/index", "pages/mallInfo/mallInfo" ], - "plugins": { - "live-player-plugin": { - "version": "1.0.16", - "provider": "wx2b03c6e691cd7370" - } - }, "subpackages": [ { "root": "pages2", diff --git a/ext.json b/ext.json index e9fb59c..674ff06 100644 --- a/ext.json +++ b/ext.json @@ -24,7 +24,13 @@ }, "name": "金泸商务", "weappId": "wx649b3be73c1afe47", - "appVersion": "C.test.5.2.0" + "appVersion": "C.test.5.2.0", + "plugins": { + "live-player-plugin": { + "version": "1.0.16", + "provider": "wx2b03c6e691cd7370" + } + } }, "debug": false, "tabBar": { diff --git a/pages2/live/livelist/index.json b/pages2/live/livelist/index.json index 6a4b956..ae36e79 100644 --- a/pages2/live/livelist/index.json +++ b/pages2/live/livelist/index.json @@ -4,6 +4,6 @@ "i-tabs": "../../../dist/tabs/index", "navbar": "../../../components/navbar/navbar" }, - "navigationBarTitleText": "我的订单", + "navigationBarTitleText": "直播列表", "navigationBarBackgroundColor": "#F4F5F9" } \ No newline at end of file diff --git a/pages2/live/livelist/index.wxml b/pages2/live/livelist/index.wxml index 701a302..9b2e3e2 100644 --- a/pages2/live/livelist/index.wxml +++ b/pages2/live/livelist/index.wxml @@ -1,4 +1,4 @@ - + diff --git a/project.config.json b/project.config.json index 417b568..a98338f 100644 --- a/project.config.json +++ b/project.config.json @@ -22,7 +22,7 @@ "disablePlugins": [], "outputPath": "" }, - "useCompilerModule": true, + "useCompilerModule": false, "userConfirmedUseCompilerModuleSwitch": false }, "compileType": "miniprogram", diff --git a/wxParse/html2json.js b/wxParse/html2json.js index 6909559..2177fc0 100644 --- a/wxParse/html2json.js +++ b/wxParse/html2json.js @@ -83,8 +83,23 @@ function html2json(html, bindName) { var node = { node: 'element', tag: tag, + attr:{} }; + if (node.tag =="embed"){ + console.log(node,attrs,unary,666) + var embUrl = ''; + attrs.map((item,index)=>{ + if(item.name == 'src'){ + embUrl = item.value + } + }) + // if (node.attr.src.indexOf('http:')==-1){ + // embUrl = "http://xxxx.com" + node.attr.src; + // } + node.attr.src = embUrl; + node.tag='video'; + } if (bufArray.length === 0) { node.index = index.toString() index += 1