金诚优选前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

80 lines
2.0 KiB

  1. <template>
  2. <view>
  3. <lf-nav :spreadOut="true" :showIcon="true" bgColor="#fff" title="确认金额"></lf-nav>
  4. <view class="lf-p-30" style="margin: 0 auto;">
  5. <view class="confirm-card">
  6. <view class="lf-font-32 lf-color-555">
  7. 请核对支付金额
  8. </view>
  9. <view style="font-size: 72rpx;color: #15716E;">¥478.50</view>
  10. <view class="lf-flex">
  11. <view class="lf-font-24 lf-m-r-10" style="color:#FF9D9D">
  12. 剩余支付时间
  13. </view>
  14. <countdown-timer :time="time" :autoStart="true" @finish="dateFinish">
  15. <template v-slot="{minute, second}">
  16. <!-- <view>{{minute}}:{{second}}</view> -->
  17. <view class="lf-flex">
  18. <view class="lf-font-24" style="color:#FF9D9D">{{ minute >= 10 ? minute : "0" + minute }}</view>
  19. <view class="lf-font-24" style="color:#FF9D9D">:</view>
  20. <view class="lf-font-24" style="color:#FF9D9D">{{ second >= 10 ? second : "0" + second }}</view>
  21. </view>
  22. </template>
  23. </countdown-timer>
  24. </view>
  25. <view>
  26. <button class="confirmcash-btn">确认</button>
  27. </view>
  28. </view>
  29. </view>
  30. </view>
  31. </template>
  32. <script>
  33. import countdownTimer from '@/components/countdown-timer/countdown-timer';
  34. export default {
  35. data() {
  36. return {
  37. time: new Date('2021/09/8 14:15:00').getTime() - new Date('2021/09/8 14:10:00').getTime()
  38. }
  39. },
  40. components: {
  41. countdownTimer
  42. },
  43. methods: {
  44. dateFinish(){
  45. console.log("倒计时结束");
  46. },
  47. }
  48. }
  49. </script>
  50. <style>
  51. page {
  52. background-color: #F8F8F8;
  53. }
  54. </style>
  55. <style scoped lang="scss">
  56. .confirmcash-btn {
  57. width: 550rpx;
  58. height: 100rpx;
  59. background: #15716E;
  60. border-radius: 50rpx;
  61. display: flex;
  62. justify-content: center;
  63. font-size: 32rpx;
  64. color: white;
  65. align-items: center;
  66. }
  67. .confirm-card {
  68. padding: 30rpx 0;
  69. width: 686rpx;
  70. height: 475rpx;
  71. background: #FFFFFF;
  72. border-radius: 20rpx;
  73. display: flex;
  74. justify-content: space-around;
  75. align-items: center;
  76. flex-direction: column;
  77. }
  78. </style>