塔罗:新增下单传参
This commit is contained in:
@@ -18,7 +18,7 @@ const toastMsg = (content = '操作完成', time = 2) => {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function requestTaroTDrawStatus(chargeRecordId, luckyTarotRecordId, success, fail) {
|
function requestTaroTDrawStatus (chargeRecordId, luckyTarotRecordId, success, fail) {
|
||||||
networkRequest({
|
networkRequest({
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
url: urlPrefix + '/lucky/tarot/draw/status',
|
url: urlPrefix + '/lucky/tarot/draw/status',
|
||||||
@@ -28,7 +28,7 @@ function requestTaroTDrawStatus(chargeRecordId, luckyTarotRecordId, success, fai
|
|||||||
uid: pubInfo.uid,
|
uid: pubInfo.uid,
|
||||||
},
|
},
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
if(res.code == 200){
|
if (res.code == 200) {
|
||||||
success && success(res);
|
success && success(res);
|
||||||
} else {
|
} else {
|
||||||
fail && fail(res);
|
fail && fail(res);
|
||||||
@@ -42,21 +42,22 @@ function requestTaroTDrawStatus(chargeRecordId, luckyTarotRecordId, success, fai
|
|||||||
})
|
})
|
||||||
};
|
};
|
||||||
|
|
||||||
function requestTaroCharge(chargeProdId, roomUid, cardList, success, fail) {
|
function requestTaroCharge (chargeProdId, roomUid, cardList, success, fail) {
|
||||||
if (!cardList || !(cardList instanceof Array) || cardList.length <= 0) {
|
if (!cardList || !(cardList instanceof Array) || cardList.length <= 0) {
|
||||||
toastMsg('请选择卡片');
|
toastMsg('请选择卡片');
|
||||||
return ;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!chargeProdId) {
|
if (!chargeProdId) {
|
||||||
toastMsg('请选择等级');
|
toastMsg('请选择等级');
|
||||||
return ;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
networkRequest({
|
networkRequest({
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
url: urlPrefix + '/lucky/tarot/charge',
|
url: urlPrefix + '/lucky/tarot/charge',
|
||||||
data: {
|
data: {
|
||||||
|
payType,
|
||||||
chargeProdId,
|
chargeProdId,
|
||||||
roomUid,
|
roomUid,
|
||||||
cardList: JSON.stringify(cardList),
|
cardList: JSON.stringify(cardList),
|
||||||
@@ -64,7 +65,7 @@ function requestTaroCharge(chargeProdId, roomUid, cardList, success, fail) {
|
|||||||
successUrl: urlPrefix + '/yinmeng/modules/tarot/payment_result.html'
|
successUrl: urlPrefix + '/yinmeng/modules/tarot/payment_result.html'
|
||||||
},
|
},
|
||||||
success: function (res) {
|
success: function (res) {
|
||||||
if(res.code == 200){
|
if (res.code == 200) {
|
||||||
success && success(res);
|
success && success(res);
|
||||||
} else {
|
} else {
|
||||||
fail && fail(res);
|
fail && fail(res);
|
||||||
@@ -77,7 +78,7 @@ function requestTaroCharge(chargeProdId, roomUid, cardList, success, fail) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 塔罗充值预下单接口
|
// 塔罗充值预下单接口
|
||||||
function preCharge(chargeProdId, roomUid, cardList, success, fail) {
|
function preCharge (chargeProdId, roomUid, cardList, success, fail) {
|
||||||
networkRequest({
|
networkRequest({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
url: urlPrefix + '/lucky/tarot/pre/create',
|
url: urlPrefix + '/lucky/tarot/pre/create',
|
||||||
|
Reference in New Issue
Block a user