From 3ce7fa0ac6683c894368e2a674366e2941445aa6 Mon Sep 17 00:00:00 2001 From: shuxiaoquan <853623962@qq.com> Date: Mon, 15 Apr 2024 09:12:31 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E4=B8=8E=E6=96=B0?= =?UTF-8?q?=E5=93=81=E9=A6=96=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/activity/newGoods.vue | 99 +++++++++++++++++-------------------- pages/index/index.vue | 32 ++++++------ 2 files changed, 62 insertions(+), 69 deletions(-) diff --git a/pages/activity/newGoods.vue b/pages/activity/newGoods.vue index 563d88d..8b6e0f2 100644 --- a/pages/activity/newGoods.vue +++ b/pages/activity/newGoods.vue @@ -14,25 +14,26 @@ + + + {{item.goods_name}} - + + + + ¥{{item.goods_price_min?Number(item.goods_price_min):''}}起 + + + 立即购买 + - - - - - - - ¥{{item.goods_price_min?Number(item.goods_price_min):''}}起 - - - 立即购买 - + @@ -294,16 +295,16 @@ justify-content: space-between; width: 100%; position: relative; - + align-items: flex-start; .infoLeft { + flex: 1; + margin-top: 20rpx; .gName { margin-bottom: 15rpx; overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - -webkit-line-clamp: 1; + -webkit-line-clamp: 2; max-width: 300rpx; - height: 56rpx; + height: 112rpx; font-size: 40rpx; font-weight: 600; color: #3F3F3F; @@ -311,62 +312,54 @@ margin-top: 32rpx; } - .gd { - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - -webkit-line-clamp: 2; - max-width: 350rpx; - height: 88rpx; - font-size: 32rpx; - font-family: PingFang SC, PingFang SC; - font-weight: 400; - color: #9F9F9F; - line-height: 44rpx; - } - - .gp { - height: 44rpx; - font-size: 32rpx; - font-family: PingFang SC, PingFang SC; - font-weight: 400; - color: #DE041C; - line-height: 38rpx; - } + // .gd { + // overflow: hidden; + // -webkit-line-clamp: 2; + // height: 88rpx; + // font-size: 32rpx; + // font-weight: 400; + // color: #9F9F9F; + // line-height: 44rpx; + // } + + // .gp { + // height: 44rpx; + // font-size: 32rpx; + // font-family: PingFang SC, PingFang SC; + // font-weight: 400; + // color: #DE041C; + // line-height: 38rpx; + // } } .infoRight { - width: 290rpx; - height: 290rpx; + width: 220rpx; + height: 220rpx; border-radius: 0rpx 0rpx 0rpx 0rpx; - opacity: 1; - margin-left: 14rpx; - + margin-right: 14rpx; + display: flex; + justify-content: flex-start; + align-items: center; + margin-top: 40rpx; .infoImg { - width: 290rpx; - height: 290rpx; + width: 200rpx; + height: 200rpx; } - - position: absolute; - top: -68rpx; - right: 20rpx; } } .price { display: flex; - justify-content: flex-end; + justify-content: space-between; margin-top: 50rpx; margin-right: 30rpx; .lowPrice { height: 50rpx; font-size: 36rpx; - font-family: PingFang SC, PingFang SC; font-weight: 600; color: #DE041C; line-height: 50rpx; - margin-right: 20rpx; } .buyNow { diff --git a/pages/index/index.vue b/pages/index/index.vue index baba150..ec0d808 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -1153,7 +1153,7 @@ position: absolute; z-index: 9; text-align: center; - font-size: 28rpx; + font-size: 29rpx; font-family: PingFang SC, PingFang SC; font-weight: 400; color: #FFFFFF; @@ -1185,7 +1185,7 @@ align-items: center; justify-content: center; background-color: #F3202A; - font-size: 24rpx; + font-size: 25rpx; color: #fff; top: -10rpx; right: -10rpx; @@ -1207,7 +1207,7 @@ margin-right: 30rpx; position: relative; display: inline-block; - font-size: 28rpx; + font-size: 29rpx; font-weight: 400; padding: 0 20rpx; color: #282828; @@ -1274,7 +1274,7 @@ align-items: center; justify-content: center; margin-top: 30rpx; - font-size: 22rpx; + font-size: 23rpx; font-weight: 400; color: #7D7D7D; } @@ -1299,7 +1299,7 @@ } text { - font-size: 24rpx; + font-size: 28rpx; font-weight: 400; color: #5A5A5A; margin-top: 10rpx; @@ -1350,7 +1350,7 @@ text:nth-child(2) { font-family: PingFang SC, PingFang SC; font-weight: 400; - font-size: 24rpx; + font-size: 25rpx; color: #FFFFFF; text-align: left; font-style: normal; @@ -1382,7 +1382,7 @@ } text { - font-size: 24rpx; + font-size: 25rpx; font-family: PingFang SC, PingFang SC; font-weight: 400; color: #FFFFFF; @@ -1450,7 +1450,7 @@ background: linear-gradient(180deg, #FF1C75 0%, #FF470D 100%); border-radius: 28px 28px 28px 28px; opacity: 1; - font-size: 24rpx; + font-size: 25rpx; font-family: PingFang SC, PingFang SC; font-weight: 400; color: #FFFFFF; @@ -1506,7 +1506,7 @@ position: absolute; // width:100%; text-align: center; - font-size: 24rpx; + font-size: 25rpx; font-family: PingFang SC, PingFang SC; font-weight: 500; color: #8C4D00; @@ -1559,19 +1559,19 @@ height: 34rpx; line-height: 34rpx; width: 90%; - font-size: 20rpx; + font-size: 24rpx; font-weight: 400; color: #FFFFFF; text-align: center; text { - font-size: 16rpx; + font-size: 24rpx; } } } .name { - font-size: 20rpx; + font-size: 21rpx; font-weight: 400; line-height: 50rpx; color: #505050; @@ -1579,7 +1579,7 @@ white-space: nowrap; overflow: hidden; text-overflow: ellipsis; - margin-top: 10rpx; + margin-top: 10rpx;font-size: 24rpx; } } @@ -1597,7 +1597,7 @@ position: relative; .more { - font-size: 20rpx; + font-size: 21rpx; font-weight: 400; color: #8C4D00; position: absolute; @@ -1632,7 +1632,7 @@ width: 40rpx; height: 40rpx; background-color: #FF4D4D; - font-size: 24rpx; + font-size: 25rpx; color: #FFFFFF; border-radius: 6rpx; } @@ -1785,7 +1785,7 @@ height: 34rpx; line-height: 34rpx; width: 90%; - font-size: 20rpx; + font-size: 24rpx; font-weight: 400; color: #FFFFFF; text-align: center; From 4cb75523ca70ed6721ab43e4b00430784772125b Mon Sep 17 00:00:00 2001 From: shuxiaoquan <853623962@qq.com> Date: Mon, 15 Apr 2024 10:58:57 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E8=AF=A6=E6=83=85=E9=A1=B5=E5=88=86?= =?UTF-8?q?=E4=BA=AB=E5=8A=9F=E8=83=BD+=E9=A6=96=E9=A1=B5=E5=88=86?= =?UTF-8?q?=E4=BA=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/goods/detail.vue | 9 +++++++-- pages/index/index.vue | 19 +++++++++++++++++++ 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/pages/goods/detail.vue b/pages/goods/detail.vue index 563c10a..ce3c4c5 100644 --- a/pages/goods/detail.vue +++ b/pages/goods/detail.vue @@ -395,7 +395,7 @@ - + @@ -1042,8 +1042,13 @@ toHaibao(index) { this.shareCancel(); if (index == 2) { + let str = `${this.goods.goods_name}\n + 前台价:¥${this.goods.goods_price_max}元\n + 推广价:¥${this.goods.goods_price_min}元\n + SKU:${this.goods.goods_no} + ` uni.setClipboardData({ - data: this.goods.goods_name, // 这里是个坑接受字符串类型 value转化为字符串 + data: str, // 这里是个坑接受字符串类型 value转化为字符串 success: function() { //调用方法成功 uni.showToast({ diff --git a/pages/index/index.vue b/pages/index/index.vue index ec0d808..2e6790f 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -1077,6 +1077,25 @@ this.isTop = true } }, + /** + * 分享当前页面 + */ + onShareAppMessage() { + return { + + } + }, + + /** + * 分享到朋友圈 + * 本接口为 Beta 版本,暂只在 Android 平台支持,详见分享到朋友圈 (Beta) + * https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/share-timeline.html + */ + onShareTimeline() { + return { + + } + } }