MCPcopy
hub / github.com/coderwhy/HYMiniMall / _getRecommends

Function _getRecommends

pages/detail/detail.js:71–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69 })
70 },
71 _getRecommends() {
72 getRecommends().then(res => {
73 this.setData({
74 recommends: res.data.list
75 })
76 })
77 },
78 onAddCart() {
79 // 1.获取商品对象
80 const obj = {}

Callers

nothing calls this directly

Calls 1

getRecommendsFunction · 0.90

Tested by

no test coverage detected