artdetail.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <template>
  2. <view class="content" :class="['qn-page-' + theme]">
  3. <u-parse :html="content"></u-parse>
  4. </view>
  5. </template>
  6. <script>
  7. export default {
  8. data() {
  9. return {
  10. type: 2,
  11. content: ''
  12. }
  13. },
  14. onLoad(opt) {
  15. if(opt.type) {
  16. this.type = opt.type
  17. }
  18. this.getArtDetail()
  19. },
  20. onShow() {
  21. },
  22. onReachBottom() {
  23. },
  24. onReady() {
  25. },
  26. methods: {
  27. getArtDetail() {
  28. this.$u.api.getArtDetail({
  29. type: this.type
  30. }).then(({data})=> {
  31. this.content = data.content
  32. uni.setNavigationBarTitle({
  33. title: data.title
  34. })
  35. })
  36. }
  37. }
  38. }
  39. </script>
  40. <style lang="scss">
  41. .gq-list {
  42. display: flex;
  43. flex-wrap: wrap;
  44. justify-content: flex-start;
  45. // justify-content: space-between;
  46. padding: 20rpx 0 20rpx 20rpx;
  47. }
  48. .gq-item {
  49. margin: 0 0 20rpx 14rpx;
  50. width: 227rpx;
  51. height: 351rpx;
  52. background: #FFFFFF;
  53. box-shadow: 0px 5rpx 5rpx 0px rgba(35, 24, 21, 0.06);
  54. border-radius: 10rpx;
  55. display: flex;
  56. flex-direction: column;
  57. align-items: center;
  58. justify-content: space-between;
  59. padding: 30rpx 14rpx 20rpx;
  60. .gq-logo {
  61. width: 182rpx;
  62. height: 192rpx;
  63. display: flex;
  64. justify-content: center;
  65. align-items: center;
  66. image {
  67. width: 182rpx;
  68. height: 192rpx;
  69. background-color: #eee;
  70. }
  71. }
  72. .store-name {
  73. padding-top: 10rpx;
  74. text-align: center;
  75. width: 100%;
  76. font-size: 26rpx;
  77. font-weight: 500;
  78. color: #262261;
  79. overflow: hidden;
  80. }
  81. .info {
  82. width: 100%;
  83. display: flex;
  84. padding: 5rpx 0;
  85. .info-tit {
  86. font-size: 18rpx;
  87. flex-shrink: 0;
  88. }
  89. .info-val {
  90. text-align: center;
  91. font-size: 20rpx;
  92. width: 140rpx;
  93. border-bottom: 1px #C7C7C7 solid;
  94. }
  95. }
  96. }
  97. </style>