This commit is contained in:
devil_gong 2018-11-26 12:39:49 +08:00
parent 33d0c96d4e
commit 61a12394cc
4 changed files with 13 additions and 2 deletions

View File

@ -1,5 +1,5 @@
<!-- 搜索 -->
<view a:if="{{data_list_loding_status != 1 && is_enable_search == 1}}" class="search wh-auto">
<view a:if="{{load_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" />
@ -51,7 +51,7 @@
</view>
<!-- 留言 -->
<view a:if="{{load_status == 1}}" class="spacing-10">
<view a:if="{{load_status == 1 && is_enable_answer == 1}}" class="spacing-10">
<navigator url="/pages/answer-form/answer-form" hover-class="none" class="bg-white">
<image class="wh-auto" mode="widthFix" src="/images/home-consulting-image.jpg" />
</navigator>

View File

@ -11,6 +11,7 @@ Page({
data_list: [],
common_shop_notice: null,
is_enable_search: 1,
is_enable_answer: 1,
load_status: 0,
},
@ -45,6 +46,7 @@ Page({
autoplay: (data.data_list.length > 1),
common_shop_notice: data.common_shop_notice || null,
is_enable_search: data.is_enable_search,
is_enable_answer: data.is_enable_answer,
data_list_loding_status: data.data_list.length == 0 ? 0 : 3,
data_bottom_line_status: true,
});

View File

@ -13,6 +13,14 @@
</foreach>
</select>
</div>
<div class="am-form-group">
<label>{{$data.common_app_is_enable_answer.name}}</label>
<select name="{{$data.common_app_is_enable_answer.only_tag}}" class="am-radius chosen-select c-p" data-validation-message="{{$data.common_app_is_enable_answer.error_tips}}" required>
<foreach name="common_is_text_list" item="v">
<option value="{{$v.id}}" <if condition="isset($data['common_app_is_enable_answer']['value']) and $data['common_app_is_enable_answer']['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> />

View File

@ -45,6 +45,7 @@ class IndexController extends CommonController
'data_list' => GoodsService::HomeFloorList(),
'common_shop_notice' => MyC('common_shop_notice', null, true),
'is_enable_search' => MyC('common_app_is_enable_search', 1),
'is_enable_answer' => MyC('common_app_is_enable_answer', 1),
];
// 返回数据