Commit 4f3554dc authored by zhoujun's avatar zhoujun

测试

parents 5b74ae41 b2724bae
...@@ -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 () {
if(isWeixin()){
$('.share-img').show(); $('.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({
......
...@@ -64,6 +64,7 @@ ...@@ -64,6 +64,7 @@
<script> <script>
$(function(){ $(function(){
$('.close').click(function (){ $('.close').click(function (){
$('select').html('');
$('.dialog').fadeOut(); $('.dialog').fadeOut();
}); });
$('.btn-start').click(function (){ $('.btn-start').click(function (){
......
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