Commit 4ddd37da by 程默

Merge branch 'nativehome_tst' of http://code.mayi888.com/chengmo/mayi-mp-shop into nativehome_tst

parents 6c7850ed 3f29eeda
...@@ -52,13 +52,16 @@ ...@@ -52,13 +52,16 @@
reLocationStatus: true, reLocationStatus: true,
systemInfo : null, systemInfo : null,
tabbarHeight : 0, tabbarHeight : 0,
noLocation : '' noLocation : '',
areaGroupId : ''
} }
}, },
onLoad(options){ onLoad(options){
this.noLocation = options.noLocation this.noLocation = options.noLocation
this.areaGroupId = options.areaGroupId
this.systemInfo = wx.getSystemInfoSync() this.systemInfo = wx.getSystemInfoSync()
let menuButtonInfo = wx.getMenuButtonBoundingClientRect() let menuButtonInfo = wx.getMenuButtonBoundingClientRect()
...@@ -105,14 +108,13 @@ ...@@ -105,14 +108,13 @@
this.locationStatus = true this.locationStatus = true
if(type == 1){ if(type == 1){
wx.setStorageSync('location',JSON.stringify({ wx.setStorageSync('location',JSON.stringify({
id : item.operatingAreaAreaId, id : item.operatingAreaAreaId,
regionName : item.regionName, regionName : item.regionName,
regionType : item.regionType, regionType : item.regionType,
systemRegionId : item.systemRegionId, systemRegionId : item.systemRegionId,
areaGroupId : item.groupId, areaGroupId : this.areaGroupId,
outId : item.outId outId : item.outId
})) }))
}else{ }else{
...@@ -121,7 +123,7 @@ ...@@ -121,7 +123,7 @@
regionName : item.regionName, regionName : item.regionName,
regionType : item.regionType, regionType : item.regionType,
systemRegionId : item.systemRegionId, systemRegionId : item.systemRegionId,
areaGroupId : item.areaGroupId, areaGroupId : this.areaGroupId,
outId : item.outId outId : item.outId
})) }))
} }
......
...@@ -37,6 +37,8 @@ Component({ ...@@ -37,6 +37,8 @@ Component({
designateAreaObj: this.data.datas.componentData.designateAreaObj designateAreaObj: this.data.datas.componentData.designateAreaObj
}) })
console.log(this.data.datas.componentData.designateAreaObj,'2222')
if (!wx.getStorageSync('location')) { if (!wx.getStorageSync('location')) {
wx.navigateTo({ wx.navigateTo({
url: `/pages/changeAdr/main?areaGroupId=${this.data.datas.componentData.designateAreaObj.areaGroupId}&noLocation=1` url: `/pages/changeAdr/main?areaGroupId=${this.data.datas.componentData.designateAreaObj.areaGroupId}&noLocation=1`
...@@ -306,7 +308,7 @@ Component({ ...@@ -306,7 +308,7 @@ Component({
}, },
continueBrowser(){ continueBrowser(){
console.log(this.data.designateAreaObj) console.log(this.data.designateAreaObj,'this.data.designateAreaObj')
wx.setStorageSync('location', JSON.stringify(this.data.designateAreaObj)) wx.setStorageSync('location', JSON.stringify(this.data.designateAreaObj))
this.setData({ this.setData({
positionName: this.data.designateAreaObj.regionName, positionName: this.data.designateAreaObj.regionName,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment