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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<link href="images/reset.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<link href="images/system.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<link href="images/table_form.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<script src="{yun:}$config.sy_weburl{/yun}/js/jquery-1.8.0.min.js?v={yun:}$config.cachecode{/yun}"></script>
<title>后台管理</title>
</head>
<body class="body_ifm">
<div class="infoboxp"> 
<div class="tty-tishi_top">
<div class="admin_new_tip">
<a href="javascript:;" class="admin_new_tip_close"></a>
<a href="javascript:;" class="admin_new_tip_open" style="display:none;"></a>
<div class="admin_new_tit"><i class="admin_new_tit_icon"></i>操作提示</div>
<div class="admin_new_tip_list_cont">
<div class="admin_new_tip_list">支付设置网站轻松与支付宝、微信支付进行对接,对接后实现用户在线支付功能!可以购买广告位、会员套餐等服务。</div>
</div>
</div>
<div class="clear"></div>
</div>
 
<div class="main_tag">
<div class="table-list">
<div class="admin_table_border">
<table width="100%">
    <thead class="admin_table_trbg">
            <tr class="admin_table_top">
            <th width="20%">支付方式</th>
            <th align="left" width="60%">描述</th>
            <th width="20%" class="admin_table_th_bg">操作</th>
        </tr>
    </thead>
    <tbody>
    <tr class="email admin_table_trbg">
        <td align="center" style="cursor:pointer;">支付宝</td>
        <td  style="cursor:pointer;">
        支付宝网站(www.alipay.com) 是国内先进的网上支付平台。<br>
        
        <a href="https://b.alipay.com/index.htm" style="color:red;">立即在线申请</a>
        </td>
        <td align="center">
            {yun:}if $config.alipay!=1{/yun}
            <a href="javascript:change_pay('alipay');" id="alipay_online" class="admin_new_c_bth">安装</a> 
            {yun:}else{/yun} 
            <a href="javascript:change_pay_un('alipay');" id="alipay_xiezai" class="admin_new_c_bth">卸载</a>  
            <a href="index.php?m=payconfig&c=alipay" id="alipay_config" class="admin_new_c_bth">设置</a>
            {yun:}/if{/yun}
        </td>
    </tr>
    <tr>
        <td align="center" style="cursor:pointer;">微信支付</td>
        <td  style="cursor:pointer;">
        微信公众号支付(mp.weixin.qq.com) 是国内先进的网上支付平台。<br>
        
        <a href="https://mp.weixin.qq.com" style="color:red;">立即在线申请</a>
        </td>
        <td align="center">
            {yun:}if $config.wxpay!=1{/yun}
            <a href="javascript:change_pay('wxpay');" id="wxpay_online" class="admin_new_c_bth">安装</a> 
            {yun:}else{/yun} 
            <a href="javascript:change_pay_un('wxpay');" id="wxpay_xiezai" class="admin_new_c_bth">卸载</a>  
            <a href="index.php?m=payconfig&c=wxpay" id="wxpay_config" class="admin_new_c_bth">设置</a>
            {yun:}/if{/yun}
        </td>
    </tr>
        <tr class="admin_table_trbg">
        <td align="center" style="cursor:pointer;">财付通</td>
        <td align="" style="cursor:pointer;">财付通是腾讯公司创办的中国领先的在线支付平台,致力于为互联网用户和企业提供安全、便捷、专业的在线支付服务。</td>
        <td align="center">
            {yun:}if $config.tenpay!=1{/yun}
            <a href="javascript:change_pay('tenpay');" id="alipay_online" class="admin_new_c_bth">安装</a> 
            {yun:}else{/yun} 
            <a href="javascript:change_pay_un('tenpay');" id="alipay_xiezai" class="admin_new_c_bth">卸载</a>  
            <a href="index.php?m=payconfig&c=tenpay" id="alipay_config" class="admin_new_c_bth">设置</a>
            {yun:}/if{/yun}
        </td>
    </tr>
 
        <tr>
        <td align="center" style="cursor:pointer;">银行转帐</td>
        <td align="" style="cursor:pointer;">
        银行名称 收款人信息:全称 ××× ;帐号或地址 ××× ;开户行 ×××。 <br>
        注意事项:办理电汇时,请在电汇单"汇款用途"一栏处注明您的订单号。</td>
        <td align="center">
            {yun:}if $config.bank!=1{/yun}
            <a href="javascript:change_pay('bank');" id="alipay_online" class="admin_new_c_bth">安装</a> 
            {yun:}else{/yun} 
            <a href="javascript:change_pay_un('bank');" id="alipay_xiezai" class="admin_new_c_bth">卸载</a>  
            <a href="index.php?m=payconfig&c=bank" id="alipay_config" class="admin_new_c_bth">设置</a>
            {yun:}/if{/yun}
        </td>
    </tr>
    </tbody>
</table>
</div>
</div>
</div>
</div>
</div>
    <input type="hidden" name="pytoken" id='pytoken' value="{yun:}$pytoken{/yun}">
 
<script>
function change_pay(paytype){
    var paytype;
    var pytoken = $('#pytoken').val();
    if(paytype=="alipay"){
        $.post("index.php?m=payconfig&c=save",{
            config : 'ddd',
            alipay : 1,
            pytoken : pytoken,
            alipaytype:1
        },function(data,textStatus){
            location.href="index.php?m=payconfig";
        });
    }else if(paytype=="wxpay"){
        $.post("index.php?m=config&c=save",{
            config : 'ddd',
            pytoken : pytoken,
            wxpay : 1
        },function(data,textStatus){
            location.href="index.php?m=payconfig";
        });
    }else if(paytype=="tenpay"){
        $.post("index.php?m=config&c=save",{
            config : 'ddd',
            pytoken : pytoken,
            tenpay : 1
        },function(data,textStatus){
            location.href="index.php?m=payconfig";
        });
    }else{
        $.post("index.php?m=payconfig&c=save",{
            config : 'ddd',
            pytoken : pytoken,
            bank : 1
        },function(data,textStatus){
            location.href="index.php?m=payconfig";
        });    
    }
}
function change_pay_un(paytype){
    var paytype;
    var pytoken = $('#pytoken').val();
    if(paytype=="alipay"){
        $.post("index.php?m=payconfig&c=save",{
            config : 'ddd',
            pytoken : pytoken,
            alipay : 0
        },function(data,textStatus){
            location.href="index.php?m=payconfig";
        });
    }else if(paytype=="tenpay"){
        $.post("index.php?m=payconfig&c=save",{
            config : 'ddd',
            pytoken : pytoken,
            tenpay : 0
        },function(data,textStatus){
            location.href="index.php?m=payconfig";
        });
    }else if(paytype=="wxpay"){
        $.post("index.php?m=payconfig&c=save",{
            config : 'ddd',
            pytoken : pytoken,
            wxpay : 0
        },function(data,textStatus){
            location.href="index.php?m=payconfig";
        });
    }else{
        $.post("index.php?m=payconfig&c=save",{
            config : 'ddd',
            pytoken : pytoken,
            bank : 0
        },function(data,textStatus){
            location.href="index.php?m=payconfig";
        });    
    }
}
</script>
</div>
</body>
</html>