Commit fe1bf400 authored by liwei's avatar liwei

修改了公告跳转包结构

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