Browse Source

Signed-off-by: 1004749546@qq.com <1004749546@qq.com>
首页修改

1004749546@qq.com 5 năm trước cách đây
mục cha
commit
0e6807df7c
2 tập tin đã thay đổi với 6 bổ sung4 xóa
  1. 2 2
      pages.json
  2. 4 2
      pages/index/index.vue

+ 2 - 2
pages.json

@@ -1,7 +1,7 @@
 {
 	"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
 		{
-			"path": "pages/index/Index", // 首页
+			"path": "pages/index/index", // 首页
 			"style": {
 				"navigationBarTitleText": "",
 				"navigationStyle": "custom",
@@ -9,7 +9,7 @@
 			}
 		},
 		{
-			"path": "pages/store/StoreList",
+			"path": "pages/store/storeList",
 			"style": {
 				"navigationBarTitleText": "网点列表"
 			}

+ 4 - 2
pages/index/index.vue

@@ -52,7 +52,6 @@
 	import uniNavBar from "@/components/uni-nav-bar/uni-nav-bar.vue"
 	import uniPopup from '@/components/uni-popup/uni-popup.vue'
 	export default {
-		name: 'Index',
 		components: {
 			uniNavBar, uniPopup
 		},
@@ -126,6 +125,7 @@
 										type: 'gcj02', //返回可以用于wx.openLocation的经纬度
 										success: (res) => {
 											console.log(res)
+											console.log(11111111111)
 											let latitude = res.latitude;
 											let longitude = res.longitude;
 											this.centerX = longitude
@@ -160,7 +160,9 @@
 			},
 			// 打开网点列表
 			intoList() {
-				console.log(1111)
+				uni.navigateTo({
+				    url: ''
+				})
 			},
 			// 联系客服
 			concatServicer() {