feat:v1.4前端更新

This commit is contained in:
超凡
2025-06-24 14:43:09 +08:00
parent 0268aa5033
commit 35fec82e4a
1026 changed files with 118424 additions and 56490 deletions

View File

@@ -1,6 +1,16 @@
// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2025 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------
import request from "@/utils/request.js";
/**
*
/*
* 所有活动接口 包括:拼团,砍价,秒杀
*
*/
@@ -18,7 +28,7 @@ export function getCombinationList(data) {
*
*/
export function getCombinationDetail(id) {
return request.get('combination/detail/'+id);
return request.get('combination/detail/'+id,{},{noAuth:true});
}
/**
@@ -72,7 +82,7 @@ export function bargainUserCancel(bargainId){
* 砍价产品详情
*/
export function getBargainDetail(id) {
return request.get("bargain/detail/" + id);
return request.get("bargain/detail/" + id,{},{noAuth:true});
}
/**
@@ -133,7 +143,7 @@ export function getSeckillList(time,data){
* @param int id
*/
export function getSeckillDetail(id){
return request.get('seckill/detail/'+id);
return request.get('seckill/detail/'+id,{},{noAuth:true});
}
/**
@@ -209,12 +219,13 @@ export function getBargainIndexApi(){
* 首页砍价产品列表
*/
export function bargainHeaderApi(){
return request.get('bargain/header');
return request.get('bargain/header',{},{noAuth:true});
}
/**
* 拼图列表头部
*/
export function combinationHeaderApi(){
return request.get('combination/header');
}
return request.get('combination/header',{},{noAuth:true});
}

View File

@@ -1,89 +0,0 @@
import request from "@/utils/request.js";
/**
* 统计数据
*/
export function getStatisticsInfo() {
return request.get("/admin/order/statistics", {}, { login: true });
}
/**
* 订单月统计
*/
export function getStatisticsMonth(where) {
return request.get("/admin/order/data", where, { login: true });
}
/**
* 订单月统计
*/
export function getAdminOrderList(where) {
return request.get("/admin/order/list", where, { login: true });
}
/**
* 订单改价
*/
export function setAdminOrderPrice(data) {
return request.post("/admin/order/price", data, { login: true });
}
/**
* 订单备注
*/
export function setAdminOrderRemark(data) {
return request.post("/admin/order/remark", data, { login: true });
}
/**
* 订单详情
*/
export function getAdminOrderDetail(orderId) {
return request.get("/admin/order/detail/" + orderId, {}, { login: true });
}
/**
* 订单发货信息获取
*/
export function getAdminOrderDelivery(orderId) {
return request.get(
"/admin/order/delivery/gain/" + orderId,
{},
{ login: true }
);
}
/**
* 订单发货保存
*/
export function setAdminOrderDelivery(data) {
return request.post("/admin/order/delivery/keep", data, { login: true });
}
/**
* 订单统计图
*/
export function getStatisticsTime(data) {
return request.get("/admin/order/time", data, { login: true });
}
/**
* 线下付款订单确认付款
*/
export function setOfflinePay(data) {
return request.post("/admin/order/offline", data, { login: true });
}
/**
* 订单确认退款
*/
export function setOrderRefund(data) {
return request.post("/admin/order/refund", data, { login: true });
}
/**
* 获取快递公司
* @returns {*}
*/
export function getLogistics() {
return request.get("/logistics", {}, { login: false });
}
/**
* 订单核销
* @returns {*}
*/
export function orderVerific(verify_code, is_confirm) {
return request.post("order/order_verific", { verify_code, is_confirm });
}

View File

@@ -1,3 +1,13 @@
// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2025 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------
import request from "@/utils/request.js";
/**
* 公共接口 ,优惠券接口 , 行业此讯 , 手机号码注册
@@ -227,3 +237,74 @@ export function getLiveList(page,limit) {
export function getQrcode(data) {
return request.post('qrcode/get',data,{ noAuth: true });
}
/**
* 获取主题换色配置
*/
export function getTheme() {
return request.get('index/color/config',{},{noAuth:true});
}
/**
* 获取主题换色配置
*/
export function getAppVersion() {
return request.get('index/get/version',{},{noAuth:true});
}
/**
* 获取全局本地图片域名
*/
export function getImageDomain() {
return request.get('image/domain',{},{noAuth:true});
}
/**
* 商品排行榜
*/
export function productRank(){
return request.get('product/leaderboard',{},{noAuth:true});
}
/**
* 校验token是否有效
*/
export function tokenIsExistApi(){
return request.post(`token/is/exist`,{},{noAuth:true});
}
/**
* 获取登录配置
*/
export function loginConfigApi(){
return request.get(`login/config`,{},{noAuth:true});
}
/**
* 获取底部导航信息
*/
export function getBottomNavigationApi(){
return request.get(`get/bottom/navigation`,{},{noAuth:true});
}
/**
* 首页装修
*/
export function pagediyInfoApi(id){
return request.get(`pagediy/info/${id}`,{},{noAuth:true});
}
/**
* 首页 第二级商品分类
*
*/
export function getCategoryTwo(id)
{
return request.get(`categorybypid/${id}`,{},{ noAuth : true});
}
/**
* 获取备案设置
*
*/
export function getConfigCopyright(id)
{
return request.get(`config/get/copyright`,{},{ noAuth : true},{},true);
}

View File

