直播间优化提示,安卓以及ios扫码权限判定

This commit is contained in:
lemon橪
2021-06-29 16:26:32 +08:00
parent 73c307173b
commit 4599b02a41
4 changed files with 39 additions and 46 deletions

View File

@@ -98,23 +98,14 @@ export default {
* 提交保存
*/
submit() {
if (this.form.regionId.length != 0 && this.birthday) {
delete this.form.___path;
let params = JSON.parse(JSON.stringify(this.form));
saveUserInfo(params).then((res) => {
if (res.statusCode == 200) {
storage.setUserInfo(res.data.result);
uni.navigateBack();
}
});
} else {
uni.showToast({
title: "请填写生日和城市!",
duration: 2000,
icon: "none",
});
}
delete this.form.___path;
let params = JSON.parse(JSON.stringify(this.form));
saveUserInfo(params).then((res) => {
if (res.statusCode == 200) {
storage.setUserInfo(res.data.result);
uni.navigateBack();
}
});
},
/**