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

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