123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- import request from "@/utils/request.js";
- //获取店铺分类
- export function store_cate(data) {
- return request({
- url: '/api/store_cate',
- method: 'get',
- data
- });
- }
- //获取店铺列表
- export function getStoreList(data) {
- return request({
- url: '/api/store_list',
- method: 'get',
- data
- });
- }
- //获取店铺详情
- export function getStoreDetail(data, id) {
- return request({
- url: '/api/store_details/' + id,
- method: 'get',
- data
- });
- }
- // 获取优惠券详情
- export function getYhqDetail(data) {
- return request({
- url: '/api/coupon_datalis',
- method: 'get',
- data
- })
- }
- export function getGift(data) {
- return request({
- url: '/api/share',
- method: 'post',
- data
- })
- }
- // 地址逆解析/api/address
- export function getCity(data) {
- return request({
- url: '/api/address',
- method: 'get',
- data
- })
- }
- //兑换
- export function goDh(data) {
- return request({
- url: '/api/exchange',
- method: 'post',
- data
- })
- }
- //转赠
- export function gozz(data) {
- return request({
- url: '/api/donation',
- method: 'post',
- data
- })
- }
- // 发布优惠券
- export function storeCoupon(data) {
- return request({
- url: '/api/store_coupon',
- method: 'post',
- data
- })
- }
|