ti-pay-way.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <template>
  2. <view>
  3. <tui-bottom-popup :show="show" @close="close">
  4. <tui-list-cell :hover="false">
  5. <view class="tui-pay-item__title">
  6. <view>请选择支付方式</view>
  7. <view>支付金额:<text class="tui-pay-amuont">¥100.00</text></view>
  8. </view>
  9. </tui-list-cell>
  10. <radio-group>
  11. <tui-list-cell unlined :hover="false">
  12. <label class="tui-pay-item">
  13. <image src="/static/images/mall/pay/icon_pay_balance.png" class="tui-pay-logo"></image>
  14. <text>余额支付(余额0,余额不足)</text>
  15. <view class="tui-radio" v-if="false">
  16. <radio color="#EB0909" name="pay"></radio>
  17. </view>
  18. <view class="tui-recharge">去充值</view>
  19. </label>
  20. </tui-list-cell>
  21. <tui-list-cell unlined>
  22. <label class="tui-pay-item">
  23. <image src="/static/images/mall/pay/icon_pay_weixin.png" class="tui-pay-logo"></image>
  24. <text>微信支付</text>
  25. <view class="tui-radio">
  26. <radio color="#EB0909" name="pay"></radio>
  27. </view>
  28. </label>
  29. </tui-list-cell>
  30. <tui-list-cell unlined>
  31. <label class="tui-pay-item">
  32. <image src="/static/images/mall/pay/icon_pay_zhifubao.png" class="tui-pay-logo"></image>
  33. <text>支付宝支付</text>
  34. <view class="tui-radio">
  35. <radio color="#EB0909" name="pay"></radio>
  36. </view>
  37. </label>
  38. </tui-list-cell>
  39. </radio-group>
  40. <view class="tui-btn-pay">
  41. <tui-button height="88rpx" type="danger" shape="circle" shadow @click="btnPay">去付款</tui-button>
  42. </view>
  43. </tui-bottom-popup>
  44. </view>
  45. </template>
  46. <script>
  47. export default {
  48. name: 'tPayWay',
  49. props: {
  50. //控制显示
  51. show: {
  52. type: Boolean,
  53. default: false
  54. },
  55. page:{
  56. type:Number,
  57. default:1
  58. }
  59. },
  60. data() {
  61. return {
  62. };
  63. },
  64. methods: {
  65. close() {
  66. this.$emit("close",{})
  67. },
  68. btnPay(){
  69. this.close();
  70. this.tui.href("/pages/template/mall/success/success")
  71. }
  72. }
  73. }
  74. </script>
  75. <style scoped>
  76. .tui-pay-item__title {
  77. width: 100%;
  78. height: 90rpx;
  79. display: flex;
  80. align-items: center;
  81. justify-content: space-between;
  82. padding: 0 20rpx;
  83. box-sizing: border-box;
  84. font-size: 28rpx;
  85. }
  86. .tui-pay-amuont {
  87. color: #eb0909;
  88. font-weight: 500;
  89. font-size: 34rpx;
  90. }
  91. .tui-pay-item {
  92. width: 100%;
  93. height: 80rpx;
  94. display: flex;
  95. align-items: center;
  96. padding: 0 20rpx;
  97. box-sizing: border-box;
  98. font-size: 28rpx;
  99. }
  100. .tui-pay-logo {
  101. width: 48rpx;
  102. height: 48rpx;
  103. margin-right: 15rpx;
  104. }
  105. .tui-radio {
  106. margin-left: auto;
  107. transform: scale(0.8);
  108. transform-origin: 100% center;
  109. }
  110. .tui-btn-pay {
  111. width: 100%;
  112. padding: 68rpx 35rpx 50rpx 35rpx;
  113. box-sizing: border-box;
  114. }
  115. .tui-recharge {
  116. color: #fc872d;
  117. margin-left: auto;
  118. padding: 12rpx 0;
  119. }
  120. </style>