// 调取云数据库中的商品信息
const db = wx.cloud.database();
var that = this;
await db.collection('services').doc(${options.category + options.id}
).get().then(res => {
that.setData({
goodsInfo: res.data
})
})
let fileList = [];
this.data.goodsInfo.serviceImg.forEach((item) => {
fileList.push({
fileID: `cloud://test-koevi.7465-test-koevi-1306666298/services/${options.category}/id/${options.id}/${item}`,
maxAge: 70 * 70 // one hour
})
})