百富门答题小程序
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.

168 lines
2.7 KiB

3 months ago
2 weeks ago
3 months ago
2 weeks ago
3 months ago
2 weeks ago
3 months ago
2 weeks ago
3 months ago
2 weeks ago
3 months ago
2 weeks ago
3 months ago
2 weeks ago
3 months ago
2 weeks ago
3 months ago
2 weeks ago
3 months ago
2 weeks ago
3 months ago
2 weeks ago
3 months ago
2 weeks ago
  1. <template>
  2. <view class="page">
  3. <image :src="configList.img_13"
  4. class="page-bg"
  5. mode="aspectFill"></image>
  6. <image :src="configList.img_7"
  7. class="logo"
  8. mode="widthFix"></image>
  9. <!-- next1 -->
  10. <view class="content">
  11. <image :src="configList.img_11"
  12. class="content-bg"
  13. mode="aspectFill"></image>
  14. <view class="article">
  15. <uv-parse :content="articleList[index].details"></uv-parse>
  16. </view>
  17. </view>
  18. <view class="an">
  19. <view style="display: flex;gap: 30rpx;"
  20. >
  21. <!-- <view class="next-btn-2"
  22. v-if="index > 0"
  23. @click="ret">
  24. 上一题
  25. </view> -->
  26. <view class="next-btn"
  27. @click="next">
  28. 下一页
  29. </view>
  30. </view>
  31. <text class="second-color">{{ configList.bg_title }}</text>
  32. </view>
  33. </view>
  34. </template>
  35. <script>
  36. import { mapState } from 'vuex'
  37. export default {
  38. data() {
  39. return {
  40. index : 0,
  41. }
  42. },
  43. computed : {
  44. ...mapState(['articleList', 'configList']),
  45. },
  46. onLoad() {
  47. },
  48. onShow() {
  49. },
  50. methods: {
  51. next(){
  52. if(this.index == this.articleList.length - 1){
  53. uni.navigateTo({
  54. url: '/pages/index/preAppoint'
  55. })
  56. }else{
  57. this.index++
  58. }
  59. },
  60. }
  61. }
  62. </script>
  63. <style lang="scss" scoped>
  64. .page{
  65. .logo{
  66. width: 600rpx;
  67. margin: 150rpx 75rpx;
  68. }
  69. .content{
  70. position: relative;
  71. display: flex;
  72. flex-direction: column;
  73. align-items: center;
  74. justify-content: center;
  75. box-sizing: border-box;
  76. padding: 0 60rpx;
  77. text-align: center;
  78. width: 700rpx;
  79. height: 650rpx;
  80. margin: 0 25rpx;
  81. z-index: 999;
  82. .content-bg{
  83. height: 100%;
  84. width: 100%;
  85. position: absolute;
  86. top: 0;
  87. left: 0;
  88. z-index: -1;
  89. }
  90. }
  91. }
  92. .region{
  93. display: flex;
  94. align-items: center;
  95. &>view{
  96. width: 140rpx;
  97. height: 50rpx;
  98. border-radius: 10rpx;
  99. border: 1px solid #e6bf7f;
  100. margin: 0 10rpx;
  101. line-height: 50rpx;
  102. text-align: center;
  103. }
  104. }
  105. .b-btn{
  106. width: 86%;
  107. display: flex;
  108. justify-content: center;
  109. padding-top: 130rpx;
  110. .pre-btn{
  111. border: 4rpx solid #f1e0c6;
  112. padding: 16rpx 90rpx;
  113. border-radius: 66rpx;
  114. color: #e6bf7f;
  115. }
  116. }
  117. .next-btn{
  118. width: 120rpx;
  119. display: flex;
  120. align-items: center;
  121. justify-content: center;
  122. color: white;
  123. padding: 16rpx 90rpx;
  124. background-color: $uni-color;
  125. border-radius: 30rpx;
  126. }
  127. .next-btn-2{
  128. width: 120rpx;
  129. display: flex;
  130. align-items: center;
  131. justify-content: center;
  132. color: white;
  133. padding: 16rpx 90rpx;
  134. background-color: $uni-color-primary;
  135. border-radius: 30rpx;
  136. }
  137. .an{
  138. position: fixed;
  139. bottom: 300rpx;
  140. text-align: center;
  141. display: flex;
  142. flex-direction: column;
  143. align-items: center;
  144. justify-content: center;
  145. width: 100%;
  146. }
  147. .second-color{
  148. margin-top: 20rpx;
  149. }
  150. </style>