|
@@ -31,6 +31,10 @@ $(function () {
|
|
|
|
|
|
//initDate();
|
|
//initDate();
|
|
changeStyle()
|
|
changeStyle()
|
|
|
|
+
|
|
|
|
+ if (orgId == 969||orgId == 1247) {
|
|
|
|
+ $('#shareHead').hide()
|
|
|
|
+ }
|
|
isShare()
|
|
isShare()
|
|
$(".share-btn").click(function () {
|
|
$(".share-btn").click(function () {
|
|
$(".share-mask").show();
|
|
$(".share-mask").show();
|
|
@@ -775,34 +779,37 @@ function shareAppMessage() {
|
|
jsApiList: ['checkJsApi',
|
|
jsApiList: ['checkJsApi',
|
|
'hideOptionMenu',
|
|
'hideOptionMenu',
|
|
'onMenuShareAppMessage',
|
|
'onMenuShareAppMessage',
|
|
- 'hideMenuItems'
|
|
|
|
|
|
+ 'hideMenuItems',
|
|
|
|
+ 'hideAllNonBaseMenuItem'
|
|
] // 必填,需要使用的JS接口列表,所有JS接口列表见附录2
|
|
] // 必填,需要使用的JS接口列表,所有JS接口列表见附录2
|
|
});
|
|
});
|
|
var url = $("#webUrl").val() + "/wechat/visitor/visitorUserAuthor?appid=" + data.appid + "&state=" + state;
|
|
var url = $("#webUrl").val() + "/wechat/visitor/visitorUserAuthor?appid=" + data.appid + "&state=" + state;
|
|
wx.ready(function () {
|
|
wx.ready(function () {
|
|
- wx.checkJsApi({
|
|
|
|
- jsApiList: [
|
|
|
|
- 'onMenuShareAppMessage',
|
|
|
|
- 'hideMenuItems'
|
|
|
|
- ],
|
|
|
|
- success: function (res) {
|
|
|
|
- //alert(res.errMsg);
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
-
|
|
|
|
- wx.hideMenuItems({
|
|
|
|
- menuList: ['menuItem:share:timeline', 'menuItem:share:qq', 'menuItem:share:weiboApp', 'menuItem:favorite', 'menuItem:share:QZone',
|
|
|
|
- 'menuItem:copyUrl', 'menuItem:openWithQQBrowser', 'menuItem:openWithSafari',
|
|
|
|
- 'menuItem:share:email'
|
|
|
|
- ] // 要隐藏的菜单项,只能隐藏“传播类”和“保护类”按钮,所有menu项见附录3
|
|
|
|
- });
|
|
|
|
- //alert(url);
|
|
|
|
- wx.onMenuShareAppMessage({
|
|
|
|
- title: '访客预约',
|
|
|
|
- link: url,
|
|
|
|
- desc: $("#userName").val() + '邀请你来访' + $("#companyName").val() + ',点击自助登记来访信息',
|
|
|
|
- imgUrl: $("#webUrl").val() + '/images/visitor/log.png'
|
|
|
|
- });
|
|
|
|
|
|
+ if (orgId == 969||orgId == 1247) {
|
|
|
|
+ wx.hideAllNonBaseMenuItem()
|
|
|
|
+ } else {
|
|
|
|
+ wx.checkJsApi({
|
|
|
|
+ jsApiList: [
|
|
|
|
+ 'onMenuShareAppMessage',
|
|
|
|
+ 'hideMenuItems'
|
|
|
|
+ ],
|
|
|
|
+ success: function (res) {
|
|
|
|
+ //alert(res.errMsg);
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ wx.hideMenuItems({
|
|
|
|
+ menuList: ['menuItem:share:timeline', 'menuItem:share:qq', 'menuItem:share:weiboApp', 'menuItem:favorite', 'menuItem:share:QZone',
|
|
|
|
+ 'menuItem:copyUrl', 'menuItem:openWithQQBrowser', 'menuItem:openWithSafari',
|
|
|
|
+ 'menuItem:share:email'] // 要隐藏的菜单项,只能隐藏“传播类”和“保护类”按钮,所有menu项见附录3
|
|
|
|
+ });
|
|
|
|
+ //alert(url);
|
|
|
|
+ wx.onMenuShareAppMessage({
|
|
|
|
+ title: '访客预约',
|
|
|
|
+ link: url,
|
|
|
|
+ desc: $("#userName").val() + '邀请你来访' + $("#companyName").val() + ',点击自助登记来访信息',
|
|
|
|
+ imgUrl: $("#webUrl").val() + '/images/visitor/log.png'
|
|
|
|
+ });
|
|
|
|
+ }
|
|
});
|
|
});
|
|
|
|
|
|
wx.error(function (res) {
|
|
wx.error(function (res) {
|