|
@@ -20,5 +20,227 @@
|
|
|
}
|
|
|
|
|
|
.main-information {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
width: 658rpx;
|
|
|
+ padding: 32rpx 0 0 0;
|
|
|
+ margin: 0 auto;
|
|
|
+
|
|
|
+ .tag-list {
|
|
|
+ display: flex;
|
|
|
+ flex-flow: row wrap;
|
|
|
+ align-items: center;
|
|
|
+
|
|
|
+ text {
|
|
|
+ min-width: 64rpx;
|
|
|
+ height: 34rpx;
|
|
|
+ border-radius: 10rpx;
|
|
|
+ background: rgba(76, 173, 115, 0.2);
|
|
|
+ line-height: 34rpx;
|
|
|
+ font-size: 20rpx;
|
|
|
+ color: rgba(76, 173, 115, 1);
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .name {
|
|
|
+ margin-top: 30rpx;
|
|
|
+ font-size: 48rpx;
|
|
|
+ color: rgba(51, 51, 51, 1)
|
|
|
+ }
|
|
|
+
|
|
|
+ .unit-price {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ margin-top: 30rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .price {
|
|
|
+ font-size: 36rpx;
|
|
|
+ line-height: 42rpx;
|
|
|
+ color: rgba(255, 76, 44, 1);
|
|
|
+ }
|
|
|
+
|
|
|
+ .unit {
|
|
|
+ margin-left: 28rpx;
|
|
|
+ font-size: 28rpx;
|
|
|
+ color: rgba(153, 153, 153, 1);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+.nav-wrap {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ width: 100%;
|
|
|
+ border-bottom: 1rpx solid rgba(189, 189, 189, 1);
|
|
|
+}
|
|
|
+
|
|
|
+.nav-wrap view {
|
|
|
+ flex: 1;
|
|
|
+ padding: 44rpx 0 24rpx;
|
|
|
+ line-height: 40rpx;
|
|
|
+ font-size: 28rpx;
|
|
|
+ color: rgba(51, 51, 51, 1);
|
|
|
+ text-align: center;
|
|
|
+}
|
|
|
+
|
|
|
+.nav-wrap view.active {
|
|
|
+ position: relative;
|
|
|
+ left: 0;
|
|
|
+ top: 0;
|
|
|
+ color: rgba(145, 179, 121, 1);
|
|
|
+}
|
|
|
+
|
|
|
+.nav-wrap view.active:after {
|
|
|
+ position: absolute;
|
|
|
+ left: 50%;
|
|
|
+ bottom: 0;
|
|
|
+ content: '';
|
|
|
+ width: 162rpx;
|
|
|
+ height: 8rpx;
|
|
|
+ border-radius: 40rpx 40rpx 0 0;
|
|
|
+ background: rgba(145, 179, 121, 1);
|
|
|
+ transform: translateX(-50%);
|
|
|
+}
|
|
|
+
|
|
|
+.business-info {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ padding: 44rpx 0 276rpx 46rpx;
|
|
|
+
|
|
|
+ .introduce {
|
|
|
+ width: 636rpx;
|
|
|
+ line-height: 40rpx;
|
|
|
+ font-size: 26rpx;
|
|
|
+ color: rgba(153, 153, 153, 1);
|
|
|
+ word-break: break-all;
|
|
|
+ word-wrap: break-word;
|
|
|
+ }
|
|
|
+
|
|
|
+ .subtitle {
|
|
|
+ margin-top: 36rpx;
|
|
|
+ font-size: 28rpx;
|
|
|
+ line-height: 36rpx;
|
|
|
+ color: rgba(51, 51, 51, 1);
|
|
|
+ }
|
|
|
+
|
|
|
+ .date {
|
|
|
+ margin-top: 26rpx;
|
|
|
+ font-size: 28rpx;
|
|
|
+ line-height: 36rpx;
|
|
|
+ color: rgba(153, 153, 153, 1);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.goods-scroll {
|
|
|
+ width: 100%;
|
|
|
+ height: 136px;
|
|
|
+ white-space: nowrap;
|
|
|
+ font-size: 0;
|
|
|
+
|
|
|
+ .item {
|
|
|
+ display: inline-block;
|
|
|
+ padding-left: 20rpx;
|
|
|
+
|
|
|
+ &:nth-of-type(1) {
|
|
|
+ padding-left: 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ & > view {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ width: 412rpx;
|
|
|
+ border-radius: 20rpx;
|
|
|
+ background: rgba(255, 255, 255, 1);
|
|
|
+ box-shadow: 0rpx 6rpx 10rpx 4rpx rgba(0, 0, 0, 0.07);
|
|
|
+ overflow: hidden;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .photo {
|
|
|
+ width: 168rpx;
|
|
|
+ height: 126rpx;
|
|
|
+
|
|
|
+ image {
|
|
|
+ display: block;
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ overflow: hidden;
|
|
|
+ background: pink;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .info {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ margin-left: 18rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .name {
|
|
|
+ font-size: 26rpx;
|
|
|
+ font-weight: 700;
|
|
|
+ line-height: 36rpx;
|
|
|
+ color: rgba(51, 51, 51, 1);
|
|
|
+ }
|
|
|
+
|
|
|
+ .unit-price {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ margin-top: 2rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .price {
|
|
|
+ font-size: 22rpx;
|
|
|
+ line-height: 42rpx;
|
|
|
+ font-weight: 700;
|
|
|
+ color: rgba(255, 76, 44, 1);
|
|
|
+ }
|
|
|
+
|
|
|
+ .unit {
|
|
|
+ margin-left: 10rpx;
|
|
|
+ font-size: 16rpx;
|
|
|
+ line-height: 26rpx;
|
|
|
+ color: rgba(153, 153, 153, 1);
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.fixed-bottom {
|
|
|
+ position: fixed;
|
|
|
+ left: 0;
|
|
|
+ right: 0;
|
|
|
+ bottom: 46rpx;
|
|
|
+ z-index: 99;
|
|
|
+
|
|
|
+ &:after {
|
|
|
+ display: block;
|
|
|
+ content: '';
|
|
|
+ width: 100%;
|
|
|
+ padding-bottom: constant(safe-area-inset-bottom);
|
|
|
+ padding-bottom: env(safe-area-inset-bottom);
|
|
|
+ }
|
|
|
+
|
|
|
+ & > view {
|
|
|
+ display: flex;
|
|
|
+ justify-content: flex-end;
|
|
|
+ align-items: center;
|
|
|
+ padding: 0 30rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ button {
|
|
|
+ width: 328rpx;
|
|
|
+ height: 98rpx;
|
|
|
+ border-radius: 88rpx;
|
|
|
+ box-shadow: 0 6rpx 10rpx 4rpx rgba(0, 0, 0, 0.07);
|
|
|
+ font-size: 32rpx;
|
|
|
+ font-weight: 500;
|
|
|
+
|
|
|
+ &:nth-of-type(2) {
|
|
|
+ margin-left: 17rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ button[type='primary'] {
|
|
|
+ background-color: rgba(145, 179, 121, 1);
|
|
|
+ }
|
|
|
}
|