From 1caacf383e1b4239156517af8dca0b3daca78cf6 Mon Sep 17 00:00:00 2001
From: Lou <luzhiping@qqyjz.com>
Date: Tue, 02 Apr 2024 13:53:52 +0800
Subject: [PATCH] 更新
---
common/common.js | 1 -
subPackage/article/signature.vue | 15 ++++++++++-----
subPackage/article/detail.vue | 4 ++++
3 files changed, 14 insertions(+), 6 deletions(-)
diff --git a/common/common.js b/common/common.js
index 8a11828..96e5365 100644
--- a/common/common.js
+++ b/common/common.js
@@ -130,7 +130,6 @@
// iconPath: '/static/img/tabbar-08.png',
// url: '/pages/circle/index'
// },
-
{
name: '驾驶舱',
iconPathSelected: '/static/img/tabbar-05-selected.png',
diff --git a/subPackage/article/detail.vue b/subPackage/article/detail.vue
index 793ff4b..c729118 100644
--- a/subPackage/article/detail.vue
+++ b/subPackage/article/detail.vue
@@ -543,6 +543,10 @@
},
confirmValidationCode() {
+ if (!this.validationCode) {
+ this.$showTips("请输入验证码");
+ return
+ }
this.voteRequest()
},
diff --git a/subPackage/article/signature.vue b/subPackage/article/signature.vue
index d673593..be179cf 100644
--- a/subPackage/article/signature.vue
+++ b/subPackage/article/signature.vue
@@ -137,11 +137,16 @@
confirmValidationCode() {
let pages = getCurrentPages();
let prePage = pages[pages.length - 2];
- prePage.$vm.voteRequest(this.imgSrc, this.validationCode);
- this.isShowPopup = false;
- uni.navigateBack({
- delta: 2
- })
+ if (!this.validationCode) {
+ this.$showTips("请输入验证码");
+ } else {
+ prePage.$vm.voteRequest(this.imgSrc, this.validationCode);
+ this.isShowPopup = false;
+ uni.navigateBack({
+ delta: 2
+ })
+ }
+
},
--
Gitblit v1.9.3