web 4 năm trước cách đây
mục cha
commit
ecf5c18ae5
3 tập tin đã thay đổi với 56 bổ sung1 xóa
  1. 11 0
      .hbuilderx/launch.json
  2. 35 0
      pages.json
  3. 10 1
      pages/index/index.vue

+ 11 - 0
.hbuilderx/launch.json

@@ -0,0 +1,11 @@
+{ // launch.json 配置了启动调试时相关设置,configurations下节点名称可为 app-plus/h5/mp-weixin/mp-baidu/mp-alipay/mp-qq/mp-toutiao/mp-360/
+  // launchtype项可配置值为local或remote, local代表前端连本地云函数,remote代表前端连云端云函数
+    "version": "0.0",
+    "configurations": [{
+            "type": "uniCloud",
+            "default": {
+                "launchtype": "local"
+            }
+        }
+    ]
+}

+ 35 - 0
pages.json

@@ -129,6 +129,41 @@
 			}
 		},
 		{
+			"path":"pages/index/music/index",//佛音首页
+			"style":{
+				"navigationBarTitleText":"佛音",
+				"navigationStyle":"custom"//添加自定义配置
+			}
+		},
+		{
+			"path":"pages/index/book/index",//佛经首页
+			"style":{
+				"navigationBarTitleText":"佛经",
+				"navigationStyle":"custom"//添加自定义配置
+			}
+		},
+		{
+			"path":"pages/index/xingshan/index",//行善首页
+			"style":{
+				"navigationBarTitleText":"行善",
+				"navigationStyle":"custom"//添加自定义配置
+			}
+		},
+		{
+			"path":"pages/index/nianfo/index",//念佛首页
+			"style":{
+				"navigationBarTitleText":"念佛",
+				"navigationStyle":"custom"//添加自定义配置
+			}
+		},
+		{
+			"path":"pages/index/calendar/index",//日历首页
+			"style":{
+				"navigationBarTitleText":"佛历",
+				"navigationStyle":"custom"//添加自定义配置
+			}
+		},
+		{
 			"path":"pages/temple/index", //寺院首页
 			"style":{
 				"navigationBarTitleText":"寺院",

+ 10 - 1
pages/index/index.vue

@@ -111,7 +111,7 @@
 			<view v-else-if="menuIndex===1" class="left-nav-title-box">
 				<view class="left-nav-titles">
 					<view v-for="(item,index) in rightNavList" :key="index">
-						<view @click="navigate(item)">
+						<view @click="rightNavigate(item)">
 							<image :src="item.imgurl" class="left-nav-title-img"></image>
 							<text class="left-nav-title-content">{{item.content}}</text>
 						</view>
@@ -367,6 +367,15 @@
 					});
 				}
 				
+			},
+			rightNavigate(item){
+				
+				if(item.page){
+					console.log("2222")
+					uni.navigateTo({
+						url: item.page
+					});
+				}
 			}
 		}
 	}