payment.vue 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <template>
  2. <view style="padding: 30rpx;" >
  3. <view class="bd">
  4. <text class="font2">付款金额</text>
  5. <text class="font1">¥{{price}}</text>
  6. <view class="flex">
  7. <view class="flex_item">付款方式</view>
  8. <view>微信支付</view>
  9. </view>
  10. <button type="button" class="btn" @click="pay">立即支付</button>
  11. </view>
  12. </view>
  13. </template>
  14. <script>
  15. export default {
  16. data() {
  17. return {
  18. price:0.01
  19. }
  20. },
  21. onLoad(option) {
  22. },
  23. onShow(){
  24. },
  25. methods: {
  26. pay(){
  27. }
  28. },
  29. }
  30. </script>
  31. <style scope>
  32. page {
  33. background: #f3f3f3;
  34. font-size: 28rpx;
  35. }
  36. .flex {
  37. display: flex;
  38. align-items: center;
  39. }
  40. .flex_item {
  41. flex: 1;
  42. }
  43. .container {
  44. padding: 30rpx;
  45. }
  46. .container .bd {
  47. background: #fff;
  48. border-radius: 10rpx;
  49. padding: 100rpx 30rpx 50rpx;
  50. }
  51. .container .bd .font1 {
  52. display: block;
  53. text-align: center;
  54. font-size: 88rpx;
  55. }
  56. .container .bd .font2 {
  57. display: block;
  58. text-align: center;
  59. font-size: 30rpx;
  60. margin: 30rpx 0 60rpx;
  61. color: #525252;
  62. }
  63. .container .bd .flex {
  64. border-bottom: 1px solid #eee;
  65. padding: 30rpx 0;
  66. margin-bottom: 30rpx;
  67. }
  68. .container .bd .btn {
  69. color: #fff;
  70. font-size: 28rpx;
  71. padding: 10rpx 0;
  72. background: #eb3b2f;
  73. }
  74. </style>