Commit 0be656bb authored by mengwenhao's avatar mengwenhao

Merge branch 'commodity_mengwehao' into pyq

parents bc9c42ad cac07490
const GOODS_URI = require("../config.js").GOODS_URI; const GOODS_URI = require("../config.js").GOODS_URI;
const req = require("../utils/request").httpReq; const req = require("../utils/request").httpReq;
/**
* 示例
* exports.方法名 = async ctx => {
* const url = `${设置好的域名}/向服务端发送的请求地址`;
* const opts = {
* url,
* method:"发送什么请求",
* qs: ctx.request.query (get请求的参数)
* body:ctx.request.body (post请求的参数)
* json:boolean (是否转换为json)
* };
* ctx.body = await req(ctx,opts); 将发送请求后的数据传递给前端页面
* };
*/
exports.getCategoryList = async ctx => { exports.getCategoryList = async ctx => {
const url = `${GOODS_URI}/goods/background/get_goods_category_list`; const url = `${GOODS_URI}/goods/background/get_goods_category_list`;
const opts = { const opts = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment