Files
fesatcodeMiniApp/components/articlecard/articlecard.js

37 lines
506 B
JavaScript
Raw Normal View History

2025-08-14 14:52:01 +08:00
// components/shopcard.js
import articleApi from "../../api/articleApi"
Component({
properties: {
data: {
type: Object,
value: {}
}
},
/**
* 组件的初始数据
*/
data: {
},
/**
* 组件的方法列表
*/
methods: {
leavFor(e){
let id = e.currentTarget.dataset.id
articleApi.views({
id
}).then(res => {})
wx.navigateTo({
url: `/pages/subpages/articledetail/articledetail?id=${id}`,
})
}
}
})