123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305 |
- .index {
- background-color: #f9f9f9;
- min-height: 100vh;
- padding-bottom: 140px;
- .swiper {
- width: 100%;
- height: 730px;
- .swiper-img {
- width: 100%;
- height: 100%;
- }
- }
- // 商品详情
- .product-info {
- padding: 17px;
- border-radius: 20px;
- background-color: #fff;
- margin: 16px 16px 0 16px;
- .product-name {
- font-size: 32px;
- line-height: 46px;
- font-weight: 700;
- .self-tag {
- display: inline-block;
- padding: 2px 8px;
- background: #FFD43A;
- border-radius: 4px;
- color: #803A04;
- font-size: 24px;
- line-height: 28px;
- margin-right: 8px;
- vertical-align: middle;
- }
- }
- .price-tag-row {
- margin-top: 16px;
- display: flex;
- justify-content: space-between;
- align-items: center;
- .price-box {
- .current-price {
- font-size: 36px;
- color: #FF1D17;
- margin-right: 7px;
- line-height: 35px;
- .currency {
- font-size: 24px;
- }
- }
- .original-price {
- font-size: 26px;
- line-height: 38px;
- color: #ABABAB;
- text-decoration: line-through;
- }
- }
- .tag-box {
- .tag {
- padding: 2px 17px;
- border-radius: 20px;
- font-size: 24px;
- line-height: 38px;
- border: 1px solid #FF1D17;
- color: #FF1D17;
- }
- }
- }
- .divider {
- height: 1px;
- background: #D8D8D8;
- margin: 12px 0;
- }
- .product-number-row {
- display: flex;
- align-items: center;
- .number-label {
- color: #ABABAB;
- font-size: 26px;
- margin-right: 10px;
- }
- .copy-btn {
- color: #FF311B;
- font-size: 28px;
- }
- }
- }
- // 商品标签
- .product-tag-row {
- margin: 20px 16px 0 16px;
- display: flex;
- justify-content: space-between;
- padding: 22px 17px;
- box-sizing: border-box;
- background-color: #fff;
- border-radius: 20px;
- .tag-item {
- display: flex;
- align-items: center;
- .tag-text {
- font-size: 24px;
- color: #666666;
- line-height: 35px;
- }
- image {
- width: 24px;
- height: 24px;
- margin-right: 4px;
- }
- }
- }
- // 产品详情
- .product-detail {
- margin: 20px 16px 0 16px;
- padding: 22px 17px;
- box-sizing: border-box;
- background-color: #fff;
- border-radius: 20px;
- .title {
- font-size: 32px;
- line-height: 40px;
- color: #000000;
- font-weight: 700;
- text-align: center;
- width: 100%;
- }
- }
- // 猜你喜欢
- .guess-you-like {
- display: flex;
- align-items: center;
- justify-content: center;
- padding: 20px 0;
- margin: 20px 16px 0 16px;
- background-color: #fff;
- border-radius: 20px;
- image {
- width: 34px;
- height: 34px;
- margin-right: 5px;
- }
- .title {
- color: #000000;
- line-height: 36px;
- font-size: 31px;
- font-weight: 500;
- }
- }
- .share-active{
- justify-content: center !important;
- align-items: center !important;
- }
- // 底部购买模块
- .bottom-buy {
- width: 100%;
- background-color: #fff;
- height: 126px;
- padding: 19px 35px 19px 44px;
- box-sizing: border-box;
- position: fixed;
- bottom: 0;
- display: flex;
- justify-content: space-between;
- align-items: center;
- .bottom-buy-left {
- display: flex;
- flex-direction: column;
- image {
- width: 38px;
- height: 36px;
- margin-bottom: 7px;
- }
- .bottom-buy-text {
- font-size: 22px;
- line-height: 32px;
- color: #000000;
- }
- }
- .bottom-buy-right {
- width: 576px;
- height: 100%;
- display: flex;
- border-radius: 60px;
- overflow: hidden;
- .bottom-buy-right-self,
- .bottom-buy-right-share {
- line-height: 43px;
- font-size: 30px;
- width: 50%;
- display: flex;
- justify-content: center;
- align-items: center;
- image {
- margin-right: 9px;
- }
- }
- .bottom-buy-right-self {
- background-color: #fbe00f;
- color: #000000;
- display: flex;
- justify-content: center;
- align-items: center;
- image {
- width: 47px;
- height: 46px;
- }
- }
- .bottom-buy-right-share {
- background-color: #ff1c14;
- color: #fff;
- image {
- width: 45px;
- height: 31px;
- }
- }
- }
- .bottom-buy-right-btn {
- width: 586px;
- height: 100%;
- background: linear-gradient(90deg, #ff881b 0%, #fe6234 100%);
- border-radius: 60px;
- display: flex;
- justify-content: center;
- align-items: center;
- .bottom-buy-text {
- color: #fff;
- font-size: 28px;
- line-height: 41px;
- font-weight: 700;
- }
- }
- }
- .back-btn {
- position: fixed;
- left: 20px;
- top: calc(20px + var(--taro-navigationBarHeight));
- width: 72px;
- height: 72px;
- padding-right: 6px;
- padding-top: 4px;
- box-sizing: border-box;
- background: rgba(255, 255, 255, 0.5);
- border-radius: 50%;
- display: flex;
- align-items: center;
- justify-content: center;
- z-index: 100;
- }
- }
- // 清除Button默认样式
- // Button {
- // padding: 0;
- // margin: 0;
- // background: none;
- // border: none;
- // line-height: normal;
- // height: 100%;
- // width: 100%;
- // display: flex;
- // justify-content: center;
- // align-items: center;
- // &::after {
- // border: none;
- // }
- // }
- .button-hover {
- background-color: transparent !important;
- /* 移除背景高亮 */
- box-shadow: none !important;
- /* 移除可能的阴影 */
- }
|