mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2024-11-30 19:08:59 +08:00
快捷导航新增开关
This commit is contained in:
parent
d1a9ce1ff9
commit
35bdcfe98b
@ -19,6 +19,14 @@
|
|||||||
<h3 class="am-panel-title">快捷导航</h3>
|
<h3 class="am-panel-title">快捷导航</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="am-panel-bd">
|
<div class="am-panel-bd">
|
||||||
|
<div class="am-form-group">
|
||||||
|
<label>{{$data.home_navigation_main_quick_status.name}}<span class="am-form-group-label-tips">{{$data.home_navigation_main_quick_status.describe}}</span></label>
|
||||||
|
<select name="{{$data.home_navigation_main_quick_status.only_tag}}" class="am-radius chosen-select" data-validation-message="{{$data.home_navigation_main_quick_status.error_tips}}" required>
|
||||||
|
{{foreach $site_site_state_list as $v}}
|
||||||
|
<option value="{{$v.value}}" {{if isset($data['home_navigation_main_quick_status']['value']) and $data['home_navigation_main_quick_status']['value'] eq $v['value']}}selected{{/if}}>{{$v.name}}</option>
|
||||||
|
{{/foreach}}
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
<div class="am-form-group">
|
<div class="am-form-group">
|
||||||
<label>{{$data.home_navigation_main_quick_name.name}}<span class="am-form-group-label-tips">{{$data.home_navigation_main_quick_name.describe}}</span></label>
|
<label>{{$data.home_navigation_main_quick_name.name}}<span class="am-form-group-label-tips">{{$data.home_navigation_main_quick_name.describe}}</span></label>
|
||||||
<input type="text" maxlength="4" name="{{$data.home_navigation_main_quick_name.only_tag}}" placeholder="{{$data.home_navigation_main_quick_name.name}}" data-validation-message="{{$data.home_navigation_main_quick_name.error_tips}}" class="am-radius" {{if !empty($data)}}value="{{$data.home_navigation_main_quick_name.value}}"{{/if}} />
|
<input type="text" maxlength="4" name="{{$data.home_navigation_main_quick_name.only_tag}}" placeholder="{{$data.home_navigation_main_quick_name.name}}" data-validation-message="{{$data.home_navigation_main_quick_name.error_tips}}" class="am-radius" {{if !empty($data)}}value="{{$data.home_navigation_main_quick_name.value}}"{{/if}} />
|
||||||
|
@ -121,4 +121,6 @@
|
|||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
<!-- 快捷导航 -->
|
<!-- 快捷导航 -->
|
||||||
{{include file="public/quick" /}}
|
{{if MyC('home_navigation_main_quick_status') eq 1}}
|
||||||
|
{{include file="public/quick" /}}
|
||||||
|
{{/if}}
|
@ -67,14 +67,16 @@
|
|||||||
<!-- 右侧导航 -->
|
<!-- 右侧导航 -->
|
||||||
<div class="am-topbar-right am-hide-sm-only">
|
<div class="am-topbar-right am-hide-sm-only">
|
||||||
<!-- 快捷百宝箱 -->
|
<!-- 快捷百宝箱 -->
|
||||||
<div class="navigation-main-quick">
|
{{if MyC('home_navigation_main_quick_status') eq 1}}
|
||||||
<a href="javascript:;" class="am-block" data-am-modal="{target: '#left-main-quick-popup'}">
|
<div class="navigation-main-quick">
|
||||||
<span class="am-icon-sliders icon"></span>
|
<a href="javascript:;" class="am-block" data-am-modal="{target: '#left-main-quick-popup'}">
|
||||||
<b class="am-block"></b>
|
<span class="am-icon-sliders icon"></span>
|
||||||
<p class="am-text-truncate name">{{:MyC('home_navigation_main_quick_name', '百宝箱', true)}}</p>
|
<b class="am-block"></b>
|
||||||
<i class="am-icon-angle-down"></i>
|
<p class="am-text-truncate name">{{:MyC('home_navigation_main_quick_name', '百宝箱', true)}}</p>
|
||||||
</a>
|
<i class="am-icon-angle-down"></i>
|
||||||
</div>
|
</a>
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -50,6 +50,7 @@ class BaseService
|
|||||||
'common_is_exhibition_mode_btn_text'=> MyC('common_is_exhibition_mode_btn_text', '立即咨询', true),
|
'common_is_exhibition_mode_btn_text'=> MyC('common_is_exhibition_mode_btn_text', '立即咨询', true),
|
||||||
'common_user_is_mandatory_bind_mobile'=> (int) MyC('common_user_is_mandatory_bind_mobile', 0),
|
'common_user_is_mandatory_bind_mobile'=> (int) MyC('common_user_is_mandatory_bind_mobile', 0),
|
||||||
'common_user_is_onekey_bind_mobile' => (int) MyC('common_user_is_onekey_bind_mobile', 0),
|
'common_user_is_onekey_bind_mobile' => (int) MyC('common_user_is_onekey_bind_mobile', 0),
|
||||||
|
'home_navigation_main_quick_status' => (int) MyC('home_navigation_main_quick_status', 0),
|
||||||
|
|
||||||
// 订单相关
|
// 订单相关
|
||||||
'home_is_enable_order_bulk_pay' => (int) MyC('home_is_enable_order_bulk_pay', 0),
|
'home_is_enable_order_bulk_pay' => (int) MyC('home_is_enable_order_bulk_pay', 0),
|
||||||
|
File diff suppressed because one or more lines are too long
@ -1,5 +1,5 @@
|
|||||||
<!-- 开启事件 -->
|
<!-- 开启事件 -->
|
||||||
<movable-area class="quick-nav-movable-container">
|
<movable-area a:if="{{quick_status == 1}}" class="quick-nav-movable-container">
|
||||||
<movable-view direction="all" x="{{x}}" y="{{y}}" animation="{{false}}" class="quick-nav-event-submit" onTap="quick_open_event">
|
<movable-view direction="all" x="{{x}}" y="{{y}}" animation="{{false}}" class="quick-nav-event-submit" onTap="quick_open_event">
|
||||||
<image src="/images/quick-submit-icon.png" mode="widthFix"></image>
|
<image src="/images/quick-submit-icon.png" mode="widthFix"></image>
|
||||||
</movable-view>
|
</movable-view>
|
||||||
|
@ -2,6 +2,7 @@ const app = getApp();
|
|||||||
Component({
|
Component({
|
||||||
data: {
|
data: {
|
||||||
popup_status: false,
|
popup_status: false,
|
||||||
|
quick_status: 0,
|
||||||
data_list: [],
|
data_list: [],
|
||||||
system: null,
|
system: null,
|
||||||
x: 0,
|
x: 0,
|
||||||
@ -29,7 +30,10 @@ Component({
|
|||||||
// 初始化配置
|
// 初始化配置
|
||||||
init_config(status) {
|
init_config(status) {
|
||||||
if((status || false) == true) {
|
if((status || false) == true) {
|
||||||
this.setData({ data_list: app.get_config('quick_nav') || [] });
|
this.setData({
|
||||||
|
data_list: app.get_config('quick_nav') || [],
|
||||||
|
quick_status: app.get_config('config.home_navigation_main_quick_status') || 0
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
app.is_config(this, 'init_config');
|
app.is_config(this, 'init_config');
|
||||||
}
|
}
|
||||||
|
@ -2,6 +2,7 @@ const app = getApp();
|
|||||||
Component({
|
Component({
|
||||||
data: {
|
data: {
|
||||||
popup_status: false,
|
popup_status: false,
|
||||||
|
quick_status: 0,
|
||||||
data_list: [],
|
data_list: [],
|
||||||
system: null,
|
system: null,
|
||||||
x: 0,
|
x: 0,
|
||||||
@ -32,7 +33,10 @@ Component({
|
|||||||
// 初始化配置
|
// 初始化配置
|
||||||
init_config(status) {
|
init_config(status) {
|
||||||
if((status || false) == true) {
|
if((status || false) == true) {
|
||||||
this.setData({ data_list: app.get_config('quick_nav') || [] });
|
this.setData({
|
||||||
|
data_list: app.get_config('quick_nav') || [],
|
||||||
|
quick_status: app.get_config('config.home_navigation_main_quick_status') || 0
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
app.is_config(this, 'init_config');
|
app.is_config(this, 'init_config');
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<!-- 开启事件 -->
|
<!-- 开启事件 -->
|
||||||
<movable-area class="quick-nav-movable-container">
|
<movable-area s-if="{{quick_status == 1" class="quick-nav-movable-container">
|
||||||
<movable-view direction="all" x="{{x}}" y="{{y}}" animation="{{false}}" class="quick-nav-event-submit" bindtap="quick_open_event">
|
<movable-view direction="all" x="{{x}}" y="{{y}}" animation="{{false}}" class="quick-nav-event-submit" bindtap="quick_open_event">
|
||||||
<image src="/images/quick-submit-icon.png" mode="widthFix"></image>
|
<image src="/images/quick-submit-icon.png" mode="widthFix"></image>
|
||||||
</movable-view>
|
</movable-view>
|
||||||
|
@ -2,6 +2,7 @@ const app = getApp();
|
|||||||
Component({
|
Component({
|
||||||
data: {
|
data: {
|
||||||
popup_status: false,
|
popup_status: false,
|
||||||
|
quick_status: 0,
|
||||||
data_list: [],
|
data_list: [],
|
||||||
system: null,
|
system: null,
|
||||||
x: 0,
|
x: 0,
|
||||||
@ -32,7 +33,10 @@ Component({
|
|||||||
// 初始化配置
|
// 初始化配置
|
||||||
init_config(status) {
|
init_config(status) {
|
||||||
if((status || false) == true) {
|
if((status || false) == true) {
|
||||||
this.setData({ data_list: app.get_config('quick_nav') || [] });
|
this.setData({
|
||||||
|
data_list: app.get_config('quick_nav') || [],
|
||||||
|
quick_status: app.get_config('config.home_navigation_main_quick_status') || 0
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
app.is_config(this, 'init_config');
|
app.is_config(this, 'init_config');
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<!-- 开启事件 -->
|
<!-- 开启事件 -->
|
||||||
<movable-area class="quick-nav-movable-container">
|
<movable-area qq:if="{{quick_status == 1}}" class="quick-nav-movable-container">
|
||||||
<movable-view direction="all" x="{{x}}" y="{{y}}" animation="{{false}}" class="quick-nav-event-submit" bindtap="quick_open_event">
|
<movable-view direction="all" x="{{x}}" y="{{y}}" animation="{{false}}" class="quick-nav-event-submit" bindtap="quick_open_event">
|
||||||
<image src="/images/quick-submit-icon.png" mode="widthFix"></image>
|
<image src="/images/quick-submit-icon.png" mode="widthFix"></image>
|
||||||
</movable-view>
|
</movable-view>
|
||||||
|
@ -2,6 +2,7 @@ const app = getApp();
|
|||||||
Component({
|
Component({
|
||||||
data: {
|
data: {
|
||||||
popup_status: false,
|
popup_status: false,
|
||||||
|
quick_status: 0,
|
||||||
data_list: [],
|
data_list: [],
|
||||||
system: null,
|
system: null,
|
||||||
x: 0,
|
x: 0,
|
||||||
@ -32,7 +33,10 @@ Component({
|
|||||||
// 初始化配置
|
// 初始化配置
|
||||||
init_config(status) {
|
init_config(status) {
|
||||||
if((status || false) == true) {
|
if((status || false) == true) {
|
||||||
this.setData({ data_list: app.get_config('quick_nav') || [] });
|
this.setData({
|
||||||
|
data_list: app.get_config('quick_nav') || [],
|
||||||
|
quick_status: app.get_config('config.home_navigation_main_quick_status') || 0
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
app.is_config(this, 'init_config');
|
app.is_config(this, 'init_config');
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<!-- 开启事件 -->
|
<!-- 开启事件 -->
|
||||||
<movable-area class="quick-nav-movable-container">
|
<movable-area tt:if="{{quick_status == 1}}" class="quick-nav-movable-container">
|
||||||
<movable-view direction="all" x="{{x}}" y="{{y}}" animation="{{false}}" class="quick-nav-event-submit" bindtap="quick_open_event">
|
<movable-view direction="all" x="{{x}}" y="{{y}}" animation="{{false}}" class="quick-nav-event-submit" bindtap="quick_open_event">
|
||||||
<image src="/images/quick-submit-icon.png" mode="widthFix"></image>
|
<image src="/images/quick-submit-icon.png" mode="widthFix"></image>
|
||||||
</movable-view>
|
</movable-view>
|
||||||
|
@ -2,6 +2,7 @@ const app = getApp();
|
|||||||
Component({
|
Component({
|
||||||
data: {
|
data: {
|
||||||
popup_status: false,
|
popup_status: false,
|
||||||
|
quick_status: 0,
|
||||||
data_list: [],
|
data_list: [],
|
||||||
system: null,
|
system: null,
|
||||||
x: 0,
|
x: 0,
|
||||||
@ -32,7 +33,10 @@ Component({
|
|||||||
// 初始化配置
|
// 初始化配置
|
||||||
init_config(status) {
|
init_config(status) {
|
||||||
if((status || false) == true) {
|
if((status || false) == true) {
|
||||||
this.setData({ data_list: app.get_config('quick_nav') || [] });
|
this.setData({
|
||||||
|
data_list: app.get_config('quick_nav') || [],
|
||||||
|
quick_status: app.get_config('config.home_navigation_main_quick_status') || 0
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
app.is_config(this, 'init_config');
|
app.is_config(this, 'init_config');
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<!-- 开启事件 -->
|
<!-- 开启事件 -->
|
||||||
<movable-area class="quick-nav-movable-container">
|
<movable-area wx:if="{{quick_status == 1}}" class="quick-nav-movable-container">
|
||||||
<movable-view direction="all" x="{{x}}" y="{{y}}" animation="{{false}}" class="quick-nav-event-submit" bindtap="quick_open_event">
|
<movable-view direction="all" x="{{x}}" y="{{y}}" animation="{{false}}" class="quick-nav-event-submit" bindtap="quick_open_event">
|
||||||
<image src="/images/quick-submit-icon.png" mode="widthFix"></image>
|
<image src="/images/quick-submit-icon.png" mode="widthFix"></image>
|
||||||
</movable-view>
|
</movable-view>
|
||||||
|
Loading…
Reference in New Issue
Block a user