add-sylive-hidden_wx_share
This commit is contained in:
+29
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
/**
|
||||
* 配置账号信息
|
||||
*/
|
||||
define('LICHE_APICLIENT_CERT',dirname(__FILE__).'/hdy_cert/apiclient_cert.pem');
|
||||
define('LICHE_APICLIENT_KEY',dirname(__FILE__).'/hdy_cert/apiclient_key.pem');
|
||||
|
||||
class WxPayConfig
|
||||
{
|
||||
const APPID = 'wxe66f905683582780';
|
||||
const APPSECRET = '9546cd4de877be13ce203f3e6140633f';
|
||||
const MCHID = '1604032585';
|
||||
const KEY = 'resthismdSytActivityKpiDaresthis';
|
||||
const SIGN_TYPE = 'MD5';
|
||||
const NOTIFY_URL = '';
|
||||
|
||||
//=======【证书路径设置】=====================================
|
||||
const SSLCERT_PATH = LICHE_APICLIENT_CERT;
|
||||
const SSLKEY_PATH = LICHE_APICLIENT_KEY;
|
||||
|
||||
//=======【curl代理设置】===================================
|
||||
const CURL_PROXY_HOST = "0.0.0.0";//"10.152.18.220";
|
||||
const CURL_PROXY_PORT = 0;//8080;
|
||||
|
||||
//=======【上报信息配置】===================================
|
||||
|
||||
const REPORT_LEVENL = 1;
|
||||
|
||||
}
|
||||
@@ -40,6 +40,26 @@ class Sylive_entity{
|
||||
return $level;
|
||||
}
|
||||
|
||||
/**
|
||||
* 判断活动是否有权限
|
||||
* @param $organizationId
|
||||
* @param $group_id
|
||||
* @param $a_id
|
||||
* @return int
|
||||
*/
|
||||
public function act_role($organizationId,$group_id,$a_id){
|
||||
$where['activityId'] = $a_id;
|
||||
if($group_id==3){
|
||||
$where["bizId in (select parentId from lc_market_sylive_organization where organizationId={$organizationId} and status=0)"] = null;
|
||||
}elseif($group_id==2){
|
||||
$where['bizId'] = $organizationId;
|
||||
}elseif ($group_id==1){
|
||||
$where["areaId"] = $organizationId;
|
||||
}else{
|
||||
$where["areaId in (select organizationId from lc_market_sylive_organization where parentId={$organizationId} and status=0)"] = null;
|
||||
}
|
||||
return $this->ci->mdSytActivityBiz->count($where) ? true : false;
|
||||
}
|
||||
/**
|
||||
* 获取等级数据
|
||||
* @param $organizationId
|
||||
|
||||
@@ -373,7 +373,7 @@ class Order_datas_entity{
|
||||
'color' => $color['title'] ? $color['title'] : '',
|
||||
'vin' => $item['vin'] ? $item['vin'] : '',
|
||||
'sale_name' => $sale_row['uname'] ? $sale_row['uname'] : '',
|
||||
'channel_name' => $qd_row['uname'] ? $qd_row['uname'] : '',
|
||||
'channel_name' => $qd_row['uname'] ? $qd_row['uname'] : $sale_row['uname'],
|
||||
'time' => date('Y-m-d'),
|
||||
'fill_2' => $fill_2
|
||||
];
|
||||
|
||||
@@ -12,11 +12,18 @@ class Act extends Wx {
|
||||
parent::__construct();
|
||||
$this->load->model('market/market_sylive_organization_model');
|
||||
$this->load->model('market/market_sylive_activity_model');
|
||||
$this->load->model('market/market_sylive_activity_biz_model','mdSytActivityBiz');
|
||||
$this->load->model('market/market_sylive_subscribemsg_model','mdSytSubscribemsg');
|
||||
$this->load->model('market/market_sylive_activity_kpidata_model','mdSytActivityKpiData');
|
||||
$this->load->model('market/market_sylive_order_model');
|
||||
$this->load->library('market/sylive_entity');
|
||||
$skey = $this->input->get('skey');
|
||||
$param = $this->myencryption->base64url_decode($skey);
|
||||
$a_id = intval($param['a_id']);//活动id
|
||||
$this->group_id = $this->sylive_entity->get_level($this->session['org_id']);
|
||||
if($this->group_id<4 && $a_id && !$this->sylive_entity->act_role($this->session['org_id'],$this->group_id,$a_id)){
|
||||
$this->group_id = 4;
|
||||
}
|
||||
}
|
||||
|
||||
public function index(){
|
||||
@@ -72,13 +79,11 @@ class Act extends Wx {
|
||||
$info['a_id'] = $a_id;
|
||||
$info['org_id'] = $this->session['org_id'];
|
||||
$info['subscribemsg'] = $subscribemsg;
|
||||
$info['code'] = '';
|
||||
$info['statisticsurl'] = $info['shareurl'] = $info['code'] = '';
|
||||
if($this->group_id<4){
|
||||
$info['shareurl'] = '/h5/market/sylive/act/share?skey='.$info['skey'];
|
||||
}else{
|
||||
$info['shareurl'] = '';
|
||||
$info['statisticsurl'] = '/h5/market/sylive/stic?skey='.$info['skey'];
|
||||
}
|
||||
$info['statisticsurl'] = '/h5/market/sylive/stic?skey='.$info['skey'];
|
||||
$info['channelImg'] = build_qiniu_image_url($row['channelImg']);
|
||||
// $info['live_url'] = 'https://live.liche.cn/watch/'.$row['channelId'];
|
||||
$userid = $user['unionid'] ? $user['unionid'] : $this->uid;
|
||||
@@ -412,7 +417,7 @@ class Act extends Wx {
|
||||
private function pay($trade_no,$price,$openid,$body,$notify_url,$expire_time,$attach=''){
|
||||
|
||||
if(!$body){return false;}
|
||||
require_once APPPATH."../api/third_party/WXconfig/liche_home_WxPay.Config.php";
|
||||
require_once APPPATH."../api/third_party/WXconfig/hdy_WxPay.Config.php";
|
||||
require_once APPPATH."../api/third_party/WXpay/WxPay.Api.php";
|
||||
$config = new WxPayConfig();
|
||||
$wxpay = new WxPayUnifiedOrder();
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
require_once APPPATH."../api/third_party/WXpay/WxPay.Api.php";
|
||||
require_once APPPATH."../api/third_party/WXconfig/liche_home_WxPay.Config.php";
|
||||
require_once APPPATH."../api/third_party/WXconfig/hdy_WxPay.Config.php";
|
||||
|
||||
class Notify extends CI_Controller {
|
||||
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
<script type="text/javascript" src="https://qs.haodian.cn/web/javascript/md5.min.js"></script>
|
||||
<script type="text/javascript" src="//player.polyv.net/livesdk/polyv-live.min.js"></script>
|
||||
<body class="bg-fff">
|
||||
<div id="app">
|
||||
<div class="height-500 fixed left-0 right-0 top-0 z-index-0 bg-1a1a1a"></div>
|
||||
<div id="app" class="bg-fff">
|
||||
<div class="container relative bg-no-repeat bg-size-fullwidth bg-pos-top pb150" :style="'background-image:url('+info.bg+')'">
|
||||
<div class="absolute top-0 right-0 mt15 mr10 ulib-r750 fn-flex overflowhidden line-height-20 space-nowrap">
|
||||
<a class="fn-flex-item bg-000-op50 pl20 pr20 font-22 color-fff" v-if="info.shareurl" :href="info.shareurl">
|
||||
<i class="iconfont icon-fenxiang text-middle"></i><span class="text-middle ml10">分享</span></a>
|
||||
<a class="fn-flex-item bg-000-op50 ml1 pl20 pr20 font-22 color-fff" v-if="info.org_id>0" :href="info.statisticsurl">
|
||||
<a class="fn-flex-item bg-000-op50 ml1 pl20 pr20 font-22 color-fff" v-if="info.statisticsurl" :href="info.statisticsurl">
|
||||
<i class="iconfont icon-shuju text-middle"></i><span class="text-middle ml10">数据</span></a>
|
||||
</div>
|
||||
<div class="h-750"></div>
|
||||
@@ -206,6 +207,5 @@
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<?=$this->load->view('h5/market/sylive/share_script')?>
|
||||
</body>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<body class="bg-f6">
|
||||
<div id="app">
|
||||
<div class="height-500 fixed left-0 right-0 top-0 z-index-0 bg-1a1a1a"></div>
|
||||
<div id="app" class="bg-f6">
|
||||
<div class="container relative pb130">
|
||||
<!--轮播-->
|
||||
<div class="goods-banner relative imgsize-750X680 z-index-0" v-if='info.banner.length>1'>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<script type="text/javascript" src="https://qs.haodian.cn/web/javascript/clipboard.min.js"></script>
|
||||
<body>
|
||||
<div id="app">
|
||||
<div class="height-500 fixed left-0 right-0 top-0 z-index-0 bg-1a1a1a"></div>
|
||||
<div id="app" class="bg-fff">
|
||||
<div class="poster">
|
||||
<div class="detail-banner relative p-swiper">
|
||||
<div class="swiper-container left-0 top-0">
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<body class="bg-f6">
|
||||
<div id="app">
|
||||
<div class="height-500 fixed left-0 right-0 top-0 z-index-0 bg-1a1a1a"></div>
|
||||
<div id="app" class="bg-f6">
|
||||
<div class="container relative bg-no-repeat bg-size-fullwidth bg-pos-top pb40" :style="'background-image:url('+info.bg+')'">
|
||||
<div class="relative height-710">
|
||||
<div class="pt90 pl100 pr100 fn-clear">
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<body class="bg-f6">
|
||||
<div id="app">
|
||||
<div class="height-500 fixed left-0 right-0 top-0 z-index-0 bg-1a1a1a"></div>
|
||||
<div id="app" class="bg-f6">
|
||||
<div class="container relative bg-no-repeat bg-size-fullwidth bg-pos-top" style="background-image:url(https://qs.haodian.cn/web/images/project/H5-ShiYu/theme-bg.png?v=221008)">
|
||||
<div class="pt30 pb30">
|
||||
<div class="pl30 pr30">
|
||||
@@ -216,5 +217,5 @@
|
||||
},
|
||||
})
|
||||
</script>
|
||||
<?=$this->load->view('h5/market/sylive/share_script')?>
|
||||
<?=$this->load->view('h5/market/sylive/hidden_wx_share')?>
|
||||
</body>
|
||||
@@ -1,5 +1,6 @@
|
||||
<body class="bg-f6">
|
||||
<div id="app">
|
||||
<div class="height-500 fixed left-0 right-0 top-0 z-index-0 bg-1a1a1a"></div>
|
||||
<div id="app" class="bg-f6">
|
||||
<div class="container relative bg-no-repeat bg-size-fullwidth bg-pos-top pb50" style="background-image:url(https://qs.haodian.cn/web/images/project/H5-ShiYu/theme-bg.png?v=221008)">
|
||||
<div class="pt30 pb60">
|
||||
<div class="relative pl30 pr30 fn-clear">
|
||||
@@ -131,5 +132,5 @@
|
||||
},
|
||||
})
|
||||
</script>
|
||||
<?=$this->load->view('h5/market/sylive/share_script')?>
|
||||
<?=$this->load->view('h5/market/sylive/hidden_wx_share')?>
|
||||
</body>
|
||||
@@ -1,5 +1,6 @@
|
||||
<body class="bg-f6">
|
||||
<div id="app">
|
||||
<div class="height-500 fixed left-0 right-0 top-0 z-index-0 bg-1a1a1a"></div>
|
||||
<div id="app" class="bg-f6">
|
||||
<div class="container relative bg-no-repeat bg-size-fullwidth bg-pos-top pb50" style="background-image:url(https://qs.haodian.cn/web/images/project/H5-ShiYu/theme-bg.png?v=221008)">
|
||||
<div class="pt30 pb30">
|
||||
<div class="relative pl30 pr30 fn-clear">
|
||||
@@ -224,5 +225,5 @@
|
||||
},
|
||||
})
|
||||
</script>
|
||||
<?=$this->load->view('h5/market/sylive/share_script')?>
|
||||
<?=$this->load->view('h5/market/sylive/hidden_wx_share')?>
|
||||
</body>
|
||||
@@ -7,7 +7,7 @@
|
||||
content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title><?=$_title?></title>
|
||||
<link rel="stylesheet" href="/css/h5/market/sylive/h5.css?2022101215">
|
||||
<link rel="stylesheet" href="/css/h5/market/sylive/h5.css?20221020">
|
||||
<link rel="stylesheet" href="https://qs.haodian.cn/web/javascript/swiper/css/swiper.min.css">
|
||||
<script type="text/javascript" src="https://qs.haodian.cn/web/javascript/jquery.3.4.1.min.js"></script>
|
||||
<script type="text/javascript" src="https://qs.haodian.cn/web/javascript/vue.2.6.10.min.js"></script>
|
||||
|
||||
@@ -5,20 +5,11 @@
|
||||
timestamp: "<?=$sign_package['timestamp']?>", // 必填,生成签名的时间戳
|
||||
nonceStr: "<?=$sign_package['nonceStr']?>", // 必填,生成签名的随机串
|
||||
signature: "<?=$sign_package['signature']?>",// 必填,签名
|
||||
jsApiList: ["openLocation", "updateAppMessageShareData", "updateTimelineShareData"], // 必填,需要使用的JS接口列表
|
||||
jsApiList: ["hideAllNonBaseMenuItem", "hideMenuItems"], // 必填,需要使用的JS接口列表
|
||||
openTagList: ['wx-open-launch-weapp'] // 可选,需要使用的开放标签列表,例如['wx-open-launch-app']
|
||||
});
|
||||
wx.ready(function () {
|
||||
wx.closeWindow();
|
||||
wx.hideMenuItems({
|
||||
menuList: [
|
||||
'menuItem:share:appMessage', 'menuItem:share:timeline','menuItem:share:qq'
|
||||
'menuItem:share:weiboApp','menuItem:share:facebook','menuItem:share:QZone',
|
||||
'menuItem:editTag','menuItem:delete','menuItem:copyUrl',
|
||||
'menuItem:originPage','menuItem:readMode','menuItem:openWithQQBrowser','menuItem:openWithSafari',
|
||||
'menuItem:share:email','menuItem:share:brand'
|
||||
] // 要隐藏的菜单项,只能隐藏“传播类”和“保护类”按钮,所有 menu 项见附录3
|
||||
});
|
||||
wx.hideAllNonBaseMenuItem();
|
||||
});
|
||||
wx.error(function (res) {
|
||||
console.log('res', res);
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title><?=$_title?></title>
|
||||
<link rel="stylesheet" href="/css/h5/market/sylive/h5.css?2022101215">
|
||||
<link rel="stylesheet" href="/css/h5/market/sylive/h5.css?20221020">
|
||||
<link rel="stylesheet" href="https://qs.haodian.cn/web/javascript/swiper/css/swiper.min.css">
|
||||
<script type="text/javascript" src="https://qs.haodian.cn/web/javascript/jquery.3.4.1.min.js"></script>
|
||||
<script type="text/javascript" src="https://qs.haodian.cn/web/javascript/vue.2.6.10.min.js"></script>
|
||||
@@ -15,7 +15,8 @@
|
||||
<script type="text/javascript" src="https://qs.haodian.cn/web/javascript/swiper/js/swiper.min.js"></script>
|
||||
</head>
|
||||
<body class="bg-fff">
|
||||
<div id="app" class="login">
|
||||
<div class="height-500 fixed left-0 right-0 top-0 z-index-0 bg-1a1a1a"></div>
|
||||
<div id="app" class="login bg-fff">
|
||||
<div class="container relative bg-repeat-y bg-size-fullwidth bg-pos-center" style="background-image:url(https://qs.haodian.cn/web/images/project/H5-ShiYu/loginbg.jpg?v=221008)">
|
||||
<div class="absolute box-middle left-0 right-0 pl40 pr40 pb220">
|
||||
<div class="pb50 color-fff">
|
||||
|
||||
@@ -5,10 +5,20 @@
|
||||
timestamp: "<?=$sign_package['timestamp']?>", // 必填,生成签名的时间戳
|
||||
nonceStr: "<?=$sign_package['nonceStr']?>", // 必填,生成签名的随机串
|
||||
signature: "<?=$sign_package['signature']?>",// 必填,签名
|
||||
jsApiList: ["openLocation", "updateAppMessageShareData", "updateTimelineShareData"], // 必填,需要使用的JS接口列表
|
||||
jsApiList: [
|
||||
"openLocation", "updateAppMessageShareData", "updateTimelineShareData",
|
||||
"hideAllNonBaseMenuItem","showMenuItems"
|
||||
], // 必填,需要使用的JS接口列表
|
||||
openTagList: ['wx-open-launch-weapp'] // 可选,需要使用的开放标签列表,例如['wx-open-launch-app']
|
||||
});
|
||||
wx.ready(function () {
|
||||
wx.hideAllNonBaseMenuItem();
|
||||
wx.showMenuItems({
|
||||
menuList: [
|
||||
'menuItem:share:appMessage', 'menuItem:share:timeline','menuItem:share:qq',
|
||||
'menuItem:share:weiboApp','menuItem:share:facebook','menuItem:share:QZone',
|
||||
] // 要显示的菜单项,所有 menu 项见附录3
|
||||
});
|
||||
//自定义“分享到朋友圈”及“分享到QQ空间”按钮的分享内容
|
||||
wx.updateTimelineShareData({
|
||||
title: '<?=$share['title']?>', // 分享标题
|
||||
@@ -41,6 +51,7 @@
|
||||
option.error()
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
wx.error(function (res) {
|
||||
console.log('res', res);
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<body class="bg-fff">
|
||||
<div id="app">
|
||||
<div class="height-500 fixed left-0 right-0 top-0 z-index-0 bg-1a1a1a"></div>
|
||||
<div id="app" class="bg-fff">
|
||||
<div class="container bg-size-fullwidth bg-no-repeat bg-pos-top pb130" :style="'background-image:url('+info.theme+')'">
|
||||
<div class="h-290"></div>
|
||||
<div id="main" class="bg-fff mb30 ml30 mr30 inner30 box-shadow-lightGray ulib-r20" style="min-height:72vh;">
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<body class="bg-fff">
|
||||
<div id="app">
|
||||
<div class="height-500 fixed left-0 right-0 top-0 z-index-0 bg-1a1a1a"></div>
|
||||
<div id="app" class="bg-fff">
|
||||
<div class="container bg-size-fullwidth bg-no-repeat bg-pos-top pb130" :style="'background-image:url('+info.theme+')'">
|
||||
<div class="h-290"></div>
|
||||
<div id="main" class="bg-fff mb30 ml30 mr30 inner30 box-shadow-lightGray ulib-r20" style="min-height:72vh;">
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<body class="bg-f6">
|
||||
<div id="app">
|
||||
<div class="height-500 fixed left-0 right-0 top-0 z-index-0 bg-1a1a1a"></div>
|
||||
<div id="app" class="bg-f6">
|
||||
<div class="container relative bg-no-repeat bg-size-fullwidth bg-pos-top pt30 pb50">
|
||||
<div class="relative bg-fff ml30 mr30 inner30 ulib-r20 box-shadow-darkGray" style="min-height:90vh;">
|
||||
<div class="pt10 pb20 text-center"><b class="font-40 text-italic" v-html="title"></b></div>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<body class="bg-f6">
|
||||
<div id="app">
|
||||
<div class="height-500 fixed left-0 right-0 top-0 z-index-0 bg-1a1a1a"></div>
|
||||
<div id="app" class="bg-f6">
|
||||
<div class="container relative bg-no-repeat bg-size-fullwidth bg-pos-top pt30 pb50">
|
||||
<div id="main" class="relative bg-fff ml30 mr30 inner30 ulib-r20 box-shadow-darkGray" style="min-height:90vh;">
|
||||
<template v-if="tab.length>1">
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user