} function build_mpbtn_histroy(data_List, v_id) { if (Array.isArray(data_List) === false) data_List = [data_List]; var numberItem = data_List.length; if (typeof numberItem == "undefined") numberItem = 0; if (typeof data_List[0].html != 'undefined' && data_List[0].html !== "error") { v_mpbtn_info = data_List[0].html; } else { numberItem = 0; v_mpbtn_info = ""; } return v_mpbtn_info; } function build_mpbtn_recharge(data_List, v_id) { var v_mpbtn_info = '
'; v_mpbtn_info += '
'; v_mpbtn_info += '
'; v_mpbtn_info += '
'; v_mpbtn_info += '
'; v_mpbtn_info += ''; v_mpbtn_info += ''; v_mpbtn_info += '
'; v_mpbtn_info += ''; v_mpbtn_info += '
'; v_mpbtn_info += '
'; v_mpbtn_info += '
'; v_mpbtn_info += '
'; return v_mpbtn_info; } function build_mpbtn_kfzx(data_List, v_id) { var v_mpbtn_info = '
'; v_mpbtn_info += '
'; v_mpbtn_info += '
姚海峰 点击这里给我发消息
'; v_mpbtn_info += '
网站客服点击这里给我发消息
'; v_mpbtn_info += '
原色客服点击这里给我发消息
'; v_mpbtn_info += ''; v_mpbtn_info += '
Tel:15925858500;QQ:269114646
'; v_mpbtn_info += '
'; v_mpbtn_info += '
'; return v_mpbtn_info; } function dupdata_user_credit(does) { var dom = $(does) ; var v_id = dom.attr("data-id"); var v_order_uid = dom.attr("data-uid"); var url = 'index.php?do=ajax&view=update_server_price&type=updata_user_credit&id=' + v_id + '&order_uid=' + v_order_uid ; var modal = $.scojs_modal({ remote: url, title: "图来旺欢迎您" + '——'+"请输入需要优惠的价格" }); modal.show(); } function dupdate_server_price(does) { var dom = $(does) ; var v_id = dom.attr("data-id"); var v_order_uid = dom.attr("data-uid"); var url = 'index.php?do=ajax&view=update_server_price&id=' + v_id + '&order_uid=' + v_order_uid; var modal = $.scojs_modal({ remote: url, title: "图来旺欢迎您"+ '——' + "请输入成交价格" }); modal.show(); } function setb_mode(dom,idx) { var v_uid = $(dom).attr("data-uid"); var v_data_id = $(dom).attr("data-id"); there_message_data(uid,v_data_id,idx,$(dom)); } function there_message_data(v_uid,v_data_id,idx,obj) { var v_number = 0; if (typeof v_uid == "undefined") { v_uid = '0'; } $.ajax({ dataType: 'text', type: 'get', url: 'index.php?do=ajax&view=getRecordersid', data: { type: 'update_goods_cart', uid: v_uid,order_id:v_data_id,dv_mode: idx }, contentType: 'application/x-www-form-urlencoded; charset=UTF-8', success: function (json_str) { json_str = jQuery.trim(json_str); var data = $.parseJSON(json_str), imp_item = obj.parent().parent(), v_price = imp_item.find("p.price"), order_amount = idx == 2 ? data[0].price_rate : data[0].use_price_rate; v_price.html(""+"¥"+"" + order_amount + "

"); imp_item.attr("data-amount",order_amount); for(var i = 0,l = $("div.imp_item").length;i < l;i++) { v_number += parseFloat($("div.imp_item").eq(i).attr("data-amount")); } $("span.cart_handler_right span").html(v_number); } }); } function build_media_list(vtype) { if (typeof vtype == "undefined" || vtype == "" ) vtype = 'buildmedia_list'; //通过jquery.ajax $.ajax({ dataType: 'json', type: 'post', url: 'index.php?do=ajax&view=ajaxtjdz', data: { type: vtype }, contentType: 'application/x-www-form-urlencoded; charset=UTF-8', /*async: false, 同步*/ success: function (data) { var j = 0; var vmsg_id = 0; var v_mpbtn_info = '
'; v_mpbtn_info += '
信息列表
'; v_mpbtn_info += '
'; v_mpbtn_info += '
'; if ( data !== null && typeof data.html == 'undefined') { $.each(data, function (i, v) { j++; var html = '
'; html += ''; html += '
'; v_mpbtn_info += html; if( v['msg_num'] > 0 ){ vmsg_id = v['msg_id'] ; } }); if( vmsg_id > 0 ){ $('#chatAudio')[0].play(); $.ajax({ dataType: 'json', type: 'post', url: 'index.php?do=ajax&view=ajaxtjdz', data: { type: 'update_msg_num',msg_id: vmsg_id }, contentType: 'application/x-www-form-urlencoded; charset=UTF-8', success: function (data) { } }); } } if( j > 0 ){ $('li#time_message').html( '' ); }else{ $('li#time_message').children( 'a' ).remove(); } v_mpbtn_info += '
'; v_mpbtn_info += '
'; v_mpbtn_info += '
'; if( g_quickShell && typeof g_quickShell != 'undefined' && typeof g_quickShell.quickDataFns != 'undefined') { g_quickShell.quickDataFns['buildmedia_list'].content = v_mpbtn_info; } return v_mpbtn_info; } }); //end $.ajax() return ''; }
原色数码科技

友情链接:
浙ICP备11028946号-15 Copyright © 2015 -2025 tulaiwang.com All Rights Reserved.