高敬炎 1 年之前
父節點
當前提交
a68c06f779
共有 2 個文件被更改,包括 1 次插入18 次删除
  1. 0 16
      uni_applet/App.vue
  2. 1 2
      uni_applet/pages/find/find.vue

+ 0 - 16
uni_applet/App.vue

@@ -9,22 +9,6 @@
 		onLaunch: function() {
 			console.warn('当前组件仅支持 uni_modules 目录结构 ,请升级 HBuilderX 到 3.1.0 版本以上!')
 			console.log('App Launch')
-		uni.addInterceptor('switchTab', {
-				invoke(e) {
-					console.log(e,1111111)
-					if(e.url == '/pages/my/my'){
-						if(!uni.getStorageSync("userInfo").phone){
-							this.$refs.loginpopup.open()
-							return false;
-						}else{
-						return false;
-						}
-					}
-				},
-				success: (e) => {
-					console.log('OK',e)
-				}
-			})
 		},
 		onShow: function() {
 			console.log('App Show')

+ 1 - 2
uni_applet/pages/find/find.vue

@@ -136,7 +136,6 @@
 				this.mescroll.resetUpScroll()
 			}
 			this.height = uni.getSystemInfoSync().windowWidth/2.35;
-			
 			this.width = uni.getSystemInfoSync().windowWidth;
 			if(this.detailedAddress=='正在定位...'){
 				this.isdingwei()
@@ -145,7 +144,7 @@
 		methods: {
 			delSearchVal(){
 				this.searchVal = ''
-				uni.setStorageSync("search_val",'')
+				uni.removeStorageSync("search_val")
 				that.mescroll.resetUpScroll()
 			},
 			search() {