pay.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <template>
  2. <view>
  3. <!--标题栏-->
  4. <bar-title bgColor='bg-white'>
  5. <block slot="content">立即支付</block>
  6. </bar-title>
  7. <!--商品信息-->
  8. <view class="bg-white zaiui-goods-details-box">
  9. <view class="cu-avatar radius" :style="[{backgroundImage:'url('+ goods_img +')'}]"/>
  10. <view class="goods-info-view">
  11. <view class="text-cut text-black">商品名称 99新 苹果 iPhoneX 256G 银色</view>
  12. <view class="text-sm text-gray">测试内容1</view>
  13. <view class="text-sm text-gray">测试内容2</view>
  14. <text class="text-price text-red text-lg">2999.00</text>
  15. </view>
  16. </view>
  17. <view class="text-gray padding-sm">支付方式</view>
  18. <!--支付方式-->
  19. <view class="bg-white zaiui-pay-view">
  20. <radio-group class="block" @change="RadioChange">
  21. <view class="zaiui-pay-bar" @tap="payTap('wechat')">
  22. <view class="cu-avatar sm" style="background-image:url(/static/zaiui/img/wechat.png)"/>
  23. <view class="content">
  24. <view class="text-black">
  25. <text class="margin-right-sm">微信支付</text>
  26. <text class="cu-tag bg-red radius sm">推荐</text>
  27. </view>
  28. <view class="text-gray text-sm">亿万用户的选择,更快更安全</view>
  29. </view>
  30. <view class="action">
  31. <radio class="red zaiui-radio" :class="radio=='wechat'?'checked':''" :checked="radio=='wechat'?true:false" value="wechat"/>
  32. </view>
  33. </view>
  34. <view class="zaiui-pay-bar" @tap="payTap('alipay')">
  35. <view class="cu-avatar sm" style="background-image:url(/static/zaiui/img/alipay.png)"/>
  36. <view class="content">
  37. <view class="text-black">
  38. <text class="margin-right-sm">支付宝支付</text>
  39. <text class="cu-tag line-red radius sm">HOT</text>
  40. </view>
  41. <view class="text-gray text-sm">数亿用户都在用,安全可托付</view>
  42. </view>
  43. <view class="action">
  44. <radio class="red zaiui-radio" :class="radio=='alipay'?'checked':''" :checked="radio=='alipay'?true:false" value="alipay"/>
  45. </view>
  46. </view>
  47. </radio-group>
  48. </view>
  49. <!--提示信息-->
  50. <view class="text-gray padding-sm text-sm">
  51. 除平台自营外,应由卖方就所销售物品向买家出具发票等相关凭证。平台不代卖家承担任何责任。
  52. </view>
  53. <!--底部操作-->
  54. <view class="bg-white zaiui-footer-fixed zaiui-foot-padding-bottom">
  55. <view class="padding-sm flex flex-direction">
  56. <button class="cu-btn radius bg-red" @tap="payBtnTap">¥1 立即支付</button>
  57. </view>
  58. </view>
  59. </view>
  60. </template>
  61. <script>
  62. import barTitle from '@/components/zaiui-common/basics/bar-title';
  63. import _tool from '@/static/zaiui/util/tools.js'; //工具函数
  64. export default {
  65. components: {
  66. barTitle,
  67. },
  68. data() {
  69. return {
  70. goodsList: [], checkAll: true, goods_img: '/static/images/home/goods/1.png', radio: 'wechat',
  71. }
  72. },
  73. onLoad() {
  74. },
  75. onReady() {
  76. _tool.setBarColor(true);
  77. uni.pageScrollTo({
  78. scrollTop: 0,
  79. duration: 0
  80. });
  81. },
  82. methods: {
  83. RadioChange(e) {
  84. this.radio = e.detail.value;
  85. },
  86. payBtnTap() {
  87. uni.navigateTo({
  88. url: "/pages/status/pay_status"
  89. });
  90. },
  91. payTap(type) {
  92. this.radio = type;
  93. }
  94. }
  95. }
  96. </script>
  97. <style lang="scss">
  98. /* #ifdef APP-PLUS */
  99. @import "../../static/colorui/main.css";
  100. @import "../../static/colorui/icon.css";
  101. @import "../../static/zaiui/style/app.scss";
  102. /* #endif */
  103. @import "../../static/zaiui/style/pay.scss";
  104. </style>