From b3e097ffa1c83384b305cf306ff3156961e33a91 Mon Sep 17 00:00:00 2001
From: yaolonglong <yaolonglong15@163.com>
Date: 星期四, 09 十月 2025 17:12:26 +0800
Subject: [PATCH] 获取验证码功能
---
manifest.json | 2 +-
pages/companyLogin/companyLogin.vue | 18 +++++++++---------
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/manifest.json b/manifest.json
index 9d165d4..4289037 100644
--- a/manifest.json
+++ b/manifest.json
@@ -50,7 +50,7 @@
"quickapp" : {},
/* 灏忕▼搴忕壒鏈夌浉鍏� */
"mp-weixin" : {
- "appid" : "wxc2cafc8362d40157",
+ "appid" : "wxec87cd0359014ce3",
"setting" : {
"urlCheck" : false,
"minified" : true
diff --git a/pages/companyLogin/companyLogin.vue b/pages/companyLogin/companyLogin.vue
index 9249231..28ee96c 100644
--- a/pages/companyLogin/companyLogin.vue
+++ b/pages/companyLogin/companyLogin.vue
@@ -38,7 +38,7 @@
</view>
<view class="form-input set-flex set-flex-content-between">
<input type="number" v-model="form.code" placeholder="璇疯緭鍏ラ獙璇佺爜"/>
- <view >
+ <view @tap='getCode'>
<text class="driver"></text>
<text class="getcode">{{tips}}</text>
</view>
@@ -70,7 +70,7 @@
tips: '鑾峰彇楠岃瘉鐮�',
form: {
phone: '',
- code: '666666',
+ code: '',
userType: '01'
},
loginToken: '',
@@ -152,13 +152,13 @@
})
return
}
- // if(!this.form.code){
- // uni.showToast({
- // title: '璇疯緭鍏ラ獙璇佺爜',
- // icon: 'none'
- // })
- // return
- // }
+ if(!this.form.code){
+ uni.showToast({
+ title: '璇疯緭鍏ラ獙璇佺爜',
+ icon: 'none'
+ })
+ return
+ }
codeLogin(this.form).then(val => {
if(val.data.token) {
this.loginToken = val.data.token
--
Gitblit v1.9.1