| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- import request from "@/utils/request.js";
- //积分商品分类
- export function getShopType(data) {
- return request({
- method: 'get',
- url: '/product/category/list',
- data
- });
- }
- // 积分商品列表
- export function getPointShopList(data) {
- console.log(data)
- // 模拟数据返回
- return new Promise((resolve, reject) => {
- setTimeout(() => {
- const mockData = {
- "code": 200,
- "msg": "操作成功",
- "data": {
- "records": [
- {
- id: 1,
- name: '广誉源会员定制玻璃杯1',
- pricePoint: '10元+1000积分',
- priceMoney: '100',
- sales: 10,
- productMainImage: 'https://test.baoxianzhanggui.com/nightFragrance/profile/upload/2025/01/03/b43f6087c815cdab8828eb68529d96bc73203b941ab71e-xrpfmn_fw1200webp_20250103175413A002.png'
- },
- {
- id: 2,
- name: '广誉源会员定制玻璃杯2',
- pricePoint: '10元+1000积分',
- priceMoney: '100',
- sales: 10,
- productMainImage: 'https://test.baoxianzhanggui.com/nightFragrance/profile/upload/2025/01/03/b43f6087c815cdab8828eb68529d96bc73203b941ab71e-xrpfmn_fw1200webp_20250103175413A002.png'
- },
- {
- id: 3,
- name: '广誉源会员定制玻璃杯3',
- pricePoint: '10元+1000积分',
- priceMoney: '100',
- sales: 10,
- productMainImage: 'https://test.baoxianzhanggui.com/nightFragrance/profile/upload/2025/01/03/b43f6087c815cdab8828eb68529d96bc73203b941ab71e-xrpfmn_fw1200webp_20250103175413A002.png'
- },
- {
- id: 4,
- name: '广誉源会员定制玻璃杯',
- pricePoint: '10元+1000积分',
- priceMoney: '100',
- sales: 10,
- productMainImage: 'https://test.baoxianzhanggui.com/nightFragrance/profile/upload/2025/01/03/b43f6087c815cdab8828eb68529d96bc73203b941ab71e-xrpfmn_fw1200webp_20250103175413A002.png'
- },
- {
- id: 5,
- name: '广誉源会员定制玻璃杯',
- pricePoint: '10元+1000积分',
- priceMoney: '100',
- sales: 10,
- productMainImage: 'https://test.baoxianzhanggui.com/nightFragrance/profile/upload/2025/01/03/b43f6087c815cdab8828eb68529d96bc73203b941ab71e-xrpfmn_fw1200webp_20250103175413A002.png'
- },
- ],
- "total": 2,
- "size": 10,
- "current": 1,
- "orders": [],
- "optimizeCountSql": true,
- "searchCount": true,
- "countId": null,
- "maxLimit": null,
- "pages": 1
- }
- }
- resolve(mockData);
- }, 800);
- });
- // 真实API调用
- /*
- return request({
- method: 'get',
- url: '/api/order/v1/wx/getOrder',
- data
- });
- */
- }
|