|
@@ -26,7 +26,9 @@
|
|
(function(){
|
|
(function(){
|
|
var ua = navigator.userAgent.toLowerCase();
|
|
var ua = navigator.userAgent.toLowerCase();
|
|
if (ua.match(/MicroMessenger/i) == 'micromessenger') {
|
|
if (ua.match(/MicroMessenger/i) == 'micromessenger') {
|
|
|
|
+ alert("123");
|
|
location.href = '<?php echo Yii::app()->request->baseUrl . 'index.php?r=/common/activity/wxIndex&coupon_id=' . $coupon_id; ?>';
|
|
location.href = '<?php echo Yii::app()->request->baseUrl . 'index.php?r=/common/activity/wxIndex&coupon_id=' . $coupon_id; ?>';
|
|
|
|
+
|
|
document.write('<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"><\/script>');
|
|
document.write('<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"><\/script>');
|
|
}
|
|
}
|
|
})();
|
|
})();
|