diff --git a/view/peko/modules/share_room/index.html b/view/peko/modules/share_room/index.html
index 05f9819..0e0a907 100644
--- a/view/peko/modules/share_room/index.html
+++ b/view/peko/modules/share_room/index.html
@@ -33,7 +33,7 @@

diff --git a/view/peko/modules/share_room/js/index.js b/view/peko/modules/share_room/js/index.js
index b86ec0d..54d3c35 100644
--- a/view/peko/modules/share_room/js/index.js
+++ b/view/peko/modules/share_room/js/index.js
@@ -2,6 +2,7 @@
/* eslint-disable dot-notation */
/* eslint-disable eqeqeq */
/* eslint-disable no-undef */
+var browser = checkVersion();
var share = {
title: 'peko,带你进入声优的世界',
link: window.location.href,
@@ -30,6 +31,9 @@ $(function () {
user.find('.user-name').html(decodeURIComponent(locateObj.share_name));
user.find('.user-room span').html(decodeURIComponent(locateObj.room_name));
user.find('.user-id span').html(locateObj.room_id);
+ var roomNewUid = decodeURIComponent(locateObj.uid)
+ console.log("roomNewUid:", roomNewUid);
+ console.log("uid:", locateObj.uid);
var share_room = {};
share_room["roomuid"] = locateObj.uid;
@@ -92,41 +96,17 @@ $(function () {
workAuthor = get_param('workAuthor')
workAuthorId = get_param('workAuthorId')
roomuid = get_param('uid')
- MobLink([{
- el: '#bomlinkdomload',
- path: '',
- params: { mobLinkType: 1, roomuid, uid, mobid, ROOM_UID, fromType, enterType, workAuthor, workAuthorId, type: 2 }
- }
- ]);
- // var url = encodeURIComponent(location.href.split('#')[0]);
- // var data = "url=" + url;
- // console.log(data);
- // $.ajax({
- // type: 'GET',
- // url: '/wx/config',
- // data: data,
- // asyc: true,
- // success: function (data) {
- // if (data.code = 200) {
- // wx.config({
- // debug: false,
- // appId: 'wx009d793f92c24eec',
- // timestamp: data.data.timestamp,
- // nonceStr: data.data.nonceStr,
- // signature: data.data.signature,
- // jsApiList: data.data.jsApiList
- // });
- // wx.error(function (res) {
- // console.log('config error,msg:' + res);
- // });
- // }
- // },
- // error: function (res) {
- // console.log('config error,msg:' + res);
- // }
- // })
+
+
if (browser.ios) {
- window.location.href = `pekoApp://room?type=2&uid=${roomuid}'`;
+ $('.domload').attr('href', `pekoApp://room?type=2&uid=${roomNewUid}`)
+ } else {
+ MobLink([{
+ el: '#bomlinkdomload',
+ path: '',
+ params: { mobLinkType: 1, roomuid, uid, mobid, ROOM_UID, fromType, enterType, workAuthor, workAuthorId, type: 2 }
+ }
+ ]);
}
});