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

133 lines
2.3 KiB

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