preengagedListDetails.vue 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. <template>
  2. <view>
  3. <u-navbar title="预约单详情" :custom-back="customback" >
  4. </u-navbar>
  5. <u-alert-tips type="warning" :description="description"></u-alert-tips>
  6. <view class="reverse-time">
  7. <view class="time">
  8. 预留30分钟
  9. </view>
  10. <view class="details-item">
  11. <view class="item">
  12. <view class="item-name">
  13. 预约单号
  14. </view>
  15. <view class="item-content">
  16. 0000111122223333
  17. </view>
  18. </view>
  19. <view class="item">
  20. <view class="item-name">
  21. 预计开始充电
  22. </view>
  23. <view class="item-content">
  24. 2022-05-31 09:30:00
  25. </view>
  26. </view>
  27. <view class="item">
  28. <view class="item-name">
  29. 预计充电时长
  30. </view>
  31. <view class="item-content">
  32. 6小时
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. <!-- 充电桩详情 -->
  38. <view class="charge-pile">
  39. <view class="box" @click="gotoUrl('pages/searchPile/stationAndPile/stationDetails?id=3865b3a3-13fd-461a-8145-ee9711df35a2')">
  40. <view class="name">
  41. 荆鹏软件园充电站/1号快充桩
  42. </view>
  43. <view class="address">
  44. 湖北省荆州市沙市区江津东路附155号
  45. </view>
  46. <text class="iconfont more">
  47. &#xe600;
  48. </text>
  49. </view>
  50. <!-- <view class="tel">
  51. <view class="tel-text">
  52. 联系电话
  53. </view>
  54. <view class="tel-num">
  55. 李先生 15100001111
  56. <text class="iconfont more2">
  57. &#xe600;
  58. </text>
  59. </view>
  60. </view> -->
  61. <view class="details-item">
  62. <view class="item">
  63. <view class="item-name">
  64. 预约单生成时间
  65. </view>
  66. <view class="item-content">
  67. 2022-05-31 09:00:00
  68. </view>
  69. </view>
  70. <view class="item">
  71. <view class="item-name">
  72. 电费单价
  73. </view>
  74. <view class="item-content">
  75. 1.00元/度
  76. </view>
  77. </view>
  78. <view class="item">
  79. <view class="item-name">
  80. 充电服务费
  81. </view>
  82. <view class="item-content">
  83. 1.00元/度
  84. </view>
  85. </view>
  86. </view>
  87. </view>
  88. <!-- 底部按钮 -->
  89. <view class="bottom" v-if="false">
  90. <u-button shape='circle' class="refuse-btn">拒绝</u-button>
  91. <u-button type="success" shape='circle'>确认</u-button>
  92. </view>
  93. </view>
  94. </template>
  95. <script>
  96. export default {
  97. data() {
  98. return {
  99. isback:false,
  100. description: '等待桩主确认预约单,剩余时间04:59:59'
  101. }
  102. },onLoad(op) {
  103. //预约充电跳转过来则 返回首页
  104. if(op.isback){
  105. this.isback=true
  106. }
  107. },
  108. methods:{
  109. customback(){
  110. if(this.isback){
  111. uni.reLaunch({
  112. url:"/pages/index/index"
  113. })
  114. }else{
  115. uni.navigateBack({
  116. })
  117. }
  118. },
  119. }
  120. }
  121. </script>
  122. <style lang="scss" scoped>
  123. page{
  124. padding-bottom: 151px;
  125. }
  126. .tittle-font {
  127. font-size: 24px;
  128. position: fixed;
  129. top: 12px;
  130. right: 16px;
  131. z-index: 99999;
  132. }
  133. /deep/.u-alert-desc {
  134. width: 100vw;
  135. text-align: center;
  136. color: #ff5a00;
  137. }
  138. .reverse-time {
  139. background-color: #fff;
  140. padding: 36px 12px 16px 28px;
  141. .time {
  142. height: 36px;
  143. color: rgba(0, 185, 98, 100);
  144. font-size: 36px;
  145. text-align: center;
  146. }
  147. }
  148. .details-item {
  149. margin-top: 32px;
  150. padding-right: 16px;
  151. padding-bottom: 12px;
  152. .item {
  153. display: flex;
  154. justify-content: space-between;
  155. margin-top: 8px;
  156. }
  157. }
  158. // 充电桩详情
  159. .charge-pile {
  160. background-color: #fff;
  161. margin-top: 12px;
  162. padding: 0 0 12px 16px;
  163. .box {
  164. position: relative;
  165. height: 66px;
  166. padding: 12px 0;
  167. .more {
  168. position: absolute;
  169. top: 19px;
  170. right: 12px;
  171. font-size: 24px;
  172. color: #b3b3b3;
  173. }
  174. }
  175. .name {
  176. line-height: 18px;
  177. color: rgba(16, 16, 16, 100);
  178. font-size: 18px;
  179. font-weight: 600;
  180. }
  181. .address {
  182. line-height: 20px;
  183. color: rgba(51, 51, 51, 100);
  184. margin-top: 4px;
  185. }
  186. // 联系电话
  187. .tel {
  188. line-height: 48px;
  189. display: flex;
  190. justify-content: space-between;
  191. border: 1px solid #eef2f0;
  192. border-left: none;
  193. position: relative;
  194. .tel-num {
  195. width: 50%;
  196. }
  197. .more2 {
  198. display: inline-block;
  199. font-size: 24px;
  200. color: #b3b3b3;
  201. height: 48px;
  202. position: absolute;
  203. top: 1px;
  204. right: 12px;
  205. }
  206. }
  207. .item {
  208. margin-top: 20px;
  209. }
  210. }
  211. // 按钮
  212. .bottom{
  213. width: 100%;
  214. height: 56px;
  215. position: fixed;
  216. bottom: 0;
  217. background-color: #fff;
  218. display: flex;
  219. .refuse-btn{
  220. background-color: #DBDBDB;
  221. }
  222. .u-btn{
  223. width: 44%;
  224. height: 40px;
  225. margin: auto;
  226. font-size: 18px;
  227. }
  228. }
  229. </style>