35 lines
496 B
JavaScript
35 lines
496 B
JavaScript
// components/member/membershop/membershop.js
|
|
Component({
|
|
/**
|
|
* 组件的属性列表
|
|
*/
|
|
properties: {
|
|
img: String,
|
|
name: String,
|
|
price: String,
|
|
gid:String
|
|
},
|
|
|
|
/**
|
|
* 组件的初始数据
|
|
*/
|
|
data: {
|
|
|
|
},
|
|
|
|
/**
|
|
* 组件的方法列表
|
|
*/
|
|
methods: {
|
|
nav(){
|
|
console.log(this.data.gid)
|
|
wx.navigateTo({
|
|
url:"/pages/product/product?shopid=" + this.data.gid,
|
|
fail(a){
|
|
console.log(a)
|
|
}
|
|
})
|
|
}
|
|
}
|
|
})
|