// 獲取用戶收貨地址。調起用戶編輯收貨地址原生界面,並在編輯完成后返回用戶選擇的地址 chooseAddr(){ const that = this uni.chooseAddress({ success(res){ that.inputData.ToAddress = res.provinceName + res.cityName; // 收件地址 that.inputData.addrDetail = res.countyName+res.detailInfo; // 詳細地址 that.inputData.Recipient = res.userName; // 收貨人 that.inputData.phoneNumber = res.telNumber; // 聯系電話 } })
注意:我這里的that.inputtData.xxx 是我根據我的需求要返回給上一個頁面展示並進行保存的