shop.js 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. // pages/shop/shop.js
  2. Page({
  3. /**
  4. * 页面的初始数据
  5. */
  6. data: {
  7. shopList:[
  8. {
  9. id:1,
  10. imgurl:"../../images/shop.jpg",
  11. shopname:"大华店",
  12. stars:4,
  13. mark:true,
  14. new:true,
  15. discount:false,
  16. marktext:"新店促销",
  17. shop_address:"上海市宝山区大华虎城A座10L",
  18. shop_distance:"6.5KM"
  19. }, {
  20. id:2,
  21. imgurl:"../../images/shop.jpg",
  22. shopname:"大华店",
  23. stars:5,
  24. mark:true,
  25. new:false,
  26. discount:true,
  27. marktext:"优惠打折",
  28. shop_address:"上海市宝山区大华虎城A座10L",
  29. shop_distance:"6.5KM"
  30. }, {
  31. id:3,
  32. imgurl:"../../images/shop.jpg",
  33. shopname:"大华店",
  34. stars:4,
  35. mark:false,
  36. new:false,
  37. discount:false,
  38. marktext:"新店促销",
  39. shop_address:"上海市宝山区大华虎城A座10L",
  40. shop_distance:"6.5KM"
  41. },
  42. {
  43. id:4,
  44. imgurl:"../../images/shop.jpg",
  45. shopname:"大华店",
  46. stars:4,
  47. mark:false,
  48. new:false,
  49. discount:false,
  50. marktext:"新店促销",
  51. shop_address:"上海市宝山区大华虎城A座10L",
  52. shop_distance:"6.5KM"
  53. },
  54. {
  55. id:5,
  56. imgurl:"../../images/shop.jpg",
  57. shopname:"大华店",
  58. stars:4,
  59. mark:false,
  60. new:false,
  61. discount:false,
  62. marktext:"新店促销",
  63. shop_address:"上海市宝山区大华虎城A座10L",
  64. shop_distance:"6.5KM"
  65. },
  66. {
  67. id:6,
  68. imgurl:"../../images/shop.jpg",
  69. shopname:"大华店",
  70. stars:4,
  71. mark:false,
  72. new:false,
  73. discount:false,
  74. marktext:"新店促销",
  75. shop_address:"上海市宝山区大华虎城A座10L",
  76. shop_distance:"6.5KM"
  77. },
  78. {
  79. id:7,
  80. imgurl:"../../images/shop.jpg",
  81. shopname:"大华店",
  82. stars:4,
  83. mark:false,
  84. new:false,
  85. discount:false,
  86. marktext:"新店促销",
  87. shop_address:"上海市宝山区大华虎城A座10L",
  88. shop_distance:"6.5KM"
  89. },
  90. {
  91. id:8,
  92. imgurl:"../../images/shop.jpg",
  93. shopname:"大华店",
  94. stars:4,
  95. mark:false,
  96. new:false,
  97. discount:false,
  98. marktext:"新店促销",
  99. shop_address:"上海市宝山区大华虎城A座10L",
  100. shop_distance:"6.5KM"
  101. },
  102. {
  103. id:9,
  104. imgurl:"../../images/shop.jpg",
  105. shopname:"大华店",
  106. stars:4,
  107. mark:false,
  108. new:false,
  109. discount:false,
  110. marktext:"新店促销",
  111. shop_address:"上海市宝山区大华虎城A座10L",
  112. shop_distance:"6.5KM"
  113. },
  114. {
  115. id:10,
  116. imgurl:"../../images/shop.jpg",
  117. shopname:"大华店",
  118. stars:4,
  119. mark:false,
  120. new:false,
  121. discount:false,
  122. marktext:"新店促销",
  123. shop_address:"上海市宝山区大华虎城A座10L",
  124. shop_distance:"6.5KM"
  125. },
  126. {
  127. id:11,
  128. imgurl:"../../images/shop.jpg",
  129. shopname:"大华店",
  130. stars:4,
  131. mark:false,
  132. new:false,
  133. discount:false,
  134. marktext:"新店促销",
  135. shop_address:"上海市宝山区大华虎城A座10L",
  136. shop_distance:"6.5KM"
  137. }
  138. ]
  139. },
  140. /**
  141. * 生命周期函数--监听页面加载
  142. */
  143. onLoad: function (options) {
  144. },
  145. /**
  146. * 生命周期函数--监听页面初次渲染完成
  147. */
  148. onReady: function () {
  149. },
  150. /**
  151. * 生命周期函数--监听页面显示
  152. */
  153. onShow: function () {
  154. },
  155. /**
  156. * 生命周期函数--监听页面隐藏
  157. */
  158. onHide: function () {
  159. },
  160. /**
  161. * 生命周期函数--监听页面卸载
  162. */
  163. onUnload: function () {
  164. },
  165. /**
  166. * 页面相关事件处理函数--监听用户下拉动作
  167. */
  168. onPullDownRefresh: function () {
  169. },
  170. /**
  171. * 页面上拉触底事件的处理函数
  172. */
  173. onReachBottom: function () {
  174. },
  175. /**
  176. * 用户点击右上角分享
  177. */
  178. onShareAppMessage: function () {
  179. }
  180. })