// commpents/wenzhen_data/index.js Component({ /** * 组件的属性列表 */ properties: { from_account: { type: String, value: '10000', }, name: { type: String, value: '张三三', }, sex: { type: String, value: '未知', }, age: { type: String, value: '0', }, date: { type: String, value: '12:89', }, desc: { type: String, value: '这是示例备注desc', observer(desc) { this.setData({ desc: desc, }); }, }, status_text: { type: String, value: "接诊中", }, status: { type: String, value: "0", }, status_class: { type: String, }, order_inquiry_id: { type: String, value: '', }, note: { type: String, value: '不接诊24小时后自动取消', }, message_dot:{ type: Boolean, value: false, observer(dot) { this.setData({ message_dot: dot, }); }, } }, /** * 组件的初始数据 */ data: { show: false }, /** * 组件的方法列表 */ methods: { go(e){ wx.navigateTo({ url: e.currentTarget.dataset.url }) }, goChat(e){ let from_account = e.currentTarget.dataset.from_account; let order_inquiry_id = e.currentTarget.dataset.order_inquiry_id; wx.navigateTo({ url: e.currentTarget.dataset.url+"?from_account="+from_account+"&order_inquiry_id="+order_inquiry_id }) }, tabShow(){ this.setData({ show: true }) }, onClose(){ this.setData({ show: false }) } } })