修改小程序bug

This commit is contained in:
邓洁
2023-02-28 00:02:59 +08:00
parent 08d66a18d2
commit 077801fd6f
7 changed files with 77 additions and 69 deletions

View File

@@ -49,6 +49,11 @@
if (option.ask == 1) {
this.needAsk = option.ask
}
if (uni.getStorageSync('com_name') && uni.getStorageSync('com_mobile')) {
this.$refs.nameAndphone.model.userInfo.name = uni.getStorageSync('com_name')
this.$refs.nameAndphone.model.userInfo.phone = uni.getStorageSync('com_mobile')
this.$refs.nameAndphone.disabled = true
}
},
methods: {
handleSureClick() {
@@ -69,7 +74,7 @@
if (name && phone) {
console.log('数据已完善');
this.$apiServe.bindComponyAndUpdate({
uid: 1,
uid: uni.getStorageSync('user_id'),
type: 2,
companyName: name,
companyPhone: phone