Browse Source

no message

xiaoxin 2 years ago
parent
commit
c8ce55cabf
1 changed files with 45 additions and 44 deletions
  1. 45 44
      pages/home3/home3.vue

+ 45 - 44
pages/home3/home3.vue

@@ -417,50 +417,50 @@ export default {
 			if (res.code === '1') {
 			if (res.code === '1') {
 				this.goodsList = res.data.list
 				this.goodsList = res.data.list
 			}
 			}
-		},
-		//跳转到商城总类
-		to_detail(options) {
-			let userInfo = uni.getStorageSync('userInfo')
-			let tokenId = uni.getStorageSync('tokenId')
-			if (!userInfo || !tokenId) {
-				uni.showModal({
-					title: '提示',
-					content: '您当前未登录,请授权登录查看社区信息',
-					showCancel: false,
-					success: (res) => {
-						if (res.confirm) {
-							uni.navigateTo({
-								url: '/pages/login/login'
-							})
-						}
-					}
-				})
-			} else {
-				this.$api.togoods({id: options.id});
-			}
-		},
-		//跳转到特产商城
-		clickGoods(){
-			let userInfo = uni.getStorageSync('userInfo')
-			let tokenId = uni.getStorageSync('tokenId')
-			if (!userInfo || !tokenId) {
-				uni.showModal({
-					title: '提示',
-					content: '您当前未登录,请授权登录查看社区信息',
-					showCancel: false,
-					success: (res) => {
-						if (res.confirm) {
-							uni.navigateTo({
-								url: '/pages/login/login'
-							})
-						}
-					}
-				})
-			} else {
-				uni.navigateTo({
-					url:'/packageShang/pages/tabbar/home'
-				})
-			}
+		},
+		//跳转到商城总类
+		to_detail(options) {
+			let userInfo = uni.getStorageSync('userInfo')
+			let tokenId = uni.getStorageSync('tokenId')
+			if (!userInfo || !tokenId) {
+				uni.showModal({
+					title: '提示',
+					content: '您当前未登录,请授权登录查看社区信息',
+					showCancel: false,
+					success: (res) => {
+						if (res.confirm) {
+							uni.navigateTo({
+								url: '/pages/login/login'
+							})
+						}
+					}
+				})
+			} else {
+				this.$api.togoods({ id: options.id })
+			}
+		},
+		//跳转到特产商城
+		clickGoods() {
+			let userInfo = uni.getStorageSync('userInfo')
+			let tokenId = uni.getStorageSync('tokenId')
+			if (!userInfo || !tokenId) {
+				uni.showModal({
+					title: '提示',
+					content: '您当前未登录,请授权登录查看社区信息',
+					showCancel: false,
+					success: (res) => {
+						if (res.confirm) {
+							uni.navigateTo({
+								url: '/pages/login/login'
+							})
+						}
+					}
+				})
+			} else {
+				uni.navigateTo({
+					url: '/packageShang/pages/tabbar/home'
+				})
+			}
 		},
 		},
 		// 获取用户当前位置
 		// 获取用户当前位置
 		getLocation() {
 		getLocation() {
@@ -759,6 +759,7 @@ export default {
 		top: 0;
 		top: 0;
 		left: 0;
 		left: 0;
 		right: 0;
 		right: 0;
+		box-sizing: content-box;
 		text-align: center;
 		text-align: center;
 		background-color: #fff;
 		background-color: #fff;