From f7aa22af360ee17458f990e59bf31af83ed0d7a9 Mon Sep 17 00:00:00 2001 From: From-wh Date: Wed, 22 Mar 2023 12:13:36 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=87=E7=AB=A0=E5=88=86=E4=BA=AB?= =?UTF-8?q?=E5=A5=BD=E5=8F=8B=E5=8F=8A=E6=9C=8B=E5=8F=8B=E5=9C=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/extension/news_details/index.vue | 31 +++++++++++++++++-- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/template/uni-app/pages/extension/news_details/index.vue b/template/uni-app/pages/extension/news_details/index.vue index 247417f78..5d86fb1b5 100644 --- a/template/uni-app/pages/extension/news_details/index.vue +++ b/template/uni-app/pages/extension/news_details/index.vue @@ -47,6 +47,9 @@ import home from '@/components/home'; import parser from "@/components/jyf-parser/jyf-parser"; import colors from "@/mixins/color"; + import { + userShare + } from "@/api/user.js"; export default { components: { shareInfo, @@ -88,6 +91,28 @@ onShow: function() { this.getArticleOne(); }, + onShareAppMessage: function() { + let that = this; + that.$set(that, "actionSheetHidden", !that.actionSheetHidden); + userShare(); + return { + title: this.articleInfo.title || "", + imageUrl: this.articleInfo.image_input.length ? this.articleInfo.image_input[0] : "", + path: "/pages/extension/news_details/index?id=" + that.id + "&spid=" + this.$store.state.app.uid, + }; + }, + onShareTimeline() { + let that = this; + userShare(); + return { + title: this.articleInfo.title, + query: { + id: that.id, + spid: this.$store.state.app.uid || 0, + }, + imageUrl: this.articleInfo.image_input.length ? this.articleInfo.image_input[0] : "", + }; + }, methods: { getArticleOne: function() { let that = this; @@ -149,7 +174,7 @@ } .newsDetail .list .label { - font-size: 30rpx; + font-size: 24rpx; color: #B1B2B3; // height: 38rpx; // border-radius: 3rpx; @@ -160,7 +185,7 @@ .newsDetail .list .item { margin-left: 27rpx; - font-size: 30rpx; + font-size: 24rpx; color: #B1B2B3; } @@ -175,7 +200,7 @@ .newsDetail .conters { padding: 0 30rpx; - font-size: 32rpx; + font-size: 28rpx; color: #8A8B8C; line-height: 1.7; }