本文整理汇总了PHP中mobile_page函数的典型用法代码示例。如果您正苦于以下问题:PHP mobile_page函数的具体用法?PHP mobile_page怎么用?PHP mobile_page使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了mobile_page函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: favorites_listOp
/**
* 收藏列表
*/
public function favorites_listOp()
{
$model_favorites = Model('favorites');
$model_store = Model('store');
$favorites_list = $model_favorites->getStoreFavoritesList(array('member_id' => $this->member_info['member_id']), '*', $this->page);
$page_count = $model_favorites->gettotalpage();
$store_list = array();
$favorites_list_indexed = array();
foreach ($favorites_list as $v) {
$item = array();
$item['store_id'] = $v['store_id'];
$item['store_name'] = $v['store_name'];
$item['fav_time'] = $v['fav_time'];
$item['fav_time_text'] = date('Y-m-d H:i', $v['fav_time']);
$store = $model_store->getStoreInfoByID($v['store_id']);
$item['goods_count'] = $store['goods_count'];
$item['store_collect'] = $store['store_collect'];
$item['store_avatar'] = $store['store_avatar'];
if ($store['store_avatar']) {
$item['store_avatar_url'] = UPLOAD_SITE_URL . '/' . ATTACH_STORE . '/' . $store['store_avatar'];
} else {
$item['store_avatar_url'] = UPLOAD_SITE_URL . '/' . ATTACH_COMMON . DS . C('default_store_avatar');
}
$store_list[] = $item;
}
output_data(array('favorites_list' => $store_list), mobile_page($page_count));
}
示例2: designer_work_listOp
public function designer_work_listOp()
{
error_reporting(0);
$post = $this->read_json();
$arr = OTA($post);
$_REQUEST = array_merge($_REQUEST, $arr);
// var_dump($_REQUEST);
// exit();
// $arr=objectToArray($post);
// $_REQUEST=array_merge($_REQUEST,$arr);
// $goods_id = intval($_REQUEST ['goods_id']);
$model_designer_work = Model('designer_work');
// // $model_search = Model('search');
// // $condition['designer_work.sn_if_show']=1;
// if(!empty($_REQUEST['id']) && intval($_REQUEST['id']) > 0) {
// $condition = " and designer_work.id=".$_REQUEST['id'];
// } elseif (!empty($_REQUEST['conditions']['matchValue'])) {
// $condition['designer_work.sn_name|designer_work.sn_content'] = array('like', '%' . $_REQUEST['conditions']['matchValue'] . '%');
// }
//$condition['sn_name|sn_content'] = array('like', '%' . 'abc'. '%');
// output_data(array('desginers_work_list' => $post));
$field = 'designer_work.id,designer_work.sn_collect,designer_work.sn_category,designer_work.sn_style,designer_work.sn_m_pic,designer_work.sn_work_pic,designer_work.sn_area,designer_work.sn_cost,designer_work.sn_content,designer_work.sn_add_time,designer_work.sn_house_type,designer_work.sn_collection_count,designer_work.sn_share_count,designer_work.sn_designer_id,designer.sn_title,designer_work.sn_name,designer.sn_head,designer.sn_designer_style,designer.sn_designer_enter_time,designer.sn_designer_collect,designer.sn_store_id,designer.sn_store_name';
$designers_work_list = $model_designer_work->getDesignerWorkList($post->conditions, $field, $_REQUEST['pageCount']);
// var_dump($designers_work_list);
// output_data(array('desginers_work_list' => $post));
$page_count = $model_designer_work->gettotalpage();
//优先从全文索引库里查找
output_data(array('desginers_work_list' => $designers_work_list), mobile_page($page_count));
}
示例3: order_listOp
public function order_listOp()
{
$model_order = Model('order');
$order_list = $model_order->getStoreOrderList($this->store_info['store_id'], $_POST['order_sn'], $_POST['buyer_name'], $_POST['state_type'], $_POST['query_start_date'], $_POST['query_end_date'], $_POST['skip_off'], '*', array('order_goods'));
$page_count = $model_order->gettotalpage();
output_data(array('order_list' => $order_list), mobile_page($page_count));
}
示例4: order_listOp
/**
* 订单列表
*/
public function order_listOp()
{
$model_order = Model('order');
$condition = array();
$condition['buyer_id'] = $this->member_info['member_id'];
$order_list_array = $model_order->getOrderList($condition, $this->page, '*', 'order_id desc', '', array('order_goods'));
$order_group_list = array();
$order_pay_sn_array = array();
foreach ($order_list_array as $value) {
//显示取消订单
$value['if_cancel'] = $model_order->getOrderOperateState('buyer_cancel', $value);
//显示收货
$value['if_receive'] = $model_order->getOrderOperateState('receive', $value);
//显示锁定中
$value['if_lock'] = $model_order->getOrderOperateState('lock', $value);
//显示物流跟踪
$value['if_deliver'] = $model_order->getOrderOperateState('deliver', $value);
$order_group_list[$value['pay_sn']]['order_list'][] = $value;
//如果有在线支付且未付款的订单则显示合并付款链接
if ($value['order_state'] == ORDER_STATE_NEW) {
$order_group_list[$value['pay_sn']]['pay_amount'] += $value['order_amount'];
}
$order_group_list[$value['pay_sn']]['add_time'] = $value['add_time'];
//记录一下pay_sn,后面需要查询支付单表
$order_pay_sn_array[] = $value['pay_sn'];
}
$new_order_group_list = array();
foreach ($order_group_list as $key => $value) {
$value['pay_sn'] = strval($key);
$new_order_group_list[] = $value;
}
$page_count = $model_order->gettotalpage();
output_data(array('order_group_list' => $new_order_group_list), mobile_page($page_count));
}
示例5: goods_listOp
/**
* 商品列表
*/
public function goods_listOp() {
$model_goods = Model('goods');
//查询条件
$condition = array();
if(!empty($_GET['store_id']) && intval($_GET['store_id']) > 0) {
$condition['store_id'] = $_GET['store_id'];
} elseif (!empty($_GET['keyword'])) {
$condition['goods_name|goods_jingle'] = array('like', '%' . $_GET['keyword'] . '%');
}
//所需字段
$fieldstr = "goods_id,goods_commonid,store_id,goods_name,goods_price,goods_marketprice,goods_image,goods_salenum,evaluation_good_star,evaluation_count";
//排序方式
$order = $this->_goods_list_order($_GET['key'], $_GET['order']);
$goods_list = $model_goods->getGoodsListByColorDistinct($condition, $fieldstr, $order, $this->page);
$page_count = $model_goods->gettotalpage();
//处理商品列表(团购、限时折扣、商品图片)
$goods_list = $this->_goods_list_extend($goods_list);
output_data(array('goods_list' => $goods_list), mobile_page($page_count));
}
示例6: dc_favorites_listOp
/**
* 店铺收藏列表
*
* @param
* @return
*/
public function dc_favorites_listOp()
{
$favorites_model = Model('favorites');
$favorites_list = $favorites_model->getStoreFavoritesList(array('member_id' => $this->member_info['member_id']), '*', 10);
$page_count = $model_favorites->gettotalpage();
if (!empty($favorites_list) && is_array($favorites_list)) {
$favorites_id = array();
//收藏的店铺编号
foreach ($favorites_list as $key => $favorites) {
$fav_id = $favorites['fav_id'];
$favorites_id[] = $favorites['fav_id'];
$favorites_key[$fav_id] = $key;
}
$store_model = Model('store');
$store_list = $store_model->getStoreList(array('store_id' => array('in', $favorites_id)));
if (!empty($store_list) && is_array($store_list)) {
foreach ($store_list as $key => $fav) {
$fav_id = $fav['store_id'];
$key = $favorites_key[$fav_id];
$favorites_list[$key]['store'] = $fav;
}
}
}
output_data(array('favorites_list' => $favorites_list), mobile_page($page_count));
}
示例7: _get_Own_Store_List
private function _get_Own_Store_List()
{
$model_store = Model('store');
//查询条件
$condition = array();
if (!empty($_GET['sc_id']) && intval($_GET['sc_id']) > 0) {
$condition['sc_id'] = $_GET['sc_id'];
} elseif (!empty($_GET['keyword'])) {
//$condition['store_name'] = array('like', '%' . $_GET['keyword'] . '%');
}
//所需字段
$fields = "*";
//排序方式
$order = $this->_store_list_order($_GET['key'], $_GET['order']);
$store_list = $model_store->where($condition)->order($order)->page(10)->select();
$page_count = $model_store->gettotalpage();
$own_store_list = $store_list;
$simply_store_list = array();
foreach ($own_store_list as $key => $value) {
$simply_store_list[$key]['store_id'] = $own_store_list[$key]['store_id'];
$simply_store_list[$key]['store_name'] = $own_store_list[$key]['store_name'];
$simply_store_list[$key]['store_address'] = $own_store_list[$key]['store_address'];
$simply_store_list[$key]['store_area_info'] = $own_store_list[$key]['area_info'];
}
output_data(array('store_list' => $simply_store_list), mobile_page($page_count));
}
示例8: voucher_listOp
/**
* 地址列表
*/
public function voucher_listOp()
{
$model_voucher = Model('voucher');
$voucher_list = $model_voucher->getMemberVoucherList($this->member_info['member_id'], $_POST['voucher_state'], $this->page);
$page_count = $model_voucher->gettotalpage();
output_data(array('voucher_list' => $voucher_list), mobile_page($page_count));
}
示例9: friend_listOp
/**
* 好友列表
*/
public function friend_listOp()
{
$model_chat = Model('web_chat');
$member_id = $this->member_info['member_id'];
$friend_list = $model_chat->getFriendList(array('friend_frommid' => $member_id), $this->page);
$page_count = $model_chat->gettotalpage();
output_data(array('friend_list' => $friend_list), mobile_page($page_count));
}
示例10: specialsOp
/**
* GET 专题列表
*/
public function specialsOp()
{
$conition = array();
$conition['special_state'] = 2;
$model_special = Model('cms_special');
$special_list = $model_special->getShopList($conition, $this->page, 'special_id desc');
$pageCount = $model_special->gettotalpage();
output_data(array('specials' => $special_list), mobile_page($pageCount));
}
示例11: designer_listOp
public function designer_listOp()
{
$model_designers = Model('designer');
// $post=$this->read_json();
$post = $this->read_json();
$arr = OTA($post);
$_REQUEST = array_merge($_REQUEST, $arr);
//
$designers_list = $model_designers->getDesignerListPage($post->conditions, $_REQUEST['pageCount'], 0, '*', '', $post->sortType);
$page_count = $model_designers->gettotalpage();
output_data(array('desginers_list' => $designers_list), mobile_page($page_count));
}
示例12: order_listOp
/**
* 订单列表
*/
public function order_listOp()
{
$model_order = Model('order');
$condition = array();
$condition['buyer_id'] = $this->member_info['member_id'];
$order_list_array = $model_order->getNormalOrderList($condition, $this->page, '*', 'order_id desc', '', array('order_goods'));
$order_group_list = array();
$order_pay_sn_array = array();
foreach ($order_list_array as $value) {
//显示取消订单
$value['if_cancel'] = $model_order->getOrderOperateState('buyer_cancel', $value);
//显示收货
$value['if_receive'] = $model_order->getOrderOperateState('receive', $value);
//显示锁定中
$value['if_lock'] = $model_order->getOrderOperateState('lock', $value);
//显示物流跟踪
$value['if_deliver'] = $model_order->getOrderOperateState('deliver', $value);
//商品图
foreach ($value['extend_order_goods'] as $k => $goods_info) {
$value['extend_order_goods'][$k]['goods_image_url'] = cthumb($goods_info['goods_image'], 240, $value['store_id']);
}
$order_group_list[$value['pay_sn']]['order_list'][] = $value;
//如果有在线支付且未付款的订单则显示合并付款链接
if ($value['order_state'] == ORDER_STATE_NEW) {
$order_group_list[$value['pay_sn']]['pay_amount'] += $value['order_amount'] - $value['rcb_amount'] - $value['pd_amount'];
}
$order_group_list[$value['pay_sn']]['add_time'] = $value['add_time'];
//记录一下pay_sn,后面需要查询支付单表
$order_pay_sn_array[] = $value['pay_sn'];
}
$new_order_group_list = array();
foreach ($order_group_list as $key => $value) {
$value['pay_sn'] = strval($key);
$new_order_group_list[] = $value;
}
$page_count = $model_order->gettotalpage();
$array_data = array('order_group_list' => $new_order_group_list);
if (isset($_GET['getpayment']) && $_GET['getpayment'] == "true") {
$model_mb_payment = Model('mb_payment');
$payment_list = $model_mb_payment->getMbPaymentOpenList();
//print_r($payment_list);
$payment_array = array();
if (!empty($payment_list)) {
foreach ($payment_list as $value) {
$payment_array[] = array('payment_code' => $value['payment_code'], 'payment_name' => $value['payment_name']);
}
}
$array_data['payment_list'] = $payment_array;
}
//output_data(array('order_group_list' => $array_data), mobile_page($page_count));
output_data($array_data, mobile_page($page_count));
}
示例13: listOp
/**
* 结算列表
*
*/
public function listOp()
{
$model_bill = Model('vr_bill');
$condition = array();
$condition['ob_store_id'] = $this->store_info['store_id'];
if (preg_match('/^\\d+$/', $_POST['ob_id'])) {
$condition['ob_id'] = intval($_POST['ob_id']);
}
if (is_numeric($_POST['bill_state'])) {
$condition['ob_state'] = intval($_POST['bill_state']);
}
$bill_list = $model_bill->getOrderBillList($condition, '*', $this->page, 'ob_state asc,ob_id asc');
$page_count = $model_bill->gettotalpage();
output_data(array('bill_list' => $bill_list), mobile_page($page_count));
}
示例14: order_listOp
/**
* 订单列表
*/
public function order_listOp()
{
$model_vr_order = Model('vr_order');
$condition = array();
$condition['buyer_id'] = $this->member_info['member_id'];
$order_list = $model_vr_order->getOrderList($condition, $this->page, '*', 'order_id desc');
foreach ($order_list as $key => $order) {
//显示取消订单
$order_list[$key]['if_cancel'] = $model_vr_order->getOrderOperateState('buyer_cancel', $order);
//显示支付
$order_list[$key]['if_pay'] = $model_vr_order->getOrderOperateState('payment', $order);
$order_list[$key]['goods_image_url'] = cthumb($order['goods_image'], 240, $order['store_id']);
}
$page_count = $model_vr_order->gettotalpage();
output_data(array('order_list' => $order_list), mobile_page($page_count));
}
示例15: goods_listOp
/**
* 客户购买商品列表
*/
public function goods_listOp()
{
$model_stat = Model('stat');
$goods_list = array();
$condition['store_id'] = $this->store_info['store_id'];
if (is_numeric($_POST['member_id'])) {
$condition['buyer_id'] = intval($_POST['member_id']);
}
$goods_list = $model_stat->statByStatordergoods($condition, 'store_id,goods_name,goods_image,goods_num,goods_price,order_add_time', $this->page);
if (!empty($goods_list)) {
foreach ($goods_list as $key => $val) {
$goods_list[$key]['gooods_image'] = thumb($val, '240');
}
}
$page_count = $model_stat->gettotalpage();
output_data(array('goods_list' => $goods_list), mobile_page($page_count));
}