Showing
6 changed files
with
41 additions
and
43 deletions
| @@ -28,6 +28,7 @@ Component({ | @@ -28,6 +28,7 @@ Component({ | ||
| 28 | App.Customer.SetCardRel({ | 28 | App.Customer.SetCardRel({ |
| 29 | sid:this.data.seller.id | 29 | sid:this.data.seller.id |
| 30 | }).then(res=>{ | 30 | }).then(res=>{ |
| 31 | + if(!res.data) return; | ||
| 31 | this.setData({ | 32 | this.setData({ |
| 32 | red_envelopes_price:res.data.red_envelopes_price, | 33 | red_envelopes_price:res.data.red_envelopes_price, |
| 33 | money:res.data.money, | 34 | money:res.data.money, |
| @@ -188,4 +188,38 @@ | @@ -188,4 +188,38 @@ | ||
| 188 | content: "红包待用"; | 188 | content: "红包待用"; |
| 189 | text-indent: -4rpx; | 189 | text-indent: -4rpx; |
| 190 | display: inline-block; | 190 | display: inline-block; |
| 191 | +} | ||
| 192 | + | ||
| 193 | +.money-tips{ | ||
| 194 | + min-width:184rpx; | ||
| 195 | + height:34rpx; | ||
| 196 | + padding: 0 20rpx; | ||
| 197 | + background:rgba(240,85,34,1); | ||
| 198 | + border-radius:16rpx 16rpx 16rpx 0rpx; | ||
| 199 | + | ||
| 200 | + font-size:20rpx; | ||
| 201 | + font-weight:500; | ||
| 202 | + color:rgba(255,255,255,1); | ||
| 203 | + line-height:34rpx; | ||
| 204 | + | ||
| 205 | + position: absolute; | ||
| 206 | + top:-28rpx; | ||
| 207 | + right:-16rpx; | ||
| 208 | +} | ||
| 209 | + | ||
| 210 | +.checkout-button-money-tips{ | ||
| 211 | + min-width:184rpx; | ||
| 212 | + padding: 0 20rpx; | ||
| 213 | + height:34rpx; | ||
| 214 | + background:rgba(240,85,34,1); | ||
| 215 | + border-radius:16rpx 16rpx 16rpx 0rpx; | ||
| 216 | + | ||
| 217 | + font-size:20rpx; | ||
| 218 | + font-weight:500; | ||
| 219 | + color:rgba(255,255,255,1); | ||
| 220 | + line-height:34rpx; | ||
| 221 | + | ||
| 222 | + position: absolute; | ||
| 223 | + top:-28rpx; | ||
| 224 | + right:40rpx; | ||
| 191 | } | 225 | } |
| @@ -133,10 +133,8 @@ | @@ -133,10 +133,8 @@ | ||
| 133 | <subscribe ids="{{[1]}}" bindevent="checkoutInit"> | 133 | <subscribe ids="{{[1]}}" bindevent="checkoutInit"> |
| 134 | <view class="checkout-button"> | 134 | <view class="checkout-button"> |
| 135 | 获取消费金额 | 135 | 获取消费金额 |
| 136 | - <view class="checkout-button-money-tips"> | ||
| 137 | - <seller-discount id="seller-discount" seller="{{seller}}" wx:if="{{seller}}" | ||
| 138 | - cla="detail_owner"></seller-discount> | ||
| 139 | - </view> | 136 | + <seller-discount id="seller-discount" seller="{{seller}}" wx:if="{{seller}}" |
| 137 | + cla="checkout-button-money-tips detail_owner"></seller-discount> | ||
| 140 | </view> | 138 | </view> |
| 141 | </subscribe> | 139 | </subscribe> |
| 142 | </view> | 140 | </view> |
| @@ -137,22 +137,6 @@ checkbox .wx-checkbox-input.wx-checkbox-input-checked:before{ | @@ -137,22 +137,6 @@ checkbox .wx-checkbox-input.wx-checkbox-input-checked:before{ | ||
| 137 | content: ""; | 137 | content: ""; |
| 138 | } | 138 | } |
| 139 | 139 | ||
| 140 | -.checkout-button-money-tips{ | ||
| 141 | - min-width:184rpx; | ||
| 142 | - padding: 0 20rpx; | ||
| 143 | - height:34rpx; | ||
| 144 | - background:rgba(240,85,34,1); | ||
| 145 | - border-radius:16rpx 16rpx 16rpx 0rpx; | ||
| 146 | - | ||
| 147 | - font-size:20rpx; | ||
| 148 | - font-weight:500; | ||
| 149 | - color:rgba(255,255,255,1); | ||
| 150 | - line-height:34rpx; | ||
| 151 | - | ||
| 152 | - position: absolute; | ||
| 153 | - top:-28rpx; | ||
| 154 | - right:40rpx; | ||
| 155 | -} | ||
| 156 | .waiting-txt{ | 140 | .waiting-txt{ |
| 157 | margin-top: 32rpx; | 141 | margin-top: 32rpx; |
| 158 | height:50rpx; | 142 | height:50rpx; |
| @@ -50,10 +50,8 @@ | @@ -50,10 +50,8 @@ | ||
| 50 | class="share-but-view"> | 50 | class="share-but-view"> |
| 51 | <view class="share-but Regular"> | 51 | <view class="share-but Regular"> |
| 52 | 提前买单 | 52 | 提前买单 |
| 53 | - <view class="money-tips"> | ||
| 54 | - <seller-discount id="seller-discount" seller="{{detail.seller}}" wx:if="{{detail.seller}}" | ||
| 55 | - cla="detail_owner"></seller-discount> | ||
| 56 | - </view> | 53 | + <seller-discount id="seller-discount" seller="{{detail.seller}}" wx:if="{{detail.seller}}" |
| 54 | + cla="money-tips detail_owner"></seller-discount> | ||
| 57 | </view> | 55 | </view> |
| 58 | </userinfo> | 56 | </userinfo> |
| 59 | </view> | 57 | </view> |
| @@ -123,10 +121,8 @@ | @@ -123,10 +121,8 @@ | ||
| 123 | <view class="checkout-icon checkout-icon-{{checkout.status}}" wx:if="{{checkout}}"></view> | 121 | <view class="checkout-icon checkout-icon-{{checkout.status}}" wx:if="{{checkout}}"></view> |
| 124 | 提前买单 | 122 | 提前买单 |
| 125 | </view> | 123 | </view> |
| 126 | - <view class="money-tips"> | ||
| 127 | - <seller-discount id="seller-discount" seller="{{detail.seller}}" wx:if="{{detail.seller}}" | ||
| 128 | - cla="detail_owner"></seller-discount> | ||
| 129 | - </view> | 124 | + <seller-discount id="seller-discount" seller="{{detail.seller}}" wx:if="{{detail.seller}}" |
| 125 | + cla="money-tips detail_owner"></seller-discount> | ||
| 130 | </view> | 126 | </view> |
| 131 | </userinfo> | 127 | </userinfo> |
| 132 | </view> | 128 | </view> |
| @@ -159,22 +159,7 @@ | @@ -159,22 +159,7 @@ | ||
| 159 | .share-view.subscribe{ | 159 | .share-view.subscribe{ |
| 160 | margin-top: 24rpx; | 160 | margin-top: 24rpx; |
| 161 | } | 161 | } |
| 162 | -.money-tips{ | ||
| 163 | - min-width:184rpx; | ||
| 164 | - height:34rpx; | ||
| 165 | - padding: 0 20rpx; | ||
| 166 | - background:rgba(240,85,34,1); | ||
| 167 | - border-radius:16rpx 16rpx 16rpx 0rpx; | ||
| 168 | 162 | ||
| 169 | - font-size:20rpx; | ||
| 170 | - font-weight:500; | ||
| 171 | - color:rgba(255,255,255,1); | ||
| 172 | - line-height:34rpx; | ||
| 173 | - | ||
| 174 | - position: absolute; | ||
| 175 | - top:-28rpx; | ||
| 176 | - right:-16rpx; | ||
| 177 | -} | ||
| 178 | .checkout-icon{ | 163 | .checkout-icon{ |
| 179 | width: 32rpx; | 164 | width: 32rpx; |
| 180 | height: 32rpx; | 165 | height: 32rpx; |
-
Please register or login to post a comment