You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
624 B
33 lines
624 B
//logs.js
|
|
var util = require('../../utils/util.js')
|
|
var app=getApp()
|
|
Page({
|
|
data: {
|
|
navTab: ["通知", "赞与感谢", "关注"],
|
|
currentNavtab: "0",
|
|
imgList:[]
|
|
},
|
|
onLoad: function () {
|
|
var that = this
|
|
wx.cloud.database().collection('food')
|
|
/*.where({
|
|
food_name:"烤盘饭",
|
|
_openid:undefined
|
|
})*/
|
|
.get({
|
|
success(res) {
|
|
console.log("请求成功", res)
|
|
that.setData({
|
|
imgList:res.data
|
|
}),
|
|
console.log(res.data)
|
|
},
|
|
fail(res) {
|
|
console.log("请求失败", res)
|
|
}
|
|
})
|
|
|
|
},
|
|
|
|
})
|