init
This commit is contained in:
67
unpackage/dist/dev/mp-weixin/api/house_order.js
vendored
Normal file
67
unpackage/dist/dev/mp-weixin/api/house_order.js
vendored
Normal file
@@ -0,0 +1,67 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../common/vendor.js");
|
||||
const config = require("../config.js");
|
||||
const api_house_request = require("./house_request.js");
|
||||
function houseFetchUpdateAddress(form) {
|
||||
const defaultParams = {
|
||||
agent_id: config.config.wxapp_id,
|
||||
address: {}
|
||||
};
|
||||
common_vendor.index.__f__("log", "at api/house_order.ts:12", defaultParams);
|
||||
common_vendor.index.__f__("log", "at api/house_order.ts:13", form);
|
||||
const requestParams = {
|
||||
...defaultParams,
|
||||
...form
|
||||
};
|
||||
return api_house_request.houseRequest({
|
||||
url: "/store.api/updateAddress",
|
||||
data: requestParams,
|
||||
method: "POST"
|
||||
});
|
||||
}
|
||||
function houseFetchCheckGoods(form) {
|
||||
const defaultParams = {
|
||||
agent_id: config.config.wxapp_id,
|
||||
goods_id: 0
|
||||
};
|
||||
common_vendor.index.__f__("log", "at api/house_order.ts:33", defaultParams);
|
||||
common_vendor.index.__f__("log", "at api/house_order.ts:34", form);
|
||||
const requestParams = {
|
||||
...defaultParams,
|
||||
...form
|
||||
};
|
||||
return api_house_request.houseRequest({
|
||||
url: "/store.api/checkGoods",
|
||||
data: requestParams,
|
||||
method: "POST"
|
||||
});
|
||||
}
|
||||
function houseFetchGoodsPreview(form) {
|
||||
const defaultParams = {
|
||||
agent_id: config.config.wxapp_id,
|
||||
goods_id: 0
|
||||
};
|
||||
common_vendor.index.__f__("log", "at api/house_order.ts:54", defaultParams);
|
||||
common_vendor.index.__f__("log", "at api/house_order.ts:55", form);
|
||||
const requestParams = {
|
||||
...defaultParams,
|
||||
...form
|
||||
};
|
||||
return api_house_request.houseRequest({
|
||||
url: "/store.api/preview",
|
||||
data: requestParams,
|
||||
method: "POST"
|
||||
});
|
||||
}
|
||||
function fetchOrderbuyNow(data) {
|
||||
return api_house_request.houseRequest({
|
||||
url: "/order/buyNow",
|
||||
data,
|
||||
method: "POST"
|
||||
});
|
||||
}
|
||||
exports.fetchOrderbuyNow = fetchOrderbuyNow;
|
||||
exports.houseFetchCheckGoods = houseFetchCheckGoods;
|
||||
exports.houseFetchGoodsPreview = houseFetchGoodsPreview;
|
||||
exports.houseFetchUpdateAddress = houseFetchUpdateAddress;
|
||||
//# sourceMappingURL=../../.sourcemap/mp-weixin/api/house_order.js.map
|
||||
Reference in New Issue
Block a user