my_question.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <template>
  2. <view style="padding: 30rpx;">
  3. <view v-for="(item, index) in list" :key="index" style="margin-bottom: 30rpx;">
  4. <navigator hover-class="none" :url="'/pages2/bank/question_detail?id='+item.goodsId">
  5. <!-- <navigator hover-class="none" url="/pages2/bank/detail"> -->
  6. <view class="class_item">
  7. <image class="img" :src="$method.splitImgHost(item.coverUrl, true)"></image>
  8. <view style="color: #333333;font-weight: bold;font-size: 32rpx;">
  9. {{item.goodsName}}
  10. </view>
  11. <view class=".content_box">
  12. <image src="/static/icon/wk_icon2.png" class="wk_icon"></image>
  13. 学习有效期:<text class="content"> {{$method.timestampToTime(item.studyStartTime)}} - {{$method.timestampToTime(item.studyEndTime)}} </text>
  14. </view>
  15. </view>
  16. <!-- </navigator> -->
  17. <view class="bottomBox">
  18. <view style="color: #999999;font-size: 24rpx;">刷题进度:{{item.doNum}}/{{item.totalNum}}</view>
  19. <view class="box_progress">
  20. <view style="width: 60%;">
  21. <u-line-progress :show-percent="false" active-color="#007AFF" :percent="(item.doNum/item.totalNum)*100"></u-line-progress>
  22. </view>
  23. <view>
  24. <!-- <navigator hover-class="none" :url="'/pages2/bank/question_detail?id='+item.goodsId"> -->
  25. <view class="btn">进入刷题</view>
  26. <!-- </navigator> -->
  27. </view>
  28. </view>
  29. </view>
  30. </navigator>
  31. </view>
  32. </view>
  33. </template>
  34. <script>
  35. export default {
  36. data() {
  37. return {
  38. list:[]
  39. }
  40. },
  41. onLoad(option) {
  42. this.listGoodsUserQuestion();
  43. },
  44. onShow(){
  45. },
  46. methods: {
  47. listGoodsUserQuestion() {
  48. this.$api.listGoodsUserQuestion({
  49. }).then(res => {
  50. this.list = res.data.rows;
  51. })
  52. },
  53. studyIn(){
  54. this.$navTo.togo('/pages2/verify/input');
  55. },
  56. appointment(){
  57. this.$navTo.togo('/pages2/appointment/index');
  58. }
  59. },
  60. }
  61. </script>
  62. <style >
  63. page {
  64. background: #EAEEF1;
  65. }
  66. </style>
  67. <style lang="scss" scope>
  68. .box_progress{
  69. display: flex;
  70. justify-content:space-between;
  71. align-items: center;
  72. margin-top: 20rpx;
  73. .btn {
  74. width: 165rpx;
  75. height: 48rpx;
  76. background: #007AFF;
  77. border-radius: 16rpx;
  78. line-height: 48rpx;
  79. text-align: center;
  80. color:#fff;
  81. font-size: 30rpx;
  82. }
  83. }
  84. .bottomBox{
  85. background: #FFFFFF;
  86. width: 94%;
  87. border-bottom-left-radius: 24rpx;
  88. border-bottom-right-radius: 24rpx;
  89. margin: 0 auto;
  90. padding: 20rpx;
  91. }
  92. .content_box{
  93. display: flex;
  94. align-items: center;
  95. color: #999999;
  96. margin-top: 8rpx;
  97. }
  98. .content{
  99. color: #000000;
  100. margin: 0 8rpx;
  101. }
  102. .wk_icon{
  103. width: 24rpx;
  104. height: 24rpx;
  105. margin-right: 8rpx;
  106. }
  107. .class_item{
  108. width: 100%;
  109. height: 514rpx;
  110. background: #FFFFFF;
  111. box-shadow: 0rpx 10rpx 9rpx 1rpx rgba(165, 196, 239, 0.1);
  112. border-radius: 24rpx;
  113. padding: 20rpx;
  114. z-index: 999;
  115. position: relative;
  116. .img {
  117. width:100%;
  118. border-radius: 24rpx;
  119. height: 316rpx;
  120. }
  121. }
  122. </style>