first commit

This commit is contained in:
PC-202306242200\Administrator
2026-03-28 23:07:10 +08:00
commit c7cbc11d07
594 changed files with 112383 additions and 0 deletions

42
config/app.js Normal file
View File

@@ -0,0 +1,42 @@
// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------
//移动端商城API
// let domain = 'https://appapi.prod.xingmeng2023.com'
let domain = 'http://192.168.112.20:8081'
module.exports = {
// 请求域名 格式: https://您的域名
HTTP_REQUEST_URL: domain,
// #ifdef MP
HTTP_REQUEST_URL: domain,
// #endif
// HTTP_ADMIN_URL: 'http://192.168.1.63:8081', //PC后台的API请求地址上传图片用,影响h5上传头像
HTTP_ADMIN_URL:'https://appapi.prod.xingmeng2023.com', //PC后台的API请求地址上传图片用,影响h5上传头像
// #ifdef H5
//H5接口是浏览器地址
// HTTP_REQUEST_URL: window.location.protocol+"//"+window.location.host,
// http://api.java.crmeb.net:20001
HTTP_REQUEST_URL: domain,
// #endif
HEADER: {
'content-type': 'application/json'
},
HEADERPARAMS: {
'content-type': 'application/x-www-form-urlencoded'
},
// 回话密钥名称 请勿修改此配置
TOKENNAME: 'Authori-zation',
// 缓存时间 0 永久
EXPIRE: 0,
//分页最多显示条数
LIMIT: 10
};

34
config/cache.js Normal file
View File

@@ -0,0 +1,34 @@
module.exports = {
//token
LOGIN_STATUS: 'LOGIN_STATUS_TOKEN',
// uid
UID:'UID',
//用户信息
USER_INFO: 'USER_INFO',
//token 过期时间
EXPIRES_TIME: 'EXPIRES_TIME',
//微信授权
WX_AUTH: 'WX_AUTH',
//微信授权状态
STATE_KEY: 'wx_authorize_state',
//登录类型
LOGINTYPE: 'loginType',
//登录回调地址
BACK_URL: 'login_back_url',
// 小程序授权状态
STATE_R_KEY: 'roution_authorize_state',
//logo Url
LOGO_URL: 'LOGO_URL',
//模板缓存
// SUBSCRIBE_MESSAGE: 'SUBSCRIBE_MESSAGE',
TIPS_KEY: 'TIPS_KEY',
SPREAD: 'spread',
//缓存经度
CACHE_LONGITUDE: 'LONGITUDE',
//缓存纬度
CACHE_LATITUDE: 'LATITUDE',
//app手机信息
PLATFORM: 'systemPlatform'
}

36
config/share.js Normal file
View File

@@ -0,0 +1,36 @@
module.exports = {
onLoad(options) {
console.log(options);
if (options.scene) {
let shareCode = decodeURIComponent(options.scene).split(',')[0].split(':')[1];
console.log(shareCode);
if (shareCode) {
uni.setStorageSync('user_shareCode', shareCode);
}
}
if (options && options.s) {
uni.setStorageSync('user_shareCode', options.shareCode);
}
},
onShareAppMessage() {
let user = JSON.parse(uni.getStorageSync('USER_INFO'));
let shareCode = user ? user.shareCode : '';
const pages = getCurrentPages();
const currentPage = pages[pages.length - 1];
let pageUrl = `/${currentPage.route}`;
return {
path: pageUrl + '?shareCode=' + shareCode
}
},
onShareTimeline() {
let user = JSON.parse(uni.getStorageSync('USER_INFO'));
let shareCode = user ? user.shareCode : '';
const pages = getCurrentPages();
const currentPage = pages[pages.length - 1];
let pageUrl = `/${currentPage.route}`;
return {
path: pageUrl + '?shareCode=' + shareCode
}
},
}

8
config/socket.js Normal file
View File

@@ -0,0 +1,8 @@
module.exports = {
// Socket链接 暂不做配置
WSS_SERVER_URL:'',
// Socket调试模式
SERVER_DEBUG:true,
// 心跳间隔
PINGINTERVAL:3000
}