🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
**1、模型建立单选字段,前台根据此字段筛选输出** 如建立isshow, 1|显示 2|隐藏 前台可以使用where="isshow=1",筛选输出 ~~~ {qb:listpage name="pcshop_list001" rows="5" order="list" where="isshow=1"} ~~~ **2、全站热搜关键词标签:** ~~~ {qb:tag name="pc_searchee" rows="8" class="app\search\index\Labelsearch@Searchlist"} <li><a href="{$rs.url}">{$rs.title}</a></li> {/qb:tag} ~~~ **3、调用地区,限制调用多少个:** ~~~ {volist name=":get_area('','',input('city_id')?:($webdb['city_id']?:6))" id="name"} {if ($i<=7)} <a href="{:urls("index","zone_id=$key&".fun("field@make_filter_url","zone_id,page"))}" class="item" target="_blank">{$name}</a> {/if} {/volist} ~~~ **4、调用商家,并调用商家发布的商品数量:** :-:![](https://box.kancloud.cn/52aa6963b2f745be41762e4340886859_719x243.png) ~~~ <section class="index-box mt10"> <div class="index-box__title"><i></i>店铺推荐<i></i><span>GOOD SHOP</span></div> <div class="index-box__recom dislay-flex"> {qb:tag name="mb_shop_index_shangjia" type="qun" rows="10" order="id" by="desc" status="2" mid="1"} <a class="box-recom__item" href="{$rs.url}"> <div class="recom-item__hd"><img src="{$rs.picurl?:'__STATIC__/muban/me/images/nopic.png'}"></div> <div class="recom-item__bd"> <div class="recom-title">{$rs.title|get_word=25}</div> <div class="recom-goods"><span>{:query('shop_content1',['where'=>['ext_id'=>$rs.id,'uid'=>$rs.uid],'count'=>'id'],3600)}款商品</span></div> </div> </a> {/qb:tag} </div> </section> ~~~ **5、用户名按金额排序:** ~~~ {volist name=":query('memberdata')->field('uid,nickname,username,rmb')->where('yz',1)->order('rmb desc')->limit(5)->select()" id="rs"} 昵称: {$rs.nickname} 账户名:{$rs.username} 余额:{$rs.rmb}<br> {/volist} ~~~ 由觉悟工作室 [WWW.JUEWU.ORG](http://www.juewu.org/) 收集整理