@@ -1,3 +1,14 @@
// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2025 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------
import request from "@/utils/request.js";
/**
@@ -76,7 +87,7 @@ export function orderComment(data) {
* @param object data
*/
export function orderPay(data) {
return request.post('order/pay', data);
return request.post('pay/payment', data);
}
/**
@@ -214,14 +225,6 @@ export function qrcodeApi(data) {
return request.post('qrcode/str2base64', data, {}, 1);
}
/**
* 微信订单支付
* @param object data
*/
export function wechatOrderPay(data) {
return request.post('pay/payment', data);
}
/**
* 微信查询支付结果
* @param object data
@@ -230,6 +233,7 @@ export function wechatQueryPayResult(data) {
return request.get('pay/queryPayResult?orderNo=' + data);
}
/**
* 申请退款商品详情
* @param object data
@@ -252,4 +256,19 @@ export function preOrderApi(data) {
*/
export function loadPreOrderApi(preOrderNo) {
return request.get(`order/load/pre/${preOrderNo}`);
}
/**
* 获取支付配置
* @param object preOrderNo
*/
export function getPayConfig(preOrderNo) {
return request.get(`order/get/pay/config`);
}
/**
* 获取支付配置
*
*/
export function getOrderPayConfig() {
return request.get(`pay/get/config`);
}

View File

@@ -1,3 +1,14 @@
// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2025 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------
import request from "@/utils/request.js";
import wechat from "@/libs/wechat.js";
import {
@@ -74,14 +85,6 @@ export function copyWords() {
return request.get("copy_words", {}, { noAuth: true });
}
/**
* 首页 获取客服地址
* @returns {*}
*/
export function kefuConfig() {
return request.get("config", {}, { noAuth: true });
}
/**
* 微信(公众号,小程序)绑定手机号
* @param {Object} data
@@ -98,19 +101,17 @@ export function appAuth(data) {
return request.post("wechat/authorize/app/login", data, { noAuth : true });
}
/**
* 苹果登录
* @param {Object} data
*/
export function appleLogin(data) {
return request.post("ios/login", data, { noAuth : true });
}
/**
* 苹果绑定手机号
* @param {Object} data
*/
export function iosBinding(data) {
return request.post("ios/binding/phone", data, { noAuth : true });
}
/**
* IOS绑定手机号 -注册后使用
* @param {Object} data
*/
export function iosRegisterBinding(data) {
return request.post("ios/register/binding/phone", data, { noAuth : true });
}

View File

@@ -1,3 +1,14 @@
// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2025 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------
import request from "@/utils/request.js";
/**
@@ -85,6 +96,16 @@ export function getProductslist(data) {
});
}
/**
* 商品列表(个别分类模型使用)
* @param object data
*/
export function productList(data) {
return request.get('product/list', data, {
noAuth: true
});
}
/**
* 获取推荐产品
*
@@ -175,7 +196,9 @@ export function storeListApi(data) {
* @param object data
*/
export function getProductGood() {
return request.get('product/good',{},{ noAuth : true});
return request.get('product/good',{},{
noAuth: true
});
}
/**
@@ -185,7 +208,24 @@ export function getProductGood() {
*
*/
export function getReplyProduct(id) {
return request.get('reply/product/' + id, {},{
return request.get('reply/product/' + id,{}, {
noAuth: true
})
}
/**
* 获取商品的sku
* @returns {*}
*/
export function getAttr(id) {
return request.get("product/sku/detail/" + id);
}
/**
* 根据商品id集合查询对应商品
* @param {string} ids
*/
export function productByidsApi(ids) {
return request.get(`product/byids/${ids}`,{}, {
noAuth: true
});
}

View File

@@ -1,5 +1,16 @@
// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2025 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------
import request from "@/utils/request.js";
import Cache from "@/utils/cache.js"
/**
* 获取用户信息
*
@@ -23,7 +34,6 @@ export function userShare(){
export function loginH5(data) {
return request.post("login", data, { noAuth : true });
}
/**
* h5用户手机号登录
* @param data object 用户手机号 也只能
@@ -68,7 +78,7 @@ export function registerReset(data) {
*
*/
export function getMenuList() {
return request.get("menu/user");
return request.get("menu/user",'',{ noAuth : true });
}
/*
@@ -408,6 +418,24 @@ export function getuserDalance()
return request.get("user/balance");
}
/*
统计
*
*/
export function computeUser(){
uni.request({
url: document.location.protocol + '//shop.crmeb.net/index.php/admin/server.upgrade_api/updatewebinfo',
method:'POST',
data: {
host:window.location.host,
https:document.location.protocol,
version:'CRMEB-JAVA-SY-V2.0',
ip:Cache.has('Ip') ? Cache.get('Ip') : ''
},
dataType:'json',
success: (res) => {}
});
}
/**
* 账单记录;
@@ -439,22 +467,9 @@ export function spreadPeoCount() {
return request.get("spread/people/count");
}
/*
统计
*
/**
* 版权信息
*/
export function computeUser(){
uni.request({
url: document.location.protocol + '//shop.crmeb.net/index.php/admin/server.upgrade_api/updatewebinfo',
method:'POST',
data: {
host:window.location.host,
https:document.location.protocol,
version:'CRMEB-JAVA-KY-V1.3.4',
version_code:'gitee',
ip:Cache.has('Ip') ? Cache.get('Ip') : ''
},
dataType:'json',
success: (res) => {}
});
export function copyrightApi(){
return request.get(`copyright/info`,{},{noAuth:true});
}