换皮:新增peko
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
const productUrl = 'https://yeying.api.shengxuanwangluo.com/'; // 正式环境
|
||||
const testUrl = 'https://yeying.api.shengxuanwangluo.com/'; // 测试环境
|
||||
const productUrl = 'https://api.lecheng163.com'; // 正式环境
|
||||
const testUrl = 'https://beta.api.pekolive.com'; // 测试环境
|
||||
|
||||
|
||||
function render (templateId, templateData, target) {
|
||||
var html = template(templateId, templateData);
|
||||
target.innerHTML += html;
|
||||
}
|
||||
var tranUrl = 'https://yeying.api.shengxuanwangluo.com/';
|
||||
var tranUrl = 'https://api.lecheng163.com';
|
||||
|
||||
function dateFormat (date, fmt) {
|
||||
date = new Date(date);
|
||||
@@ -135,8 +135,8 @@ function checkVersion () {
|
||||
webApp: u.indexOf('Safari') > -1, //是否web应该程序,没有头部与底部
|
||||
weixin: u.indexOf('MicroMessenger') > -1, //是否微信
|
||||
qq: u.match(/\sQQ/i) == " qq", //是否QQ
|
||||
tutuApp: u.match('tutuApp'),
|
||||
app: u.match('tutuApp') //是否在app内
|
||||
pekoApp: u.match('pekoApp'),
|
||||
app: u.match('pekoApp') //是否在app内
|
||||
};
|
||||
}
|
||||
|
||||
@@ -614,14 +614,14 @@ function objToParam (a) {
|
||||
|
||||
// 封装 jquery 请求
|
||||
// written by zxfxiong
|
||||
function networkRequest (reqObj = {}) {
|
||||
function networkRequest (reqObj = {}, type) {
|
||||
// 关于reqObj内部参数:与 调用原生$.ajax()时传参一致
|
||||
// 调用该函数前:须保证事先调用了 getInfoFromClient()
|
||||
if (typeof pubInfo.deviceInfo === 'string') {
|
||||
pubInfo.deviceInfo = JSON.parse(pubInfo.deviceInfo);
|
||||
};
|
||||
const pubHeader = {
|
||||
app: pubInfo.deviceInfo.app,
|
||||
app: type != 'yinbaos' ? pubInfo.deviceInfo.app : 'yinbao',
|
||||
// app: 'peko',
|
||||
// app: pubInfo.deviceInfo.app.indexOf('peko') != -1 ? 'peko' : 'PlanetStar',
|
||||
appVersion: pubInfo.deviceInfo.appVersion || '',
|
||||
|
Reference in New Issue
Block a user