Commit fe1bf400 authored by liwei's avatar liwei

修改了公告跳转包结构

parent ab134d27
...@@ -66,21 +66,27 @@ ...@@ -66,21 +66,27 @@
"onReachBottomDistance": 50, "onReachBottomDistance": 50,
"disableScroll": true "disableScroll": true
} }
}, }
],
"subPackages": [
{ {
"path": "pages/announcement/list", "root": "pagesAnnouncement",
"style": { "pages": [
"navigationBarTitleText": "园区公告" {
} "path": "announcement/list",
"style": {
"navigationBarTitleText": "园区公告"
}
},
{
"path": "announcement/detail",
"style": {
"navigationBarTitleText": "公告详情"
}
}
]
}, },
{ {
"path": "pages/announcement/detail",
"style": {
"navigationBarTitleText": "公告详情"
}
}
],
"subPackages": [{
"root": "pageslogin", "root": "pageslogin",
"pages": [{ "pages": [{
"path": "index/index", "path": "index/index",
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
</view> </view>
</view> </view>
<!-- 公告--> <!-- 公告-->
<view class="notice" @click="gotopage('/pages/announcement/list')"> <view class="notice" @click="gotopage('/pagesAnnouncement/announcement/list')">
<view> <view>
<image src="/static/images/home/gonggao.png" class="notice-image"/> <image src="/static/images/home/gonggao.png" class="notice-image"/>
</view> </view>
...@@ -355,14 +355,14 @@ ...@@ -355,14 +355,14 @@
methods: { methods: {
// 页面跳转 // 页面跳转
gotopage(url) { gotopage(url) {
uni.navigateTo({ uni.reLaunch({
url: url url: url
}) });
}, },
//热门推荐 跳转 //热门推荐 跳转
gotodetail(){ gotodetail(item){
uni.navigateTo({ uni.navigateTo({
url: '/pages2/business/business' url: '/pages2/business/business/id='+item.businessId
}) })
}, },
async getUnRead() { async getUnRead() {
......
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