@@ -152,7 +152,7 @@ Page({ | |||||
}) | }) | ||||
.then(res => { | .then(res => { | ||||
wx.redirectTo({ | wx.redirectTo({ | ||||
url: '/pages/radetail/success/index', | |||||
url: `/pages/radetail/success/index?activityId=${that.data.activityId}`, | |||||
}) | }) | ||||
}) | }) | ||||
.catch(err => { | .catch(err => { | ||||
@@ -26,8 +26,8 @@ | |||||
</view> | </view> | ||||
<view class='ques' wx:if="{{question&&question.length>0}}"> | <view class='ques' wx:if="{{question&&question.length>0}}"> | ||||
<text class='questionTitle'>调查问卷</text> | <text class='questionTitle'>调查问卷</text> | ||||
<view class='answer' wx:for="{{question}}" wx:key="index" wx:if="{{item.ques}}"> | |||||
<text>{{item.ques}}</text> | |||||
<view class='answer' wx:for="{{question}}" wx:key="index"> | |||||
<text>{{index}}.{{item.ques}}</text> | |||||
<textarea name="answer{{index}}" bindinput='change' type="textarea" placeholder='请填写您的回答?'></textarea> | <textarea name="answer{{index}}" bindinput='change' type="textarea" placeholder='请填写您的回答?'></textarea> | ||||
</view> | </view> | ||||
</view> | </view> | ||||
@@ -149,6 +149,7 @@ Page({ | |||||
*/ | */ | ||||
onLoad: function (options) { | onLoad: function (options) { | ||||
let that = this; | let that = this; | ||||
console.log(options) | |||||
if (options && options.activityId){ | if (options && options.activityId){ | ||||
that.setData({ | that.setData({ | ||||
activityId: options.activityId | activityId: options.activityId | ||||
@@ -165,7 +166,7 @@ Page({ | |||||
} | } | ||||
}).then(res => { | }).then(res => { | ||||
if (res && res.data && res.data.activity) { | if (res && res.data && res.data.activity) { | ||||
if (res.data.activity.useCridit){ | |||||
if (res.data.activity.useCredit===1){ | |||||
that.setData({ | that.setData({ | ||||
credit: res.data.activity.credit | credit: res.data.activity.credit | ||||
}) | }) | ||||