修改citycode

This commit is contained in:
闫晓茹 2024-05-07 11:19:50 +08:00
parent b633603389
commit 758e45ef41

View File

@ -691,9 +691,13 @@
const that = this
that.userinfo = uni.getStorageSync('userinfo');
that.form.openid = uni.getStorageSync('openid');
that.form.cityCode = uni.getStorageSync('region');
if(!uni.getStorageSync('region')){
that.form.cityCode=2
}else{
that.form.cityCode = uni.getStorageSync('region');
}
if (that.form.sexname == '男') {
that.form.sex = 'MALE';
that.f orm.sex = 'MALE';
} else if (that.form.sexname == '女') {
that.form.sex = 'FEMALE';
}