index.js 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. Page({
  2. data: {
  3. banner: [
  4. '/static/img/Banner1.png',
  5. '/static/img/Banner2.png',
  6. '/static/img/Banner3.png'
  7. ],
  8. beer_list: [
  9. {
  10. img: '/static/img/yzgl.jpeg',
  11. name: '【现罐鲜送】杨枝甘露 奶昔IPA',
  12. msg: '广东No.1甜品特饮',
  13. price: '269',
  14. original_p: '339'
  15. },
  16. {
  17. img: '/static/img/lzsg.jpeg',
  18. name: '【现罐鲜送】初丹 荔枝水果艾尔',
  19. msg: '果汁感满满的液体荔枝',
  20. price: '219',
  21. original_p: '279'
  22. },
  23. {
  24. img: '/static/img/db.jpeg',
  25. name: '【现罐鲜送】大白 比利时小麦',
  26. msg: '精酿啤酒届的大众情人',
  27. price: '219',
  28. original_p: '279'
  29. },
  30. {
  31. img: '/static/img/bxg.jpeg',
  32. name: '【现罐鲜送】有点甜 百香果小麦',
  33. msg: '酸甜果味和经典麦香结合',
  34. price: '189',
  35. original_p: '259'
  36. },
  37. {
  38. img: '/static/img/dgipa.jpeg',
  39. name: '【现罐鲜送】帝国之殇 棕色浑浊IPA',
  40. msg: '富含浓郁的酒花香气',
  41. price: '189',
  42. original_p: '259'
  43. },
  44. {
  45. img: '/static/img/yyy.jpeg',
  46. name: '【现罐鲜送】羊羊羊 IPA',
  47. msg: '自然发酵的热带果香',
  48. price: '219',
  49. original_p: '289'
  50. },
  51. {
  52. img: '/static/img/gzqs.jpeg',
  53. name: '【现罐鲜送】贵族骑士 比利时小麦',
  54. msg: '与精酿来一场美妙邂逅',
  55. price: '169',
  56. original_p: '239'
  57. }
  58. ],
  59. },
  60. toTaobao() {
  61. my.navigateTo({ url: '../product/product' })
  62. // my.navigateToMiniProgram({
  63. // appId: '2018030502317859',
  64. // path: '/h5page/pages/h5page/h5page?targetURI=https%3A%2F%2Fmain.m.taobao.com%2Fdetail%2Findex.html%3Fid%3D583898513816'
  65. // })
  66. },
  67. onLoad(query) {
  68. // 页面加载
  69. console.info(`Page onLoad with query: ${JSON.stringify(query)}`);
  70. },
  71. onReady() {
  72. // 页面加载完成
  73. },
  74. onShow() {
  75. // 页面显示
  76. },
  77. onHide() {
  78. // 页面隐藏
  79. },
  80. onUnload() {
  81. // 页面被关闭
  82. },
  83. onTitleClick() {
  84. // 标题被点击
  85. },
  86. onPullDownRefresh() {
  87. // 页面被下拉
  88. },
  89. onReachBottom() {
  90. // 页面被拉到底部
  91. },
  92. onShareAppMessage() {
  93. // 返回自定义分享信息
  94. return {
  95. title: 'My App',
  96. desc: 'My App description',
  97. path: 'pages/index/index',
  98. };
  99. },
  100. });