index.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. <template>
  2. <view>
  3. <view style="width: 100%;text-align: center;position: fixed;height: 96rpx;z-index: 999;">
  4. <u-tabs :list="list" sticky :current="current" @change="change" active-color="#007AFF"></u-tabs>
  5. </view>
  6. <view style="position: absolute;top: 96rpx;width: 100%;">
  7. <view v-show="current==0">
  8. <view v-for="(item, index) in list1" style="padding: 20rpx;">
  9. <view class="item">
  10. <view style="display: flex;justify-content: space-between;align-items: center;height: 50rpx;" @click="openPopup(index)">
  11. <view style="color: #666666;font-size: 24rpx;">订单编号:2018031903</view>
  12. <view style="color: #999999;font-size: 24rpx;">2021-10-20</view>
  13. </view>
  14. <u-line color="#D6D6DB" />
  15. <view style="display: flex;justify-content: space-between;padding: 25rpx 0;">
  16. <image src="/static/login_bg.jpg" style="height: 134rpx;width: 388rpx;border-radius: 16rpx;"></image>
  17. <view style="margin-left: 20rpx;">
  18. <view style="color: #333333;font-size: 30rpx;font-weight: bold;">
  19. 2020年二建建筑工程管理与实
  20. 务(实务专题班)
  21. </view>
  22. <view class="priceTag">
  23. ¥ 999.00
  24. </view>
  25. </view>
  26. </view>
  27. <u-line color="#D6D6DB" />
  28. <view style="display: flex;flex-direction: row-reverse;align-items: center;height: 50rpx;margin-top: 10rpx;" >
  29. <view class="btn2">继续支付</view>
  30. <view class="btn1">取消订单</view>
  31. </view>
  32. </view>
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. </template>
  38. <script>
  39. import { mapGetters } from 'vuex';
  40. export default {
  41. components: {
  42. },
  43. data() {
  44. return {
  45. list: [
  46. {
  47. name: '待支付'
  48. },
  49. {
  50. name: '已支付'
  51. },
  52. {
  53. name: '已取消'
  54. }
  55. ],
  56. list1:[1,2,3,4,5,6,7],
  57. current: 0
  58. };
  59. },
  60. onPullDownRefresh(){
  61. },
  62. onLoad(option) {
  63. },
  64. onShow() {
  65. /* if(this.current === 2 && this.$method.isLogin()){
  66. this.$refs.refMy.init();
  67. } */
  68. },
  69. onShareAppMessage(res) {
  70. var self = this;
  71. return {
  72. title: '中正',
  73. path: `/pages/index/index?inviteCode=` + userInfo == null ? '' : userInfo.userAccount
  74. };
  75. },
  76. methods: {
  77. change(index){
  78. this.current = index;
  79. }
  80. },
  81. onReachBottom() {},
  82. computed: { ...mapGetters(['userInfo']) }
  83. };
  84. </script>
  85. <style >
  86. page {
  87. background: #EAEEF1;
  88. }
  89. </style>
  90. <style scoped>
  91. .btn2{
  92. width: 144rpx;
  93. height: 48rpx;
  94. background: #FFFFFF;
  95. border: 2rpx solid #007AFF;
  96. border-radius: 16rpx;
  97. text-align: center;
  98. line-height: 48rpx;
  99. color: #007AFF;
  100. margin: 0 8rpx;
  101. }
  102. .btn1{
  103. width: 144rpx;
  104. height: 48rpx;
  105. background: #FFFFFF;
  106. border: 2rpx solid #999999;
  107. border-radius: 16rpx;
  108. text-align: center;
  109. line-height: 48rpx;
  110. color: #999999;
  111. margin: 0 8rpx;
  112. }
  113. .item{
  114. width: 100%;
  115. background: #FFFFFF;
  116. border-radius: 16rpx;
  117. margin-bottom: 20rpx;
  118. padding: 15rpx;
  119. }
  120. .priceTag{
  121. font-size: 30rpx;
  122. font-family: PingFang SC;
  123. font-weight: bold;
  124. color: #FF2D55;
  125. display: flex;
  126. flex-direction: row-reverse;
  127. }
  128. .bottomBox{
  129. position: fixed;
  130. bottom: 0;
  131. width: 100%;
  132. left: 0;
  133. height:98rpx ;
  134. background-color: #FFFFFF;
  135. display: flex;
  136. justify-content: space-between;
  137. align-items: center;
  138. padding: 0 30rpx;
  139. }
  140. </style>