Commit 99a0f99f by TengFengLian

修复测试问题

parent fda4e712
......@@ -73,7 +73,11 @@ Page({
let funcFormInto = this.data.formInto
let activityTime = this.data.activityTimes[this.data.activityIndex]
if (funcFormInto.quantity >= activityTime.residue*1) {
if (0 == activityTime.enroll*1) {
this.setData({
errorQuantity: '该场次已报名过,请选择其他场次',
})
} else if (funcFormInto.quantity >= activityTime.residue*1) {
this.setData({
errorQuantity: '该场次剩余名额' + activityTime.residue + '人',
})
......@@ -176,7 +180,7 @@ Page({
if (activityTime.residue*1 == 0) {
this.setData({
isSubmit: false,
errorSession: '该场次已没剩余名额',
errorSession: '',
})
return false
} else {
......
......@@ -260,7 +260,7 @@ Page({
url: '/api/v1/banner/getList',
success: function(res) {
that.setData({
banner: res.data
banner: res.data.splice(0, 3)
})
}
})
......
......@@ -43,7 +43,7 @@ Page({
name: detail.name,
mobile: detail.mobile,
num: detail.num,
time: detail.time,
time: detail.time.substring(0,10) + ((detail.type == 0) ? ' 20:00-24:00' : ''),
})
},
......
......@@ -7,8 +7,8 @@ Page({
* 页面的初始数据
*/
data: {
mobile: '180****3535',
nickName: 'nickName',
mobile: '',
nickName: '',
avatarUrl: '/pages/mine/image/avatar.png',
mask:false,
type:1, //判断是否是认证的了
......@@ -172,7 +172,7 @@ Page({
let obj = {
title:title,
type: type,
time: item.subscribeDate,
time: item.subscribeDate.substring(0,10) + ((type == 0) ? ' 20:00-24:00' : ''),
num: item.subscribeNum,
url: url,
id: item.id,
......
......@@ -60,7 +60,7 @@
<view class="my-activities" wx:if="{{activityList.length > 0}}">
<view class="my-activities-item" data-enrollid="{{item.enrollId}}" wx:for="{{activityList}}" wx:for-index="index" wx:for-item="item" wx:key="index" bindtap="activityDetail">
<view class="my-activities-top">
{{item.time}}
<text decode="{{true}}">&nbsp;&nbsp;{{item.time}}&nbsp;&nbsp;</text>
</view>
<view class="my-activities-bottom">
<view class="my-activities-title">{{item.title}}</view>
......@@ -73,7 +73,9 @@
<view class="my-activities" wx:if="{{appointmentList.length > 0}}">
<view class="my-activities-item" wx:for="{{appointmentList}}" wx:for-index="index" wx:for-item="item" wx:key="index">
<view class="my-activities-top">
{{item.time}}
<view class="my-activities-top">
<text decode="{{true}}">&nbsp;&nbsp;{{item.time}}&nbsp;&nbsp;</text>
</view>
</view>
<view class="my-activities-bottom">
<view class="my-activities-title">{{item.title}}</view>
......
......@@ -105,7 +105,7 @@
.my-activities-top{
position: absolute;
top: 0;
width: 350rpx;
/* width: 350rpx; */
height: 60rpx;
background-color: rgb(2, 0, 2);
color: white;
......
......@@ -121,7 +121,7 @@ Page({
let obj = {
title:title,
type: type,
time: item.subscribeDate,
time: item.subscribeDate.substring(0,10) + ((type == 0) ? ' 20:00-24:00' : ''),
num: item.subscribeNum,
url: url,
id: item.id,
......
......@@ -68,7 +68,7 @@ Page({
let count = that.data.notice.length
var tmpArr = [];
res.data.list.forEach(item => {
var content = item.content.replace(/<img/gi, '<img style="max-width:100%;height:auto;display:block" ')
var content = item.summary.replace(/<img/gi, '<img style="max-width:100%;height:auto;display:block" ')
.replace(/<section/g, '<div')
.replace(/\/section>/g, '\div>');
var tmpItem = {
......
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