addActivity.vue 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <template>
  2. <view class="box">
  3. <view class="imgBox">
  4. <image class="scimg" :src="img" mode="widthFix"></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><!-- v-if="qxdata.indexOf('Q021')!=-1" -->
  13. </view>
  14. </template>
  15. <script>
  16. export default {
  17. data() {
  18. return {
  19. img:'',
  20. qxdata:'',
  21. }
  22. },
  23. onLoad(opt) {
  24. this.img=opt.img;
  25. let iOSInfo = JSON.parse(JSON.stringify(window.iOSInfo));
  26. var qxnum=uni.getStorageSync("quanxian");
  27. //if()
  28. //console.log(this.qxdata)
  29. },
  30. onShow() {
  31. },
  32. methods: {
  33. eadit(){
  34. uni.removeStorageSync('shopckList');
  35. uni.removeStorageSync('ckmusic');
  36. uni.navigateTo({
  37. url:'eadit?img='+this.img
  38. })
  39. }
  40. }
  41. }
  42. </script>
  43. <style scoped>
  44. .imgBox{
  45. width: 750rpx;
  46. }
  47. .scimg{
  48. width: 750rpx;
  49. display: block;
  50. }
  51. .cont{
  52. background: #ffffff;
  53. border-radius: 24rpx 24rpx 0px 0px;
  54. margin-top: -30rpx;
  55. padding: 30rpx 24rpx;
  56. position: relative;
  57. }
  58. .name{
  59. color: #3C3C3C;
  60. line-height: 42rpx;
  61. font-weight: 500;
  62. font-size: 30rpx;
  63. }
  64. .name2{
  65. color: #3C3C3C;
  66. line-height: 36rpx;
  67. font-weight: 400;
  68. font-size: 26rpx;
  69. padding-top: 16rpx;
  70. }
  71. .name3{
  72. color: #999999;
  73. line-height: 36rpx;
  74. font-weight: 400;
  75. font-size: 26rpx;
  76. padding-top: 16rpx;
  77. }
  78. .btn{
  79. width: 750rpx;
  80. height: 98rpx;
  81. background: #3F90F7;
  82. position: fixed;
  83. left: 0;
  84. bottom: 0;
  85. line-height: 98rpx;
  86. text-align: center;
  87. color: #ffffff;
  88. font-size: 30rpx;
  89. }
  90. </style>