deguodaigou/components/member/membershop/membershop.js

35 lines
496 B
JavaScript
Raw Normal View History

2019-12-23 10:04:09 +08:00
// components/member/membershop/membershop.js
Component({
/**
* 组件的属性列表
*/
properties: {
2019-12-24 18:06:31 +08:00
img: String,
name: String,
price: String,
gid:String
2019-12-23 10:04:09 +08:00
},
/**
* 组件的初始数据
*/
data: {
},
/**
* 组件的方法列表
*/
methods: {
2019-12-24 18:06:31 +08:00
nav(){
console.log(this.data.gid)
wx.navigateTo({
url:"/pages/product/product?shopid=" + this.data.gid,
fail(a){
console.log(a)
}
})
}
2019-12-23 10:04:09 +08:00
}
})