// pages/shop/shop.js Page({ /** * 页面的初始数据 */ data: { shopList:[ { id:1, imgurl:"../../images/shop.jpg", shopname:"大华店", stars:4, mark:true, new:true, discount:false, marktext:"新店促销", shop_address:"上海市宝山区大华虎城A座10L", shop_distance:"6.5KM" }, { id:2, imgurl:"../../images/shop.jpg", shopname:"大华店", stars:5, mark:true, new:false, discount:true, marktext:"优惠打折", shop_address:"上海市宝山区大华虎城A座10L", shop_distance:"6.5KM" }, { id:3, imgurl:"../../images/shop.jpg", shopname:"大华店", stars:4, mark:false, new:false, discount:false, marktext:"新店促销", shop_address:"上海市宝山区大华虎城A座10L", shop_distance:"6.5KM" }, { id:4, imgurl:"../../images/shop.jpg", shopname:"大华店", stars:4, mark:false, new:false, discount:false, marktext:"新店促销", shop_address:"上海市宝山区大华虎城A座10L", shop_distance:"6.5KM" }, { id:5, imgurl:"../../images/shop.jpg", shopname:"大华店", stars:4, mark:false, new:false, discount:false, marktext:"新店促销", shop_address:"上海市宝山区大华虎城A座10L", shop_distance:"6.5KM" }, { id:6, imgurl:"../../images/shop.jpg", shopname:"大华店", stars:4, mark:false, new:false, discount:false, marktext:"新店促销", shop_address:"上海市宝山区大华虎城A座10L", shop_distance:"6.5KM" }, { id:7, imgurl:"../../images/shop.jpg", shopname:"大华店", stars:4, mark:false, new:false, discount:false, marktext:"新店促销", shop_address:"上海市宝山区大华虎城A座10L", shop_distance:"6.5KM" }, { id:8, imgurl:"../../images/shop.jpg", shopname:"大华店", stars:4, mark:false, new:false, discount:false, marktext:"新店促销", shop_address:"上海市宝山区大华虎城A座10L", shop_distance:"6.5KM" }, { id:9, imgurl:"../../images/shop.jpg", shopname:"大华店", stars:4, mark:false, new:false, discount:false, marktext:"新店促销", shop_address:"上海市宝山区大华虎城A座10L", shop_distance:"6.5KM" }, { id:10, imgurl:"../../images/shop.jpg", shopname:"大华店", stars:4, mark:false, new:false, discount:false, marktext:"新店促销", shop_address:"上海市宝山区大华虎城A座10L", shop_distance:"6.5KM" }, { id:11, imgurl:"../../images/shop.jpg", shopname:"大华店", stars:4, mark:false, new:false, discount:false, marktext:"新店促销", shop_address:"上海市宝山区大华虎城A座10L", shop_distance:"6.5KM" } ] }, /** * 生命周期函数--监听页面加载 */ onLoad: function (options) { }, /** * 生命周期函数--监听页面初次渲染完成 */ onReady: function () { }, /** * 生命周期函数--监听页面显示 */ onShow: function () { }, /** * 生命周期函数--监听页面隐藏 */ onHide: function () { }, /** * 生命周期函数--监听页面卸载 */ onUnload: function () { }, /** * 页面相关事件处理函数--监听用户下拉动作 */ onPullDownRefresh: function () { }, /** * 页面上拉触底事件的处理函数 */ onReachBottom: function () { }, /** * 用户点击右上角分享 */ onShareAppMessage: function () { } })