Showing
8 changed files
with
28 additions
and
9 deletions
| @@ -98,7 +98,7 @@ | @@ -98,7 +98,7 @@ | ||
| 98 | } | 98 | } |
| 99 | .activity .activity-item{ | 99 | .activity .activity-item{ |
| 100 | height: 36rpx; | 100 | height: 36rpx; |
| 101 | - padding: 0 30rpx; | 101 | + padding: 0 10rpx; |
| 102 | line-height: 36rpx; | 102 | line-height: 36rpx; |
| 103 | overflow: hidden; | 103 | overflow: hidden; |
| 104 | max-height: 36rpx; | 104 | max-height: 36rpx; |
| @@ -16,6 +16,7 @@ Component({ | @@ -16,6 +16,7 @@ Component({ | ||
| 16 | */ | 16 | */ |
| 17 | data: { | 17 | data: { |
| 18 | hidden:false, | 18 | hidden:false, |
| 19 | + a2lHeight:0, | ||
| 19 | }, | 20 | }, |
| 20 | attached(){ | 21 | attached(){ |
| 21 | this.show(); | 22 | this.show(); |
| @@ -53,5 +54,10 @@ Component({ | @@ -53,5 +54,10 @@ Component({ | ||
| 53 | url:util.http_build_query(this.data.map,'./discount'), | 54 | url:util.http_build_query(this.data.map,'./discount'), |
| 54 | }) | 55 | }) |
| 55 | }, | 56 | }, |
| 56 | - } | 57 | + setA2LHeight(h=0){ |
| 58 | + this.setData({ | ||
| 59 | + a2lHeight:h, | ||
| 60 | + }) | ||
| 61 | + } | ||
| 62 | + }, | ||
| 57 | }) | 63 | }) |
| 1 | <!--components/tips/add-to-lite.wxml--> | 1 | <!--components/tips/add-to-lite.wxml--> |
| 2 | -<cover-view class="discount" style="top:{{statusBarHeightFull+40}}px;" bindtap="gotoDiscount"> | 2 | +<cover-view class="discount" style="top:{{statusBarHeightFull+a2lHeight}}px;" bindtap="gotoDiscount"> |
| 3 | <cover-view style="position: relative;height: 100%;"> | 3 | <cover-view style="position: relative;height: 100%;"> |
| 4 | <cover-image class="discount-img" src="http://qn.colorcun.com/reserve/images/%E6%83%A0-%E5%85%A5%E5%8F%A3.png"></cover-image> | 4 | <cover-image class="discount-img" src="http://qn.colorcun.com/reserve/images/%E6%83%A0-%E5%85%A5%E5%8F%A3.png"></cover-image> |
| 5 | <cover-view style="position: relative;" wx:if="{{!hidden}}"> | 5 | <cover-view style="position: relative;" wx:if="{{!hidden}}"> |
| @@ -14,7 +14,7 @@ | @@ -14,7 +14,7 @@ | ||
| 14 | </block> | 14 | </block> |
| 15 | </swiper> | 15 | </swiper> |
| 16 | </view> | 16 | </view> |
| 17 | -<view class="pages" style="height: {{pagesHeight}};"> | 17 | +<view class="pages" style="height: {{pagesHeight}};overflow:{{pagesHeight=='auto'?'visible':'hidden'}}"> |
| 18 | <view class="seller"> | 18 | <view class="seller"> |
| 19 | <view class="base flex-vc"> | 19 | <view class="base flex-vc"> |
| 20 | <view class="name">{{seller.sellername}}</view> | 20 | <view class="name">{{seller.sellername}}</view> |
| @@ -5,7 +5,6 @@ | @@ -5,7 +5,6 @@ | ||
| 5 | font-size: 30rpx; | 5 | font-size: 30rpx; |
| 6 | color:#353535; | 6 | color:#353535; |
| 7 | padding-bottom: 200rpx; | 7 | padding-bottom: 200rpx; |
| 8 | - overflow: hidden; | ||
| 9 | } | 8 | } |
| 10 | .seller-banner{ | 9 | .seller-banner{ |
| 11 | width: 100%; | 10 | width: 100%; |
| @@ -85,15 +84,19 @@ | @@ -85,15 +84,19 @@ | ||
| 85 | 84 | ||
| 86 | .peitao .icon.meal_fee{ | 85 | .peitao .icon.meal_fee{ |
| 87 | background-image: url("http://qn.colorcun.com/reserve/images/%E6%97%A0%E9%A4%90%E4%BD%8D%E8%B4%B9.png"); | 86 | background-image: url("http://qn.colorcun.com/reserve/images/%E6%97%A0%E9%A4%90%E4%BD%8D%E8%B4%B9.png"); |
| 87 | + background-size: 24rpx 24rpx; | ||
| 88 | } | 88 | } |
| 89 | .peitao .icon.unsubscribe{ | 89 | .peitao .icon.unsubscribe{ |
| 90 | background-image: url("http://qn.colorcun.com/reserve/images/%E9%9A%8F%E6%97%B6%E9%80%80.png"); | 90 | background-image: url("http://qn.colorcun.com/reserve/images/%E9%9A%8F%E6%97%B6%E9%80%80.png"); |
| 91 | + background-size: 24rpx 24rpx; | ||
| 91 | } | 92 | } |
| 92 | .peitao .icon.minimum{ | 93 | .peitao .icon.minimum{ |
| 93 | background-image: url("http://qn.colorcun.com/reserve/images/%E6%97%A0%E6%9C%80%E4%BD%8E%E6%B6%88%E8%B4%B9.png"); | 94 | background-image: url("http://qn.colorcun.com/reserve/images/%E6%97%A0%E6%9C%80%E4%BD%8E%E6%B6%88%E8%B4%B9.png"); |
| 95 | + background-size: 24rpx 24rpx; | ||
| 94 | } | 96 | } |
| 95 | .peitao .icon.belt{ | 97 | .peitao .icon.belt{ |
| 96 | background-image: url("http://qn.colorcun.com/reserve/images/%E5%8F%AF%E8%87%AA%E5%B8%A6%E9%85%92%E6%B0%B4.png"); | 98 | background-image: url("http://qn.colorcun.com/reserve/images/%E5%8F%AF%E8%87%AA%E5%B8%A6%E9%85%92%E6%B0%B4.png"); |
| 99 | + background-size: 24rpx 24rpx; | ||
| 97 | } | 100 | } |
| 98 | 101 | ||
| 99 | 102 | ||
| @@ -256,6 +259,7 @@ | @@ -256,6 +259,7 @@ | ||
| 256 | background-color: #FEF1EA; | 259 | background-color: #FEF1EA; |
| 257 | width:110%; | 260 | width:110%; |
| 258 | margin: 0 -5%; | 261 | margin: 0 -5%; |
| 262 | + font-size: 24rpx; | ||
| 259 | } | 263 | } |
| 260 | .activity{ | 264 | .activity{ |
| 261 | width:90%; | 265 | width:90%; |
| @@ -267,7 +271,6 @@ | @@ -267,7 +271,6 @@ | ||
| 267 | } | 271 | } |
| 268 | .activity-right{ | 272 | .activity-right{ |
| 269 | min-width: 120rpx; | 273 | min-width: 120rpx; |
| 270 | - font-size: 28rpx; | ||
| 271 | color: #C28C56; | 274 | color: #C28C56; |
| 272 | } | 275 | } |
| 273 | .activity-first{ | 276 | .activity-first{ |
| @@ -569,4 +569,14 @@ Page({ | @@ -569,4 +569,14 @@ Page({ | ||
| 569 | }) | 569 | }) |
| 570 | }) | 570 | }) |
| 571 | }, | 571 | }, |
| 572 | + a2lshow(e){ | ||
| 573 | + console.log('a2lshow',e) | ||
| 574 | + let ds=this.selectComponent('#ds'); | ||
| 575 | + if(!ds){ | ||
| 576 | + return setTimeout(()=>{ | ||
| 577 | + this.a2lshow(e) | ||
| 578 | + },500) | ||
| 579 | + } | ||
| 580 | + ds.setA2LHeight(e.type=='hide'?0:40); | ||
| 581 | + }, | ||
| 572 | }) | 582 | }) |
| @@ -68,5 +68,5 @@ | @@ -68,5 +68,5 @@ | ||
| 68 | <getpos bindpos="onpos" id="getpos"></getpos> | 68 | <getpos bindpos="onpos" id="getpos"></getpos> |
| 69 | <seller-box id="seller-box" bindevent="sellerBoxEvent"></seller-box> | 69 | <seller-box id="seller-box" bindevent="sellerBoxEvent"></seller-box> |
| 70 | <cover-view class="tab-patch"></cover-view> | 70 | <cover-view class="tab-patch"></cover-view> |
| 71 | -<a2l bindshow="a2lshow" bindhide="a2lhide"></a2l> | ||
| 72 | -<ds wx:if="{{hasSetActivity}}" map="{{map}}"></ds> | 71 | +<ds wx:if="{{hasSetActivity}}" map="{{map}}" id="ds"></ds> |
| 72 | +<a2l bindshow="a2lshow" bindhide="a2lshow"></a2l> |
-
Please register or login to post a comment