This commit is contained in:
PQZ 2025-05-29 15:55:07 +08:00
commit a73e38424d
2 changed files with 81 additions and 14 deletions

View File

@ -13,7 +13,7 @@
<uni-easyinput v-model="valiFormData.nickName" placeholder="请输入" /> <uni-easyinput v-model="valiFormData.nickName" placeholder="请输入" />
</uni-forms-item> </uni-forms-item>
<uni-forms-item labelWidth="280rpx" label="联系方式" required name="phonenumber"> <uni-forms-item labelWidth="280rpx" label="联系方式" required name="phonenumber">
<uni-easyinput v-model="valiFormData.phonenumber" placeholder="请输入" /> <uni-easyinput v-model="valiFormData.phonenumber" type="number" placeholder="请输入" />
</uni-forms-item> </uni-forms-item>
<uni-forms-item labelWidth="280rpx" label="绑定手机号" required name="userName"> <uni-forms-item labelWidth="280rpx" label="绑定手机号" required name="userName">
<uni-easyinput disabled v-model="valiFormData.userName" /> <uni-easyinput disabled v-model="valiFormData.userName" />

View File

@ -108,19 +108,19 @@
{{!noticeDetail.isUrgent?'否':noticeDetail.isUrgent==1?'是':'否'}} {{!noticeDetail.isUrgent?'否':noticeDetail.isUrgent==1?'是':'否'}}
</view> </view>
</view> </view>
<view class="dl-item" v-if="noticeDetail.thirdUrl&&passSign"> <view class="dl-item" v-if="noticeDetail.thirdUrl&&isSign">
<view class="dl-label" @click="copyUrl(noticeDetail.thirdUrl)">
<view class="dl-label"> 三方报名链接(点击复制)
三方链接
</view> </view>
<view class="dl-value"> </view>
<view class="dl-item" v-if="noticeDetail.thirdUrl&&isSign">
<view class="dl-value" @click="copyUrl(noticeDetail.thirdUrl)">
{{noticeDetail.thirdUrl}} {{noticeDetail.thirdUrl}}
</view> </view>
</view> </view>
<view class="dl-item" v-else-if="noticeDetail.thirdUrl&&!passSign"> <view class="dl-item" v-else-if="noticeDetail.thirdUrl&&!isSign">
<view class="dl-label"> <view class="dl-label">
三方链接 三方报名链接
</view> </view>
<view class="dl-value"> <view class="dl-value">
报名通过后可查看 报名通过后可查看
@ -229,7 +229,18 @@
<shareImages ref="canvas" :canvasWidth="canvasWidth" :canvasHeight="canvasHeight" :shareTitle="shareTitle" <shareImages ref="canvas" :canvasWidth="canvasWidth" :canvasHeight="canvasHeight" :shareTitle="shareTitle"
:goodsTitle="goodsTitle" :shareImage="shareImage" :qrSize="qrSize" :qrUrl="qrUrl" :goodsTitle="goodsTitle" :shareImage="shareImage" :qrSize="qrSize" :qrUrl="qrUrl"
@success="shareSuccess()" /> @success="shareSuccess()" />
<!-- 报名弹窗 -->
<uni-popup ref="popupNew">
<view class="popup-content">
<view style="text-align: center;">
<view>此通告需要收集博主信息</view>
<view>请复制通告到微信对话框填写信息报名</view>
</view>
<view style="text-align: center;width: 100%;margin-top: 20rpx;">
<view class="dl-copy-button" @click="goLinkUrl">点击复制</view>
</view>
</view>
</uni-popup>
</view> </view>
</view> </view>
</template> </template>
@ -259,7 +270,8 @@
} from '@/api/business/base.js' } from '@/api/business/base.js'
import config from '@/config' import config from '@/config'
import { import {
getSignCard getSignCard,
userSign
} from '@/api/business/signCard.js' } from '@/api/business/signCard.js'
import { import {
getUrlLink getUrlLink
@ -271,6 +283,9 @@
}, },
data() { data() {
return { return {
signFormData: {
customForm: []
},
navigatePath: '000', navigatePath: '000',
//- //-
viewMy: false, viewMy: false,
@ -371,6 +386,25 @@
this.viewNotice() this.viewNotice()
}, },
methods: { 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() { goLogin() {
uni.navigateTo({ uni.navigateTo({
url: '/pages/login?canBack=true' url: '/pages/login?canBack=true'
@ -559,7 +593,7 @@
data: res.data, data: res.data,
success: function() { success: function() {
uni.showToast({ uni.showToast({
title: '名单复制成功,请到浏览器下载', title: '复制成功',
icon: 'none', icon: 'none',
duration: 2000 duration: 2000
}); });
@ -584,12 +618,26 @@
* 报名 * 报名
*/ */
goReport() { goReport() {
let that = this
getSignCard({ getSignCard({
noticeId: this.noticeId noticeId: this.noticeId
}).then(res => { }).then(res => {
if (res.code == 200) { if (res.code == 200) {
if (res.data.canUserNum > 0) { 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 => {
this.$refs.popupNew.open('center')
that.getDetail()
})
} else {
this.$tab.navigateTo('/pages/notice/report?noticeId=' + this.noticeId)
}
} else { } else {
this.$refs.alertDialog.open() this.$refs.alertDialog.open()
} }
@ -602,7 +650,6 @@
title: e title: e
}); });
}) })
}, },
/** /**
* 分享 * 分享
@ -1040,4 +1087,24 @@
} }
} }
} }
.popup-content {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
padding: 30rpx;
border-radius: 10px;
background-color: white;
.dl-copy-button {
text-align: center;
margin: auto;
border-radius: 40rpx;
width: 75%;
background-color: #FC1F3E;
color: white;
padding: 15rpx 0;
}
}
</style> </style>