From a249a036594aaa326c32f49c43121d45b46ee044 Mon Sep 17 00:00:00 2001 From: 13405411873 <1994398261@qq.com> Date: Thu, 29 May 2025 15:30:41 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/notice/detail.vue | 59 ++++++++++++++++++++++++++++++++++------- 1 file changed, 50 insertions(+), 9 deletions(-) diff --git a/pages/notice/detail.vue b/pages/notice/detail.vue index 6488871..0be644b 100644 --- a/pages/notice/detail.vue +++ b/pages/notice/detail.vue @@ -108,19 +108,19 @@ {{!noticeDetail.isUrgent?'否':noticeDetail.isUrgent==1?'是':'否'}} - + - - 三方链接: + + 报名链接(点击复制): - + {{noticeDetail.thirdUrl}} - + - 三方链接: + 报名链接: 报名通过后可查看 @@ -259,7 +259,8 @@ } from '@/api/business/base.js' import config from '@/config' import { - getSignCard + getSignCard, + userSign } from '@/api/business/signCard.js' import { getUrlLink @@ -271,6 +272,9 @@ }, data() { return { + signFormData: { + customForm: [] + }, navigatePath: '000', //是否是看自己的通告-通告主 viewMy: false, @@ -371,6 +375,25 @@ this.viewNotice() }, methods: { + copyUrl(url) { + uni.setClipboardData({ + data: url, + success: function() { + uni.showToast({ + title: '复制成功', + icon: 'none', + duration: 2000 + }); + }, + fail: function() { + uni.showToast({ + title: '复制失败', + icon: 'none', + duration: 2000 + }); + } + }); + }, goLogin() { uni.navigateTo({ url: '/pages/login?canBack=true' @@ -559,7 +582,7 @@ data: res.data, success: function() { uni.showToast({ - title: '名单复制成功,请到浏览器下载', + title: '复制成功', icon: 'none', duration: 2000 }); @@ -584,12 +607,30 @@ * 报名 */ goReport() { + let that = this getSignCard({ noticeId: this.noticeId }).then(res => { if (res.code == 200) { if (res.data.canUserNum > 0) { - this.$tab.navigateTo('/pages/notice/report?noticeId=' + this.noticeId) + if (this.noticeDetail.thirdUrl) { + //有第三方链接的不需要在本平台填写信息 + //处理卡片 + this.signFormData.noticeId = this.noticeDetail.id + this.signFormData.cardList = [res.data.list[0]] + this.signFormData.isSuper = 0 + userSign(this.signFormData).then(res => { + uni.showToast({ + title: '报名成功', + duration: 1000 + }) + that.getDetail() + + }) + } else { + this.$tab.navigateTo('/pages/notice/report?noticeId=' + this.noticeId) + } + } else { this.$refs.alertDialog.open() }