chengkun
2025-04-18 1bb985f32f2efe0f9dd69f3cf29a1c809b1cf96d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
// JavaScript Document
 
$(document).ready(function(){
    $(".fairs_disp_position").click(function(){
        $('.zph_make_icon_yxz').addClass('zph_make_icon_kyd');
        $('.zph_make_icon_yxz').removeClass('zph_make_icon_yxz');
        $(this).find('i').addClass('zph_make_icon_yxz');
        aid = $(this).attr("aid");
        var price = $(this).attr("price");
        zph_id = $("#zph_id").val();
        var aname = $(this).attr("aname");
        
        showLoading();
    
        $.post(wapurl+"index.php?c=ajax&a=ajaxComjob",{zph:1,id:zph_id},function(data){
            
            hideLoading();
            var data    =    eval('('+data+')');
            
            if(data.status == 1){
                reserve_vue.$data.zphzwname = aname;
                reserve_vue.$data.reserveShow = true;
                reserve_vue.$data.zphzwprice = price;
            }else{
                
                showToast(data.msg,2);return false;
            }
        });
    });
    
    $(".fairs_disp_position1").click(function(){
        var aid=$(this).attr("aid");
        var comname=$(this).attr("comname");
        var comurl=$(this).attr("comurl");
        
        reserve_vue.$data.comname = comname;
        reserve_vue.$data.comurl = comurl;
        reserve_vue.$data.noReserveShow = true;
    }); 
    
});
 
 
function closeShowStatus(aid){
      location.reload(true);
}
 
 
function clickzph() {
    
    var jobid = "",
    zid = zph_id,
    id = aid;
 
    if(jobIds){
        jobid=jobIds.join(',');
    }
    
    if(!jobid){
        
        showToast('请选择参展职位', 2);return false;
    }else{
        showLoading();
        $.post(wapurl + "index.php?c=ajax&a=ajaxzphjob",{zid : zid, id : id,jobid:jobid}, function(data) {
            hideLoading();
            if (data.status == 1 || data.status == 3) {    // 1-报名成功 3-展位有其他人报名
                showToast(data.msg,2,function(){
                    location.reload();
                });
            } else if (data.status == 2) {
                showConfirm(data.msg,function(){
                    window.location.href = wapurl + "member/index.php?c=server&server=zph&id=" + zid + "&bid=" + id;
                })
            } else{ 
                if(data.login == 1){
                    pleaselogin('您还未登录企业账号,是否登录?',wapurl+'/index.php?c=login')
                }else{
                    showToast(data.msg, 2);return false;
                }
            }
        },'json');
    }
}