confirm_pay.vue 4.0 KB

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