From ebeaae192707bf0d683333ee6801040255123d91 Mon Sep 17 00:00:00 2001 From: yanwenlong Date: Sun, 17 Sep 2023 00:26:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E8=AF=A6=E6=83=85=E5=B8=83?= =?UTF-8?q?=E5=B1=80=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/bookShop/commodityDetail copy.vue | 630 ++++++++++++++++++++++++ pages/bookShop/commodityDetail.vue | 259 ++++++---- 2 files changed, 801 insertions(+), 88 deletions(-) create mode 100644 pages/bookShop/commodityDetail copy.vue diff --git a/pages/bookShop/commodityDetail copy.vue b/pages/bookShop/commodityDetail copy.vue new file mode 100644 index 0000000..ee206b2 --- /dev/null +++ b/pages/bookShop/commodityDetail copy.vue @@ -0,0 +1,630 @@ + + + + diff --git a/pages/bookShop/commodityDetail.vue b/pages/bookShop/commodityDetail.vue index ee206b2..9bcf118 100644 --- a/pages/bookShop/commodityDetail.vue +++ b/pages/bookShop/commodityDetail.vue @@ -8,101 +8,147 @@ - + - {{productInfo.price}} - 原价¥{{productInfo.activityPrice}} + {{productInfo.price}} + 原价{{productInfo.activityPrice}} {{productInfo.productName}} (无货) - 已售{{productInfo.sumSales}} + 已售{{productInfo.sumSales}} + + + 商品包含 + + + + + + + + + + {{item.name}} + + + + + 暂无评价~ + + + - + - -

赠送听书权益

