...
|
...
|
@@ -37,7 +37,8 @@ function getInstance() { |
|
|
return dialogTemplate;
|
|
|
}
|
|
|
|
|
|
exports.showDialog = function(data, callback, callbackForLeft) {
|
|
|
// fullWithBtn是供详情页获取限购码使用的特殊参数
|
|
|
exports.showDialog = function(data, callback, callbackForLeft, fullWithBtn) {
|
|
|
|
|
|
var dialogTemplate = getInstance(),
|
|
|
dialogStr = dialogTemplate(data),
|
...
|
...
|
@@ -51,6 +52,8 @@ exports.showDialog = function(data, callback, callbackForLeft) { |
|
|
|
|
|
$dialogBox = $('.dialog-box');
|
|
|
$dialogWrapper = $('.dialog-wrapper');
|
|
|
|
|
|
|
|
|
dialogWrapperHammer = new Hammer(document.getElementById('dialog-wrapper'));
|
|
|
|
|
|
// 显示
|
...
|
...
|
@@ -62,6 +65,15 @@ exports.showDialog = function(data, callback, callbackForLeft) { |
|
|
$dialogWrapper.fadeIn();
|
|
|
}
|
|
|
|
|
|
if (fullWithBtn) {
|
|
|
$('.dialog-wrapper .dialog-footer > span').css('width', '100%');
|
|
|
$('.dialog-wrapper .dialog-content').css({
|
|
|
'padding-left': '1.85rem',
|
|
|
'padding-right': '1.85rem'
|
|
|
});
|
|
|
$dialogWrapper.css('z-index', '10');
|
|
|
}
|
|
|
|
|
|
$dialogBox.css({
|
|
|
top: '50%',
|
|
|
marginTop: -($dialogBox.height() / 2)
|
...
|
...
|
|