百富门答题小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
1.3 KiB

2 weeks ago
  1. <template>
  2. <view class="home">
  3. <image src="/static/image/bg/1.png"
  4. class="page-bg"
  5. mode="aspectFill"></image>
  6. <view class="content_now">
  7. <view class="article">
  8. <uv-parse :content="articleList[index].details"></uv-parse>
  9. </view>
  10. </view>
  11. <view class="an">
  12. <view class="btn2"
  13. @click="next">
  14. 下一页
  15. </view>
  16. <text class="second-color">{{ configList.bg_title }}</text>
  17. </view>
  18. </view>
  19. </template>
  20. <script>
  21. import { mapState } from 'vuex'
  22. export default {
  23. computed : {
  24. ...mapState(['articleList', 'configList']),
  25. },
  26. data() {
  27. return {
  28. index : 0,
  29. }
  30. },
  31. methods: {
  32. next(){
  33. if(this.index == this.articleList.length - 1){
  34. this.$store.commit('getQueryMyLog')
  35. // uni.navigateTo({
  36. // url: '/pages/index/home'
  37. // })
  38. }else{
  39. this.index++
  40. }
  41. },
  42. }
  43. }
  44. </script>
  45. <style lang="scss" scoped>
  46. .article{
  47. width: 600rpx;
  48. font-size: 28rpx;
  49. line-height: 50rpx;
  50. }
  51. .an{
  52. position: fixed;
  53. bottom: 330rpx;
  54. text-align: center;
  55. display: flex;
  56. flex-direction: column;
  57. align-items: center;
  58. width: 100%;
  59. }
  60. .second-color{
  61. margin-top: 20rpx;
  62. }
  63. .btn2 {
  64. border: 4rpx solid $uni-color;
  65. display: flex;
  66. align-items: center;
  67. justify-content: center;
  68. padding: 16rpx 200rpx;
  69. color: $uni-color;
  70. border-radius: 10rpx;
  71. }
  72. </style>