Example #1
0
            <tbody>
                <?php 
$isnull = true;
foreach ($staticpage as $key => $value) {
    $isnull = false;
    ?>
                    <tr>
                        <td class="highlight"><?php 
    echo $value['id'];
    ?>
</td>
								 <td class="hidden-phone"><?php 
    echo $value['top'] == "top" ? "顶级单页" : " ";
    ?>
</td>
                        <td class="hidden-phone"><?php 
    echo $value['title'];
    ?>
</td>
                        <td><?php 
    echo mb_substr($value['summary'], 0, 60, "UTF-8");
    ?>
</td>
                        <td><?php 
    echo date('Y-m-d H:i:s', $value["created"]);
    ?>
</td>
                        <td>
                            <a href="<?php 
    echo U("Admin/Page/edit/id/" . $value['id']);
    ?>
Example #2
0
/image/share.jpg',
            type: 'link', // 分享类型,music、video或link,不填默认为link
            dataUrl: '', // 如果type是music或video,则要提供数据链接,默认为空
            success: function () {
                // 用户确认分享后执行的回调函数
            },
            cancel: function () {
                // 用户取消分享后执行的回调函数
            }
        });
//        wx.hideAllNonBaseMenuItem();
//        wx.showMenuItems({
//            menuList: [
//                'menuItem:profile',
//                'menuItem:exposeArticle'
//            ],
//            success: function (res) {
////                alert('已显示');
//            },
//            fail: function (res) {
////                alert(JSON.stringify(res));
//            }
//        });
        wx.showAllNonBaseMenuItem();
    });


</script>
<?php 
v_template_part(array("name" => "footer", "path" => "Public"));