Commit 124ee481 by TengFengLian

修复游戏攻略问题

parent 99a0f99f
...@@ -73,7 +73,7 @@ Page({ ...@@ -73,7 +73,7 @@ Page({
let funcFormInto = this.data.formInto let funcFormInto = this.data.formInto
let activityTime = this.data.activityTimes[this.data.activityIndex] let activityTime = this.data.activityTimes[this.data.activityIndex]
if (0 == activityTime.enroll*1) { if (1 == activityTime.enroll*1) {
this.setData({ this.setData({
errorQuantity: '该场次已报名过,请选择其他场次', errorQuantity: '该场次已报名过,请选择其他场次',
}) })
......
...@@ -279,14 +279,16 @@ Page({ ...@@ -279,14 +279,16 @@ Page({
loading: false loading: false
}) })
if (res.data.list.length > 0) { if (res.data.list.length > 0) {
let count = that.data.strategyOriginList.length let count = that.data.strategyOriginList.length
if (that.data.pageNo == 1) {
count = 0
}
let tempArray = [] let tempArray = []
for(let i = 0; i < res.data.list.length; i++) { for(let i = 0; i < res.data.list.length; i++) {
let item = res.data.list[i] let item = res.data.list[i]
let strategy = { let strategy = {
id: item.id, id: item.id,
image: item.cover, image: (count == 0 && i == 0) ? item.topImg : item.cover,
title: item.title, title: item.title,
date: item.updateDate, date: item.updateDate,
index: count + i - 1, index: count + i - 1,
......
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 sign in to comment