OrderCheck.js 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. // index.js
  2. // 获取应用实例
  3. const app = getApp()
  4. Page({
  5. data: {
  6. textareaValue: '',// 文本域的值
  7. show: false,
  8. isEmply:true,
  9. address:[{
  10. detail:"111",
  11. phone:"111"
  12. },{
  13. detail:"222",
  14. phone:"222"
  15. },{
  16. detail:"333",
  17. phone:"333"
  18. },],
  19. checkAddress:"",
  20. },
  21. handleClickCell(event){
  22. console.log(event);
  23. console.log(event.currentTarget.dataset.item);
  24. this.setData({ checkAddress: event.currentTarget.dataset.item });
  25. this.setData({ isEmply:true });
  26. this.onClose()
  27. },
  28. showPopup() {
  29. this.setData({ show: true });
  30. },
  31. onClose() {
  32. this.setData({ show: false });
  33. },
  34. jumpToPage: function() {
  35. wx.navigateTo({
  36. url: '../OrderView/index' // 跳转
  37. })
  38. },
  39. onTextareaInput(event) {
  40. const value = event.detail.value;
  41. console.log("111");
  42. if (value.length <= 150) {
  43. this.setData({
  44. textareaValue: value,
  45. });
  46. }
  47. },
  48. onClickButton: function() {
  49. console.log('Button clicked.');
  50. },
  51. onLoad() {
  52. if (wx.getUserProfile) {
  53. this.setData({
  54. canIUseGetUserProfile: true
  55. })
  56. }
  57. console.log('Page loaded.');
  58. wx.setNavigationBarTitle({ title: '查看订单' })
  59. },
  60. handleClick:function(){
  61. console.log("xixixi");
  62. }
  63. })