Commit 80190476 authored by Edwise's avatar Edwise 🍷

Merge remote-tracking branch 'refs/remotes/origin/tianmaoxiaoyuan' into tianmaoxiaoyuan

parents 6b9919c4 6bfb0cd5
...@@ -53,6 +53,11 @@ const apiList = { ...@@ -53,6 +53,11 @@ const apiList = {
method: 'get', method: 'get',
isShowLoading: false isShowLoading: false
}, },
receivLaFeiPrize: {
handle: 'receivLaFeiPrize',
method: 'get',
isShowLoading: false
},
receiveObjectPrize: { receiveObjectPrize: {
handle: 'receiveObjectPrize', handle: 'receiveObjectPrize',
method: 'get', method: 'get',
......
...@@ -132,6 +132,7 @@ Page({ ...@@ -132,6 +132,7 @@ Page({
* 发奖 * 发奖
*/ */
async cloudTBIssue(params) { async cloudTBIssue(params) {
console.log('cloudTBIssue params',JSON.stringify(params))
const { const {
cloud cloud
} = app; } = app;
...@@ -153,6 +154,7 @@ Page({ ...@@ -153,6 +154,7 @@ Page({
console.log("alibaba.latour.strategy.issue------catch", err); console.log("alibaba.latour.strategy.issue------catch", err);
}); });
console.log(result, "result"); console.log(result, "result");
commonToast('领取成功~')
resolve(result); resolve(result);
}, },
fail: (err) => { fail: (err) => {
...@@ -175,13 +177,25 @@ Page({ ...@@ -175,13 +177,25 @@ Page({
item: { item: {
strategyCode, strategyCode,
code, code,
channel channel,
id
} }
} = e.target.dataset; } = e.target.dataset;
this.cloudTBIssue({ this.cloudTBIssue({
strategyCode, strategyCode,
code, code,
channel 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; // const { activityId } = app;
// console.log(item, '领取权益') // 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