|
|
@@ -149,6 +149,7 @@ Page({ |
|
|
|
*/ |
|
|
|
onLoad: function (options) { |
|
|
|
let that = this; |
|
|
|
console.log(options) |
|
|
|
if (options && options.activityId){ |
|
|
|
that.setData({ |
|
|
|
activityId: options.activityId |
|
|
@@ -165,7 +166,7 @@ Page({ |
|
|
|
} |
|
|
|
}).then(res => { |
|
|
|
if (res && res.data && res.data.activity) { |
|
|
|
if (res.data.activity.useCridit){ |
|
|
|
if (res.data.activity.useCredit===1){ |
|
|
|
that.setData({ |
|
|
|
credit: res.data.activity.credit |
|
|
|
}) |
|
|
|