Commit 6670cf71 by agan

xg

parent 7c81dba2
Showing with 20 additions and 2 deletions
...@@ -366,13 +366,31 @@ webAppComm.prototype.hideTopBar = function () { ...@@ -366,13 +366,31 @@ webAppComm.prototype.hideTopBar = function () {
webAppCollaboration(obj2); webAppCollaboration(obj2);
} }
//唤起谷歌、苹果支付
webAppComm.prototype.oriCharge = function (data) {
let obj = {
"cid": 27,
"reqCode": new Date().getTime(),
"data": {
"msg": "直接唤起 苹果支付 和 google支付",
"pid": data.pid,
"packageid": data.packageid,
"chargeInfo": data.info,
"succeedAlert": data.alert
}
}
let obj2 = JSON.stringify(obj);
console.log(obj2)
webAppCollaboration(obj2);
}
// 31: 打开半屏网页 // 31: 打开半屏网页
webAppComm.prototype.openHalfWeb = function (param) { webAppComm.prototype.openHalfWeb = function (param) {
let obj = { let obj = {
"cid": 31, "cid": 31,
"data": { "data": {
popupType: param.type, //popupType 1全屏2半屏3浮动屏(默认居中) popupType: param.type, //popupType 1全屏2半屏3浮动屏(默认居中)
heightR: param.height, //heightR 弹窗高度 单位vw 安卓不允许传小数; heightR: param.height, //heightR 弹窗高度 单位vw 安卓不允许 传小数;
widthR: param.width, //widthR 弹窗宽度vw widthR: param.width, //widthR 弹窗宽度vw
clickBlank: param.clickBlank, //clickBlank 点击区域外是否关闭 0不关闭 1关闭 clickBlank: param.clickBlank, //clickBlank 点击区域外是否关闭 0不关闭 1关闭
url: param.url, //url 需要打开的url (默认拼接uid token roomid等参数) url: param.url, //url 需要打开的url (默认拼接uid token roomid等参数)
...@@ -389,7 +407,7 @@ webAppComm.prototype.openHalfWeb = function (param) { ...@@ -389,7 +407,7 @@ webAppComm.prototype.openHalfWeb = function (param) {
if (param.top || param.top === 0) { if (param.top || param.top === 0) {
obj.data.top = param.top; obj.data.top = param.top;
} }
if (param.left || param.left === 0) { if (param.left || param.left === 0) {
obj.data.left = param.left; obj.data.left = param.left;
} }
if (param.bottom || param.bottom === 0) { if (param.bottom || param.bottom === 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment