index.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550
  1. <template>
  2. <x-skeleton
  3. class="container"
  4. :loading="loading"
  5. type="list"
  6. :configs="loadingConfig">
  7. <view class="init-view" v-if="isPending">
  8. <view class="flexlc padding16">
  9. <text class="text-title">We're still processing your receipt</text>
  10. <text class="text-message">We apologize for the inconvenience caused as we are still processing your settlement and unable to generate it as of yet.</text>
  11. <text class="text-message">Please refresh this page after a few minutes to view your receipt.</text>
  12. <text class="text-message">Thank you!</text>
  13. </view>
  14. </view>
  15. <view class="receipt-view" :class="{show: showReceipt}" v-else>
  16. <view class="card-view" v-if="receiptInfo.location">
  17. <view class="receipt-site-name" v-if="receiptInfo.location.locationName">
  18. <text>{{receiptInfo.location.locationName}}</text>
  19. </view>
  20. <view class="receipt-site-address" v-if="receiptInfo.location.locationAddress">
  21. <text>{{receiptInfo.location.locationAddress}}</text>
  22. </view>
  23. <view class="receipt-connector-view">
  24. <view class="site-icon">
  25. <svg width="100%" height="100%" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
  26. <ellipse cx="10.0631" cy="10" rx="10.0631" ry="10" fill="#0D1D18"/>
  27. <g clip-path="url(#clip0_1099_2273)">
  28. <path d="M15.207 5.90632L13.9941 4.70921C13.8883 4.60706 13.7463 4.55039 13.5988 4.55144C13.4513 4.55249 13.3101 4.61119 13.2058 4.71484C13.1015 4.8185 13.0424 4.95878 13.0413 5.10536C13.0403 5.25194 13.0973 5.39305 13.2001 5.49818L13.9865 6.28169L13.4062 6.88366C13.315 6.97715 13.264 7.10223 13.264 7.23242C13.264 7.36261 13.315 7.48769 13.4062 7.58117C13.4501 7.62823 13.5035 7.66561 13.5629 7.69089C13.6223 7.71616 13.6863 7.72877 13.7509 7.72791L14.4075 7.72655V12.8405C14.4075 12.931 14.3713 13.0178 14.3069 13.0818C14.2425 13.1458 14.1552 13.1818 14.0641 13.1818C13.973 13.1818 13.8857 13.1458 13.8213 13.0818C13.7569 13.0178 13.7207 12.931 13.7207 12.8405V9.65871C13.7207 9.26713 13.5642 8.8916 13.2856 8.61465C13.007 8.3377 12.6292 8.182 12.2352 8.18177H11.8917V5.4545C11.8918 5.33511 11.8682 5.21687 11.8222 5.10655C11.7762 4.99624 11.7089 4.896 11.6239 4.81158C11.5389 4.72715 11.4381 4.66019 11.3271 4.61452C11.2161 4.56885 11.0971 4.54537 10.9769 4.54541H6.17545C6.05531 4.54537 5.93632 4.56885 5.82531 4.61452C5.7143 4.66019 5.61343 4.72715 5.52847 4.81158C5.44352 4.896 5.37613 4.99624 5.33017 5.10655C5.28422 5.21687 5.26058 5.33511 5.26063 5.4545V14.3188H5.14662C4.99507 14.3188 4.84972 14.3786 4.74256 14.4851C4.6354 14.5916 4.5752 14.7361 4.5752 14.8867C4.5752 15.0373 4.6354 15.1817 4.74256 15.2882C4.84972 15.3947 4.99507 15.4545 5.14662 15.4545H12.0078C12.1594 15.4545 12.3047 15.3947 12.4119 15.2882C12.519 15.1817 12.5792 15.0373 12.5792 14.8867C12.5792 14.7361 12.519 14.5916 12.4119 14.4851C12.3047 14.3786 12.1594 14.3188 12.0078 14.3188H11.8917V9.3195H12.2352C12.3262 9.3195 12.4136 9.35546 12.478 9.41945C12.5424 9.48345 12.5786 9.57025 12.5786 9.66075V12.8412C12.5785 13.0352 12.617 13.2272 12.6917 13.4064C12.7663 13.5856 12.8758 13.7485 13.0138 13.8856C13.1518 14.0228 13.3157 14.1316 13.496 14.2058C13.6763 14.2801 13.8696 14.3183 14.0648 14.3183C14.26 14.3183 14.4533 14.2801 14.6336 14.2058C14.8139 14.1316 14.9778 14.0228 15.1158 13.8856C15.2538 13.7485 15.3633 13.5856 15.438 13.4064C15.5126 13.2272 15.5511 13.0352 15.5511 12.8412V6.72259C15.5512 6.57063 15.5208 6.42018 15.4617 6.28002C15.4026 6.13987 15.316 6.01282 15.207 5.90632ZM9.94156 11.7376L8.23278 14.1434C8.22475 14.1518 8.21507 14.1585 8.20436 14.163C8.19364 14.1676 8.18211 14.1699 8.17046 14.1699C8.16565 14.1702 8.16082 14.1696 8.15625 14.1681C8.15169 14.1666 8.14747 14.1641 8.14384 14.161C8.10229 14.149 8.08752 14.1257 8.09937 14.0904L8.3753 12.4713H7.17339C7.16061 12.4723 7.14784 12.4694 7.13672 12.4631C7.12561 12.4567 7.11667 12.4472 7.11106 12.4358C7.09343 12.4125 7.09641 12.386 7.11999 12.3563L8.9711 9.95047C8.99497 9.91516 9.02158 9.90935 9.05129 9.93341C9.08099 9.93938 9.09576 9.9631 9.09576 10.0042L8.81983 11.6228H9.87889C9.89164 11.6218 9.90439 11.6246 9.9155 11.6309C9.92661 11.6372 9.93556 11.6467 9.94122 11.6581C9.94736 11.6842 9.94748 11.7114 9.94156 11.7376ZM10.7486 8.59196C10.7488 8.65762 10.7359 8.72268 10.7107 8.78338C10.6855 8.84409 10.6485 8.89924 10.6018 8.94567C10.555 8.9921 10.4995 9.0289 10.4384 9.05393C10.3774 9.07897 10.3119 9.09175 10.2458 9.09155H6.90622C6.84008 9.09175 6.77456 9.07894 6.71343 9.05387C6.65229 9.02879 6.59676 8.99194 6.55003 8.94543C6.50329 8.89893 6.46628 8.84369 6.44113 8.78291C6.41598 8.72213 6.40318 8.657 6.40347 8.59127V6.18205C6.40327 6.11638 6.41614 6.05133 6.44133 5.99062C6.46652 5.92992 6.50355 5.87476 6.55027 5.82833C6.59699 5.7819 6.6525 5.74511 6.71358 5.72007C6.77467 5.69504 6.84014 5.68225 6.90622 5.68246H10.2455C10.3115 5.68225 10.377 5.69504 10.4381 5.72007C10.4992 5.74511 10.5547 5.7819 10.6014 5.82833C10.6481 5.87476 10.6852 5.92992 10.7104 5.99062C10.7356 6.05133 10.7484 6.11638 10.7482 6.18205L10.7486 8.59196Z" fill="#38D29A"/>
  29. </g>
  30. </svg>
  31. </view>
  32. <view class="flex3 flexcc" style="overflow: hidden;">
  33. <view class="info-header-text">{{receiptInfo.location.chargerName || "-"}}</view>
  34. </view>
  35. <view class="info-header-divide"></view>
  36. <view class="flex2 flexcc">
  37. <image
  38. v-if="receiptInfo.location.chargerType == 'AC'"
  39. class="rate-icon"
  40. src="@/static/icons/ic-type-ac.png"/>
  41. <image
  42. v-else
  43. class="rate-icon"
  44. src="@/static/icons/ic-type-dc.png"/>
  45. <view class="info-header-text">{{receiptInfo.location.chargerType + " " + receiptInfo.location.chargerWattage}}</view>
  46. </view>
  47. </view>
  48. </view>
  49. <view class="card-view" v-if="receiptInfo.subtotal">
  50. <view class="final-receipt-row" v-if="receiptInfo.subtotal.finalPayment">
  51. <view class="receipt-final-label">Final Payment:</view>
  52. <view class="receipt-final-value">{{receiptInfo.subtotal.finalPayment}}</view>
  53. </view>
  54. <view class="receipt-row" v-if="receiptInfo.subtotal.transId">
  55. <text class="receipt-label">Transaction ID:</text>
  56. <text class="receipt-value">{{receiptInfo.subtotal.transId}}</text>
  57. </view>
  58. <view class="receipt-row" v-if="receiptInfo.subtotal.refId">
  59. <text class="receipt-label">Reference ID:</text>
  60. <text class="receipt-value">{{receiptInfo.subtotal.refId}}</text>
  61. </view>
  62. <view class="receipt-row" v-if="receiptInfo.subtotal.transStartTime">
  63. <text class="receipt-label">Date Time:</text>
  64. <text class="receipt-value" style="zoom: 0.9;">{{receiptInfo.subtotal.transStartTime}}</text>
  65. </view>
  66. <view class="receipt-row" v-if="receiptInfo.subtotal.paymentMethod">
  67. <text class="receipt-label">Payment Method:</text>
  68. <text class="receipt-value">{{receiptInfo.subtotal.paymentMethod}}</text>
  69. </view>
  70. <view class="receipt-row" v-if="receiptInfo.subtotal.exchangeRate">
  71. <text class="receipt-label">Exchange Rate:</text>
  72. <text class="receipt-value">{{receiptInfo.subtotal.exchangeRate}}</text>
  73. </view>
  74. <view class="receipt-row" v-if="receiptInfo.subtotal.balance">
  75. <text class="receipt-label">Resulting Balance:</text>
  76. <text class="receipt-value">{{receiptInfo.subtotal.balance}}</text>
  77. </view>
  78. <view class="receipt-row" v-if="receiptInfo.subtotal.points">
  79. <text class="receipt-label">Points Earned:</text>
  80. <text class="receipt-value">{{receiptInfo.subtotal.points}}</text>
  81. </view>
  82. </view>
  83. <!--Breakdown-->
  84. <view class="card-view">
  85. <view class="card-title">Breakdown</view>
  86. <uni-collapse>
  87. <uni-collapse-item
  88. class="collapse-view"
  89. title-border="none"
  90. :border="false"
  91. v-if="receiptInfo.chargingFee">
  92. <template v-slot:title>
  93. <view class="receipt-collapse-row">
  94. <view class="receipt-label">Charging Fees<text v-if="receiptInfo.chargingFee.taxRate"> ({{receiptInfo.chargingFee.taxRate}})</text>:
  95. </view>
  96. <text class="receipt-value">{{receiptInfo.chargingFee.sumFee}}</text>
  97. </view>
  98. </template>
  99. <view class="receipt-period-view" v-for="(item,index) in receiptInfo.chargingFee.items" :key="index">
  100. <view class="receipt-period-title">
  101. <text class="receipt-value">Period {{index+1}}:</text>
  102. <text class="receipt-value">{{item.itemFee}}</text>
  103. </view>
  104. <view class="receipt-period-content">
  105. <view>{{item.itemTimePeriods}}, {{item.itemDuration}}</view>
  106. <view>{{item.itemRate}}</view>
  107. <view>{{item.itemDelivered}}</view>
  108. </view>
  109. </view>
  110. <divide :size="16"/>
  111. </uni-collapse-item>
  112. <uni-collapse-item
  113. class="collapse-view"
  114. title-border="none"
  115. :border="false"
  116. v-if="receiptInfo.idleFee && receiptInfo.idleFee.items.length > 0">
  117. <template v-slot:title>
  118. <view class="receipt-collapse-row">
  119. <view class="receipt-label">Idle Fees:</view>
  120. <text class="receipt-value">{{receiptInfo.idleFee.sumFee}}</text>
  121. </view>
  122. </template>
  123. <view class="receipt-period-view" v-for="(item,index) in receiptInfo.idleFee.items" :key="index">
  124. <view class="receipt-period-title">
  125. <text class="receipt-value">Period {{index+1}}:</text>
  126. <text class="receipt-value">{{item.itemFee}}</text>
  127. </view>
  128. <view class="receipt-period-content">
  129. <view>{{item.itemTimePeriods}}, {{item.itemDuration}}</view>
  130. <view>{{item.itemRule}}</view>
  131. <view>{{item.itemRate}}</view>
  132. </view>
  133. </view>
  134. <divide :size="16"/>
  135. </uni-collapse-item>
  136. <uni-collapse-item
  137. class="collapse-view"
  138. title-border="none"
  139. :border="false"
  140. v-if="receiptInfo.reservationFee && receiptInfo.reservationFee.itemFee">
  141. <template v-slot:title>
  142. <view class="receipt-collapse-row">
  143. <view class="receipt-label">Reservation Fees:</view>
  144. <text class="receipt-value">{{receiptInfo.reservationFee.itemFee}}</text>
  145. </view>
  146. </template>
  147. <view class="receipt-period-view">
  148. <view class="receipt-period-title">
  149. <text class="receipt-value">Fee:</text>
  150. <text class="receipt-value">{{receiptInfo.reservationFee.itemFee}}</text>
  151. </view>
  152. <view class="receipt-period-content">
  153. <view>{{receiptInfo.reservationFee.itemTimePeriods}}</view>
  154. <view>{{receiptInfo.reservationFee.itemRule}}</view>
  155. </view>
  156. </view>
  157. <divide :size="16"/>
  158. </uni-collapse-item>
  159. <uni-collapse-item
  160. class="collapse-view"
  161. title-border="none"
  162. :border="false"
  163. v-if="receiptInfo.voucher && receiptInfo.voucher.items.length > 0">
  164. <template v-slot:title>
  165. <view class="receipt-collapse-row">
  166. <view class="receipt-label">Vouchers:</view>
  167. <text class="receipt-value">{{receiptInfo.voucher.sumFee}}</text>
  168. </view>
  169. </template>
  170. <view class="receipt-period-view" v-for="(item,index) in receiptInfo.voucher.items" :key="index">
  171. <view class="receipt-period-title">
  172. <text class="receipt-value">{{item.voucherName}}:</text>
  173. <text class="receipt-value">{{item.itemFee}}</text>
  174. </view>
  175. <view class="receipt-period-content">
  176. <view>{{item.voucherId}}</view>
  177. </view>
  178. </view>
  179. <divide :size="16"/>
  180. </uni-collapse-item>
  181. </uni-collapse>
  182. </view>
  183. <view class="card-view">
  184. <uni-collapse>
  185. <uni-collapse-item
  186. class="collapse-view"
  187. title-border="none"
  188. :border="false"
  189. v-if="receiptInfo.operator && receiptInfo.operator.operatorName">
  190. <template v-slot:title>
  191. <view class="receipt-collapse-row">
  192. <image
  193. class="receipt-logo"
  194. mode="aspectFit"
  195. v-if="receiptInfo.operator.operatorLogo"
  196. :src="receiptInfo.operator.operatorLogo"/>
  197. <view class="flex1">
  198. <view class="receipt-section-title">Operator</view>
  199. <text class="receipt-section-desc">{{receiptInfo.operator.operatorName}}</text>
  200. </view>
  201. </view>
  202. </template>
  203. <view class="receipt-section-row" v-if="receiptInfo.operator.operatorUen">
  204. <text class="receipt-label2">Co./GST Reg. No.:</text>
  205. <text class="receipt-value2">{{receiptInfo.operator.operatorUen}}</text>
  206. </view>
  207. <view class="receipt-section-row" v-if="receiptInfo.operator.operatorAddress">
  208. <text class="receipt-label2">Address:</text>
  209. <text class="receipt-value2">{{receiptInfo.operator.operatorAddress}}</text>
  210. </view>
  211. <view class="receipt-section-row" v-if="receiptInfo.operator.operatorWebsite">
  212. <text class="receipt-label2">Website:</text>
  213. <text class="receipt-value2">{{receiptInfo.operator.operatorWebsite}}</text>
  214. </view>
  215. <view class="receipt-section-row" v-if="receiptInfo.operator.operatorEmail">
  216. <text class="receipt-label2">Email:</text>
  217. <text class="receipt-value2">{{receiptInfo.operator.operatorEmail}}</text>
  218. </view>
  219. </uni-collapse-item>
  220. </uni-collapse>
  221. </view>
  222. <view class="card-view flexc" v-if="false">
  223. <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
  224. <path d="M13 19C13 15.69 15.69 13 19 13C20.1 13 21.12 13.3 22 13.81V6C22 4.89 21.1 4 20 4H4C2.89 4 2 4.89 2 6V18C2 19.11 2.9 20 4 20H13.09C13.04 19.67 13 19.34 13 19ZM4 8V6L12 11L20 6V8L12 13L4 8ZM17.75 22.16L15 19.16L16.16 18L17.75 19.59L21.34 16L22.5 17.41L17.75 22.16Z" fill="#009E81"/>
  225. </svg>
  226. <view class="text-email">Send receipt to my email</view>
  227. </view>
  228. <view class="card-view flexc" @click="downloadReceipt">
  229. <i-icon
  230. name="file-download-fill"
  231. color="#009E81"
  232. size="46rpx"/>
  233. <view class="text-email">Download receipt</view>
  234. </view>
  235. <button class="ui-button button-anim" type="primary" @click="toHome">DONE</button>
  236. </view>
  237. </x-skeleton>
  238. </template>
  239. <script>
  240. import apiCharge from '@/api/apiCharge';
  241. export default {
  242. data() {
  243. return {
  244. loading: true,
  245. chargingPk: "",
  246. receiptInfo: {
  247. location: {},
  248. chargingFee: {},
  249. idleFee: {},
  250. reservationFee: {}
  251. },
  252. isView: false,
  253. isPending: true,
  254. showReceipt: false,
  255. loadingConfig: {
  256. padding: "56rpx 32rpx",
  257. headShow: false,
  258. itemGap: '48rpx',
  259. gridRows: 4,
  260. textRows: 5,
  261. textRowsGap: '36rpx',
  262. textWidth: ['30%', '100%', '100%', '100%'],
  263. }
  264. }
  265. },
  266. onLoad(options) {
  267. if (options.id) {
  268. this.chargingPk = options.id;
  269. if (options.action == "view") {
  270. this.isView = true;
  271. }
  272. setTimeout(() => {
  273. this.getReceipt();
  274. }, this.isView ? 200 : 8000);
  275. }
  276. },
  277. methods: {
  278. toHome() {
  279. if (this.isView) {
  280. uni.navigateBack();
  281. } else {
  282. uni.navigateTo({
  283. url: "/pages/index/index"
  284. })
  285. }
  286. },
  287. getReceipt() {
  288. /*uni.showLoading({
  289. title: "Loading..."
  290. })*/
  291. apiCharge.getReceipt(this.chargingPk).then(res => {
  292. uni.hideLoading();
  293. if (res.data) {
  294. this.receiptInfo = res.data;
  295. if (res.data.hasSettled) {
  296. this.isPending = false;
  297. setTimeout(() => {
  298. this.showReceipt = true;
  299. }, 500)
  300. } else {
  301. this.isPending = true;
  302. }
  303. }
  304. }).catch(err => {
  305. uni.showToast({
  306. icon: "none",
  307. title: err
  308. });
  309. this.isPending = true;
  310. }).finally(() => {
  311. this.loading = false;
  312. uni.stopPullDownRefresh();
  313. })
  314. },
  315. downloadReceipt() {
  316. apiCharge.downloadRecript(this.chargingPk);
  317. }
  318. },
  319. onPullDownRefresh() {
  320. this.getReceipt();
  321. }
  322. }
  323. </script>
  324. <style scoped>
  325. .container {
  326. min-height: 100vh;
  327. background: #F8F8F8;
  328. }
  329. .init-view {
  330. padding-top: 20vh;
  331. }
  332. .card-view {
  333. padding: 32rpx;
  334. border-radius: 24rpx;
  335. margin-bottom: 32rpx;
  336. background: white;
  337. box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.02);
  338. }
  339. .card-title {
  340. color: #333;
  341. font-size: 26rpx;
  342. padding-bottom: 32rpx;
  343. }
  344. .icon-done {
  345. width: 100rpx;
  346. height: 100rpx;
  347. display: flex;
  348. border-radius: 120rpx;
  349. align-items: center;
  350. justify-content: center;
  351. background: #1ABD00;
  352. }
  353. .icon-logo {
  354. height: 100rpx;
  355. }
  356. .done-title {
  357. color: #1ABD00;
  358. font-size: 36rpx;
  359. text-align: center;
  360. font-weight: bold;
  361. padding: 24rpx 0 10rpx;
  362. }
  363. .done-content {
  364. color: #555;
  365. font-size: 26rpx;
  366. text-align: center;
  367. padding-bottom: 32rpx;
  368. }
  369. .text-title {
  370. color: var(--accent-color);
  371. padding: 16rpx;
  372. font-size: 48rpx;
  373. font-weight: bold;
  374. text-align: center;
  375. }
  376. .text-message {
  377. color: #333;
  378. font-size: 28rpx;
  379. text-align: center;
  380. padding-top: 12rpx;
  381. padding-bottom: 32rpx;
  382. }
  383. .receipt-view {
  384. opacity: 0;
  385. padding: 32rpx;
  386. transition: all .5s;
  387. }
  388. .receipt-view.show {
  389. opacity: 1;
  390. }
  391. .receipt-row {
  392. display: flex;
  393. align-items: center;
  394. margin-top: 16rpx;
  395. padding: 20rpx 12rpx;
  396. justify-content: space-between;
  397. }
  398. .final-receipt-row {
  399. display: flex;
  400. align-items: center;
  401. padding: 0 12rpx 20rpx;
  402. justify-content: space-between;
  403. }
  404. .receipt-row:nth-child(2n) {
  405. background-color: #f7f7f7;
  406. }
  407. .receipt-title {
  408. color: var(--primary-color);
  409. display: block;
  410. font-size: 28rpx;
  411. font-weight: bold;
  412. padding: 32rpx 0 16rpx;
  413. }
  414. .receipt-final-label {
  415. flex: 1;
  416. color: #333;
  417. font-size: 27rpx;
  418. padding-right: 32rpx;
  419. }
  420. .receipt-final-value {
  421. color: #009E81;
  422. text-align: right;
  423. font-size: 40rpx;
  424. font-weight: bold;
  425. }
  426. .receipt-label {
  427. flex: 1;
  428. color: #666;
  429. font-size: 27rpx;
  430. padding-right: 32rpx;
  431. }
  432. .receipt-label2 {
  433. flex: 1;
  434. color: #666;
  435. font-size: 24rpx;
  436. padding-right: 32rpx;
  437. }
  438. .receipt-value {
  439. color: #333;
  440. text-align: right;
  441. font-size: 26rpx;
  442. font-weight: bold;
  443. }
  444. .receipt-value2 {
  445. color: #333;
  446. text-align: right;
  447. font-size: 26rpx;
  448. }
  449. .receipt-logo {
  450. width: 60rpx;
  451. height: 60rpx;
  452. margin-right: 32rpx;
  453. }
  454. .receipt-section-title {
  455. color: #000;
  456. font-size: 28rpx;
  457. font-weight: bold;
  458. }
  459. .receipt-section-desc {
  460. color: #666;
  461. font-size: 24rpx;
  462. }
  463. .receipt-section-row {
  464. display: flex;
  465. align-items: center;
  466. padding: 16rpx 0rpx;
  467. justify-content: space-between;
  468. }
  469. .text-email {
  470. flex: 1;
  471. color: #222;
  472. font-size: 28rpx;
  473. padding-left: 24rpx;
  474. }
  475. .receipt-site-name {
  476. color: #000;
  477. font-size: 36rpx;
  478. }
  479. .receipt-site-address {
  480. color: #666;
  481. padding: 16rpx 0;
  482. font-size: 24rpx;
  483. }
  484. .receipt-connector-view {
  485. display: flex;
  486. padding: 12rpx 32rpx;
  487. padding-left: 12rpx;
  488. align-items: center;
  489. transition: all .3s;
  490. border-radius: 60rpx;
  491. background-color: #ececec;
  492. }
  493. .site-icon {
  494. width: 40rpx;
  495. height: 40rpx;
  496. }
  497. .rate-icon {
  498. width: 28rpx;
  499. height: 28rpx;
  500. margin-left: 24rpx;
  501. }
  502. .info-header-text {
  503. color: #333;
  504. font-size: 24rpx;
  505. padding: 0 12rpx;
  506. overflow: hidden;
  507. font-weight: bold;
  508. white-space: nowrap;
  509. text-overflow: ellipsis;
  510. }
  511. .info-header-divide {
  512. margin: 0 32rpx;
  513. position: relative;
  514. }
  515. .info-header-divide:before {
  516. right: 0;
  517. left: 50%;
  518. width: 2rpx;
  519. height: 36rpx;
  520. content: " ";
  521. margin-top: -18rpx;
  522. position: absolute;
  523. background-color: rgba(0, 0, 0, 0.1);
  524. }
  525. .receipt-collapse-row {
  526. display: flex;
  527. align-items: center;
  528. padding: 16rpx 16rpx 16rpx 0rpx;
  529. justify-content: space-between;
  530. }
  531. .receipt-period-view {
  532. border-bottom: 1px solid #EFEFEF;
  533. }
  534. .receipt-period-title {
  535. display: flex;
  536. padding: 24rpx 0;
  537. align-items: center;
  538. justify-content: space-between;
  539. border-bottom: 1px solid #F2F2F2;
  540. }
  541. .receipt-period-content {
  542. color: #666;
  543. padding: 24rpx 0;
  544. font-size: 24rpx;
  545. text-align: right;
  546. line-height: 36rpx;
  547. }
  548. </style>