手心的溫度

手心的溫度

90飞吻 2016-12-24 加入 来自九龙坡

(希望大家多多支持我的案例,我会努力更新)

手心的溫度 最近的回答

  • 2016-12-29 15:29:34右上角X按钮不相应确定按钮事件中回答:

    右上角的关闭按钮,不是用的 cancle 函数 [吃惊]
  • 2016-12-29 13:46:58layui 流加载配合asp的方法中回答:

    @你姓啥 关于你说的json格式问题,是根据你的业务需求来的。并没有固定的格式
  • 2016-12-29 13:45:36layui 流加载配合asp的方法中回答:

    @你姓啥
    这是我这边的前台script,你可以比对一下。
    layui.use('flow', function () {
    var flow = layui.flow;
    flow.load({
    elem: '.merchant_main' //流加载容器
    , done: function (page, next) { //加载下一页
    var lis = [];
    var order_status_input = parseInt($("#order_status_input").val());
    $.getJSON('/index.php?m=member&a=merchantsorder&order_status_input=' + order_status_input + '&page=' + page, function (res) {
    console.log(res);
    if (res != null) {
    layui.each(res, function (index, item) {
    var html = '';
    html += '<div class="row merchants_row">';
    html += '<div class="col-xs-12 merchants_colum">';
    html += '<div class="merchants_logo_parm">';
    html += '<div class="merchants_logo">'
    html += '<img src="' + item.headimgurl + '" alt="">';
    html += '<div class="merchants_nickname">';
    html += '<p>昵称:' + item.nickname + '</p>';
    html += '<p>余额:' + item.user_money + '元</p>';
    html += '<div class="clearfix"></div>';
    html += '</div>';
    html += '</div>'
    html += '<div class="merchants_btn">';
    html += '<a class="weui-btn weui-btn_mini weui-btn_primary" href="javascript:;" onclick="merchantsModifyOrder(' + item.oid + ')">修改</a> ';
    html += '<a class="weui-btn weui-btn_mini weui-btn_primary" href="javascript:;" onclick="javascript:alert(\'开发中\')">确认</a>';
    html += '</div>';
    html += '</div>';

    //收货地址区域
    html += '<div class="merchant-hr" style="width:95%;margin:0 auto"></div>';
    html += '<div class="merchants_info_parm">';
    html += '<span>' + item.oman + '</span>';
    html += '<span>' + item.otel + '</span>';
    html += '<span>' + item.oaddress + '</span>';
    html += '</div>';


    //订单商品详情
    html += '<div class="merchant-hr" style="width:95%;margin:0 auto"></div>';
    html += '<div class="merchant-orderinfo">';
    layui.each(item.Foodorderext, function (ext_index, ext) {
    html += '<div class="merchant-orderinfo-item">';
    html += '<div class="merchant-orderinfo-item-img">';
    html += '<img src="' + ext.fpic + '" alt="">';
    html += '</div>';
    html += '<div class="merchant-orderinfo-item-intro">';
    html += '<span>' + ext.fnewname + '</span>';

    if (ext.guestbook == 0 || ext.guestbook == '') {
    html += '<span>¥' + ext.prices + '</span>';
    html += '<span>x' + ext.fcount + '</span>';
    } else {
    html += '<span>x' + ext.fcount + '   ¥' + ext.prices + '</span>';
    html += '<span>' + ext.guestbook + '</span>';
    }

    html += '</div>';
    html += '<div class="clearfix"></div>';
    html += '</div>';

    })


    html += '</div>';

    //订单价格级状态显示区
    html += '<div class="merchant-hr" style="width:95%;margin:0 auto"></div>';
    html += '<div class="merchant-price-detail">';
    html += '<table>';
    html += '<tr>';
    html += '<td>订单号:</td>';
    html += '<td class="text-left"><span class="merchant-oid">' + item.oid + '</span></td>';
    html += '</tr>';
    html += '<tr>';
    html += '<td>订单状态:</td>';
    html += '<td class="text-left"><span class="merchant-status">' + item.nstatus + '</span></td>';
    html += '</tr>';
    html += '<tr>';
    html += '<td>应付:</td>';
    html += '<td class="text-left"><span class="merchant-p merchant-orderprice">¥' + item.orderprice + '</span></td>';
    html += '</tr>';
    html += '<tr>';
    html += '<td>实付:</td>';
    html += '<td class="text-left"><span class="merchant-p price' + item.oid + '">¥' + item.orderamount + '</span></td>';
    html += '</tr>';
    html += '</table>';
    html += '<div class="clearfix"></div>';
    html += '</div>';
    html += '</div>';

    html += '</div>';
    html += '<div class="row merchants_row">';
    html += '<div class="col-xs-12">';
    html += '<div class="merchants_hr"></div>';
    html += '</div>';
    html += '</div>';
    lis.push(html);
    });
    next(lis.join(''), res.length);
    } else {
    next(lis.join(''), 0);
    }
    });
    }
    });
    })
  • 2016-12-29 10:20:35layui 流加载配合asp的方法中回答:

    @你姓啥 这是php端的,写的虽然不怎么样,但是能用[微笑] :
    public function merchantsorder($where = '')
    {

    if (IS_AJAX) {
    if(I('menu_order')){
    $member = new MemberModel();
    if(I('orderstatus')!=-1){
    $where['orderstatus']=I('orderstatus');
    }else{
    $where='';
    }

    $MallModel = new MallModel();
    $OrderInfo = D('Foodorder')->relation('Foodorderext')->where($where)->order('order_ctime DESC')->limit(0,3)->select();
    }else{
    $page = I('page') == 2 ? 3 : I('page')*3-3;
    $member = new MemberModel();
    if(I('order_status_input')!=-1){
    $where['orderstatus']=I('order_status_input');
    }else{
    $where='';
    }
    $MallModel = new MallModel();
    $OrderInfo = D('Foodorder')->relation('Foodorderext')->where($where)->order('order_ctime DESC')->limit($page,3)->select();
    }


    foreach ($OrderInfo as $key => $value) {
    $foodorderext = $value['Foodorderext'];
    unset($value['Foodorderext']);
    $member->uid=$value['uid'];
    $memberInfo = $member->GetMemberInfoByUid();
    $value['headimgurl']=$memberInfo['headimgurl'] ? $memberInfo['headimgurl'] : '';
    $value['user_money']=$memberInfo['user_money'] ? $memberInfo['user_money'] : '';
    $value['nickname']=$memberInfo['nickname'] ? $this->dsubstr($memberInfo['nickname'], 9, '...') : '';
    $value['nstatus'] = $this->status[$value['orderstatus']];
    $value['orderamount'] = $value['orderamount'] ? $value['orderamount'] : '';
    $value['oman'] = $value['oman'] ? $value['oman'] : '';
    $value['otel'] = $value['otel'] ? $value['otel'] : '';
    $value['oaddress'] = $value['oaddress'] ? $value['oaddress'] : '';
    $NewValue = $value;
    foreach ($foodorderext as $k => $v) {
    $MallModel->fid = $v['fid'];
    $detailmall = $MallModel->detailMall();
    $v['fpic'] = $detailmall['fthumb'] ? $detailmall['fthumb'] : '';
    $v['fnewname'] = $v['fname'] ? $this->dsubstr($v['fname'], 18, '...') : '';
    $NewValue['Foodorderext'][] = $v;
    }
    $NewOrderInfo[] = $NewValue;
    }

    $return['data']=$NewOrderInfo;
    $this->ajaxReturn($return['data'],JSON);
    } else {
    $member = new MemberModel();
    if(empty($where)){
    $where['orderstatus']=0;
    }
    $MallModel = new MallModel();
    $OrderInfo = D('Foodorder')->relation('Foodorderext')->where($where)->order('order_ctime DESC')->limit(0,3)->select();
    foreach ($OrderInfo as $key => $value) {
    $foodorderext = $value['Foodorderext'];
    unset($value['Foodorderext']);
    $member->uid=$value['uid'];
    $memberInfo = $member->GetMemberInfoByUid();
    $value['headimgurl']=$memberInfo['headimgurl'];
    $value['user_money']=$memberInfo['user_money'];
    $value['nickname']=$this->dsubstr($memberInfo['nickname'], 9, '...');
    $value['nstatus'] = $this->status[$value['orderstatus']];
    $NewValue = $value;
    foreach ($foodorderext as $k => $v) {
    $MallModel->fid = $v['fid'];
    $detailmall = $MallModel->detailMall();
    $v['fpic'] = $detailmall['fthumb'];

    $v['fnewname'] = $this->dsubstr($v['fname'], 18, '...');
    $NewValue['Foodorderext'][] = $v;
    }
    $NewOrderInfo[] = $NewValue;
    }
    $this->assign('orderinfo',$NewOrderInfo);
    $this->display('merchantsorder');
    }
    }
  • 2016-12-29 10:18:04layui 流加载配合asp的方法中回答:

    @你姓啥 这是我做的测试数据,可以作为参考:
    [{"oid":"349","orderamount":"66.00","orderprice":"66.00","ordercount":"1","zhekou":"0.00","full_zhekou":"0.00","pay":"0.00","paytype":"0","ucount":"0","senduid":"0","uid":null,"uname":"admin","pid":"0","shopspay":"0","shopname":"0","sorderid":"0","gid":"0","order_ctime":"1479351089","order_endtime":"0","print_time":"0","print_name":"0","morecontent":"0","otel":"15025302695","oman":"杨郇","oaddress_id":"3","oaddress":"重庆市重庆市九龙坡区二郎双山变电站1","orderstatus":"0","ordersource":"0","couponid":"0","order_dtime":"0000-00-00 00:00:00","issendredpack":"0","idcard":"0","year":"0","msgid":"0","errmsg":"0","errcode":"0","confirmrefund":"0","promo_itemid":"0","headimgurl":"","user_money":"","nickname":"","nstatus":"未付款","Foodorderext":[{"id":"734","oid":"349","did":"0","fid":"22","fname":"【城口】川味香肠 500g","fprice":"66.00","fcount":"1","property_total":null,"prices":"66.00","muid":"0","muname":"0","fenliang":"0","kouwei":"0","print_time":"0","end_time":"0","status":"0","gid":"0","time":"2016-11-17 10:51:29","property":null,"guestbook":"0","full_zhekou":"0.00","fpic":"\\/file\\/upload\\/20161020\\/20161020145930_14540.jpg","fnewname":"【城口】川味香..."}]},{"oid":"348","orderamount":"66.00","orderprice":"66.00","ordercount":"1","zhekou":"0.00","full_zhekou":"0.00","pay":"0.00","paytype":"0","ucount":"0","senduid":"0","uid":null,"uname":"admin","pid":"0","shopspay":"0","shopname":"0","sorderid":"0","gid":"0","order_ctime":"1479350999","order_endtime":"0","print_time":"0","print_name":"0","morecontent":"0","otel":"15025302695","oman":"杨郇","oaddress_id":"3","oaddress":"重庆市重庆市九龙坡区二郎双山变电站1","orderstatus":"0","ordersource":"0","couponid":"0","order_dtime":"0000-00-00 00:00:00","issendredpack":"0","idcard":"0","year":"0","msgid":"0","errmsg":"0","errcode":"0","confirmrefund":"0","promo_itemid":"0","headimgurl":"","user_money":"","nickname":"","nstatus":"未付款","Foodorderext":[{"id":"733","oid":"348","did":"0","fid":"22","fname":"【城口】川味香肠 500g","fprice":"66.00","fcount":"1","property_total":null,"prices":"66.00","muid":"0","muname":"0","fenliang":"0","kouwei":"0","print_time":"0","end_time":"0","status":"0","gid":"0","time":"2016-11-17 10:49:59","property":null,"guestbook":"0","full_zhekou":"0.00","fpic":"\\/file\\/upload\\/20161020\\/20161020145930_14540.jpg","fnewname":"【城口】川味香..."}]},{"oid":"347","orderamount":"66.00","orderprice":"66.00","ordercount":"1","zhekou":"0.00","full_zhekou":"0.00","pay":"0.00","paytype":"0","ucount":"0","senduid":"0","uid":null,"uname":"admin","pid":"0","shopspay":"0","shopname":"0","sorderid":"0","gid":"0","order_ctime":"1479350888","order_endtime":"0","print_time":"0","print_name":"0","morecontent":"0","otel":"15025302695","oman":"杨郇","oaddress_id":"3","oaddress":"重庆市重庆市九龙坡区二郎双山变电站1","orderstatus":"0","ordersource":"0","couponid":"0","order_dtime":"0000-00-00 00:00:00","issendredpack":"0","idcard":"0","year":"0","msgid":"0","errmsg":"0","errcode":"0","confirmrefund":"0","promo_itemid":"0","headimgurl":"","user_money":"","nickname":"","nstatus":"未付款","Foodorderext":[{"id":"732","oid":"347","did":"0","fid":"22","fname":"【城口】川味香肠 500g","fprice":"66.00","fcount":"1","property_total":null,"prices":"66.00","muid":"0","muname":"0","fenliang":"0","kouwei":"0","print_time":"0","end_time":"0","status":"0","gid":"0","time":"2016-11-17 10:48:08","property":null,"guestbook":"0","full_zhekou":"0.00","fpic":"\\/file\\/upload\\/20161020\\/20161020145930_14540.jpg","fnewname":"【城口】川味香..."}]}]
  • 2016-12-28 21:28:25AdminLTE 后台模版,带手机版和电脑板,bootstarp,layui中回答:

    @阿债 多谢[微笑]
  • 2016-12-28 17:55:23AdminLTE 后台模版,带手机版和电脑板,bootstarp,layui中回答:

    @被床封印的我 加我q,我可以发源码给你
  • 2016-12-28 17:18:58layui 流加载配合asp的方法中回答:

    @你姓啥 asp端也一样
  • 2016-12-28 17:18:26layui 流加载配合asp的方法中回答:

    @手心的溫度 asp端也一样
  • 2016-12-28 17:16:13layui 流加载配合asp的方法中回答:

    @你姓啥 php端肯定是输出的json数据
  • 2016-12-27 22:34:22如果想在layui的表单里面用原始的复选框,该如何做?中回答:

    @Linyer 是我二了。多谢[微笑]
  • 2016-12-27 17:43:54如果想在layui的表单里面用原始的复选框,该如何做?中回答:

    @仅Ci而已 <input type="checkbox" name="like[write]" title="图片"> 我是这个样子写的,你说的那种是怎么写的?
  • 2016-12-27 15:59:01AdminLTE 后台模版,带手机版和电脑板,bootstarp,layui中回答:

    @Ver4 @拒絕誘惑 多谢[微笑]
  • 2016-12-26 18:54:25AdminLTE 后台模版,带手机版和电脑板,bootstarp,layui中回答:

    @小北♚ 觉得可以的话,帮点下赞[微笑]
  • 2016-12-26 18:53:49AdminLTE 后台模版,带手机版和电脑板,bootstarp,layui中回答:

    @小北♚ 不是,用的aside