Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
libai
/
Static
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b08bcd57
authored
Apr 26, 2023
by
agan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
3d7248d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
js/webAppComm.js
js/webAppComm.js
View file @
b08bcd57
...
@@ -156,7 +156,7 @@ webAppComm.prototype.goShare = function (shareContent) {
...
@@ -156,7 +156,7 @@ webAppComm.prototype.goShare = function (shareContent) {
}
}
let
obj2
=
JSON
.
stringify
(
obj
);
let
obj2
=
JSON
.
stringify
(
obj
);
a
ppCollaboration
(
obj2
)
webA
ppCollaboration
(
obj2
)
}
}
//客服
//客服
...
@@ -174,7 +174,7 @@ webAppComm.prototype.goCustomerService = function () {
...
@@ -174,7 +174,7 @@ webAppComm.prototype.goCustomerService = function () {
}
}
}
}
let
obj2
=
JSON
.
stringify
(
obj
);
let
obj2
=
JSON
.
stringify
(
obj
);
a
ppCollaboration
(
obj2
)
webA
ppCollaboration
(
obj2
)
}
}
//跳转外部浏览器
//跳转外部浏览器
...
@@ -187,7 +187,7 @@ webAppComm.prototype.goExternalWeb = function (h5Url) {
...
@@ -187,7 +187,7 @@ webAppComm.prototype.goExternalWeb = function (h5Url) {
}
}
}
}
let
obj2
=
JSON
.
stringify
(
obj
);
let
obj2
=
JSON
.
stringify
(
obj
);
window
.
yazhai
.
a
ppCollaboration
(
obj2
);
window
.
yazhai
.
webA
ppCollaboration
(
obj2
);
}
}
//打开兑换宝石页面
//打开兑换宝石页面
...
@@ -200,7 +200,7 @@ webAppComm.prototype.goExchangeGem = function () {
...
@@ -200,7 +200,7 @@ webAppComm.prototype.goExchangeGem = function () {
}
}
}
}
let
obj2
=
JSON
.
stringify
(
obj
);
let
obj2
=
JSON
.
stringify
(
obj
);
a
ppCollaboration
(
obj2
);
webA
ppCollaboration
(
obj2
);
}
}
//绑定手机
//绑定手机
...
@@ -213,7 +213,7 @@ webAppComm.prototype.goBindPhone = function () {
...
@@ -213,7 +213,7 @@ webAppComm.prototype.goBindPhone = function () {
}
}
}
}
let
obj
=
JSON
.
stringify
(
obj2
);
let
obj
=
JSON
.
stringify
(
obj2
);
a
ppCollaboration
(
obj
);
webA
ppCollaboration
(
obj
);
}
}
//绑定微信
//绑定微信
...
@@ -226,7 +226,7 @@ webAppComm.prototype.goBindWechat = function () {
...
@@ -226,7 +226,7 @@ webAppComm.prototype.goBindWechat = function () {
}
}
}
}
let
obj
=
JSON
.
stringify
(
obj2
);
let
obj
=
JSON
.
stringify
(
obj2
);
a
ppCollaboration
(
obj
)
webA
ppCollaboration
(
obj
)
}
}
//弹出帮助
//弹出帮助
...
@@ -241,7 +241,7 @@ webAppComm.prototype.goBindWechat = function () {
...
@@ -241,7 +241,7 @@ webAppComm.prototype.goBindWechat = function () {
}
}
}
}
let
obj2
=
JSON
.
stringify
(
obj
)
let
obj2
=
JSON
.
stringify
(
obj
)
a
ppCollaboration
(
obj2
)
webA
ppCollaboration
(
obj2
)
}
}
//确认是否有该APP
//确认是否有该APP
...
@@ -255,7 +255,7 @@ webAppComm.prototype.ifHasApp = function () {
...
@@ -255,7 +255,7 @@ webAppComm.prototype.ifHasApp = function () {
}
}
}
}
let
obj
=
JSON
.
stringify
(
obj2
);
let
obj
=
JSON
.
stringify
(
obj2
);
a
ppCollaboration
(
obj
)
webA
ppCollaboration
(
obj
)
}
}
//跳转
//跳转
...
@@ -272,7 +272,7 @@ webAppComm.prototype.goOthers = function (jumptype, url) {
...
@@ -272,7 +272,7 @@ webAppComm.prototype.goOthers = function (jumptype, url) {
}
}
let
obj2
=
JSON
.
stringify
(
obj
);
let
obj2
=
JSON
.
stringify
(
obj
);
a
ppCollaboration
(
obj2
);
webA
ppCollaboration
(
obj2
);
}
}
//关闭网页
//关闭网页
...
@@ -283,7 +283,7 @@ webAppComm.prototype.closeWebView = function (callback) {
...
@@ -283,7 +283,7 @@ webAppComm.prototype.closeWebView = function (callback) {
"reqCode"
:
new
Date
().
getTime
(),
"reqCode"
:
new
Date
().
getTime
(),
}
}
let
obj2
=
JSON
.
stringify
(
obj
);
let
obj2
=
JSON
.
stringify
(
obj
);
a
ppCollaboration
(
obj2
);
webA
ppCollaboration
(
obj2
);
}
}
//webview右上角的icon
//webview右上角的icon
...
@@ -296,7 +296,7 @@ webAppComm.prototype.showIcons = function (infos) {
...
@@ -296,7 +296,7 @@ webAppComm.prototype.showIcons = function (infos) {
}
}
}
}
let
obj2
=
JSON
.
stringify
(
obj
);
let
obj2
=
JSON
.
stringify
(
obj
);
a
ppCollaboration
(
obj2
);
webA
ppCollaboration
(
obj2
);
}
}
//打开更多功能面板
//打开更多功能面板
...
@@ -309,7 +309,7 @@ webAppComm.prototype.openExtra = function (infos) {
...
@@ -309,7 +309,7 @@ webAppComm.prototype.openExtra = function (infos) {
}
}
}
}
var
obj2
=
JSON
.
stringify
(
obj
);
var
obj2
=
JSON
.
stringify
(
obj
);
a
ppCollaboration
(
obj2
);
webA
ppCollaboration
(
obj2
);
}
}
//修改网页标题
//修改网页标题
...
@@ -327,7 +327,7 @@ webAppComm.prototype.changeTitle1 = function () {
...
@@ -327,7 +327,7 @@ webAppComm.prototype.changeTitle1 = function () {
}
}
}
}
var
obj2
=
JSON
.
stringify
(
obj
);
var
obj2
=
JSON
.
stringify
(
obj
);
a
ppCollaboration
(
obj2
);
webA
ppCollaboration
(
obj2
);
}
}
//修改网页标题
//修改网页标题
...
@@ -340,7 +340,7 @@ webAppComm.prototype.changeTitle2 = function () {
...
@@ -340,7 +340,7 @@ webAppComm.prototype.changeTitle2 = function () {
}
}
}
}
var
obj2
=
JSON
.
stringify
(
obj
);
var
obj2
=
JSON
.
stringify
(
obj
);
a
ppCollaboration
(
obj2
);
webA
ppCollaboration
(
obj2
);
}
}
//刷新网页
//刷新网页
...
@@ -364,7 +364,7 @@ webAppComm.prototype.url_get_params = function (url_path) {
...
@@ -364,7 +364,7 @@ webAppComm.prototype.url_get_params = function (url_path) {
}
}
function
a
ppCollaboration
(
msg
)
{
function
webA
ppCollaboration
(
msg
)
{
var
sUserAgent
=
navigator
.
userAgent
.
toLowerCase
();
var
sUserAgent
=
navigator
.
userAgent
.
toLowerCase
();
var
bIsIpad
=
sUserAgent
.
match
(
/ipad/i
)
==
"ipad"
;
var
bIsIpad
=
sUserAgent
.
match
(
/ipad/i
)
==
"ipad"
;
var
bIsIphoneOs
=
sUserAgent
.
match
(
/iphone os/i
)
==
"iphone os"
;
var
bIsIphoneOs
=
sUserAgent
.
match
(
/iphone os/i
)
==
"iphone os"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment