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

125 lines
2.2 KiB

3 weeks ago
  1. <template>
  2. <view class="home">
  3. <image src="/static/image/bg/bg1x2.png"
  4. class="page-bg"
  5. mode="aspectFill"></image>
  6. <view class="content_now">
  7. <view class="article">
  8. <uv-parse :content="configList.introduce"></uv-parse>
  9. </view>
  10. </view>
  11. <view class="an">
  12. <view class="btn2"
  13. @click="start">
  14. 开始
  15. </view>
  16. <view class="logo-list">
  17. <view class="logoo-item"
  18. :key="index"
  19. v-for="(item, index) in list">
  20. <image :src="item.image" mode="aspectFill"></image>
  21. <view class="btn"
  22. @click="toBrand(item.id)">
  23. 点击进入
  24. </view>
  25. </view>
  26. </view>
  27. <text class="second-color">{{ configList.bg_title }}</text>
  28. </view>
  29. </view>
  30. </template>
  31. <script>
  32. import { mapState } from 'vuex'
  33. export default {
  34. computed : {
  35. ...mapState(['articleList', 'configList']),
  36. },
  37. data() {
  38. return {
  39. key : 'cancel_value',
  40. list : [],
  41. }
  42. },
  43. onLoad(args) {
  44. this.getBrand()
  45. },
  46. methods: {
  47. next(){
  48. },
  49. start(){
  50. uni.navigateTo({
  51. url: '/pages/index/article'
  52. })
  53. },
  54. getBrand(){
  55. this.$api('getBrand', res => {
  56. if(res.code == 200){
  57. this.list = res.result
  58. }
  59. })
  60. },
  61. toBrand(id){
  62. uni.navigateTo({
  63. url: '/pages/index/logoInfo?id=' + id
  64. })
  65. },
  66. }
  67. }
  68. </script>
  69. <style lang="scss" scoped>
  70. .article{
  71. width: 600rpx;
  72. font-size: 28rpx;
  73. line-height: 50rpx;
  74. }
  75. .an{
  76. position: fixed;
  77. bottom: 190rpx;
  78. text-align: center;
  79. display: flex;
  80. flex-direction: column;
  81. align-items: center;
  82. width: 100%;
  83. }
  84. .second-color{
  85. margin-top: 20rpx;
  86. }
  87. .btn2 {
  88. border: 4rpx solid $uni-color;
  89. display: flex;
  90. align-items: center;
  91. justify-content: center;
  92. padding: 16rpx 200rpx;
  93. color: $uni-color;
  94. border-radius: 10rpx;
  95. }
  96. .logo-list{
  97. display: flex;
  98. gap: 30rpx;
  99. margin-top: 20rpx;
  100. image{
  101. width: 160rpx;
  102. height: 90rpx;
  103. }
  104. .logoo-item{
  105. background-color: rgba(236, 184, 100, 0.1);
  106. border: 1rpx solid rgba(236, 184, 100, 0.4);
  107. padding: 10rpx 20rpx;
  108. border-radius: 10rpx;
  109. .btn{
  110. font-size: 20rpx;
  111. color: #fff;
  112. background-color: rgba(236, 184, 100, 1);
  113. border-radius: 30rpx;
  114. padding: 4rpx 14rpx;
  115. }
  116. }
  117. }
  118. </style>