title('搜索配置')->description('移动端')
// ->body($this->buildPreviewButton())
// ->body($this->newline())
->body(
<<{$this->form_pagesearch()->render()}
HTML
);
}
protected function form_pagesearch(){
$form = new Form();
$form->confirm('您确定要提交表单吗?', 'content');
$form->disableResetButton();
global $__MINI_GLOBAL_TENANT_ID__;
if($__MINI_GLOBAL_TENANT_ID__ === 0){
$res1 = __system__paycode__tip__(1);
Tooltip::make('.mini_global_admin_open_not_support_tip')
->bottom()
->title($res1['tip']);
$form->color('app_search_highlight_color', '搜索高亮颜色')->help($res1['text'])->default(Settings::get('app_search_highlight_color', '#fc3a72'));
}
$form->multipleSelectTable('app_hot_search', '移动端热搜')
->title('搜索记录库')
->max(16)
->from(SearchRender::make())
->model(WxSearch::class, 'id', 'search_content', 'selectTable:formMiniTrait:app_hot_search')
->help('搜索记录:如果为空,则选择标记为热门的搜索记录。(ps:如何控制顺序?) ')
->default(Settings::get('app_hot_search', '2054,2055,2056,2057,2058,2059,2060,2061,2062,2063,2064,2065,2066,2067,2068', true));
$form->divider();
$form->html(function () {
return '';
}, '');
$form->html(function () {
return '