From 1ca93a04e85633bee47e809c9618356f0a42a393 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期一, 27 五月 2024 16:06:13 +0800
Subject: [PATCH] ‘’
---
h5/pages/userinfo/userinfo.vue | 25 ++++++++++++-------------
1 files changed, 12 insertions(+), 13 deletions(-)
diff --git a/h5/pages/userinfo/userinfo.vue b/h5/pages/userinfo/userinfo.vue
index b6b9a95..0ad93e5 100644
--- a/h5/pages/userinfo/userinfo.vue
+++ b/h5/pages/userinfo/userinfo.vue
@@ -10,7 +10,7 @@
<view class="cell">
<view class="title"><b>*</b>鎵嬫満鍙�</view>
<view class="content">
- <input class="input" maxlength="11" placeholder-style="color: #999999;" v-model="visitorData.phone" placeholder="璇疯緭鍏ユ偍鐨勬墜鏈哄彿" />
+ <input type="number" class="input" maxlength="11" placeholder-style="color: #999999;" v-model="visitorData.phone" placeholder="璇疯緭鍏ユ偍鐨勬墜鏈哄彿" />
</view>
</view>
<view class="cell">
@@ -75,6 +75,7 @@
import QfImageCropper from '@/uni_modules/qf-image-cropper/components/qf-image-cropper/qf-image-cropper.vue';
import { mapState } from 'vuex'
import { uploadUrl } from "@/utils/config"
+ import { getSystemDictData, visitorSub } from '@/api'
export default {
data() {
return {
@@ -130,7 +131,7 @@
}
}
this.visitorData.userAnswerId = option.userAnswerId
- this.getVisit()
+ // this.getVisit()
// uni.$on('update', (data) => {
// this.uploadImg(data.tempFilePath)
// })
@@ -138,9 +139,7 @@
methods: {
submit() {
- uni.navigateTo({
- url: `/pages/visitorApplication/visitorApplication?data=${JSON.stringify(this.visitorData)}`
- });
+ const { visitorData } = this
if (!this.visitorData.name) return uni.showToast({
title: '濮撳悕涓嶈兘涓虹┖',
icon: 'none'
@@ -177,19 +176,19 @@
title: '浜鸿劯鐓х墖涓嶈兘涓虹┖',
icon: 'none'
})
- if (this.visit === '1') {
- if (!this.visitorData.imgurl) return uni.showToast({
- title: '鍋ュ悍璇佷笉鑳戒负绌�',
- icon: 'none'
- })
- }
+ // if (this.visit === '1') {
+ // if (!this.visitorData.imgurl) return uni.showToast({
+ // title: '鍋ュ悍璇佷笉鑳戒负绌�',
+ // icon: 'none'
+ // })
+ // }
uni.navigateTo({
url: `/pages/visitorApplication/visitorApplication?data=${JSON.stringify(this.visitorData)}`
});
},
getVisit() {
- // 鏄惁闇�瑕佺瓟棰�
- this.$u.api.getSystemDictData({
+ // 鏄惁闇�瑕� 鍋ュ悍璇�
+ getSystemDictData({
dictCode: 'SYSTEM',
label: 'HEALTH_CARD'
}).then(res => {
--
Gitblit v1.9.3