Переглянути джерело

[直播列表标题修改]

livetest
刘晖 4 роки тому
джерело
коміт
453cfa9eb0
6 змінених файлів з 25 додано та 10 видалено
  1. +0
    -6
      app.json
  2. +7
    -1
      ext.json
  3. +1
    -1
      pages2/live/livelist/index.json
  4. +1
    -1
      pages2/live/livelist/index.wxml
  5. +1
    -1
      project.config.json
  6. +15
    -0
      wxParse/html2json.js

+ 0
- 6
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",


+ 7
- 1
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": {


+ 1
- 1
pages2/live/livelist/index.json Переглянути файл

@@ -4,6 +4,6 @@
"i-tabs": "../../../dist/tabs/index",
"navbar": "../../../components/navbar/navbar"
},
"navigationBarTitleText": "我的订单",
"navigationBarTitleText": "直播列表",
"navigationBarBackgroundColor": "#F4F5F9"
}

+ 1
- 1
pages2/live/livelist/index.wxml Переглянути файл

@@ -1,4 +1,4 @@
<navbar home back text="我的订单" background="#fff"></navbar>
<navbar home back text="直播列表" background="#fff"></navbar>
<view class="market" style="padding-top:{{navigationBarHeight}}">
<view style='padding-top:20rpx;'>
<view wx:for='{{roomInfos}}' wx:if="{{roomInfos.length!=0}}" class='section' data-data="{{item}}" wx:key='{{item.roomid}}'>


+ 1
- 1
project.config.json Переглянути файл

@@ -22,7 +22,7 @@
"disablePlugins": [],
"outputPath": ""
},
"useCompilerModule": true,
"useCompilerModule": false,
"userConfirmedUseCompilerModuleSwitch": false
},
"compileType": "miniprogram",


+ 15
- 0
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


Завантаження…
Відмінити
Зберегти