You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
783 B
44 lines
783 B
Component({
|
|
/**
|
|
* 组件的属性列表
|
|
*/
|
|
properties: {
|
|
buycar_card_data:{
|
|
type: Object,
|
|
value:{},
|
|
},
|
|
is_my:{
|
|
type:String,
|
|
value:'0',
|
|
},
|
|
},
|
|
|
|
/**
|
|
* 组件的初始数据
|
|
*/
|
|
data: {
|
|
|
|
},
|
|
/**
|
|
* 组件的方法列表
|
|
*/
|
|
methods: {
|
|
bindshare(){
|
|
this.triggerEvent('bindshare',{item:this.data.buycar_card_data})
|
|
},
|
|
go_detail(){
|
|
if(this.data.buycar_card_data.state==0||this.data.buycar_card_data.state==10){
|
|
wx.showToast({
|
|
title: '该信息已下架',
|
|
icon:'none'
|
|
})
|
|
return
|
|
}
|
|
// console.log(this.data.buycar_card_data)
|
|
wx.navigateTo({
|
|
url:'/pages/detail/detail?id='+this.data.buycar_card_data.id,
|
|
})
|
|
},
|
|
|
|
}
|
|
})
|
|
|