addActivity.vue 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <template>
  2. <view class="box">
  3. <view class="imgBox">
  4. <image class="scimg" :src="img" mode="aspectFit"></image>
  5. </view>
  6. <view class="cont">
  7. <view class="name">活动名称展示区域</view>
  8. <view class="name2">活动时间展示区域</view>
  9. <view class="name3">这里展示活动说明,如果后台没填则不展示</view>
  10. </view>
  11. <view style="height: 98rpx;"></view>
  12. <view class="btn" @click="eadit">编辑内容</view>
  13. </view>
  14. </template>
  15. <script>
  16. export default {
  17. data() {
  18. return {
  19. img:'',
  20. }
  21. },
  22. onLoad(opt) {
  23. this.img=opt.img
  24. },
  25. methods: {
  26. eadit(){
  27. uni.navigateTo({
  28. url:'eadit?id='
  29. })
  30. }
  31. }
  32. }
  33. </script>
  34. <style scoped>
  35. .imgBox{
  36. width: 750rpx;
  37. background:#F4F5F7;
  38. }
  39. .scimg{
  40. width: 750rpx;
  41. display: block;
  42. }
  43. .cont{
  44. background: #ffffff;
  45. border-radius: 24rpx 24rpx 0px 0px;
  46. margin-top: -30rpx;
  47. padding: 30rpx 24rpx;
  48. }
  49. .name{
  50. color: #3C3C3C;
  51. line-height: 42rpx;
  52. font-weight: 500;
  53. font-size: 30rpx;
  54. }
  55. .name2{
  56. color: #3C3C3C;
  57. line-height: 36rpx;
  58. font-weight: 400;
  59. font-size: 26rpx;
  60. padding-top: 16rpx;
  61. }
  62. .name3{
  63. color: #999999;
  64. line-height: 36rpx;
  65. font-weight: 400;
  66. font-size: 26rpx;
  67. padding-top: 16rpx;
  68. }
  69. .btn{
  70. width: 750rpx;
  71. height: 98rpx;
  72. background: #3F90F7;
  73. position: fixed;
  74. left: 0;
  75. bottom: 0;
  76. line-height: 98rpx;
  77. text-align: center;
  78. color: #ffffff;
  79. font-size: 30rpx;
  80. }
  81. </style>