Browse Source

解码锦水增加锦水社区模块;

feature/optimise
ZhaoTongYao 5 years ago
parent
commit
c0a6b5cbc6
  1. 9
      subpages/understandJs/pages/delicious/delicious.js
  2. 2
      subpages/understandJs/pages/delicious/delicious.json
  3. 4
      subpages/understandJs/pages/index/index.js
  4. 5
      subpages/understandJs/pages/noticeDetail/noticeDetail.js
  5. 4
      utils/config.js

9
subpages/understandJs/pages/delicious/delicious.js

@ -22,6 +22,15 @@ Page({
this.setData({
noticeCategory:options.modulecode
})
if(options.modulecode == 'notice_taste'){
wx.setNavigationBarTitle({
title: '锦水味道'
})
}else if(options.modulecode == 'notice_jssq'){
wx.setNavigationBarTitle({
title: '锦水社区'
})
}
this.noticelist();
},
noticelist () {

2
subpages/understandJs/pages/delicious/delicious.json

@ -1,5 +1,5 @@
{
"navigationBarTitleText": "锦水味道",
"navigationBarTitleText": "",
"usingComponents": {
"load-more": "../../../../components/loadMore/loadMore",
"no-data":"../../../../components/nodata/nodata"

4
subpages/understandJs/pages/index/index.js

@ -89,6 +89,10 @@ Page({
wx.navigateTo({
url: `../noticeDetail/noticeDetail?modulecode=${e.currentTarget.dataset.modulecode}`
})
} else if (e.currentTarget.dataset.modulecode == 'notice_jssq') {
wx.navigateTo({
url: `../delicious/delicious?modulecode=${e.currentTarget.dataset.modulecode}`
})
}
}
})

5
subpages/understandJs/pages/noticeDetail/noticeDetail.js

@ -35,6 +35,11 @@ Page({
title: "锦水味道"
})
this.noticeDetail(options.id)
} else if(options.modulecode == 'notice_jssq'){
wx.setNavigationBarTitle({
title: "锦水社区"
})
this.noticeDetail(options.id)
} else if(options.modulecode == "notice_impression"){
wx.setNavigationBarTitle({
title: "锦水印象"

4
utils/config.js

@ -6,8 +6,8 @@ module.exports = {
};
function BASEURL() {
// return 'https://eug-test.elinkit.com.cn/js/epdc-api/api/' // 锦水测试环境
return 'https://epdc-jinshui.elinkservice.cn/epdc-api/api/' // 锦水正式环境接口地址
return 'https://eug-test.elinkit.com.cn/js/epdc-api/api/' // 锦水测试环境
// return 'https://epdc-jinshui.elinkservice.cn/epdc-api/api/' // 锦水正式环境接口地址
// return 'http://192.168.43.19:9094/epdc-api/api/'
}

Loading…
Cancel
Save