diff --git a/api/baseurl.js b/api/baseurl.js index b89de1f..bd9a8c5 100644 --- a/api/baseurl.js +++ b/api/baseurl.js @@ -1,2 +1,4 @@ var baseurl = "https://hekou-nurse-api.xinyilu.cn"; +// var baseurl = "https://1608.xinelu.cn"; +// var baseurl = "http://192.168.16.76:8080"; export default baseurl \ No newline at end of file diff --git a/api/socketurl.js b/api/socketurl.js index 7d0ebd1..686fce4 100644 --- a/api/socketurl.js +++ b/api/socketurl.js @@ -1,4 +1,5 @@ var socketurl = "wss://hekou-nurse-api.xinyilu.cn/webSocket/"; +// var socketurl = "wss://1608.xinelu.cn/webSocket/"; var dzsocketurl = "wss://hekou-nurse-api.xinyilu.cn/fado/dz/webSocket/"; // SN码设备德州 var dysocketurl = "wss://hekou-nurse-api.xinyilu.cn/fado/dy/webSocket/"; // SN码设备东营 export { diff --git a/pages/register/register.vue b/pages/register/register.vue index e4cd5c4..3d29057 100644 --- a/pages/register/register.vue +++ b/pages/register/register.vue @@ -174,7 +174,6 @@ actions: [{ value: '1', label: '户主本人' - }, { value: '2', @@ -272,12 +271,12 @@ phone: "", address: "", areaCode: "", - homeLongitude: null, - homeLatitude: null, + homeLongitude: '118.5816', + homeLatitude: '37.44875', nurseTypeIdList: [], diseaseInfoList: [], patientId: '', - locationName: '', + locationName: '东营', sex: '', sexname: '', birthDate: '', @@ -411,6 +410,7 @@ uni.setStorageSync('patientName', res.data .patientName); uni.setStorageSync("userinfo", res.data) + uni.setStorageSync("region", 2) that.scoket(); that.$refs.uToast.show({ title: '注册成功', diff --git a/pagesC/selectInstitution/selectInstitution.vue b/pagesC/selectInstitution/selectInstitution.vue index 02bd08d..a2f3b10 100644 --- a/pagesC/selectInstitution/selectInstitution.vue +++ b/pagesC/selectInstitution/selectInstitution.vue @@ -80,7 +80,7 @@ pageSize: 10, pageNum: 1 } - getCounty(obj, '1').then(respp => { + getCounty(obj).then(respp => { respp.data = respp.data.forEach(e => { e.label = e.orgName e.value = e.orgNo @@ -89,7 +89,7 @@ }) }, getNearbyOrginfo() { - getNearbyOrg(this.query, '1').then(respp => { + getNearbyOrg(this.query).then(respp => { this.institutionlist = respp.rows this.institutiontotal = respp.total }) @@ -135,7 +135,7 @@ onReachBottom() { //上滑加载 if (this.institutionlist.length >= this.institutiontotal) {} else { this.query.pageNum++; - getNearbyOrg(this.query, '1').then(respp => { + getNearbyOrg(this.query).then(respp => { respp.rows.forEach(e => { this.institutionlist.push(e) })