moreOrder.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. // pages/moreOrder/moreOrder.js
  2. Page({
  3. /**
  4. * 页面的初始数据
  5. */
  6. data: {
  7. orders:[
  8. {
  9. buttonMessage2:'去支付',
  10. buttonColor2:'#91cdcc',
  11. order:{
  12. nozzle:5,
  13. oilName:"92#",
  14. volume:20.0,
  15. amount:46.8,
  16. payAmount:46.8,
  17. discount:0.00,
  18. orderId:'1',
  19. time:'2024-11-24 09:08'
  20. }
  21. }
  22. ]
  23. },
  24. /**
  25. * 生命周期函数--监听页面加载
  26. */
  27. onLoad(options) {
  28. },
  29. /**
  30. * 生命周期函数--监听页面初次渲染完成
  31. */
  32. onReady() {
  33. },
  34. /**
  35. * 生命周期函数--监听页面显示
  36. */
  37. onShow() {
  38. },
  39. /**
  40. * 生命周期函数--监听页面隐藏
  41. */
  42. onHide() {
  43. },
  44. /**
  45. * 生命周期函数--监听页面卸载
  46. */
  47. onUnload() {
  48. },
  49. /**
  50. * 页面相关事件处理函数--监听用户下拉动作
  51. */
  52. onPullDownRefresh() {
  53. },
  54. /**
  55. * 页面上拉触底事件的处理函数
  56. */
  57. onReachBottom() {
  58. },
  59. /**
  60. * 用户点击右上角分享
  61. */
  62. onShareAppMessage() {
  63. },
  64. /** 点击去支付 */
  65. toPay(event) {
  66. console.log(event)
  67. //跳转回支付页
  68. }
  69. })