Skip to content

Commit

Permalink
Merge pull request #299 from pifire/master
Browse files Browse the repository at this point in the history
增加ios判断
  • Loading branch information
Pearl Wang authored Dec 30, 2016
2 parents 05f93d3 + 686504e commit 117303a
Showing 1 changed file with 22 additions and 15 deletions.
37 changes: 22 additions & 15 deletions mip-dad-appdownload/mip-dad-appdownload.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

define(function (require) {
var $ = require('zepto');
var util = require('util');
var platform = util.platform;
var customElement = require('customElement').create();

/**
Expand All @@ -28,25 +30,30 @@ define(function (require) {
+ '\u8bae\u9009\u62e9\u8c4c\u8c46\u835a\u5b89\u88c5\u9ad8\u901f\u4e0b\u8f7d\uff01';
var innerHTML = '';
var trueurl;
if (ad > 0) {
innerHTML = '<i>' + text1 + '</i>'
+ '<a href="' + wdjDN + '">\u9ad8\u901f\u4e0b\u8f7d</a>'
+ '<p >' + text2 + '</p>'
+ '<u style="display: none;">' + text3 + '</u>';
if (addr == null) {
trueurl = 'http://www.mobile-dad.com/tourl.php?apkid=' + $element.attr('aid');
}
else {
trueurl = 'http://www.mobile-dad.com/tourl.php?apkid=' + aid;
}
if (platform.isIos()) {
innerHTML = '<a href="http://h5channel.51pgzs.com/index.php?qid=waitui045" class="pt">\u7acb\u5373\u4e0b\u8f7d</a>';
}
else {
if (addr == null) {
innerHTML = '<a href="http://www.mobile-dad.com/tourl.php?apkid=' + aid + '" class="pt">\u7acb\u5373\u4e0b\u8f7d</a>';
if (ad > 0) {
innerHTML = '<i>' + text1 + '</i>'
+ '<a href="' + wdjDN + '">\u9ad8\u901f\u4e0b\u8f7d</a>'
+ '<p >' + text2 + '</p>'
+ '<u style="display: none;">' + text3 + '</u>';
if (addr.length === 0) {
trueurl = 'http://www.mobile-dad.com/tourl.php?apkid=' + $element.attr('aid');
}
else {
trueurl = addr;
}
}
else {
innerHTML = '<a href="' + addr + '" class="pt">\u7acb\u5373\u4e0b\u8f7d</a>';
else {
if (addr.length === 0) {
innerHTML = '<a href="http://www.mobile-dad.com/tourl.php?apkid=' + aid + '" class="pt">\u7acb\u5373\u4e0b\u8f7d</a>';
}
else {
innerHTML = '<a href="' + addr + '" class="pt">\u7acb\u5373\u4e0b\u8f7d</a>';

}
}
}
$element.html(innerHTML);
Expand Down

0 comments on commit 117303a

Please sign in to comment.