Commit 66fc6d1f02c11f324d06d83de2099a68d192f627

Authored by vking
1 parent e7ea9c01

discount and activity

@@ -21,7 +21,7 @@ @@ -21,7 +21,7 @@
21 <view class="discount-content"> 21 <view class="discount-content">
22 <view class="activity"> 22 <view class="activity">
23 <block wx:for="{{seller.activity}}" wx:key="activity"> 23 <block wx:for="{{seller.activity}}" wx:key="activity">
24 - <view class="flex-ll activity-item" 24 + <view class="flex-lr activity-item"
25 style="align-items: flex-start"> 25 style="align-items: flex-start">
26 <view class="activity-left">{{util.activityName(item.type)}}</view> 26 <view class="activity-left">{{util.activityName(item.type)}}</view>
27 <view class="activity-right"> 27 <view class="activity-right">
@@ -30,7 +30,7 @@ @@ -30,7 +30,7 @@
30 </view> 30 </view>
31 </view> 31 </view>
32 </block> 32 </block>
33 - <view class="flex-ll activity-item" wx:if="{{seller.receive_condition_2}}" 33 + <view class="flex-lr activity-item" wx:if="{{seller.receive_condition_2}}"
34 style="align-items: flex-start"> 34 style="align-items: flex-start">
35 <view class="activity-left">消费返</view> 35 <view class="activity-left">消费返</view>
36 <view class="activity-right"> 36 <view class="activity-right">
@@ -38,7 +38,7 @@ @@ -38,7 +38,7 @@
38 <view class="activity-right-info">注:仅可以线上买单时使用</view> 38 <view class="activity-right-info">注:仅可以线上买单时使用</view>
39 </view> 39 </view>
40 </view> 40 </view>
41 - <view class="flex-ll activity-item" wx:if="{{seller.isopen_md==1}}" 41 + <view class="flex-lr activity-item" wx:if="{{seller.isopen_md==1}}"
42 style="align-items: flex-start"> 42 style="align-items: flex-start">
43 <view class="activity-left">平台红包</view> 43 <view class="activity-left">平台红包</view>
44 <view class="activity-right">可叠加使用平台红包</view> 44 <view class="activity-right">可叠加使用平台红包</view>
@@ -15,6 +15,7 @@ @@ -15,6 +15,7 @@
15 .discount-content{ 15 .discount-content{
16 max-height: 792rpx; 16 max-height: 792rpx;
17 overflow-y: auto; 17 overflow-y: auto;
  18 + overflow-x: visible;
18 } 19 }
19 .discount.discountHide{ 20 .discount.discountHide{
20 animation: discountHide 0.3s; 21 animation: discountHide 0.3s;
@@ -36,7 +37,7 @@ @@ -36,7 +37,7 @@
36 height: 29rpx; 37 height: 29rpx;
37 position: absolute; 38 position: absolute;
38 right:0; 39 right:0;
39 - top:6rpx; 40 + top:28rpx;
40 } 41 }
41 .activity{ 42 .activity{
42 margin-top: 40rpx; 43 margin-top: 40rpx;
@@ -58,7 +59,10 @@ @@ -58,7 +59,10 @@
58 border-radius: 10rpx; 59 border-radius: 10rpx;
59 60
60 box-sizing: border-box; 61 box-sizing: border-box;
61 - padding: 26rpx 40rpx; 62 + padding: 24rpx 40rpx;
  63 +
  64 + width: calc(100% - 20rpx);
  65 + margin-left: 10rpx;
62 } 66 }
63 .activity-left{ 67 .activity-left{
64 height:28rpx; 68 height:28rpx;
@@ -73,14 +77,15 @@ @@ -73,14 +77,15 @@
73 /*min-width: 60rpx;*/ 77 /*min-width: 60rpx;*/
74 white-space:nowrap; 78 white-space:nowrap;
75 text-align: center; 79 text-align: center;
  80 + position: relative;
76 } 81 }
77 .activity-right{ 82 .activity-right{
78 - font-size:26rpx;  
79 - font-family:PingFangSC-Medium,PingFang SC; 83 + font-size: 28rpx;
  84 + font-family: PingFangSC-Medium, PingFang SC;
80 font-weight:500; 85 font-weight:500;
81 color:rgba(53,53,53,1); 86 color:rgba(53,53,53,1);
82 - line-height:36rpx;  
83 - margin-left: 40rpx; 87 + line-height: 40rpx;
  88 + width: calc(100% - 112rpx);
84 } 89 }
85 .mycards-txt{ 90 .mycards-txt{
86 height:42rpx; 91 height:42rpx;
@@ -267,5 +272,5 @@ @@ -267,5 +272,5 @@
267 font-weight: 400; 272 font-weight: 400;
268 color: #999999; 273 color: #999999;
269 line-height: 34rpx; 274 line-height: 34rpx;
270 - margin-top: 10rpx; 275 + margin-top: 8rpx;
271 } 276 }
1 <!--pages/reserve/detail.wxml--> 1 <!--pages/reserve/detail.wxml-->
2 <include src="detail.skeleton.wxml" wx:if="{{!seller}}"/> 2 <include src="detail.skeleton.wxml" wx:if="{{!seller}}"/>
3 -<layout wx:else="" style="position: {{hasDisplayDiscount?'fixed':''}};"> 3 +<layout wx:else="" style="{{hasDisplayDiscount?'position: fixed;width:100vw;height:100vk;':''}}">
4 <nav hasHome>{{seller.sellername}}</nav> 4 <nav hasHome>{{seller.sellername}}</nav>
5 <!-- 包间预定 --> 5 <!-- 包间预定 -->
6 <view class="tabs flex-lr" wx:if="{{hasOnlineReserve}}"> 6 <view class="tabs flex-lr" wx:if="{{hasOnlineReserve}}">