1. 【修复】申请退款后积分等操作可能出现错误的问题 2. 【修复】拼团支付可能出现支付错误的问题 3. 【修复】退款申请后的订单流程优化和积分赠送的问题 4. 【修复】回收站中的商品无法恢复的问题 5. 【修复】一号通短信查询记录不完整的问题 6. 【修复】用户管理批量加分组,标签的问题 7. 【修复】积分日志搜索显示有误的问题 8. 【修复】手动发送优惠券可能会出错的问题 9. 【修复】核销订单创建在某种条件下会出错的问题 10. 【修复】移动端商品详情,购物车等样式兼容问题 11. 【修复】业务流程性的优化
87 lines
1.7 KiB
JavaScript
87 lines
1.7 KiB
JavaScript
import request from "@/utils/request.js";
|
|
import wechat from "@/libs/wechat.js";
|
|
|
|
/**
|
|
* 获取微信公众号js配置
|
|
* @returns {*}
|
|
*/
|
|
export function getWechatConfig() {
|
|
return request.get("wechat/config",{ url: encodeURIComponent(wechat.signLink()) },{ noAuth: true });
|
|
}
|
|
|
|
// export function getWechatConfig() {
|
|
// return request.get(
|
|
// "wechat/config",
|
|
// { url: encodeURIComponent(location.href.split('#')[0]) },
|
|
// { noAuth: true }
|
|
// );
|
|
// }
|
|
|
|
/**
|
|
* 获取微信sdk配置
|
|
* @returns {*}
|
|
*/
|
|
export function wechatAuth(code, spread, login_type) {
|
|
return request.get(
|
|
"wechat/authorize/login",
|
|
{ code, spread_spid:spread, login_type },
|
|
{ noAuth: true }
|
|
);
|
|
}
|
|
|
|
/**
|
|
* 获取登录授权login
|
|
*
|
|
*/
|
|
export function getLogo()
|
|
{
|
|
// wechat/get_logo
|
|
return request.get('wechat/getLogo', {}, { noAuth : true});
|
|
}
|
|
|
|
/**
|
|
* 小程序用户登录
|
|
* @param data object 小程序用户登录信息
|
|
*/
|
|
export function login(code,data) {
|
|
return request.post("wechat/authorize/program/login?code="+code, data, { noAuth : true });
|
|
}
|
|
/**
|
|
* 分享
|
|
* @returns {*}
|
|
*/
|
|
export function getShare() {
|
|
return request.get("share", {}, { noAuth: true });
|
|
}
|
|
|
|
/**
|
|
* 获取关注海报
|
|
* @returns {*}
|
|
*/
|
|
export function follow() {
|
|
return request.get("wechat/follow", {}, { noAuth: true });
|
|
}
|
|
|
|
/**
|
|
* 获取图片base64
|
|
* @retins {*}
|
|
* */
|
|
export function imageBase64(image) {
|
|
return request.post("qrcode/base64",image,{ noAuth: true },1);
|
|
}
|
|
|
|
/**
|
|
* 自动复制口令功能
|
|
* @returns {*}
|
|
*/
|
|
export function copyWords() {
|
|
return request.get("copy_words", {}, { noAuth: true });
|
|
}
|
|
|
|
/**
|
|
* 首页 获取客服地址
|
|
* @returns {*}
|
|
*/
|
|
export function kefuConfig() {
|
|
return request.get("config", {}, { noAuth: true });
|
|
} |