Commit 6c34155d authored by liyadong's avatar liyadong

update

parent 8fcdd98a
...@@ -150,6 +150,11 @@ ...@@ -150,6 +150,11 @@
<script> <script>
$(function () { $(function () {
var isWeixin = function () {
//判断是否是微信
var ua = navigator.userAgent.toLowerCase();
return ua.match(/MicroMessenger/i) == "micromessenger";
};
function getQueryString(name) { function getQueryString(name) {
let reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); let reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
let r = window.location.search.substr(1).match(reg); let r = window.location.search.substr(1).match(reg);
...@@ -250,19 +255,17 @@ ...@@ -250,19 +255,17 @@
}); });
$('.dialog-img,.share-img').click(function () { $('.dialog-img,.share-img').click(function () {
$(this).fadeOut(); $(this).fadeOut();
$('.btn-save,.btn-share').show(); $('.btn-save,.btn-share,.login-info').show();
$('.postcard-container').removeClass('fixed'); $('.postcard-container').removeClass('fixed');
}); });
$('.btn-share').click(function () { $('.btn-share').click(function () {
$('.share-img').show(); if(isWeixin()){
$('.share-img').show();
}
}); });
var isWeixin = function () {
//判断是否是微信
var ua = navigator.userAgent.toLowerCase();
return ua.match(/MicroMessenger/i) == "micromessenger";
};
function _wechatConfig(o) { function _wechatConfig(o) {
wx.config({ wx.config({
......
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 to comment