提交 0c7037ca 编写于 作者: G gongfuxiang

优化

上级 9b6d919d
......@@ -147,7 +147,7 @@ class Hook
</a>
<!-- 购物车 -->
<a href="'.(empty($params['user']) ? 'javascript:;' : MyUrl('index/cart/index')).'" '.$is_new_window_open.' class="cart-content '.$login_event.'">
<a href="'.(empty($params['user']) ? 'javascript:;' : MyUrl('index/cart/index')).'" '.$is_new_window_open.' class="cart-content '.$login_event.' '.(($ret['data']['is_goods_page_show_cart'] == 1 && $module_name.$controller_name.$action_name == 'indexgoodsindex' ? 'cart-show' : '')).'">
<div class="base-nav cart">
<i class="am-icon-opencart"></i>
<div class="cart-text">
......
......@@ -57,6 +57,16 @@
{{/if}}
</div>
</div>
<div class="items">
<label>商品详情页面展示购物车入口</label>
<div>
{{if isset($data['is_goods_page_show_cart']) and $data['is_goods_page_show_cart'] eq 1}}
{{else /}}
{{/if}}
</div>
</div>
<a href="{{:PluginsAdminUrl('commonrightnavigation', 'admin', 'saveinfo')}}" class="am-btn am-btn-secondary am-radius btn-loading-example am-btn-sm am-btn-block edit-submit">编辑</a>
</div>
</div>
......
......@@ -88,6 +88,17 @@
</div>
</div>
<div class="am-form-group">
<label>商品详情页面展示购物车入口</label>
<div>
{{foreach $is_whether_list as $v}}
<label class="am-radio-inline m-r-10">
<input type="radio" name="is_goods_page_show_cart" value="{{$v.id}}" {{if isset($data['is_goods_page_show_cart']) and $data['is_goods_page_show_cart'] eq $v['id']}}checked="checked"{{else /}}{{if !isset($data['is_goods_page_show_cart']) and isset($v['checked']) and $v['checked'] eq true}}checked="checked"{{/if}}{{/if}} data-am-ucheck /> {{$v.name}}
</label>
{{/foreach}}
</div>
</div>
<div class="am-form-group">
<button type="submit" class="am-btn am-btn-primary am-radius btn-loading-example am-btn-sm w100" data-am-loading="{loadingText:'处理中...'}">保存</button>
</div>
......
......@@ -160,6 +160,7 @@
.commonrightnavigation-right-nav .browse-content,
.commonrightnavigation-right-nav .favor-content,
.commonrightnavigation-right-nav .qrcode-content,
.commonrightnavigation-right-nav .cart-content,
.commonrightnavigation-right-nav .go-top .mui-mbar-tab-tip {
display: none;
}
......@@ -180,7 +181,10 @@
z-index: 10000;
display: none;
}
.commonrightnavigation-right-nav .cart {
.cart-show {
display: block !important;
}
.commonrightnavigation-right-nav .cart-show .cart {
position: fixed;
right: 0;
bottom: calc(50% - 50px);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册