From 48c8692dcfe33233b26a9fb5fecbe0344e1dd2c3 Mon Sep 17 00:00:00 2001 From: yvan Date: Wed, 26 Feb 2020 22:14:00 +0800 Subject: [PATCH] 自定义模板要显示 直播组件的修改 --- components/diy_advertising/diy_advertising.wxml | 226 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------------------------------------------------------------------------------------- components/diy_advertising/diy_advertising.wxss | 1 + components/diy_nav/diy_nav.wxml | 52 ++++++++++++++-------------------------------------- components/diy_nav/diy_nav_part1.wxml | 23 +++++++++++++++++++++++ components/diy_nav/diy_nav_part2.wxml | 17 +++++++++++++++++ components/diy_picMax/diy_picMax.wxml | 11 +++++++++-- components/diy_title/diy_title.js | 12 ++++++++++-- components/diy_title/diy_title.wxml | 17 ++++++++++++----- 8 files changed, 223 insertions(+), 136 deletions(-) create mode 100644 components/diy_nav/diy_nav_part1.wxml create mode 100644 components/diy_nav/diy_nav_part2.wxml diff --git a/components/diy_advertising/diy_advertising.wxml b/components/diy_advertising/diy_advertising.wxml index cf4c379..347c432 100644 --- a/components/diy_advertising/diy_advertising.wxml +++ b/components/diy_advertising/diy_advertising.wxml @@ -1,4 +1,4 @@ - + @@ -9,10 +9,13 @@ 建议宽度640 - - - - + + + + + + @@ -31,10 +34,14 @@ 建议宽度640 - - - + + + + + + + @@ -55,9 +62,15 @@ 300*300 - + + + + + + + @@ -76,9 +89,8 @@ 200*200 - - - + + @@ -86,7 +98,6 @@ - @@ -95,7 +106,10 @@ 300*300 - + > + + + @@ -107,9 +121,15 @@ 300*150 - + + + + + + + @@ -117,9 +137,14 @@ 300*150 - + + + + + + @@ -134,9 +159,14 @@ 200*200 - + + + + + + @@ -144,9 +174,14 @@ 400*200 - + + + + + + @@ -157,9 +192,14 @@ 400*200 - + + + + + + @@ -167,9 +207,14 @@ 200*200 - + + + + + + @@ -184,9 +229,14 @@ 300*150 - + + + + + + @@ -195,9 +245,13 @@ 300*300 - + + + + + @@ -209,10 +263,14 @@ 300*300 - - - + + + + + + + @@ -220,10 +278,14 @@ 300*150 - - - + + + + + + + @@ -233,38 +295,6 @@ - - - - - - - @@ -272,10 +302,14 @@ 200*200 - - - + + + + + + + @@ -283,9 +317,12 @@ 200*200 - - - + + + + + + @@ -298,10 +335,15 @@ 200*200 - - - + + + + + + + + @@ -309,9 +351,12 @@ 200*200 - - - + + + + + + @@ -325,10 +370,14 @@ 200*420 - - - + + + + + + + @@ -340,21 +389,20 @@ - - - - - - - - - - - - + + + + + + + + - + + + + - \ No newline at end of file + diff --git a/components/diy_advertising/diy_advertising.wxss b/components/diy_advertising/diy_advertising.wxss index 6dbb494..60f24cc 100644 --- a/components/diy_advertising/diy_advertising.wxss +++ b/components/diy_advertising/diy_advertising.wxss @@ -273,6 +273,7 @@ text-align: center; margin-right: 10rpx; margin-bottom: 8rpx; + height: 360rpx; } .s8 { diff --git a/components/diy_nav/diy_nav.wxml b/components/diy_nav/diy_nav.wxml index 7bd58f9..50e323b 100644 --- a/components/diy_nav/diy_nav.wxml +++ b/components/diy_nav/diy_nav.wxml @@ -1,26 +1,14 @@ + + - - - - - - {{item.title}} - - - - - - {{item.title}} - - - + + + + + @@ -30,24 +18,12 @@ - - - - - - - - - - - - - - - {{item.title}} - + + + + + diff --git a/components/diy_nav/diy_nav_part1.wxml b/components/diy_nav/diy_nav_part1.wxml new file mode 100644 index 0000000..596ac72 --- /dev/null +++ b/components/diy_nav/diy_nav_part1.wxml @@ -0,0 +1,23 @@ + + + + + {{item.title}} + + + + + + {{item.title}} + + + + + + + diff --git a/components/diy_nav/diy_nav_part2.wxml b/components/diy_nav/diy_nav_part2.wxml new file mode 100644 index 0000000..ef8fae0 --- /dev/null +++ b/components/diy_nav/diy_nav_part2.wxml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + {{item.title}} + diff --git a/components/diy_picMax/diy_picMax.wxml b/components/diy_picMax/diy_picMax.wxml index 8a645cd..27c644a 100644 --- a/components/diy_picMax/diy_picMax.wxml +++ b/components/diy_picMax/diy_picMax.wxml @@ -1,7 +1,14 @@ - + - + + + + + + + + diff --git a/components/diy_title/diy_title.js b/components/diy_title/diy_title.js index c932759..c6b3b9a 100644 --- a/components/diy_title/diy_title.js +++ b/components/diy_title/diy_title.js @@ -16,6 +16,14 @@ Component({ go_url:function (e) { var url=e.currentTarget.dataset.url; getApp().goto(url); - } + }, + + berror:function(e){ + var iurl=getApp().globalData.setting.imghost; + var ob={}; + var txt="object.title_img"; + ob[txt] = iurl +'/miniapp/images/logo.png'; + this.setData(ob); + } } -}) \ No newline at end of file +}) diff --git a/components/diy_title/diy_title.wxml b/components/diy_title/diy_title.wxml index f746fa6..e36c911 100644 --- a/components/diy_title/diy_title.wxml +++ b/components/diy_title/diy_title.wxml @@ -1,11 +1,18 @@ + + - + - - - {{object.title_name}} + + + {{object.title_name}} + + + + {{object.title_name}} + @@ -16,4 +23,4 @@ - \ No newline at end of file + -- libgit2 0.21.4