activityDetail.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. <template>
  2. <view>
  3. <u-navbar title="活动详情"></u-navbar>
  4. <view class="main" v-html="info.content">
  5. </view>
  6. <view class="bottom2" v-if="info.status=='77d93870-e1e1-4369-b2b6-629e8645e8d9'" >
  7. <u-button type="info">活动已过期</u-button>
  8. </view>
  9. <view class="bottom" v-else @click="gotoUrl('pages/mine/issue?id='+info.id)" >
  10. <button>发布作品</button>
  11. <!-- <u-button type="info">发布作品</u-button> -->
  12. </view>
  13. </view>
  14. </template>
  15. <script>
  16. import * as API from '@/apis/pagejs/activity.js'
  17. export default {
  18. data() {
  19. return {
  20. id:'',
  21. info:{},
  22. }
  23. },
  24. onLoad(op){
  25. if(op.id){
  26. this.id=op.id
  27. this.getInfo()
  28. }
  29. },
  30. methods: {
  31. getInfo(){
  32. uni.showLoading({
  33. title: "加载中",
  34. mask: true,
  35. })
  36. API.edit(this.id).then((res) => {
  37. uni.hideLoading();
  38. //this.list=response.data.data
  39. this.info=res.data;
  40. }).catch(error => {
  41. uni.showToast({
  42. title: error,
  43. icon: "none"
  44. })
  45. })
  46. },
  47. }
  48. }
  49. </script>
  50. <style lang="scss" scoped>
  51. page{
  52. padding-bottom: 100px;
  53. }
  54. .main{
  55. margin: 24rpx 32rpx 0 32rpx;
  56. // 活动介绍
  57. .introduction{
  58. margin-top: 24rpx;
  59. font-family: 'Regular';
  60. .title{
  61. color: rgba(16, 16, 16, 1);
  62. font-size: 18px;
  63. line-height: 26px;
  64. }
  65. .content{
  66. color: rgba(51, 51, 51, 1);
  67. line-height: 24px;
  68. margin-top: 16rpx;
  69. }
  70. }
  71. // 活动时间
  72. .date{
  73. font-family: 'Regular';
  74. margin-top: 32rpx;
  75. .title{
  76. color: rgba(16, 16, 16, 1);
  77. font-size: 18px;
  78. line-height: 26px;
  79. }
  80. .item{
  81. margin-top:16rpx;
  82. display: flex;
  83. color: rgba(51, 51, 51, 1);
  84. line-height: 20px;
  85. .item-title{
  86. margin-right: 24rpx;
  87. }
  88. .name{
  89. width: 100rpx;
  90. }
  91. }
  92. }
  93. }
  94. // 积分获取
  95. .integral{
  96. margin-top: 32rpx;
  97. .title{
  98. color: rgba(16, 16, 16, 1);
  99. font-size: 18px;
  100. line-height: 26px;
  101. font-family: 'Regular';
  102. }
  103. .integral-group{
  104. margin-top: 24rpx;
  105. background-color: #fff;
  106. .item{
  107. display: flex;
  108. justify-content: space-between;
  109. line-height: 44px;
  110. padding-left: 16rpx;
  111. color: rgba(51, 51, 51, 1);
  112. font-size: 16px;
  113. border-bottom: solid 1px #e6e6e6;
  114. font-size: 14rpx;
  115. .value{
  116. width: 170rpx;
  117. text-align: center;
  118. }
  119. }
  120. .item1{
  121. color: rgba(16, 16, 16, 1);
  122. font-size: 16px;
  123. }
  124. }
  125. }
  126. .bottom{
  127. padding: 16rpx 32rpx;
  128. background-color: #fff;
  129. position: fixed;
  130. bottom: 0;
  131. left: 0;
  132. right: 0;
  133. font-family: Arial;
  134. uni-button{
  135. border-radius: 8px;
  136. background-color: rgba(31, 74, 153, 1);
  137. color: rgba(255, 255, 255, 1);
  138. font-size: 16px;
  139. line-height: 40px;
  140. }
  141. }
  142. .bottom2{
  143. padding: 16rpx 32rpx;
  144. background-color: rgba(243, 244, 244, 1);
  145. position: fixed;
  146. bottom: 0;
  147. left: 0;
  148. right: 0;
  149. uni-button{
  150. border-radius: 8px;
  151. background-color: rgba(255, 255, 255, 1);
  152. color: #303133;
  153. font-size: 16px;
  154. line-height: 40px;
  155. }
  156. }
  157. </style>