Commit 46d7da41aff341303b1f914151132637d65930d8
1 parent
6d37fb80
1、 我的服务顶部图片的位置的优化
2、 服务卡项滚动图片的显示的优化
Showing
3 changed files
with
15 additions
and
4 deletions
packageA/pages/cardList/cardList.wxml
| ... | ... | @@ -58,9 +58,13 @@ |
| 58 | 58 | |
| 59 | 59 | <block wx:else> |
| 60 | 60 | <view class="page"> |
| 61 | - <swiper class="swiper" autoplay indicator-dots circular easing-function="easeOutCubic"> | |
| 62 | - <swiper-item wx:for="{{banner}}"><image src="{{item.ad_code ? item.ad_code : (imghost + default_img)}}" class="swiper-img"/></swiper-item> | |
| 63 | - </swiper> | |
| 61 | + | |
| 62 | + <block wx:if="{{banner && banner.length}}"> | |
| 63 | + <swiper class="swiper" autoplay indicator-dots circular easing-function="easeOutCubic"> | |
| 64 | + <swiper-item wx:for="{{banner}}"><image src="{{item.ad_code ? item.ad_code : (imghost + default_img)}}" class="swiper-img"/></swiper-item> | |
| 65 | + </swiper> | |
| 66 | + </block> | |
| 67 | + | |
| 64 | 68 | <scroll-view class="scroll-view" scroll-y> |
| 65 | 69 | <view class="bg-white"> |
| 66 | 70 | <view class="flex pd20" wx:for="{{list.pageData}}" bindtap="go_goods" data-gid="{{item.id}}"> | ... | ... |
pages/user/my_service/i_service.js
| ... | ... | @@ -23,6 +23,7 @@ Page({ |
| 23 | 23 | ismore: 0, //是否加载完毕 |
| 24 | 24 | userinfo: null, |
| 25 | 25 | is_sub: 0, //是否重复提交预约 |
| 26 | + | |
| 26 | 27 | }, |
| 27 | 28 | |
| 28 | 29 | /** |
| ... | ... | @@ -39,6 +40,12 @@ Page({ |
| 39 | 40 | }); |
| 40 | 41 | var th = this; |
| 41 | 42 | th.query_service(); |
| 43 | + | |
| 44 | + //顶部的高度 | |
| 45 | + var h1=getApp().globalData.navBarHeight>0?getApp().globalData.navBarHeight:0; | |
| 46 | + this.setData({navBarHeight:h1}) | |
| 47 | + | |
| 48 | + | |
| 42 | 49 | }, |
| 43 | 50 | /** |
| 44 | 51 | * 生命周期函数--监听页面显示 | ... | ... |
pages/user/my_service/i_service.wxml
| ... | ... | @@ -3,7 +3,7 @@ |
| 3 | 3 | |
| 4 | 4 | <!-- 背景图片 --> |
| 5 | 5 | <view catchtap="close"> |
| 6 | - <image class="backimage" src="{{iurl}}/miniapp/images/yyservice/backimage.png" lazy-load="true"/> | |
| 6 | + <image class="backimage" style="top:{{navBarHeight}}px" mode="widthFix" src="{{iurl}}/miniapp/images/yyservice/backimage.png" lazy-load="true"/> | |
| 7 | 7 | <view class="flex jc_sb pd20"> |
| 8 | 8 | <navigator class="fs26 white" url="/packageA/pages/service_record/service_record">服务记录</navigator> |
| 9 | 9 | <navigator class="fs26 white" url="/packageG/pages/user/my_service/hist_service">历史预约</navigator> | ... | ... |