From a73586755b950e270746160000c5bae9dad024cd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=BE=89?= <814457906@qq.com>
Date: Wed, 8 Nov 2023 16:11:22 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/register/register.vue | 45 ++++++++++---------------------------
1 file changed, 12 insertions(+), 33 deletions(-)
diff --git a/pages/register/register.vue b/pages/register/register.vue
index 74de607..db7a54e 100644
--- a/pages/register/register.vue
+++ b/pages/register/register.vue
@@ -3,7 +3,6 @@
-
人脸采集
@@ -73,13 +72,11 @@
-->
所在位置
-
+
请选择所在位置
{{query.locationName}}
-
-
基础疾病
@@ -369,7 +366,7 @@
console.log(e, '打印e')
},
submit() {
-
+
var that = this
// console.log(that.query)
// console.log(that.query.diseaseList.length,'000')
@@ -383,38 +380,33 @@
}
that.$refs.uForm.validate(valid => {
if (valid) {
-
+
if (that.selected == 1) {
that.$refs.uToast.show({
title: '请审核并同意用户协议',
type: 'error'
})
- }
- else if (that.query.sex == "") {
+ } else if (that.query.sex == "") {
that.$refs.uToast.show({
title: '请选择性别',
type: 'error'
})
- }
- else if (!that.query.locationName) {
+ } else if (!that.query.locationName) {
that.$refs.uToast.show({
title: '请选择所在位置',
type: 'error'
})
- }
- else if (!that.query.birthDate) {
+ } else if (!that.query.birthDate) {
that.$refs.uToast.show({
title: '请选择出生日期',
type: 'error'
})
- }
- else if (that.query.diseaseList.length==0) {
+ } else if (that.query.diseaseList.length == 0) {
that.$refs.uToast.show({
title: '请选择基础疾病',
type: 'error'
})
- }
- else {
+ } else {
registerdata(that.query).then(res => {
if (res.code == 200) {
getCurrentUser(that.query.openid, that.query.cityCode).then(res => {
@@ -484,25 +476,12 @@
that.query.locationName = location.address
that.query.homeLongitude = location.longitude;
that.query.homeLatitude = location.latitude;
+ },
+ fail(err) {
+ console.log(err)
}
});
},
- // getAddress() {
- // uni.getLocation({
- // type: 'wgs84',
- // success: function(res) {
- // const key = '3VABZ-6LZWK-YPAJ3-AMQED-D7RUK-VPB37'; //使用在腾讯位置服务申请的key
- // const referer = '新医路健康服务平台'; //调用插件的app的名称
- // const location = JSON.stringify({
- // latitude: 39.89631551,
- // longitude: 116.323459711
- // });
- // wx.navigateTo({
- // url: 'plugin://chooseLocation/index?key=' + key + '&referer=' + referer
- // });
- // }
- // });
- // },
//区街道
areaInfo() {
getSubordinateRegions().then(res => {
@@ -928,4 +907,4 @@
/deep/ .u-form-item__message {
padding-left: 0 !important;
}
-
\ No newline at end of file
+