Page({
data: {
},
onLoad: function (options) {
const db = wx.cloud.database()
const banner= db.collection('orderData')
const _ = db.command
banner.doc('aaa').update({
data:{
ccc:'kkkkkkkk'
}
})
.then(res=>{
console.log(res)
})
.catch(err=>{
console.log(err)
})
},
onReady: function () {
},
onShow: function () {
},
onHide: function () {
},
onUnload: function () {
},
onPullDownRefresh: function () {
},
onReachBottom: function () {
},
onShareAppMessage: function () {
},
jump_orderID: function () {
const db = wx.cloud.database()
const banner= db.collection('orderData')
const _ = db.command
banner.doc('aaa').update({
data:{
ccc:'kkkkkkkk'
}
})
.then(res=>{
console.log(res)
})
.catch(err=>{
console.log(err)
})
}
})
Page({
data: {
},
onLoad: function (options) {
const db = wx.cloud.database()
const banner= db.collection('orderData')
const _ = db.command
banner.doc('aaa').update({
data:{
ccc:'kkkkkkkk'
}
})
.then(res=>{
console.log(res)
})
.catch(err=>{
console.log(err)
})
},
onReady: function () {
},
onShow: function () {
},
onHide: function () {
},
onUnload: function () {
},
onPullDownRefresh: function () {
},
onReachBottom: function () {
},
onShareAppMessage: function () {
},
jump_orderID: function () {
const db = wx.cloud.database()
const banner= db.collection('orderData')
const _ = db.command
banner.doc('aaa').update({
data:{
ccc:'kkkkkkkk'
}
})
.then(res=>{
console.log(res)
})
.catch(err=>{
console.log(err)
})
}
})
权限问题?