1. 会员等级背景图去掉校验 2. 当查询不到会员等级是,按无会员等级展示 3. 删除商城首页冗余配置在index中的引用 4. 换绑推广人时,计算上一个推广人的推广人数 5. pc后台清除推广人时,更新推广人数量 6. 保证砍价金额最小为0.01 7. 修复商品删除时购物车关联删除 8. 删除商品问题修复 9. 运费模板——指定包邮,包邮数量类型修改 10. 签到错误修复 11. 修复我的优惠券只查询20条的问题 12. 文章列表修复 13. 拼团商品详情页数据统计显示问题修复 14. PC后台,账户详情,持有优惠券列表修复 15. 支付查询参数修复 16. 修复过期优惠券可以重复领取 17. 订单邮费切换地址重复计算修复 18. 判断是否在指定包邮区域内 必须满足件数 + 金额 才能包邮 19. 支付页面,切换tab,金额计算问题修复 20. 物流模板新增、编辑——修复 21. 去除线下邮费的影响 22. 订单运费计算重写 23. 下单页面到店自提合计金额不应该计算商品邮费 24. 新人券领取后,部分使用时间为空——修复
111 lines
2.2 KiB
JavaScript
111 lines
2.2 KiB
JavaScript
import request from "@/utils/request.js";
|
|
import wechat from "@/libs/wechat.js";
|
|
import {
|
|
toLogin,
|
|
checkLogin
|
|
} from '../libs/login';
|
|
/**
|
|
* 获取微信公众号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 });
|
|
}
|
|
|
|
/**
|
|
* 微信(公众号,小程序)绑定手机号
|
|
* @param {Object} data
|
|
*/
|
|
export function getUserPhone(data){
|
|
return request.post('wechat/register/binding/phone',data,{noAuth : true});
|
|
}
|
|
|
|
/**
|
|
* 静默授权
|
|
* @param {Object} data
|
|
*/
|
|
export function silenceAuth(data) {
|
|
//#ifdef MP
|
|
return request.get("wechat/authorize/program/login", data, { noAuth : true });
|
|
//#endif
|
|
//#ifdef H5
|
|
return request.get("wechat/authorize/login", data, { noAuth : true });
|
|
//#endif
|
|
} |