Browse Source

no message

feature/v1.0
xpz2018 5 years ago
parent
commit
7d8223a72b
2 changed files with 6 additions and 2 deletions
  1. 4
      pages/home/customer/index.js
  2. 4
      pages/message/index/index.js

4
pages/home/customer/index.js

@ -15,6 +15,7 @@ Page({
top: 0, top: 0,
orderList: [], orderList: [],
form: { form: {
name: '',
pageNum: 1, pageNum: 1,
pageSize: 10 pageSize: 10
} }
@ -77,6 +78,9 @@ Page({
util.showToast(err) util.showToast(err)
}) })
}, },
onChange({detail}) {
this.data.form.name = detail
},
onSearch:function(){ onSearch:function(){
this.onRefreshList() this.onRefreshList()
} }

4
pages/message/index/index.js

@ -116,10 +116,10 @@ Component({
}, },
lookItem: function (e) { lookItem: function (e) {
var item = this.data.orderList[e.currentTarget.dataset.page][e.currentTarget.dataset.index] var item = this.data.orderList[e.currentTarget.dataset.page][e.currentTarget.dataset.index]
wx.navigateTo({ url: '/pages/process/purchase-detail/index?id=' + item.id })
wx.navigateTo({ url: '/pages/message/detail/index?id=' + item.id })
}, },
searchList: function(){ searchList: function(){
wx.navigateTo({ url: '/pages/mall/search-list/index' })
// wx.navigateTo({ url: '/pages/message/search-list/index' })
} }
} }
}) })
Loading…
Cancel
Save