From 7117581f782e8f0f1b307430ad4acfaf7dec2444 Mon Sep 17 00:00:00 2001 From: meo <18801474720@163.com> Date: Wed, 22 May 2019 14:43:31 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=8B=BC=E5=9B=A2][=E4=BF=AE=E6=94=B9]:[?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=A4=9A=E5=9B=BE]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/searchbar/detail/index.wxss | 7 ++-- pages/spellGroup/mySpellGroup/index.js | 13 ++++++ pages/spellGroup/mySpellGroup/index.wxml | 18 ++++++++- pages/spellGroup/mySpellGroup/index.wxss | 50 ++++++++++++++++++++++++ 4 files changed, 83 insertions(+), 5 deletions(-) diff --git a/pages/index/searchbar/detail/index.wxss b/pages/index/searchbar/detail/index.wxss index 8581566..ff7af68 100644 --- a/pages/index/searchbar/detail/index.wxss +++ b/pages/index/searchbar/detail/index.wxss @@ -280,7 +280,7 @@ .modal-content { width: 540rpx; - height: 260rpx; + height: 233rpx; line-height: 60rpx; overflow: hidden; position: fixed; @@ -302,14 +302,15 @@ .modal-content view>text { color: #000; display: block; + font-size: 30rpx; height: 80rpx; line-height: 80rpx; } .modal-content view>image { margin-top: 30rpx; - width: 100rpx; - height: 100rpx; + width: 90rpx; + height: 90rpx; } /*分享海报样式*/ diff --git a/pages/spellGroup/mySpellGroup/index.js b/pages/spellGroup/mySpellGroup/index.js index ebe979d..66effbb 100644 --- a/pages/spellGroup/mySpellGroup/index.js +++ b/pages/spellGroup/mySpellGroup/index.js @@ -23,6 +23,9 @@ Page({ hour: "00", min: "00", sec: "00", + detailPicture: [], + coverPicture: [], + swiperCurrent: 0, showTime: true }, @@ -184,6 +187,16 @@ Page({ }).then(res => { wx.stopPullDownRefresh(); let data = res.data; + if (res && res.data && res.data.detailPicture) { + that.setData({ + detailPicture: JSON.parse(res.data.detailPicture) + }) + } + if (res && res.data && res.data.coverPicture) { + that.setData({ + coverPicture: JSON.parse(res.data.coverPicture) + }) + } wx.setNavigationBarTitle({ title: res.data.title }) diff --git a/pages/spellGroup/mySpellGroup/index.wxml b/pages/spellGroup/mySpellGroup/index.wxml index 2b9ee87..cfcf919 100644 --- a/pages/spellGroup/mySpellGroup/index.wxml +++ b/pages/spellGroup/mySpellGroup/index.wxml @@ -1,7 +1,18 @@ - - + {{data.title}} @@ -57,6 +68,9 @@ {{data.remark}} + + +
diff --git a/pages/spellGroup/mySpellGroup/index.wxss b/pages/spellGroup/mySpellGroup/index.wxss index b1ea70e..0005de9 100644 --- a/pages/spellGroup/mySpellGroup/index.wxss +++ b/pages/spellGroup/mySpellGroup/index.wxss @@ -448,4 +448,54 @@ button::after{ border: none; } color: #919191; letter-spacing: 0; line-height: 42rpx; +} + +.banner { + position: relative; + width: 750rpx; + height: 534.5rpx; +} + +.banner swiper { + width: 750rpx; + height: 534.5rpx; +} + +.banner image { + width: 100%; + height: 100%; +} + +.dots { + position: absolute; + left: 0; + right: 0; + bottom: 50rpx; + display: flex; + justify-content: center; +} + +.dot { + margin: 0 8rpx; + width: 14rpx; + height: 14rpx; + background: #fff; + border-radius: 8rpx; + transition: all 0.6s; +} + +.dot.active { + width: 24rpx; + background: #f80; +} + +.detailImg { + width: 92%; + margin: 10rpx auto 0; +} + +.detailImg image { + display: block; + width: 100%; + margin-bottom: 20rpx; } \ No newline at end of file