// index.js // 获取应用实例 const app = getApp() Page({ data: { textareaValue: '',// 文本域的值 show: false, isEmply:true, address:[{ detail:"111", phone:"111" },{ detail:"222", phone:"222" },{ detail:"333", phone:"333" },], checkAddress:"", }, handleClickCell(event){ console.log(event); console.log(event.currentTarget.dataset.item); this.setData({ checkAddress: event.currentTarget.dataset.item }); this.setData({ isEmply:true }); this.onClose() }, showPopup() { this.setData({ show: true }); }, onClose() { this.setData({ show: false }); }, jumpToPage: function() { wx.navigateTo({ url: '../OrderView/index' // 跳转 }) }, onTextareaInput(event) { const value = event.detail.value; console.log("111"); if (value.length <= 150) { this.setData({ textareaValue: value, }); } }, onClickButton: function() { console.log('Button clicked.'); }, onLoad() { if (wx.getUserProfile) { this.setData({ canIUseGetUserProfile: true }) } console.log('Page loaded.'); wx.setNavigationBarTitle({ title: '查看订单' }) }, handleClick:function(){ console.log("xixixi"); } })