Skip to content

Commit

Permalink
modify code
Browse files Browse the repository at this point in the history
  • Loading branch information
richard1015 committed Apr 24, 2019
1 parent c1ccc87 commit 0f9c24b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"window": {
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#fff",
"navigationBarTitleText": "科技资讯",
"navigationBarTitleText": "测试demo",
"navigationBarTextStyle": "black"
}
}
2 changes: 1 addition & 1 deletion config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* 小程序配置文件
*/
// 测试服务器ip
// var host = "http://192.168.160.163:7001/"
// var host = "http://127.0.0.1:7001/"
// 远程线上服务器ip
var host ="https://zhuzhida.vip/"
var config = {
Expand Down
Binary file modified imgs/.DS_Store
Binary file not shown.
6 changes: 6 additions & 0 deletions pages/content/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ Page({
currentDateIsNoData: true, //当前天是否还有数据
},
toPage: function(event) {
wx.showToast({
title: `暂未开放!`,
icon: 'none',
duration: 2000
})
return;
wx.navigateTo({
url: `/pages/contentDetails/contentDetails?id=${event.target.id}`
})
Expand Down
2 changes: 1 addition & 1 deletion pages/index/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ Page({
console.log(res.target)
}
return {
title: '留学新闻',
title: '测试',
path: '/pages/index/index',
success: function (res) {
// 转发成功
Expand Down

0 comments on commit 0f9c24b

Please sign in to comment.