detail.vue 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  1. <template>
  2. <view class="page-wrap">
  3. <view class="header-panel">
  4. <view class="name">应付# 财税·年服务费</view>
  5. <view class="desc">账单编号:9885</view>
  6. <view class="desc">创建时间:2023-10-25 14:26:08</view>
  7. <view class="desc">所属订单:HC25263</view>
  8. <view class="state state-1">49760.00</view>
  9. </view>
  10. <view class="info-panel">
  11. <view class="title-row">
  12. <image class="icon" src="../../../static/svg/tag.svg"></image>
  13. 账单信息
  14. </view>
  15. <view class="text-row">
  16. <view class="label">付款方</view>
  17. <view class="text">天津超易达胜科技发展有限公司</view>
  18. </view>
  19. <view class="text-row" style="border: none">
  20. <view class="label">收款方</view>
  21. <view class="text">天津鑫恩华产业园区管理有限公司</view>
  22. </view>
  23. <view class="text-row">
  24. <view class="label">账单金额</view>
  25. <view class="text">24600.00</view>
  26. </view>
  27. <view class="text-row">
  28. <view class="label">账单说明</view>
  29. <view class="text">33600.00,前一份合同押金抵消 9000</view>
  30. </view>
  31. <view class="text-row">
  32. <view class="label">约定支付日期</view>
  33. <view class="text">2023-09-15</view>
  34. </view>
  35. <view class="text-row">
  36. <view class="label">支付状态</view>
  37. <view class="text">已支付</view>
  38. </view>
  39. <template v-if="isCollapse">
  40. <view class="text-row">
  41. <view class="label">支付方式</view>
  42. <view class="text">善付通</view>
  43. </view>
  44. <view class="text-row">
  45. <view class="label">支付时间</view>
  46. <view class="text">2023-12-11 20:32:08</view>
  47. </view>
  48. <view class="text-row">
  49. <view class="label">是否到账</view>
  50. <view class="text">待确认</view>
  51. </view>
  52. </template>
  53. </view>
  54. <view v-show="isCollapse" class="info-panel">
  55. <view class="title-row">
  56. <image class="icon" src="../../../static/svg/tag.svg"></image>
  57. 备注信息
  58. </view>
  59. <view class="text-row">
  60. <text class="remark">备注默认为空,如果有备注信息在这里填写, 最多三行,肯定够用了 按字义回车换行,显得更有条理</text>
  61. </view>
  62. </view>
  63. <view class="collapse-btn" @click="isCollapse = !isCollapse">{{ isCollapse ? '收起 ∧' : '展开更多 ∨' }}</view>
  64. <view class="info-panel">
  65. <view class="title-row">
  66. <image class="icon" src="../../../static/svg/tag.svg"></image>
  67. 发票信息
  68. </view>
  69. <view class="text-row">
  70. <view class="label">发票</view>
  71. <view class="text">电子发票</view>
  72. </view>
  73. <view class="text-row">
  74. <view class="label">发票用途</view>
  75. <view class="text">
  76. <input class="input" type="text" placeholder="请输入" maxlength="20" />
  77. </view>
  78. </view>
  79. <view class="text-row">
  80. <view class="label">开票状态</view>
  81. <view class="text">待申请</view>
  82. </view>
  83. </view>
  84. <view class="contact-row">
  85. <image class="avatar" src="../../../static/img_avatar.png" mode="aspectFill"></image>
  86. <view class="info">
  87. <view class="name">陈禹佳</view>
  88. <view class="desc">专属客服,24小时咨询</view>
  89. </view>
  90. <view class="tel">电话</view>
  91. <image class="icon" src="../../../static/icon_tel.png"></image>
  92. </view>
  93. <view class="foot-panel">
  94. <view class="foot-panel-wrap">
  95. <button class="btn btn-1">申请开票</button>
  96. <button class="btn">去支付</button>
  97. </view>
  98. </view>
  99. </view>
  100. </template>
  101. <script>
  102. export default {
  103. data() {
  104. return {
  105. isCollapse: false
  106. };
  107. },
  108. methods: {}
  109. };
  110. </script>
  111. <style lang="scss" scoped>
  112. .header-panel {
  113. height: 206.04rpx;
  114. background: #fff;
  115. padding: 13.74rpx 233.52rpx 13.74rpx 27.47rpx;
  116. position: relative;
  117. box-sizing: border-box;
  118. border-top: 1rpx solid #e0e0e0;
  119. .state {
  120. width: 178.57rpx;
  121. height: 178.57rpx;
  122. position: absolute;
  123. right: 27.47rpx;
  124. top: 13.74rpx;
  125. border-radius: 8.24rpx;
  126. display: flex;
  127. flex-direction: column;
  128. align-items: center;
  129. justify-content: center;
  130. font-size: 32.97rpx;
  131. color: #fff;
  132. &::after {
  133. font-size: 27.47rpx;
  134. margin-top: 13.74rpx;
  135. }
  136. &-1 {
  137. background: #00bfbf;
  138. &::after {
  139. content: '未支付';
  140. }
  141. }
  142. &-2 {
  143. background: #ccc;
  144. &::after {
  145. content: '确认中';
  146. }
  147. }
  148. &-3 {
  149. background: #f7922a;
  150. &::after {
  151. content: '已到账';
  152. }
  153. }
  154. }
  155. .name {
  156. font-size: 32.97rpx;
  157. line-height: 1.5;
  158. white-space: nowrap;
  159. overflow: hidden;
  160. text-overflow: ellipsis;
  161. margin-bottom: 6.87rpx;
  162. }
  163. .desc {
  164. font-size: 27.47rpx;
  165. line-height: 1.5;
  166. color: #999;
  167. }
  168. }
  169. .info-panel {
  170. background: #fff;
  171. margin-top: 13.74rpx;
  172. .title-row {
  173. padding: 13.74rpx 27.47rpx;
  174. min-height: 82.42rpx;
  175. box-sizing: border-box;
  176. display: flex;
  177. align-items: center;
  178. border-bottom: 1rpx solid #e0e0e0;
  179. font-size: 27.47rpx;
  180. color: #0384d6;
  181. .icon {
  182. width: 20.6rpx;
  183. height: 20.6rpx;
  184. background: #3498db;
  185. padding: 8.24rpx;
  186. margin-right: 13.74rpx;
  187. }
  188. }
  189. .text-row {
  190. padding: 20.6rpx 27.47rpx;
  191. min-height: 82.42rpx;
  192. box-sizing: border-box;
  193. display: flex;
  194. align-items: center;
  195. justify-content: space-between;
  196. font-size: 27.47rpx;
  197. & + .text-row {
  198. border-top: 1rpx solid #e0e0e0;
  199. }
  200. .label {
  201. white-space: nowrap;
  202. margin-right: 27.47rpx;
  203. }
  204. .text {
  205. word-break: break-all;
  206. text-align: right;
  207. }
  208. .remark {
  209. line-height: 41.21rpx;
  210. }
  211. .input {
  212. width: 274.73rpx;
  213. margin: -5.49rpx 0;
  214. }
  215. }
  216. }
  217. .collapse-btn {
  218. font-size: 24.73rpx;
  219. color: #999;
  220. line-height: 82.42rpx;
  221. text-align: center;
  222. background: #fff;
  223. border-top: 1rpx solid #e0e0e0;
  224. }
  225. .contact-row {
  226. display: flex;
  227. align-items: center;
  228. height: 109.89rpx;
  229. background: #fff;
  230. padding: 0 27.47rpx;
  231. margin: 13.74rpx 0;
  232. .avatar {
  233. width: 76.92rpx;
  234. height: 76.92rpx;
  235. border-radius: 50%;
  236. }
  237. .info {
  238. flex: 1;
  239. margin: 0 13.74rpx;
  240. }
  241. .name {
  242. font-size: 27.47rpx;
  243. color: #545e8f;
  244. }
  245. .desc {
  246. font-size: 24.73rpx;
  247. color: #999;
  248. }
  249. .tel {
  250. font-size: 27.47rpx;
  251. color: #999;
  252. }
  253. .icon {
  254. width: 54.95rpx;
  255. height: 54.95rpx;
  256. margin-left: 13.74rpx;
  257. }
  258. }
  259. .foot-panel {
  260. height: 96.15rpx;
  261. &-wrap {
  262. position: fixed;
  263. left: 0;
  264. bottom: 0;
  265. right: 0;
  266. height: 96.15rpx;
  267. background: #f7f7f7;
  268. z-index: 1;
  269. display: flex;
  270. align-items: center;
  271. justify-content: flex-end;
  272. padding: 0 27.47rpx;
  273. }
  274. .btn {
  275. min-width: 164.84rpx;
  276. height: 68.68rpx;
  277. font-size: 27.47rpx;
  278. line-height: 68.68rpx;
  279. color: #fff;
  280. background: #f97631;
  281. border-radius: 5.49rpx;
  282. box-sizing: border-box;
  283. padding: 0 27.47rpx;
  284. margin: 0 0 0 13.74rpx;
  285. &-1 {
  286. color: #666;
  287. background: none;
  288. border: 1rpx solid #ccc;
  289. line-height: 65.93rpx;
  290. }
  291. }
  292. }
  293. </style>