| @@ -87,7 +87,7 @@ | |||||
| } | } | ||||
| .list .item { | .list .item { | ||||
| width: 90%; | |||||
| width: 95%; | |||||
| border: 1px solid #ffffff93; | border: 1px solid #ffffff93; | ||||
| margin: auto; | margin: auto; | ||||
| overflow: hidden; | overflow: hidden; | ||||
| @@ -13,6 +13,7 @@ | |||||
| <button class="back" bindtap="back">返回</button> | <button class="back" bindtap="back">返回</button> | ||||
| <block tt:if="{{ detail.status != 8 }}"> | <block tt:if="{{ detail.status != 8 }}"> | ||||
| <button tt:if="{{ detail.status == 0 }}" class="confirm" bindtap="confirm">确认预约</button> | <button tt:if="{{ detail.status == 0 }}" class="confirm" bindtap="confirm">确认预约</button> | ||||
| <!-- <button tt:if="{{ detail.status == 0 }}" class="confirm" bindtap="confirm">修改预约时间</button> --> | |||||
| <button tt:if="{{ detail.status == 5 }}" class="confirm" bindtap="cancel">取消预约</button> | <button tt:if="{{ detail.status == 5 }}" class="confirm" bindtap="cancel">取消预约</button> | ||||
| </block> | </block> | ||||
| </view> | </view> | ||||
| @@ -562,7 +562,8 @@ Page({ | |||||
| tenantId: res.tenant_id, | tenantId: res.tenant_id, | ||||
| }, (res) => { | }, (res) => { | ||||
| console.log(res); | console.log(res); | ||||
| if (res) { | |||||
| if (res && res.data) { | |||||
| res.data.map(file => { | res.data.map(file => { | ||||
| if (file.starttime && file.endtime) { | if (file.starttime && file.endtime) { | ||||
| file.end = file.starttime.substring(0, 7).replace(/-/g, ".") + "-" + file.endtime.substring(0, 7).replace(/-/g, "."); | file.end = file.starttime.substring(0, 7).replace(/-/g, ".") + "-" + file.endtime.substring(0, 7).replace(/-/g, "."); | ||||