mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-uniapp.git
synced 2026-08-06 02:47:25 +08:00
- 新增分销业绩统计页面,包含时间范围筛选和自定义日期选择功能 - 重构分销认证页面,改为跳转至招募页面申请分销员身份 - 添加分销商品访问记录功能,支持分享追踪和佣金计算 - 更新分销历史记录页面,优化数据结构和显示字段 - 完全重写分销员首页,包含用户信息、收益统计、等级系统等功能
27 lines
893 B
JavaScript
27 lines
893 B
JavaScript
var _a;
|
|
function detectPlatform() {
|
|
if (typeof process !== 'undefined' && (_a = process === null || process === void 0 ? void 0 : process.env) !== null && _a !== void 0 && _a.VUE_APP_PLATFORM) {
|
|
return process.env.VUE_APP_PLATFORM;
|
|
}
|
|
if (typeof wx !== 'undefined' && typeof wx.getSystemInfoSync === 'function') {
|
|
return 'mp-weixin';
|
|
}
|
|
if (typeof uni !== 'undefined' && typeof uni.getSystemInfoSync === 'function') {
|
|
const info = uni.getSystemInfoSync();
|
|
if (info && info.uniPlatform === 'mp-weixin') {
|
|
return 'mp-weixin';
|
|
}
|
|
}
|
|
return undefined;
|
|
}
|
|
export const PLATFORM = detectPlatform();
|
|
/** 全局对象 */
|
|
const _uni = (function () {
|
|
if (typeof uni != "undefined")
|
|
return uni;
|
|
if (typeof wx != "undefined")
|
|
return wx;
|
|
return uni;
|
|
})();
|
|
export default _uni;
|