Browse Source

更新接口

master
lqq 6 years ago
parent
commit
9b479421ae
  1. 1
      models/user.js
  2. 13
      pages/billboards/policy/policy-list/index.js
  3. 2
      pages/topics/index.js

1
models/user.js

@ -11,7 +11,6 @@ class UserModel extends HTTP {
constructor () { constructor () {
super() super()
} }
getMyMessageList(page, success){ getMyMessageList(page, success){
let params = { let params = {
url: UserConst.user_myMessage_url, url: UserConst.user_myMessage_url,

13
pages/billboards/policy/policy-list/index.js

@ -42,9 +42,16 @@ Page({
fetchPolicyArtice () { fetchPolicyArtice () {
policy.fetchPolicyArtice(this.data.curCode, res => { policy.fetchPolicyArtice(this.data.curCode, res => {
console.log(res) console.log(res)
this.setData({ if (res.data) {
nodes: res.data.content || '' this.setData({
}) nodes: res.data.content || ''
})
} else {
wx.showToast({
title: res.message,
icon: 'none'
})
}
}) })
} }
}) })

2
pages/topics/index.js

@ -24,7 +24,7 @@ Page({
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad: function () { onLoad: function () {
if (store.hasPhone()) { if (!store.hasPhone()) {
console.log('已经绑定手机号码') console.log('已经绑定手机号码')
this.fetchTopicList(); this.fetchTopicList();
} else { } else {

Loading…
Cancel
Save