Commit 56d99bb76efee0fdeb679575aca0684a5bef5176
1 parent
1705c244
我的服务项目立即购买界面优化
Showing
2 changed files
with
20 additions
and
6 deletions
packageA/pages/goodsInfo/goodsInfo.wxml
@@ -245,7 +245,7 @@ | @@ -245,7 +245,7 @@ | ||
245 | <view class="b_num"> | 245 | <view class="b_num"> |
246 | <view>购买数量</view> | 246 | <view>购买数量</view> |
247 | <view class="count"> | 247 | <view class="count"> |
248 | - <view bindtap="subCartNum" class="sub">-</view> | 248 | + <view bindtap="subCartNum" class="sub {{goodsInputNum <= 1 ? 'active':''}}">-</view> |
249 | <input bindblur="inputCartNum" type="number" value="{{goodsInputNum}}"></input> | 249 | <input bindblur="inputCartNum" type="number" value="{{goodsInputNum}}"></input> |
250 | <view bindtap="addCartNum" class="add">+</view> | 250 | <view bindtap="addCartNum" class="add">+</view> |
251 | </view> | 251 | </view> |
packageA/pages/goodsInfo/goodsInfo.wxss
@@ -571,7 +571,7 @@ border-radius: 0 56rpx 55rpx 0; | @@ -571,7 +571,7 @@ border-radius: 0 56rpx 55rpx 0; | ||
571 | padding: 30rpx 0 20rpx; | 571 | padding: 30rpx 0 20rpx; |
572 | /* float: left; */ | 572 | /* float: left; */ |
573 | width: 100%; | 573 | width: 100%; |
574 | - border-bottom:2rpx solid #eee; | 574 | + /* border-bottom:2rpx solid #eee; */ |
575 | } | 575 | } |
576 | 576 | ||
577 | .spec-img { | 577 | .spec-img { |
@@ -620,14 +620,14 @@ border-radius: 0 56rpx 55rpx 0; | @@ -620,14 +620,14 @@ border-radius: 0 56rpx 55rpx 0; | ||
620 | display: flex;font-size: 30rpx; color: #333; | 620 | display: flex;font-size: 30rpx; color: #333; |
621 | justify-content: space-between; | 621 | justify-content: space-between; |
622 | align-items: center; | 622 | align-items: center; |
623 | - padding: 20rpx 0; | 623 | + padding: 20rpx; |
624 | } | 624 | } |
625 | 625 | ||
626 | .count { | 626 | .count { |
627 | /* position: fixed; */ | 627 | /* position: fixed; */ |
628 | display: flex; | 628 | display: flex; |
629 | height: 50rpx; | 629 | height: 50rpx; |
630 | - border: 1rpx solid #000; | 630 | + /* border: 1rpx solid #000; */ |
631 | font-size: 28rpx; | 631 | font-size: 28rpx; |
632 | right: 30rpx; | 632 | right: 30rpx; |
633 | } | 633 | } |
@@ -645,15 +645,29 @@ border-radius: 0 56rpx 55rpx 0; | @@ -645,15 +645,29 @@ border-radius: 0 56rpx 55rpx 0; | ||
645 | } | 645 | } |
646 | .spec_bt.act{background: #d60021;color: #fff;border: 1rpx solid #d60021;} | 646 | .spec_bt.act{background: #d60021;color: #fff;border: 1rpx solid #d60021;} |
647 | .sub { | 647 | .sub { |
648 | - border-right: 1px solid #000; | 648 | + /* border-right: 1px solid #000; */ |
649 | } | 649 | } |
650 | .sub.active { | 650 | .sub.active { |
651 | /* background-color: #ddd; */ | 651 | /* background-color: #ddd; */ |
652 | color: #ccc; | 652 | color: #ccc; |
653 | } | 653 | } |
654 | 654 | ||
655 | +.sub, .add, .count>input { | ||
656 | + /* border-right: 1px solid #000; */ | ||
657 | + background-color: #f8f8f8; | ||
658 | + border-radius: 8rpx; | ||
659 | +} | ||
660 | +.sub.active { | ||
661 | + /* background-color: #ddd; */ | ||
662 | + color: #ccc; | ||
663 | +} | ||
664 | +.count>input { | ||
665 | + margin: 0 10rpx; | ||
666 | + line-height: normal; | ||
667 | +} | ||
668 | + | ||
655 | .add { | 669 | .add { |
656 | - border-left: 1px solid #000; | 670 | + /* border-left: 1px solid #000; */ |
657 | } | 671 | } |
658 | 672 | ||
659 | .spec-btn { | 673 | .spec-btn { |