addActivity.vue 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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.removeStorageSync('shopckList');
  28. uni.removeStorageSync('ckmusic');
  29. uni.navigateTo({
  30. url:'eadit?img='+this.img
  31. })
  32. }
  33. }
  34. }
  35. </script>
  36. <style scoped>
  37. .imgBox{
  38. width: 750rpx;
  39. background:#F4F5F7;
  40. }
  41. .scimg{
  42. width: 750rpx;
  43. display: block;
  44. }
  45. .cont{
  46. background: #ffffff;
  47. border-radius: 24rpx 24rpx 0px 0px;
  48. margin-top: -30rpx;
  49. padding: 30rpx 24rpx;
  50. }
  51. .name{
  52. color: #3C3C3C;
  53. line-height: 42rpx;
  54. font-weight: 500;
  55. font-size: 30rpx;
  56. }
  57. .name2{
  58. color: #3C3C3C;
  59. line-height: 36rpx;
  60. font-weight: 400;
  61. font-size: 26rpx;
  62. padding-top: 16rpx;
  63. }
  64. .name3{
  65. color: #999999;
  66. line-height: 36rpx;
  67. font-weight: 400;
  68. font-size: 26rpx;
  69. padding-top: 16rpx;
  70. }
  71. .btn{
  72. width: 750rpx;
  73. height: 98rpx;
  74. background: #3F90F7;
  75. position: fixed;
  76. left: 0;
  77. bottom: 0;
  78. line-height: 98rpx;
  79. text-align: center;
  80. color: #ffffff;
  81. font-size: 30rpx;
  82. }
  83. </style>