功能:同步小程序流程

This commit is contained in:
xiaowang
2026-05-23 18:45:41 +08:00
parent 844516988b
commit 30ae763e18
117 changed files with 8823 additions and 76 deletions
+16
View File
@@ -5,6 +5,10 @@
const request = require('../utils/request')
module.exports = {
/**
* Purpose: addToWishlist supports wishlist.js by holding or executing the add to wishlist page or API role.
* Usage: import, call, read, or update this method from the owning page/module while preserving the surrounding loading and permission flow.
*/
addToWishlist(productId) {
return request({
url: '/wishlist/add',
@@ -15,6 +19,10 @@ module.exports = {
})
},
/**
* Purpose: removeFromWishlist supports wishlist.js by holding or executing the remove from wishlist page or API role.
* Usage: import, call, read, or update this method from the owning page/module while preserving the surrounding loading and permission flow.
*/
removeFromWishlist(productId) {
return request({
url: '/wishlist/remove',
@@ -25,6 +33,10 @@ module.exports = {
})
},
/**
* Purpose: checkWishlist supports wishlist.js by holding or executing the check wishlist page or API role.
* Usage: import, call, read, or update this method from the owning page/module while preserving the surrounding loading and permission flow.
*/
checkWishlist(productId) {
return request({
url: '/wishlist/check',
@@ -34,6 +46,10 @@ module.exports = {
})
},
/**
* Purpose: getWishlist supports wishlist.js by holding or executing the get wishlist page or API role.
* Usage: import, call, read, or update this method from the owning page/module while preserving the surrounding loading and permission flow.
*/
getWishlist() {
return request({
url: '/wishlist/list'