123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- import '../../css/bootstrap.less';
- import 'bootstrap/dist/js/bootstrap.js';
- import '../../css/public.css';
- import '../../css/main_banner.css';
- import '../../js/public.js';
- import '../../js/main_banner.js';
- import '../../css/technologyTrading/demandOrder.css';
- (function(){
- $(".order_button div").click(function(){
- var theId = $("#id_").attr('val');
- $.ajax({
- method: "post",
- dataType: "json",
- url: globalConfig.context + "/api/user/portal/order/orderDemand",
- data: {
- demandId:theId
- },
- success: function (data) {
- if (data.error && data.error.length) {
- $('#msg').val(data.error[0].message);
- msg();
- }else if(data.error==""){
- window.open(globalConfig.context+ '/user/account/index.html#techList');
- }else{
- return;
- }
- }
- });
- })
- //��ʾ��������
- function msg(){
- var lit=$('#msg').val();
- if(lit!==''){
- $('.smg').fadeIn(500)
- }
- setTimeout(function(){
- $('.smg').fadeOut(500)
- $('#msg').val('')
- },2000)
- }
- $(".main_introduce ul").on("click","li",function(){
- var theId = $(this).children("div").children("p.demandId").html();
- var thetype=$(this).children("div").children("p.demandTyp").html();
- window.open(globalConfig.context + '/portal/technologyTrading/demandDetail?id=' + theId+'&type='+thetype );
- })
- })();
|