Skip to content

Commit

Permalink
feature: 添加消息界面
Browse files Browse the repository at this point in the history
  • Loading branch information
xumengqi committed Apr 1, 2021
1 parent f3cef5e commit 2b935db
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions components/share_componet/share_record/share_record.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ Component({
* 组件的方法列表
*/
methods: {
toMessage(e) {
wx.navigateTo({
url: '/pages/message/message?shareRecordId=' + e.currentTarget.dataset.id,
})
},
toBorrowProgress(e) {
wx.navigateTo({
url: '/pages/borrow_progress/borrow_progress?shareRecordId=' + e.currentTarget.dataset.id + '&operatorType=' + e.currentTarget.dataset.type,
Expand Down
2 changes: 1 addition & 1 deletion components/share_componet/share_record/share_record.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<van-tag plain round type="primary" style="margin-left: 4px" wx:if="{{ item.bookDeposit == 0}}">免押金</van-tag>
</view>
<view slot="footer">
<van-button size="mini" round bind:click="toMessage" data-order="1233112121212">沟通</van-button>
<van-button size="mini" round bind:click="toMessage" data-id="{{ item.id }}">沟通</van-button>
<van-button size="mini" round style="margin-left: 4px" bind:tap="toBookDetail" data-id="{{ item.bookId }}">详情
</van-button>
<van-button size="mini" type="danger" round style="margin-left: 4px" bind:click="toBorrowProgress"
Expand Down
2 changes: 1 addition & 1 deletion pages/message/message.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Page({
*/
onLoad: function (options) {
this.setData({
order: options.order
order: options.shareRecordId
});
},

Expand Down

0 comments on commit 2b935db

Please sign in to comment.