Commit c8ae704a by kaisa

feat:cid3分享 新增通用网页分享配置字段

parent 6098c1f4
Showing with 39 additions and 4 deletions
...@@ -26,7 +26,10 @@ if (isFirefly) { ...@@ -26,7 +26,10 @@ if (isFirefly) {
imgUrl1 = 'https://app.ixiulive.com/static/app/img/com.happy.live/kf.webp'; imgUrl1 = 'https://app.ixiulive.com/static/app/img/com.happy.live/kf.webp';
imgUrl2 = 'https://app.ixiulive.com/static/app/img/com.happy.live/share1.png' imgUrl2 = 'https://app.ixiulive.com/static/app/img/com.happy.live/share1.png'
imgUrl3 = 'https://app.ixiulive.com/static/app/img/com.happy.live/5.png' imgUrl3 = 'https://app.ixiulive.com/static/app/img/com.happy.live/5.png'
imgUrl4 = 'https://app.ixiulive.com/static/app/img/title.png'; imgUrl4 = 'https://app.ixiulive.com/static/app/img/title.png'
imgUrl5 = 'https://big.bgp.ourpow.com/comm/webShare/close.png'
imgUrl6 = 'https://big.bgp.ourpow.com/comm/webShare/kf.png';
imgUrl7 = 'https://big.bgp.ourpow.com/comm/webShare/refresh.png';
} else if (fileName == 'fusi') { } else if (fileName == 'fusi') {
// fusiya // fusiya
imgUrl1 = 'https://app.ixiulive.com/static/app/img/fusi/kf.png'; imgUrl1 = 'https://app.ixiulive.com/static/app/img/fusi/kf.png';
...@@ -86,7 +89,24 @@ if ($firefly.urlData.appversion >= 7400) { ...@@ -86,7 +89,24 @@ if ($firefly.urlData.appversion >= 7400) {
"isPrivateMes": 1, // 是否可以分享私信 0:否 1:是 "isPrivateMes": 1, // 是否可以分享私信 0:否 1:是
"webpage": location.origin + location.pathname + "?agentCode=" + $firefly.urlData.uid + "&bindType=3", "webpage": location.origin + location.pathname + "?agentCode=" + $firefly.urlData.uid + "&bindType=3",
} }
$firefly.goShare(shareContent) let shareConfig = [
{
"imgUrl": imgUrl7,
"title": '刷新',
"webFunc": "$firefly.refreshWeb()",
},
{
"imgUrl": imgUrl5,
"title": '客服',
"webFunc": "$firefly.goCustomerService()",
},
{
"imgUrl": imgUrl6,
"title": '关闭',
"webFunc": "$firefly.closeWebView()",
},
]
$firefly.goShare(shareContent, "", shareConfig);
} }
function openExtra() { function openExtra() {
let infos; let infos;
......
...@@ -61,6 +61,7 @@ ...@@ -61,6 +61,7 @@
// 62:让客户端打开通用 Flutter 路由 Dialog // 62:让客户端打开通用 Flutter 路由 Dialog
// 63:购买成功后通知客户端刷新商城宝石和露水余额 // 63:购买成功后通知客户端刷新商城宝石和露水余额
// 64:控制页面左右滑手势 // 64:控制页面左右滑手势
// 65:
function webAppComm() { function webAppComm() {
this.data = null; this.data = null;
...@@ -207,9 +208,9 @@ webAppComm.prototype.goWebView = function (url) { ...@@ -207,9 +208,9 @@ webAppComm.prototype.goWebView = function (url) {
} }
//3:分享 //3:分享
webAppComm.prototype.goShare = function (shareContent, shareType) { webAppComm.prototype.goShare = function (shareContent, shareType, shareConfig) {
let mShare = shareType || { let mShare = shareType || {
//1图片 2文字 3网页 //分享方式 1图片 2文字 3网页
wechat: 3, wechat: 3,
wechat_moment: 3, wechat_moment: 3,
facebook: 3, facebook: 3,
...@@ -224,6 +225,7 @@ webAppComm.prototype.goShare = function (shareContent, shareType) { ...@@ -224,6 +225,7 @@ webAppComm.prototype.goShare = function (shareContent, shareType) {
data: { data: {
shareContent: shareContent, shareContent: shareContent,
shareType: mShare, shareType: mShare,
shareConfig: shareConfig,
}, },
}; };
let obj2 = JSON.stringify(obj); let obj2 = JSON.stringify(obj);
...@@ -1100,6 +1102,19 @@ webAppComm.prototype.controlSwiperHandle = function (type) { ...@@ -1100,6 +1102,19 @@ webAppComm.prototype.controlSwiperHandle = function (type) {
webAppCollaboration(obj2); webAppCollaboration(obj2);
}; };
// 65: 右上角的分享网页配置项
webAppComm.prototype.shareConfig = function (config) {
let obj = {
cid: 65,
data: {
msg: "网页分享配置内容",
config: config,
},
};
let obj2 = JSON.stringify(obj);
webAppCollaboration(obj2);
};
// 接收客戶端的消息 // 接收客戶端的消息
webAppComm.prototype.reMsgFromApp = function (callback) { webAppComm.prototype.reMsgFromApp = function (callback) {
callback && callback(); callback && callback();
......
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