Commit e4e79797 authored by wildfirecode13's avatar wildfirecode13

1

parent 19acb167
......@@ -53,6 +53,11 @@ const apiList = {
method: 'get',
isShowLoading: false
},
receivLaFeiPrize: {
handle: 'receivLaFeiPrize',
method: 'get',
isShowLoading: false
},
receiveObjectPrize: {
handle: 'receiveObjectPrize',
method: 'get',
......
......@@ -132,6 +132,7 @@ Page({
* 发奖
*/
async cloudTBIssue(params) {
console.log('cloudTBIssue params',JSON.stringify(params))
const {
cloud
} = app;
......@@ -153,6 +154,7 @@ Page({
console.log("alibaba.latour.strategy.issue------catch", err);
});
console.log(result, "result");
commonToast('领取成功~')
resolve(result);
},
fail: (err) => {
......@@ -175,13 +177,25 @@ Page({
item: {
strategyCode,
code,
channel
channel,
id
}
} = e.target.dataset;
this.cloudTBIssue({
strategyCode,
code,
channel
}).then(()=>{
API.receivLaFeiPrize({id}).then((res)=>{
console.log('receivLaFeiPrize res',res)
this.getMyPrize()
})
.catch((error)=>{
console.log('receivLaFeiPrize error',error)
})
})
.catch(err=>{
API.receivLaFeiPrize({result:err})
})
// const { activityId } = app;
// console.log(item, '领取权益')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment