Commit 2a0b6748 by songbingqi

修复部分bug

parent 8eabbc56
...@@ -364,6 +364,7 @@ export default { ...@@ -364,6 +364,7 @@ export default {
if (res.confirm) { if (res.confirm) {
uni.openSetting({//opensetting是调起设置页面的 uni.openSetting({//opensetting是调起设置页面的
success: (res) => { success: (res) => {
uni.setStorageSync("updataLoadtion",true)
console.log(res) console.log(res)
if(res.authSetting['scope.userLocation'] == true){//判断res.authsetting的值是true还是false if(res.authSetting['scope.userLocation'] == true){//判断res.authsetting的值是true还是false
gosettleFun() gosettleFun()
......
...@@ -142,7 +142,7 @@ export default { ...@@ -142,7 +142,7 @@ export default {
onShow() { onShow() {
uni.setStorageSync('allow',true) uni.setStorageSync('allow',true)
uni.setStorageSync('goodsList',{}) uni.setStorageSync('goodsList',{})
this.backToMneu = false // this.backToMneu = false
}, },
// onUnload(){ // onUnload(){
// this.goBack() // this.goBack()
...@@ -252,6 +252,7 @@ export default { ...@@ -252,6 +252,7 @@ export default {
return return
}else{ }else{
this.backFlag = false this.backFlag = false
this.backToMneu = true
oId = orderId oId = orderId
} }
} }
......
...@@ -190,6 +190,11 @@ export default { ...@@ -190,6 +190,11 @@ export default {
}, },
async onShow() { async onShow() {
uni.setStorageSync("selectFlag",false) uni.setStorageSync("selectFlag",false)
const updataLoactionFlag = uni.getStorageSync("updataLoadtion")
if(updataLoactionFlag) {
this.authLocation();
uni.setStorageSync("updataLoadtion",false)
}
this.getHomeOrder() this.getHomeOrder()
}, },
methods: { methods: {
......
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