Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
闫晓茹 2023-11-08 16:30:57 +08:00
commit 945a37ccd6

View File

@ -3,7 +3,6 @@
<view class="head" @tap="Face"> <view class="head" @tap="Face">
<image class="Facecollection" :src="query.headPictureUrl" v-if="query.headPictureUrl"></image> <image class="Facecollection" :src="query.headPictureUrl" v-if="query.headPictureUrl"></image>
<image class="Facecollection" src="../../static/pages/Facecollection.png" v-else></image> <image class="Facecollection" src="../../static/pages/Facecollection.png" v-else></image>
<span>人脸采集</span> <span>人脸采集</span>
</view> </view>
<view class="form"> <view class="form">
@ -73,13 +72,11 @@
</view> --> </view> -->
<view class="name"> <view class="name">
所在位置 所在位置
<view class="select" @tap='getAddress()'> <view class="select" @tap='getAddress'>
<text v-if="query.locationName ==''">请选择所在位置</text> <text v-if="query.locationName ==''">请选择所在位置</text>
<text class="testitem">{{query.locationName}}</text> <text class="testitem">{{query.locationName}}</text>
</view> </view>
</view> </view>
<view class="name"> <view class="name">
基础疾病 基础疾病
<view class="select" @tap="godisease"> <view class="select" @tap="godisease">
@ -369,7 +366,7 @@
console.log(e, '打印e') console.log(e, '打印e')
}, },
submit() { submit() {
var that = this var that = this
// console.log(that.query) // console.log(that.query)
// console.log(that.query.diseaseList.length,'000') // console.log(that.query.diseaseList.length,'000')
@ -383,38 +380,33 @@
} }
that.$refs.uForm.validate(valid => { that.$refs.uForm.validate(valid => {
if (valid) { if (valid) {
if (that.selected == 1) { if (that.selected == 1) {
that.$refs.uToast.show({ that.$refs.uToast.show({
title: '请审核并同意用户协议', title: '请审核并同意用户协议',
type: 'error' type: 'error'
}) })
} } else if (that.query.sex == "") {
else if (that.query.sex == "") {
that.$refs.uToast.show({ that.$refs.uToast.show({
title: '请选择性别', title: '请选择性别',
type: 'error' type: 'error'
}) })
} } else if (!that.query.locationName) {
else if (!that.query.locationName) {
that.$refs.uToast.show({ that.$refs.uToast.show({
title: '请选择所在位置', title: '请选择所在位置',
type: 'error' type: 'error'
}) })
} } else if (!that.query.birthDate) {
else if (!that.query.birthDate) {
that.$refs.uToast.show({ that.$refs.uToast.show({
title: '请选择出生日期', title: '请选择出生日期',
type: 'error' type: 'error'
}) })
} } else if (that.query.diseaseList.length == 0) {
else if (that.query.diseaseList.length==0) {
that.$refs.uToast.show({ that.$refs.uToast.show({
title: '请选择基础疾病', title: '请选择基础疾病',
type: 'error' type: 'error'
}) })
} } else {
else {
registerdata(that.query).then(res => { registerdata(that.query).then(res => {
if (res.code == 200) { if (res.code == 200) {
getCurrentUser(that.query.openid, that.query.cityCode).then(res => { getCurrentUser(that.query.openid, that.query.cityCode).then(res => {
@ -484,25 +476,12 @@
that.query.locationName = location.address that.query.locationName = location.address
that.query.homeLongitude = location.longitude; that.query.homeLongitude = location.longitude;
that.query.homeLatitude = location.latitude; 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() { areaInfo() {
getSubordinateRegions().then(res => { getSubordinateRegions().then(res => {
@ -928,4 +907,4 @@
/deep/ .u-form-item__message { /deep/ .u-form-item__message {
padding-left: 0 !important; padding-left: 0 !important;
} }
</style> </style>