From 715af6045257a542e7c70faa3751fa8a691e9bbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=AF=E5=B0=8F=E7=8E=8B=E5=91=80=5C24601?= <819653817@qq.com> Date: Wed, 12 Jun 2024 11:10:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=AF=E4=BA=AB=E6=9C=8D=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/css/index.less | 15 ++++++ src/assets/images/comMessages/like.png | Bin 0 -> 1280 bytes src/assets/images/comMessages/nolike.png | Bin 0 -> 1545 bytes src/router/router.config.js | 18 ++++++- src/views/Enjoyableservices/detail.vue | 45 ++++++++++++++++++ src/views/Enjoyableservices/index.vue | 37 +++++++++++++++ src/views/comMessages/detail.vue | 58 +++++++++++++++++++++-- src/views/comMessages/index.vue | 2 +- src/views/discussion/discusionDetail.vue | 4 +- src/views/home/index.vue | 4 +- 10 files changed, 171 insertions(+), 12 deletions(-) create mode 100644 src/assets/images/comMessages/like.png create mode 100644 src/assets/images/comMessages/nolike.png create mode 100644 src/views/Enjoyableservices/detail.vue create mode 100644 src/views/Enjoyableservices/index.vue diff --git a/src/assets/css/index.less b/src/assets/css/index.less index 47759f9..9e38b54 100644 --- a/src/assets/css/index.less +++ b/src/assets/css/index.less @@ -33,6 +33,15 @@ body #app { } } } +.y66666{ + color: #666666; +} +.C1{ + color: #C1C1C1; +} +.AAA{ + color: #AAAAAA; +} .white{ color: #fff; } @@ -226,6 +235,9 @@ body #app { .font-size18{ font-size: 18px; } +.font-size21{ + font-size: 21px; +} .font-bold{ font-weight: bold; } @@ -243,4 +255,7 @@ body #app { } .back_color{ background: #F7F7F7; +} +.nowrap{ + white-space: nowrap } \ No newline at end of file diff --git a/src/assets/images/comMessages/like.png b/src/assets/images/comMessages/like.png new file mode 100644 index 0000000000000000000000000000000000000000..5f0ad68aa9be9b889f689a36de31f1f287314b2f GIT binary patch literal 1280 zcmV+b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A)LU@Oo?*VSacz^+9kb2BdlV&UEO-Qw zuE1Q0J4Qjfi^goTpQodGR5WJ)4wy8yMB>iGc4y~%VlnVMaKN~DJHj2Pu98G@Oot#C z4X;9EG|CT#;2H!|5L8Rt$!l+dY9etgyc^_J&`(4o_Oo7E^3s*$OJYZLdy>?l{cKeI zl<4YnqC>)Ygh&R}#sY~uQ`(ha)Lx1(9yCRYu%GH;_B!A}b84v9KJsPNpY1_XhuJ-F zF-1Zb;B$#PBYc99@Bl3N%8%ZF?*mT;F#B**gVKkh)danTc_ec;BlPko>Zhpnv?O*M&W587F1(gp z`2ZC!gkaiCwFXPs&%ZW@*W%TO7TZ1OjH#6G3rOyzo=0R;a$6=OHCEUktdG6U(U)zw zCmxcrnuF)VX_26}P!p#*V@{hNAqEpFymJL9R3|svyN<=e_y}u>v7z$~lI*lO<90UQ5K%|7S$dv)!=5+euk# z{iyHB-{8(c>KCMMAhd`at_x2Fc{yn6{rwhlN6N;kpIS@KjLVo{aCojpb7lh*8t-V- zlx&Q{O}T`ur41KLw+9EI4$-%fx>vJFommlVba|xUeyq^)#(r2;5wGw~Uo3r(%LFNN zzRARDr;lwD!Bf`EHL1#c%pHx{2!~K+^Q*igj&m|wa#_3hTnaTBHl5*IM2=HiKU2zg v{?Qg import('@/views/discussion/discusionDetail'), - meta: { title: '详情', keepAlive: false } + meta: { title: '议事详情', keepAlive: false } }, { path: '/detail', name: 'detail', component: () => import('@/views/comMessages/detail'), - meta: { title: '详情', keepAlive: false } + meta: { title: '讯息详情', keepAlive: false } + }, + { + path: '/Enjoyableservices', + name: 'Enjoyableservices', + component: () => import('@/views/Enjoyableservices/index'), + meta: { title: '可享服务', keepAlive: false } + }, + { + path: '/detailServices', + name: 'detailServices', + component: () => import('@/views/Enjoyableservices/detail'), + meta: { title: '服务详情', keepAlive: false } } ] + + diff --git a/src/views/Enjoyableservices/detail.vue b/src/views/Enjoyableservices/detail.vue new file mode 100644 index 0000000..5cb4e7c --- /dev/null +++ b/src/views/Enjoyableservices/detail.vue @@ -0,0 +1,45 @@ + + + \ No newline at end of file diff --git a/src/views/Enjoyableservices/index.vue b/src/views/Enjoyableservices/index.vue new file mode 100644 index 0000000..01ca2fd --- /dev/null +++ b/src/views/Enjoyableservices/index.vue @@ -0,0 +1,37 @@ + + + \ No newline at end of file diff --git a/src/views/comMessages/detail.vue b/src/views/comMessages/detail.vue index e44b7a2..0e8ba6e 100644 --- a/src/views/comMessages/detail.vue +++ b/src/views/comMessages/detail.vue @@ -8,14 +8,23 @@
{{ discussionList.address }}
{{ discussionList.dataTime }}
- -
{{ discussionList.content }}
+ +
{{ discussionList.content }}
- - 按钮 + + 已点赞 {{ likeNum }} + + 点赞 + + + 转发 +
@@ -39,7 +48,9 @@ export default { finished: false, loading: true, showRegister: false, - searchValue: "" + searchValue: "", + like: false, + likeNum: 3000 }; }, created() { @@ -47,6 +58,38 @@ export default { }, methods: { + OnLike() { + console.log("123"); + this.likeNum++; + this.like = !this.like; + }, + + Onoppose() { + wx.checkJsApi({ + jsApiList: ['chooseImage'], // 需要检测的JS接口列表,所有JS接口列表见附录2, + success: function (res) { + // 以键值对的形式返回,可用的api值true,不可用为false + // 如:{"checkResult":{"chooseImage":true},"errMsg":"checkJsApi:ok"} + console.log("123"); + wx.ready(function () { + console.log("453");//需在用户可能点击分享按钮前就先调用 + wx.updateAppMessageShareData({ + title: '', // 分享标题 + desc: '', // 分享描述 + link: '', // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致 + imgUrl: '', // 分享图标 + success: function () { + console.log("123"); + // 设置成功 + } + }) + }); + } + }); + console.log("123"); + + } + }, components: {}, @@ -70,6 +113,11 @@ export default { min-height: 50px; } +.support { + background-color: #ffffff; + color: black; +} + .imge_100 { width: 250px; height: 128px; diff --git a/src/views/comMessages/index.vue b/src/views/comMessages/index.vue index b73a3a0..bc415ea 100644 --- a/src/views/comMessages/index.vue +++ b/src/views/comMessages/index.vue @@ -45,7 +45,7 @@ - + diff --git a/src/views/discussion/discusionDetail.vue b/src/views/discussion/discusionDetail.vue index 241b1b5..e840515 100644 --- a/src/views/discussion/discusionDetail.vue +++ b/src/views/discussion/discusionDetail.vue @@ -46,8 +46,8 @@ -
- + 支持 diff --git a/src/views/home/index.vue b/src/views/home/index.vue index 3bd0d3f..13a46b2 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -117,7 +117,7 @@ export default { { imgSrc: require('@/assets/images/nav/2.png'), title: '社区活动', - path: 'notice' + path: 'activity' }, { imgSrc: require('@/assets/images/nav/3.png'), @@ -132,7 +132,7 @@ export default { { imgSrc: require('@/assets/images/nav/5.png'), title: '可享服务', - path: 'service' + path: 'Enjoyableservices' } ], activityList: [],