- - {{item.name}} - - + + + + + 赠送听书权益 + + + + + + {{item.name}} + + + + + + 商品详情 + + + + 书名:{{productInfo.productName}} + + + 作者:{{productInfo.author}} + + + 出版社:{{productInfo.publisher}} + + + 出版时间:{{ productInfo.pubDate | formatDate }} + + + 开本:{{productInfo.format}} + 页数:{{productInfo.pageNum}} + + + 内文用纸材质:{{productInfo.quality}} + + + + + + + - - - 书名:{{productInfo.productName}} - - - 作者:{{productInfo.author}} - - - - 出版社:{{productInfo.publisher}} - 出版时间:{{ productInfo.pubDate | formatDate }} - - - 开本:{{productInfo.format}} - 页数:{{productInfo.pageNum}} - - - 内文用纸材质:{{productInfo.quality}} - - + - - - - + + + 评价({{commentsList?commentsList.length:0}}) + - - - - - - - - {{item.name}} - - - + + + + + {{item.name}} + + - - + + +
-
{{item.createdate}} -
-
- - -
追评内容:
- - - - {{item.followUpdate}} - + + + +
追评内容:
+ + + + {{item.followUpdate}} + +
-
暂无评价~ @@ -478,31 +524,62 @@ formatRichText (html) { //控制小程序中图片大小 h4{color: #5fb386; font-size: 40rpx; margin-bottom: 20rpx;} text{color: #444; font-size: 32rpx; padding-left: 20rpx;} } - .pjimgs{ margin: 10px 0;flex-wrap: wrap; display: flex; justify-content: space-between; - .item{width: 23%; margin-right: 10px; - image{ } + .pjimgs{ margin: 0;flex-wrap: wrap; display: flex; justify-content: space-between; + .item{ + width: 23%; + padding-right: 20rpx; + margin-top: 10rpx; + image{ + border-radius: 15rpx; + } } } - .star{display: inline-block; width: 20px; height: 20px; margin-right: 10rpx;} + .star{display: inline-block; width: 15px; height: 15px; margin-right: 6rpx;} .starGray{ background : url(../../static/icon/star_greey.png) no-repeat; background-size: contain; } .starLight{ background : url(../../static/icon/star_light.png) no-repeat; background-size: contain;} - .quesheng{text-align: center; margin-top: 100rpx; color: #8b8a91;} + .quesheng{text-align: center; margin-top: 0rpx; color: #8b8a91;} + .pingjia{ + background-color: #f5f5f5; + border-radius: 20rpx; + // margin-top: 20rpx; + padding: 30rpx 30rpx 20rpx; + + } .pingjiaBox{color: #555; margin-bottom: 20rpx;} .flexbox{display: flex;} - .contentBox{width: calc(100% - 50px);box-sizing: border-box; padding-left: 20rpx; - .content{font-size: 28rpx; line-height: 40rpx;} - .time{font-size: 24rpx; color: #999; margin-top: 6rpx; float: right;} + .contentBox{width: 100%;box-sizing: border-box; padding: 0rpx 10rpx 30rpx 6rpx; + .content{font-size: 28rpx; line-height: 40rpx;margin-top: 10rpx;} + .time{font-size: 24rpx; color: #999; padding-top: 6rpx; float: right;} + } + .spbh{ + padding-bottom: 10rpx; + font-size: 26rpx; + } + .spbhimg{ + width:40px; overflow: hidden; text-align: center; + image{ + width:40px !important; + padding: 3px; + height: 40px !important; + border: 1px solid #eee; + border-radius: 6rpx; + overflow: hidden; + } + .username{font-size: 24rpx; color: #999; margin-top: 6rpx; } } .nowrap { white-space: nowrap; overflow-x: hidden; text-overflow: ellipsis; } - .touxiang{width:50px; overflow: hidden; text-align: center; - image{width:50px !important; padding: 3px; height: 50px !important; border: 1px solid #eee; border-radius: 64px; overflow: hidden;;} + .touxiang{width:40px; overflow: hidden; text-align: center; + image{width:40px !important; padding: 3px; height: 40px !important; border: 1px solid #eee; border-radius: 64px; overflow: hidden;;} .username{font-size: 24rpx; color: #999; margin-top: 6rpx; } } + .aligncenter{ + align-items: center; + } .xiangqing { overflow: hidden; overflow-x: hidden; img{display: block; max-width: 100%;} @@ -519,15 +596,16 @@ formatRichText (html) { //控制小程序中图片大小 font-size: 24rpx; color: #999; margin-top: 16rpx; + font-weight: 400; } .bookInfo { - padding: 20px 10px; - line-height: 30rpx; - background-color: #fff; + // padding: 20px 10px; + // line-height: 30rpx; + // background-color: #fff; font-size: 26rpx; color: #555; - border-radius: 20rpx 20rpx 0 0 + // border-radius: 20rpx 20rpx 0 0 } .header { @@ -538,7 +616,7 @@ formatRichText (html) { //控制小程序中图片大小 } .contentButton { - margin: 10px 0; + // margin: 10px 0; } .swiperBox { @@ -548,28 +626,32 @@ formatRichText (html) { //控制小程序中图片大小 } .commodityContent { - - margin: 30rpx 20rpx 10rpx 20rpx; + background-color: #fff; + padding: 30rpx 30rpx 10rpx 30rpx; height: auto; + font-size: 26rpx; .commodityPrice { - background-image: linear-gradient(0deg, #f7fffc 0%, #def0ea 100%); - border-top: 1px solid #fff; + // background-image: linear-gradient(0deg, #f7fffc 0%, #def0ea 100%); + // border-top: 1px solid #fff; // background-color: #f7faf9; - border-top-left-radius: 20rpx; - border-top-right-radius: 20rpx; + // border-top-left-radius: 20rpx; + // border-top-right-radius: 20rpx; color: #ffa200; - padding: 20rpx 20rpx 40rpx 20rpx; + padding: 0rpx 0rpx 0rpx 16rpx; em { - font-size: 74rpx; + font-size: 40rpx; font-style: normal; } .oldPrice { - margin-left: 10rpx; - font-size: 32rpx; - color: #999; + background-color: #ff000013;; + padding: 4rpx 14rpx; + border-radius: 20rpx; + margin-left: 20rpx; + font-size: 28rpx; + color: #ff0000; } } @@ -577,6 +659,7 @@ formatRichText (html) { //控制小程序中图片大小 margin-top: -20rpx; padding: 30rpx 20rpx 40rpx 20rpx; font-size: 40rpx; + font-weight: 600; border-top-left-radius: 20rpx; border-top-right-radius: 20rpx; background-color: #fff; @@ -584,8 +667,8 @@ formatRichText (html) { //控制小程序中图片大小 .commodityIntroduce { font-size: 30rpx; - background-color: #fff; - padding: 0 20rpx 30rpx 20rpx; + // background-color: #fff; + // padding: 0 20rpx 30rpx 20rpx; } }