v5.0切换开关组件样式优化、下拉选框组件初始化性能优化、商品支持指定规格选中、其他细节优化
parent
21621b1670
commit
ae6a9d0327
|
|
@ -12,7 +12,7 @@
|
|||
9.【新增】手机端支持APP(IOS+Android)
|
||||
10.【新增】手机端支持多语言(中文、繁体、英文、西班牙)
|
||||
11.【新增】手机端我的中支持门店订单查看和下单自动进入门店订单
|
||||
12.【新增】手机端购物车支持优惠明显查看及选择
|
||||
12.【新增】手机端购物车支持优惠明细查看及选择
|
||||
13.【新增】短信对接多平台(腾讯、百度、云片、loginsms)
|
||||
14.【新增】第三方登录APP支持(微信、QQ、苹果、谷歌、本机号码)
|
||||
15.【新增】扫码收款和消息通知支持语音播报
|
||||
|
|
|
|||
|
|
@ -1198,3 +1198,19 @@ body[class^="admin-plugins-"] .content-right > .content {
|
|||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 操作可伸缩的提示信息
|
||||
*/
|
||||
.am-operate-stretch-tips {
|
||||
background-color: var(--color-tips-warm-bg);
|
||||
border-color:var(--color-tips-warm-br);
|
||||
}
|
||||
.am-operate-stretch-tips.am-close-tips {
|
||||
border-color: var(--color-main);
|
||||
background-color: var(--color-main-light);
|
||||
}
|
||||
.am-operate-stretch-tips.am-close-tips .title {
|
||||
color: var(--color-main);
|
||||
}
|
||||
|
|
@ -150,6 +150,9 @@
|
|||
background-color: transparent !important;
|
||||
border: 0 !important;
|
||||
}
|
||||
.plugins-data-list>ul>li .operation button.am-btn-danger {
|
||||
color: var(--color-red);
|
||||
}
|
||||
|
||||
.plugins-data-list>ul>li .operation a i,
|
||||
.plugins-data-list>ul>li .operation button i {
|
||||
|
|
|
|||
|
|
@ -517,18 +517,6 @@ $(function () {
|
|||
$("[data-key='" + key + "']").addClass('am-active').siblings('.item').removeClass('am-active');
|
||||
});
|
||||
|
||||
|
||||
// 后台顶级提示信息
|
||||
$(document).on('click', '.am-operate-stretch-tips .title', function () {
|
||||
if ($(this).parent().hasClass('am-close-tips')) {
|
||||
$(this).parent().removeClass('am-close-tips');
|
||||
$(this).parent().animate({ height: '100%', width: '100%' }, 500);
|
||||
} else {
|
||||
$(this).parent().addClass('am-close-tips');
|
||||
$(this).parent().animate({ height: '35px', width: '84px' }, 500);
|
||||
}
|
||||
});
|
||||
|
||||
// 点击页面关闭父级的tab右侧工具弹窗
|
||||
$('body').on('click', function () {
|
||||
if ((parent.IframeCloseNavTabsRightTools || null) != null) {
|
||||
|
|
|
|||
|
|
@ -3309,8 +3309,8 @@ table.am-table .am-operate-grid .am-btn i {
|
|||
* 操作可伸缩的提示信息
|
||||
*/
|
||||
.am-operate-stretch-tips {
|
||||
background-color: var(--color-tips-warm-bg);
|
||||
border: 0.1rem solid var(--color-tips-warm-br);
|
||||
background-color: #f1fcff;
|
||||
border: 0.1rem solid #f1fcff;
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
|
@ -3321,12 +3321,12 @@ table.am-table .am-operate-grid .am-btn i {
|
|||
margin-bottom: 2rem;
|
||||
}
|
||||
.am-operate-stretch-tips.am-close-tips {
|
||||
border: 0.1rem solid var(--color-main);
|
||||
background-color: var(--color-main-light);
|
||||
border: 0.1rem solid #2a94ff;
|
||||
background-color: #edf4ff;
|
||||
border-radius: var(--border-radius);
|
||||
}
|
||||
.am-operate-stretch-tips.am-close-tips .title {
|
||||
color: var(--color-main);
|
||||
color: #2a94ff;
|
||||
}
|
||||
|
||||
.am-operate-stretch-tips.am-close-tips .contract {
|
||||
|
|
|
|||
|
|
@ -2591,19 +2591,17 @@ function UrlUseCurrentHostHandle (url) {
|
|||
*/
|
||||
function SelectChosenInit () {
|
||||
if ($('select.chosen-select').length > 0) {
|
||||
$('select.chosen-select').each(function () {
|
||||
if ($(this).parent().find('.chosen-container').length > 0) {
|
||||
$('select.chosen-select').trigger('chosen:updated');
|
||||
} else {
|
||||
$('select.chosen-select').chosen({
|
||||
inherit_select_classes: true,
|
||||
enable_split_word_search: true,
|
||||
search_contains: true,
|
||||
no_results_text: window['lang_chosen_select_no_results_text'],
|
||||
disable_search_threshold: 10
|
||||
});
|
||||
}
|
||||
})
|
||||
// 已初始化的则更新
|
||||
$('select.chosen-select.chosen-init-success').trigger('chosen:updated');
|
||||
|
||||
// 初始化
|
||||
$('select.chosen-select:not(.chosen-init-success)').chosen({
|
||||
inherit_select_classes: true,
|
||||
enable_split_word_search: true,
|
||||
search_contains: true,
|
||||
no_results_text: window['lang_chosen_select_no_results_text'],
|
||||
disable_search_threshold: 10
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -5619,4 +5617,16 @@ $(function () {
|
|||
var key = $(this).data('key');
|
||||
$("[data-key='" + key + "']").addClass('am-active').siblings('.item').removeClass('am-active');
|
||||
});
|
||||
|
||||
// 顶级提示信息
|
||||
$(document).on('click', '.am-operate-stretch-tips .title', function () {
|
||||
var $parent = $(this).parent();
|
||||
if ($parent.hasClass('am-close-tips')) {
|
||||
$parent.removeClass('am-close-tips');
|
||||
$parent.animate({ height: '100%', width: '100%' }, 500);
|
||||
} else {
|
||||
$parent.addClass('am-close-tips');
|
||||
$parent.animate({ height: '35px', width: '90px' }, 500);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
@ -590,7 +590,7 @@ This file is generated by `grunt build`, do not edit it by hand.
|
|||
} else {
|
||||
this.container.html('<a class="chosen-single chosen-default" tabindex="-1"><span>' + this.default_text + '</span><div class="chosen-single-icon"><b></b></div></a><div class="chosen-drop"><div class="chosen-search"><input type="text" autocomplete="off" /></div><ul class="chosen-results"></ul></div>');
|
||||
}
|
||||
this.form_field_jq.hide().after(this.container);
|
||||
this.form_field_jq.hide().addClass('chosen-init-success').after(this.container);
|
||||
this.dropdown = this.container.find('div.chosen-drop').first();
|
||||
this.search_field = this.container.find('input').first();
|
||||
this.search_results = this.container.find('ul.chosen-results').first();
|
||||
|
|
|
|||
|
|
@ -17,7 +17,6 @@
|
|||
transition-property: background-color, border;
|
||||
border: 2px solid #ddd;
|
||||
background-color: #ddd;
|
||||
background-clip: padding-box;
|
||||
cursor: pointer;
|
||||
font-family: "iconfont" !important;
|
||||
font-style: normal;
|
||||
|
|
@ -46,7 +45,6 @@
|
|||
-webkit-transition-property: -webkit-transform, width, left;
|
||||
transition-property: transform, width, left;
|
||||
background-color: #fff;
|
||||
background-clip: padding-box;
|
||||
-webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, .4);
|
||||
box-shadow: 0 2px 5px rgba(0, 0, 0, .4);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -562,6 +562,55 @@ $(function() {
|
|||
// 购物车表单初始化
|
||||
FromInit('form.cart-form');
|
||||
|
||||
// 指定规格初始化选中
|
||||
var spec = decodeURIComponent(GetQueryValue('spec') || '');
|
||||
if((spec || null) != null)
|
||||
{
|
||||
spec = spec.split('|');
|
||||
if($('.sku-container').length > 0 && $('.sku-container .sku-items').length > 0 && $('.sku-container .sku-items').length == spec.length && $('.buy-submit-container').length > 0 && ($('.buy-submit-container button.buy-submit').length > 0 || $('.buy-submit-container button.cart-submit').length > 0))
|
||||
{
|
||||
var $other_price = $('.tb-detail-price .price-top-content .items dd b');
|
||||
var $price = $('.tb-detail-price .price-top-content .goods-sale-price .goods-price');
|
||||
// 先清除价格展示信息
|
||||
$other_price.text(__currency_symbol__+'...');
|
||||
$price.text('...');
|
||||
var num = 0;
|
||||
var timer = setInterval(function()
|
||||
{
|
||||
$('.sku-container .sku-items').each(function(k, v)
|
||||
{
|
||||
// 清除价格展示信息、避免获取价格类型赋值
|
||||
$other_price.text(__currency_symbol__+'...');
|
||||
$price.text('...');
|
||||
// 必须不存在已选择项
|
||||
if($(this).find('ul li.selected').length <= 0)
|
||||
{
|
||||
var temp_spec = spec[k];
|
||||
var status = false;
|
||||
$(this).find('ul li').each(function(ks, vs)
|
||||
{
|
||||
// 必须是可选和未选
|
||||
if(!status && !$(this).hasClass('sku-items-disabled') && !$(this).hasClass('sku-dont-choose') && temp_spec == $(this).attr('data-value'))
|
||||
{
|
||||
$(this).trigger('click');
|
||||
status = true;
|
||||
num++;
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
if(num >= $('.sku-container .sku-items').length)
|
||||
{
|
||||
clearInterval(timer);
|
||||
}
|
||||
}, 100);
|
||||
setTimeout(function()
|
||||
{
|
||||
clearInterval(timer);
|
||||
}, 20000);
|
||||
}
|
||||
}
|
||||
|
||||
// 商品规格选择
|
||||
$('.theme-options').each(function()
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue