1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- import request from '@/utils/request.js'
- //查询商品列表
- export const getGoodsList = (data) => {
- return request({
- url: '/api/v1/wx/mini/product/query',
- method: 'post',
- data: data,
- type: 'application/json'
- })
- }
- // 查询商品详情
- export const getGoodsDetail = (data) => {
- return request({
- url: '/api/v1/wx/mini/product/detail',
- method: 'post',
- data: data,
- type: 'application/x-www-form-urlencoded'
- })
- }
- // 创建订单
- export const getOrderCreate = (data) => {
- return request({
- url: '/api/v1/wx/mini/order/create',
- method: 'post',
- data: data,
- type: 'application/json'
- })
- }
- // 查询订单详情
- export const getOrderDetail = (data) => {
- return request({
- url: '/api/v1/wx/mini/order/detail',
- method: 'post',
- data: data,
- type: 'application/x-www-form-urlencoded'
- })
- }
- // 查询订单列表
- export const getOrderList = (data) => {
- return request({
- url: '/api/v1/wx/mini/order/query',
- method: 'post',
- data: data,
- type: 'application/json'
- })
- }
- // 取消订单
- export const getOrderCancel = (data) => {
- return request({
- url: '/api/v1/wx/mini/order/cancel',
- method: 'post',
- data: data,
- type: 'application/json'
- })
- }
|