Commit 6098c1f4 by kaisa

feat:补充cid 2

parent fb498f8c
Showing with 15 additions and 1 deletions
...@@ -192,6 +192,20 @@ function webAppComm() { ...@@ -192,6 +192,20 @@ function webAppComm() {
this.needRefresh = false; this.needRefresh = false;
} }
//2:跳转新的webview页面
// 此cid应用场景可以用于跳转前的页面头部是自定义的,在这个页面跳转到新的页面头部是存在的,如果直接通过路由跳的话,跳转后的页面头部会消失,所以需要通过cid2来进行跳转
webAppComm.prototype.goWebView = function (url) {
let obj = {
cid: 2,
reqCode: new Date().getTime(),
data: {
url: url,
},
};
let obj2 = JSON.stringify(obj);
webAppCollaboration(obj2);
}
//3:分享 //3:分享
webAppComm.prototype.goShare = function (shareContent, shareType) { webAppComm.prototype.goShare = function (shareContent, shareType) {
let mShare = shareType || { let mShare = shareType || {
...@@ -286,7 +300,7 @@ webAppComm.prototype.goBindWechat = function () { ...@@ -286,7 +300,7 @@ webAppComm.prototype.goBindWechat = function () {
webAppCollaboration(obj); webAppCollaboration(obj);
}; };
//弹出帮助 //9:弹出帮助
webAppComm.prototype.needHelp = function () { webAppComm.prototype.needHelp = function () {
let obj = { let obj = {
cid: 9, cid: 9,
......
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