迅睿開源框架是一款PHP8高性能·簡單易用的PHP開源開發(fā)框架, 基于MIT開源許可協(xié)議發(fā)布,不限制商業(yè)使用,以多端互聯(lián)為設計理念, 支持的微信公眾號、小程序、APP客戶端、移動端網站、PC網站等多終端式管理系統(tǒng)。
業(yè)務經理
微信掃描以上二維碼
028-61286886
技術咨詢
請問下前端的消息通知提醒在小程序里怎么引用,這個好像有沒有api
JS
看了一下模板
他是通過下面的讀取會員信息,然后用JS寫到里面去的
<li> <ul class="dropdown-menu-list scroller" style="height: 250px;" data-handle-color="#637283"> {table table=member_notice isnew=1 uid=$member.uid order=inputtime cahce=0} <li> <a {if $t.url} href="{$t.url}" target="_blank" {else}href="{dr_member_url('notice/index')}"{/if}> <span class="time">{dr_fdate($t.inputtime)}</span> <span class="details"> {dr_notice_icon($t.type, 'label-icon')} {dr_strcut($t.content, 20)} </span> </a> </li> {/table} <script> $('.dr_notice_num').html("{$count}"); </script> </ul> </li>
回復@小黃人 18html.com 我是想問小程序,app怎么接入調用呀,沒看到api
定義test.php接口文件:./dayrui/App/Httpapi/Api/test.php
<?php /** * api 示例文件 * 變量介紹 * $return 表示標準返回變量 */ $uid = intval($_GET['uid']); $return = \Phpcmf\Service::M()->table('member_notice')->where('uid', $uid)->where('isnew', 1)->getAll();
后臺選擇test.php文件
開源是一種精神,但不是義務,幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
js自定義test.php
JS
看了一下模板
他是通過下面的讀取會員信息,然后用JS寫到里面去的
<li> <ul class="dropdown-menu-list scroller" style="height: 250px;" data-handle-color="#637283"> {table table=member_notice isnew=1 uid=$member.uid order=inputtime cahce=0} <li> <a {if $t.url} href="{$t.url}" target="_blank" {else}href="{dr_member_url('notice/index')}"{/if}> <span class="time">{dr_fdate($t.inputtime)}</span> <span class="details"> {dr_notice_icon($t.type, 'label-icon')} {dr_strcut($t.content, 20)} </span> </a> </li> {/table} <script> $('.dr_notice_num').html("{$count}"); </script> </ul> </li>回復@小黃人 18html.com 我是想問小程序,app怎么接入調用呀,沒看到api
定義test.php接口文件:./dayrui/App/Httpapi/Api/test.php
<?php /** * api 示例文件 * 變量介紹 * $return 表示標準返回變量 */ $uid = intval($_GET['uid']); $return = \Phpcmf\Service::M()->table('member_notice')->where('uid', $uid)->where('isnew', 1)->getAll();后臺選擇test.php文件
開源是一種精神,但不是義務,幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
js自定義test.php