兼兼街公众号代码
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.

124 lines
2.3 KiB

  1. <template>
  2. <view>
  3. <view class="active-card">
  4. <u--image :showLoading="true" :src="dataInfo.photo" width="100%" height="314rpx"></u--image>
  5. <view class="active-title">{{dataInfo.title}}</view>
  6. <view class="active-time">
  7. <!-- <u-icon size="40" name="https://cdn.uviewui.com/uview/example/button.png"></u-icon> -->
  8. <text>{{dataInfo.activityTime}}</text>
  9. </view>
  10. <view class="active-add">
  11. <text>{{dataInfo.place}}</text>
  12. </view>
  13. <view class="active-menu">
  14. <view class="menu-price">
  15. <text class="unit"></text>
  16. <text>{{dataInfo.money}}</text>
  17. </view>
  18. </view>
  19. </view>
  20. <view class="contnet">
  21. <u-parse :content="dataInfo.details"></u-parse>
  22. </view>
  23. </view>
  24. </template>
  25. <script>
  26. export default{
  27. data(){
  28. return{
  29. fromPage:null,
  30. dataInfo:{},
  31. id:'',
  32. src: '', //require('@/static/img/course-img.png'),
  33. baomingStyle: {
  34. fontSize:"30rpx",
  35. fontWeight:"700",
  36. height: "100rpx"
  37. }
  38. }
  39. },
  40. onLoad(e) {
  41. this.getactivityFindById('1584923974407417857');
  42. },
  43. // 隐藏微信h5的标题栏
  44. onReady() {
  45. this.$com.displayNav()
  46. },
  47. methods:{
  48. getactivityFindById(id){
  49. uni.showLoading()
  50. this.$api('activityFindById',{id})
  51. .then(res=>{
  52. uni.hideLoading()
  53. if(res.code == 200){
  54. this.dataInfo = res.result;
  55. }
  56. })
  57. }
  58. }
  59. }
  60. </script>
  61. <style lang="scss" scoped>
  62. .active-card {
  63. background: #ffffff;
  64. padding: 20rpx 29rpx 13rpx;
  65. border-bottom: 20rpx solid #F5F5F5;
  66. .active-title {
  67. font-size: 30rpx;
  68. color: #000;
  69. font-weight: 700;
  70. margin-top: 20rpx;
  71. line-height: 40rpx;
  72. }
  73. .active-time {
  74. color: #707070;
  75. font-size: 26rpx;
  76. margin: 20rpx 0;
  77. }
  78. .active-add {
  79. color: #707070;
  80. font-size: 26rpx;
  81. }
  82. .active-menu {
  83. margin-top: 21rpx;
  84. padding: 0 10rpx;
  85. .menu-price {
  86. font-weight: 700;
  87. font-size: 40rpx;
  88. color: #D33D3E;
  89. .unit {
  90. font-size: 30rpx;
  91. }
  92. }
  93. .menu-btn {
  94. width: 213rpx;
  95. height: 79rpx;
  96. display: flex;
  97. align-items: center;
  98. justify-content: center;
  99. background-color: #ED1450;
  100. color: #FFFFFF;
  101. font-size: 26rpx;
  102. border-radius: 40rpx;
  103. }
  104. }
  105. }
  106. .contnet {
  107. padding: 20rpx 20rpx 100rpx;
  108. }
  109. .btn-box {
  110. position: fixed;
  111. bottom: 0;
  112. left: 0;
  113. right: 0;
  114. }
  115. </style>