- 当前 Bug 的表现(可附上截图)
data: {
goods: {
id: 1,
image: '/images/shangjiatupian.png',
title: '优客工场',
comnum: 100,
stock: '有货',
detail: '这里是梨花带雨详情。',
phoneNum: '18812345678',
service: '不支持退货',
score:'4',
sales:'17',
location:'北京市海淀区彩和坊路海淀西大街74号'
},
console.log("mmmmmmm", this.data.goods.title) /*undefind*/
console.log("mmmmmmm", this.data.goods.loaction)
- 预期表现
console.log("mmmmmmm", this.data.goods.title)输出值
- 复现路径
console.log("mmmmmmm", this.data.goods.title)输出值
- 提供一个最简复现 Demo
console.log("mmmmmmm", this.data.goods.title)输出值
这!有代码片段吗?
click: function (e) {
var that = this;
console.log("mmmmmmm", this.data.goods.title)
wx.openLocation({
latitude: this.data.lat,
longitude: this.data.lng,
scale: 18,
name: that.data.goods.title,
address: that.data.goods.location
})
}
用你的代码没复现啊·~~~