Browse Source

[活动报名][修改]:[增加扣减积分]

tags/C.7.1.0
meo 6 years ago
parent
commit
3194159a4e
3 changed files with 5 additions and 4 deletions
  1. +1
    -1
      pages/radetail/joinActivity/edit.js
  2. +2
    -2
      pages/radetail/joinActivity/edit.wxml
  3. +2
    -1
      pages/radetail/success/index.js

+ 1
- 1
pages/radetail/joinActivity/edit.js View File

@@ -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 => {


+ 2
- 2
pages/radetail/joinActivity/edit.wxml View File

@@ -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>


+ 2
- 1
pages/radetail/success/index.js View File

@@ -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
}) })


Loading…
Cancel
Save