confirm_pay.vue 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. <template>
  2. <view>
  3. <view>
  4. <view style="padding: 30rpx;">
  5. <view class="box1">
  6. <view class="box1_t1">
  7. <u-icon name="checkmark-circle" color="#34C759" size="32"></u-icon><text style="margin-left: 8rpx;">订单提交成功,请您尽快付款!</text></view>
  8. <view class="box1_t2">请在24小时内付款,否则订单将自动取消</view>
  9. </view>
  10. <view class="box2">
  11. <view class="title2">支付信息</view>
  12. <u-line color="#D6D6DB" />
  13. <view style="padding:10rpx 30rpx;">
  14. <view class="list_item">
  15. <view class="txt_left">商品名称</view>
  16. <view class="txt_right">2020年二建建筑工程管理与实务(实务专题班)</view>
  17. </view>
  18. <view class="list_item">
  19. <view class="txt_left">应付金额</view>
  20. <view class="txt_right_price">¥ 999.00</view>
  21. </view>
  22. <view class="list_item">
  23. <view class="txt_left">订单编号</view>
  24. <view class="txt_right_sn">20211013105634GZ</view>
  25. </view>
  26. <view class="tip">*您可在“我的>我的订单”中查询</view>
  27. </view>
  28. </view>
  29. <view class="box3">
  30. <view class="title2">支付信息</view>
  31. <u-line color="#D6D6DB" />
  32. <view style="padding:20rpx 30rpx;">
  33. <u-radio-group v-model="value" @change="radioGroupChange">
  34. <view class="list_item">
  35. <view class="txt_left_pay"><image src="/static/wepay.png" class="pay_icon"></image>微信支付</view>
  36. <view ><u-radio @change="radioChange" name="wepay"></u-radio></view>
  37. </view>
  38. <view class="list_item">
  39. <view class="txt_left_pay"><image src="/static/unipay.png" class="pay_icon"></image>云闪付</view>
  40. <view ><u-radio @change="radioChange" name="unipay"></u-radio></view>
  41. </view>
  42. </u-radio-group>
  43. </view>
  44. </view>
  45. </view>
  46. </view>
  47. <view class="bottomBtn" @click="pay()">确认支付</view>
  48. </view>
  49. </template>
  50. <script>
  51. import { mapGetters } from 'vuex';
  52. export default {
  53. components: {
  54. },
  55. data() {
  56. return {
  57. list:[
  58. {
  59. name: '网课'
  60. },
  61. {
  62. name: '题库通'
  63. }
  64. ],
  65. array:['全部','建设工程施工管理','机电全科','机电工程管理与实','机电全科','全科'],
  66. current:0,
  67. menuIndex:0
  68. };
  69. },
  70. onPullDownRefresh(){
  71. },
  72. onLoad(option) {
  73. },
  74. onShow() {
  75. /* if(this.current === 2 && this.$method.isLogin()){
  76. this.$refs.refMy.init();
  77. } */
  78. },
  79. methods: {
  80. pay(){
  81. this.$navTo.togo('/pages2/order/confirm_success');
  82. },
  83. radioChange(e) {
  84. // console.log(e);
  85. },
  86. // 选中任一radio时,由radio-group触发
  87. radioGroupChange(e) {
  88. // console.log(e);
  89. },
  90. cMenu(index){
  91. this.menuIndex = index;
  92. },
  93. change(index){
  94. this.current = index;
  95. }
  96. },
  97. onReachBottom() {},
  98. computed: { ...mapGetters(['userInfo']) }
  99. };
  100. </script>
  101. <style >
  102. ::-webkit-scrollbar{
  103. width: 0;
  104. height: 0;
  105. color: transparent
  106. }
  107. page{
  108. background-color: #EAEEF1;
  109. }
  110. </style>
  111. <style scoped>
  112. .txt_left_pay{
  113. display: flex;
  114. align-items: center;
  115. height: 64rpx;
  116. font-size: 24rpx;
  117. color: #666666;
  118. }
  119. .pay_icon{
  120. width: 64rpx;
  121. height: 64rpx;
  122. margin-right: 10rpx;
  123. }
  124. .box3{
  125. width: 100%;
  126. background: #FFFFFF;
  127. border-radius: 16rpx;
  128. margin-top: 30rpx;
  129. }
  130. .tip{
  131. font-size: 24rpx;
  132. color: #999999;
  133. height: 40rpx;
  134. line-height: 40rpx;
  135. }
  136. .txt_right_sn{
  137. font-size: 30rpx;
  138. font-weight: bold;
  139. color: #666666;
  140. }
  141. .txt_right_price{
  142. font-size: 30rpx;
  143. font-weight: bold;
  144. color: #FF2D55;
  145. }
  146. .txt_left{
  147. font-size: 24rpx;
  148. color: #666666;
  149. }
  150. .txt_right{
  151. color: #333333;
  152. font-weight: bold;
  153. width: 75%;
  154. }
  155. .list_item{
  156. display: flex;
  157. justify-content: space-between;
  158. height: 90rpx;
  159. align-items: center;
  160. }
  161. .title2{
  162. font-size: 30rpx;
  163. font-weight: bold;
  164. color: #333333;
  165. height: 90rpx;
  166. line-height: 90rpx;
  167. margin-left: 30rpx;
  168. }
  169. .box2{
  170. width: 100%;
  171. background: #FFFFFF;
  172. border-radius: 16rpx;
  173. margin-top: 30rpx;
  174. }
  175. .box1_t2{
  176. font-size: 24rpx;
  177. color: #999999;
  178. text-align: center;
  179. }
  180. .box1_t1{
  181. font-size: 30rpx;
  182. font-weight: bold;
  183. color: #333333;
  184. height: 70rpx;
  185. display: flex;
  186. align-items: center;
  187. justify-content: center;
  188. }
  189. .box1{
  190. width: 100%;
  191. height: 120rpx;
  192. background: #FFFFFF;
  193. border-radius: 16rpx;
  194. }
  195. .bottomBtn{
  196. position: fixed;
  197. bottom: 0;
  198. width: 100%;
  199. height: 98rpx;
  200. background: linear-gradient(0deg, #015EEA, #00C0FA);
  201. color: #FFFFFF;
  202. text-align: center;
  203. line-height: 98rpx;
  204. font-weight: bold;
  205. font-size: 30rpx;
  206. }
  207. </style>