sfzyYyjl.wxml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <!--pages/recordPages/sfzyYyjl/sfzyYyjl.wxml-->
  2. <scroll-view class="containers" scroll-y="{{true}}">
  3. <view class="tips {{infos.status == 1?'tipsWarning':infos.status == 2?'tipsSuccess':infos.status == 3?'tipsError':''}}">{{infos.status == 1?'待办理':infos.status == 2?'已办理':infos.status == 3?'爽约':'取消预约'}}</view>
  4. <view class="infosBox">
  5. <view class="item">
  6. <view class="label">预约日期</view>
  7. <view class="value">{{tools.date(infos.jssj)}}</view>
  8. </view>
  9. <view class="item">
  10. <view class="label">预约时段</view>
  11. <view class="value">{{tools.time(infos.yysd)}}</view>
  12. </view>
  13. <view class="item">
  14. <view class="label">预约大厅</view>
  15. <view class="value">{{infos.yydt}}</view>
  16. </view>
  17. <view class="item">
  18. <view class="label">大厅地址</view>
  19. <view class="value">{{infos.dtdz}}</view>
  20. </view>
  21. <view class="item">
  22. <view class="label"><text>调节室具\n体位置</text></view>
  23. <view class="value">{{infos.jtdz}}</view>
  24. </view>
  25. <view class="item">
  26. <view class="label">咨询电话</view>
  27. <view class="value"><view class="phone" data-phone="{{infos.zxsjhm}}" bind:tap="call">{{infos.zxsjhm}}</view></view>
  28. </view>
  29. </view>
  30. <view class="infosBox infosBox1">
  31. <view class="item">
  32. <view class="label">我的诉求</view>
  33. <view class="value">{{infos.wdsq}}</view>
  34. </view>
  35. </view>
  36. <view wx:if="{{infos.status == 10}}" class="button" hover-class="active" bind:tap="brush">已完成调节</view>
  37. <view wx:if="{{infos.status == 1}}" class="button button1" hover-class="active" bind:tap="cancle">取消预约</view>
  38. </scroll-view>
  39. <wxs module="tools">
  40. var date = function (e) {
  41. if (e) {
  42. return e.substring(0, 10)
  43. } else {
  44. return ""
  45. }
  46. }
  47. var time = function (e) {
  48. if (e) {
  49. return e.substring(12, 22)
  50. } else {
  51. return ""
  52. }
  53. }
  54. var tools = {
  55. date: date,
  56. time: time
  57. }
  58. module.exports = tools;
  59. </wxs>