mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2024-12-04 04:49:33 +08:00
user
This commit is contained in:
parent
0da6564341
commit
33d0c96d4e
@ -72,7 +72,7 @@ textarea {
|
||||
|
||||
.nav-submit-fixed { background: #eee; height: 46px; position: fixed; bottom: 0; z-index: 10; }
|
||||
|
||||
.tips { background: #ffffeb url('/images/tips.png') no-repeat 5rpx 16rpx; background-size: 26rpx 26rpx; color: #f7b240; border: 1px solid #faebd2; line-height: 36rpx; padding: 5px 5px 5px 15px; font-size: 26rpx; border-radius: 2px; display: block; }
|
||||
.tips { background: #ffffeb url('/images/tips.png') no-repeat 5rpx 12rpx; background-size: 35rpx 35rpx; color: #f7b240; border: 1px solid #faebd2; line-height: 36rpx; padding: 5px 5px 5px 20px; font-size: 26rpx; border-radius: 2px; display: block; }
|
||||
|
||||
.data-loding image { width: 60px; height: 60px; background-size: 80% 80% !important; }
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
||||
</block>
|
||||
</swiper>
|
||||
|
||||
<view a:if="{{data_list_loding_status != 0}}">
|
||||
<view a:if="{{data_list_loding_status == 2}}">
|
||||
<import src="/pages/common/nodata.axml" />
|
||||
<template is="nodata" data="{{status: data_list_loding_status}}"></template>
|
||||
</view>
|
@ -9,7 +9,7 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view a:if="{{data_list_loding_status != 0}}">
|
||||
<view a:if="{{data_list_loding_status == 2}}">
|
||||
<import src="/pages/common/nodata.axml" />
|
||||
<template is="nodata" data="{{status: data_list_loding_status}}"></template>
|
||||
</view>
|
||||
|
BIN
alipay/images/tips.png
Executable file → Normal file
BIN
alipay/images/tips.png
Executable file → Normal file
Binary file not shown.
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 2.6 KiB |
@ -1,11 +1,16 @@
|
||||
<!-- 搜索 -->
|
||||
<view class="search wh-auto">
|
||||
<view a:if="{{data_list_loding_status != 1 && is_enable_search == 1}}" class="search wh-auto">
|
||||
<view class="search-content bg-white oh">
|
||||
<icon type="search" size="16" />
|
||||
<input type="text" confirm-type="search" placeholder="其实搜索很简单^_^!" class="wh-auto cr-888" onConfirm="search_input_event" />
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 商城公告 -->
|
||||
<view a:if="{{common_shop_notice != null}}">
|
||||
<view class="tips">{{common_shop_notice}}</view>
|
||||
</view>
|
||||
|
||||
<!-- 轮播 -->
|
||||
<component-home-banner />
|
||||
|
||||
|
@ -9,6 +9,8 @@ Page({
|
||||
data_list_loding_status: 1,
|
||||
data_bottom_line_status: false,
|
||||
data_list: [],
|
||||
common_shop_notice: null,
|
||||
is_enable_search: 1,
|
||||
load_status: 0,
|
||||
},
|
||||
|
||||
@ -38,10 +40,12 @@ Page({
|
||||
if (res.data.code == 0) {
|
||||
var data = res.data.data;
|
||||
self.setData({
|
||||
data_list: data,
|
||||
indicator_dots: (data.length > 1),
|
||||
autoplay: (data.length > 1),
|
||||
data_list_loding_status: data.length == 0 ? 0 : 3,
|
||||
data_list: data.data_list,
|
||||
indicator_dots: (data.data_list.length > 1),
|
||||
autoplay: (data.data_list.length > 1),
|
||||
common_shop_notice: data.common_shop_notice || null,
|
||||
is_enable_search: data.is_enable_search,
|
||||
data_list_loding_status: data.data_list.length == 0 ? 0 : 3,
|
||||
data_bottom_line_status: true,
|
||||
});
|
||||
} else {
|
||||
|
64
service/Application/Admin/Controller/AppConfigController.class.php
Executable file
64
service/Application/Admin/Controller/AppConfigController.class.php
Executable file
@ -0,0 +1,64 @@
|
||||
<?php
|
||||
|
||||
namespace Admin\Controller;
|
||||
|
||||
/**
|
||||
* 手机端 - 配置
|
||||
* @author Devil
|
||||
* @blog http://gong.gg/
|
||||
* @version 0.0.1
|
||||
* @datetime 2016-12-01T21:51:08+0800
|
||||
*/
|
||||
class AppConfigController extends CommonController
|
||||
{
|
||||
/**
|
||||
* [_initialize 前置操作-继承公共前置方法]
|
||||
* @author Devil
|
||||
* @blog http://gong.gg/
|
||||
* @version 0.0.1
|
||||
* @datetime 2016-12-03T12:39:08+0800
|
||||
*/
|
||||
public function _initialize()
|
||||
{
|
||||
// 调用父类前置方法
|
||||
parent::_initialize();
|
||||
|
||||
// 登录校验
|
||||
$this->Is_Login();
|
||||
|
||||
// 权限校验
|
||||
$this->Is_Power();
|
||||
}
|
||||
|
||||
/**
|
||||
* [Index 配置列表]
|
||||
* @author Devil
|
||||
* @blog http://gong.gg/
|
||||
* @version 0.0.1
|
||||
* @datetime 2016-12-06T21:31:53+0800
|
||||
*/
|
||||
public function Index()
|
||||
{
|
||||
// 配置信息
|
||||
$data = M('Config')->getField('only_tag,name,describe,value,error_tips');
|
||||
$this->assign('data', $data);
|
||||
|
||||
// 是否
|
||||
$this->assign('common_is_text_list', L('common_is_text_list'));
|
||||
|
||||
$this->display('Index');
|
||||
}
|
||||
|
||||
/**
|
||||
* [Save 配置数据保存]
|
||||
* @author Devil
|
||||
* @blog http://gong.gg/
|
||||
* @version 0.0.1
|
||||
* @datetime 2017-01-02T23:08:19+0800
|
||||
*/
|
||||
public function Save()
|
||||
{
|
||||
$this->MyConfigSave();
|
||||
}
|
||||
}
|
||||
?>
|
31
service/Application/Admin/View/Default/AppConfig/Index.html
Executable file
31
service/Application/Admin/View/Default/AppConfig/Index.html
Executable file
@ -0,0 +1,31 @@
|
||||
<include file="Public/Header" />
|
||||
|
||||
<!-- right content start -->
|
||||
<div class="content-right">
|
||||
<div class="content">
|
||||
<!-- form start -->
|
||||
<form class="am-form form-validation view-save" action="{{:U('Admin/AppConfig/Save')}}" method="POST" request-type="ajax-url" request-value="{{:U('Admin/AppConfig/Index')}}">
|
||||
<div class="am-form-group">
|
||||
<label>{{$data.common_app_is_enable_search.name}}</label>
|
||||
<select name="{{$data.common_app_is_enable_search.only_tag}}" class="am-radius chosen-select c-p" data-validation-message="{{$data.common_app_is_enable_search.error_tips}}" required>
|
||||
<foreach name="common_is_text_list" item="v">
|
||||
<option value="{{$v.id}}" <if condition="isset($data['common_app_is_enable_search']['value']) and $data['common_app_is_enable_search']['value'] eq $v['id']">selected</if>>{{$v.name}}</option>
|
||||
</foreach>
|
||||
</select>
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label>{{$data.common_app_customer_service_tel.name}}</label>
|
||||
<input type="text" name="{{$data.common_app_customer_service_tel.only_tag}}" placeholder="{{$data.common_app_customer_service_tel.name}}" data-validation-message="{{$data.common_app_customer_service_tel.error_tips}}" class="am-radius" <present name="data"> value="{{$data.common_app_customer_service_tel.value}}"</present> />
|
||||
</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:'{{:L('common_form_loading_tips')}}'}">{{:L('common_operation_save')}}</button>
|
||||
</div>
|
||||
</form>
|
||||
<!-- form end -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- right content end -->
|
||||
|
||||
<!-- footer start -->
|
||||
<include file="Public/Footer" />
|
||||
<!-- footer end -->
|
@ -30,10 +30,6 @@
|
||||
<label>{{$data.common_app_mini_alipay_describe.name}}</label>
|
||||
<input type="text" name="{{$data.common_app_mini_alipay_describe.only_tag}}" placeholder="{{$data.common_app_mini_alipay_describe.name}}" data-validation-message="{{$data.common_app_mini_alipay_describe.error_tips}}" class="am-radius" <present name="data"> value="{{$data.common_app_mini_alipay_describe.value}}"</present> required />
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label>{{$data.common_app_mini_alipay_customer_service_tel.name}}</label>
|
||||
<input type="text" name="{{$data.common_app_mini_alipay_customer_service_tel.only_tag}}" placeholder="{{$data.common_app_mini_alipay_customer_service_tel.name}}" data-validation-message="{{$data.common_app_mini_alipay_customer_service_tel.error_tips}}" class="am-radius" <present name="data"> value="{{$data.common_app_mini_alipay_customer_service_tel.value}}"</present> />
|
||||
</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:'{{:L('common_form_loading_tips')}}'}">{{:L('common_operation_save')}}</button>
|
||||
</div>
|
||||
|
@ -53,10 +53,15 @@
|
||||
<label>{{$data.common_share_view_desc.name}}</label>
|
||||
<textarea rows="3" name="{{$data.common_share_view_desc.only_tag}}" class="am-radius" placeholder="{{$data.common_share_view_desc.name}}" data-validation-message="{{$data.common_share_view_desc.error_tips}}"><present name="data">{{$data.common_share_view_desc.value}}</present></textarea>
|
||||
</div> -->
|
||||
<div class="am-form-group">
|
||||
<label>{{$data.common_shop_notice.name}}<span class="fs-12 fw-100 cr-999">({{$data.common_shop_notice.describe}})</span></label>
|
||||
<textarea rows="3" name="{{$data.common_shop_notice.only_tag}}" class="am-radius" placeholder="{{$data.common_shop_notice.name}}" data-validation-message="{{$data.common_shop_notice.error_tips}}"><present name="data">{{$data.common_shop_notice.value}}</present></textarea>
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label>{{$data.common_user_center_notice.name}}<span class="fs-12 fw-100 cr-999">({{$data.common_user_center_notice.describe}})</span></label>
|
||||
<textarea rows="3" name="{{$data.common_user_center_notice.only_tag}}" class="am-radius" placeholder="{{$data.common_user_center_notice.name}}" data-validation-message="{{$data.common_user_center_notice.error_tips}}"><present name="data">{{$data.common_user_center_notice.value}}</present></textarea>
|
||||
</div>
|
||||
|
||||
<div class="am-form-group">
|
||||
<label>{{$data.home_search_keywords_type.name}}</label>
|
||||
<select name="{{$data.home_search_keywords_type.only_tag}}" class="am-radius chosen-select c-p" data-validation-message="{{$data.home_search_keywords_type.error_tips}}">
|
||||
|
@ -41,10 +41,14 @@ class IndexController extends CommonController
|
||||
*/
|
||||
public function Index()
|
||||
{
|
||||
$data = GoodsService::HomeFloorList();
|
||||
$result = [
|
||||
'data_list' => GoodsService::HomeFloorList(),
|
||||
'common_shop_notice' => MyC('common_shop_notice', null, true),
|
||||
'is_enable_search' => MyC('common_app_is_enable_search', 1),
|
||||
];
|
||||
|
||||
// 返回数据
|
||||
$this->ajaxReturn(L('common_operation_success'), 0, $data);
|
||||
$this->ajaxReturn(L('common_operation_success'), 0, $result);
|
||||
}
|
||||
}
|
||||
?>
|
@ -265,8 +265,8 @@ class UserController extends CommonController
|
||||
'avatar' => $this->user['avatar'],
|
||||
'nickname' => $this->user['nickname'],
|
||||
'username' => $this->user['username'],
|
||||
'customer_service_tel' => MyC('common_app_mini_alipay_customer_service_tel'),
|
||||
'common_user_center_notice' => MyC('common_user_center_notice'),
|
||||
'customer_service_tel' => MyC('common_app_customer_service_tel', null, true),
|
||||
'common_user_center_notice' => MyC('common_user_center_notice', null, true),
|
||||
'user_order_status' => $user_order_status['data'],
|
||||
'user_order_count' => $user_order_count,
|
||||
'user_goods_favor_count' => $user_goods_favor_count,
|
||||
|
@ -184,6 +184,9 @@ class CommonController extends Controller
|
||||
}
|
||||
$this->assign('home_search_keywords', $home_search_keywords);
|
||||
|
||||
// 商城公告
|
||||
$this->assign('common_shop_notice', MyC('common_shop_notice'));
|
||||
|
||||
// 当前控制器名称
|
||||
$this->assign('controller_name', CONTROLLER_NAME);
|
||||
}
|
||||
|
@ -30,4 +30,11 @@
|
||||
var __user_id__ = <if condition="empty($user['id'])">0<else />{{$user.id}}</if>;
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<body>
|
||||
|
||||
<!-- 商城公告 -->
|
||||
<notempty name="common_shop_notice">
|
||||
<div class="am-alert am-alert-warning am-radius common-shop-notice" data-am-alert>
|
||||
<div class="am-container">{{$common_shop_notice}}</div>
|
||||
</div>
|
||||
</notempty>
|
@ -31,6 +31,11 @@ button { outline: none; }
|
||||
font-size: 12px !important;
|
||||
}
|
||||
|
||||
/* 商城公告 */
|
||||
.common-shop-notice {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/*所有超链接不要下划线*/
|
||||
*, *:after, *:before{
|
||||
-webkit-box-sizing: border-box;
|
||||
|
Loading…
Reference in New Issue
Block a user