You've already forked qlg.tsgz.moe
addons
app_download_files
extend
hyhproject
admin
app
common
home
behavior
common
conf
controller
model
validate
view
default
css
img
js
shops
cashdraws
freights
goods
goodsappraises
goodsconsult
goodsvirtuals
logmoneys
messages
orders
recharge
pay_step1.html
pay_step2.html
recharge.js
reports
settlements
shopcats
shopconfigs
shoproles
shops
shopusers
stockwarn
base.html
import.html
index.html
base.html
footer.html
header.html
header_lite.html
index.html
right_cart.html
self_shop.html
self_shop_header.html
top.html
home2
mobile2
wechat2
.htaccess
command.php
mobile
oss
static
thinkphp
upload
vendor
wxtmp
.gitignore
.htaccess
.user.ini
404.html
H5436787D.wgt
admin.php
app-release.apk
app_download.html
cash.lock
demo.php
get_startup.php
get_version.php
get_version_new.php
index.html
index.php
reg.lock
robots.txt
58 lines
1.6 KiB
JavaScript
Executable File
58 lines
1.6 KiB
JavaScript
Executable File
|
|
function getPayUrl(){
|
|
var params = {};
|
|
params.payObj = "recharge";
|
|
params.targetType = 1;
|
|
params.needPay = $.trim($("#needPay").val());
|
|
params.payCode = $.trim($("#payCode").val());
|
|
params.itmeId = $.trim($("#itmeId").val());
|
|
if(params.itmeId==0 && params.needPay<=0){
|
|
WST.msg('请输入充值金额', {icon: 5});
|
|
return;
|
|
}
|
|
if(params.payCode==""){
|
|
WST.msg('请先选择支付方式', {icon: 5});
|
|
return;
|
|
}
|
|
jQuery.post(WST.U('home/'+params.payCode+'/get'+params.payCode+"URL"),params,function(data) {
|
|
var json = WST.toJson(data);
|
|
if(json.status==1){
|
|
location.href = json.url;
|
|
}else{
|
|
WST.msg('充值失败', {icon: 5});
|
|
}
|
|
});
|
|
}
|
|
|
|
function inEffect(obj,n){
|
|
$(obj).addClass('j-selected').siblings('.wst-frame'+n).removeClass('j-selected');
|
|
}
|
|
function changeSelected(n,index,obj){
|
|
$('#'+index).val(n);
|
|
if(n==0){
|
|
$(".j-charge-other").hide();
|
|
$(".j-charge-money").show();
|
|
|
|
}else{
|
|
$(".j-charge-other").show();
|
|
$(".j-charge-money").hide();
|
|
}
|
|
inEffect(obj,2);
|
|
}
|
|
$(function(){
|
|
$(".wst-frame2:first").click();
|
|
$("#wst-check-orders").click(function(){
|
|
$("#wst-orders-box").slideToggle(600);
|
|
});
|
|
$("div[class^=wst-payCode]").click(function(){
|
|
var payCode = $(this).attr("data");
|
|
$("div[class^=wst-payCode]").each(function(){
|
|
$(this).removeClass().addClass("wst-payCode-"+$(this).attr("data"));
|
|
});
|
|
$(this).removeClass().addClass("wst-payCode-"+payCode+"-curr");
|
|
$("#payCode").val(payCode);
|
|
});
|
|
if($("div[class^=wst-payCode]").length>0){
|
|
$("div[class^=wst-payCode]")[0].click();
|
|
}
|
|
}); |