addActivity.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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" v-if="iOSInfo.indexOf('Q021')!=-1||!iOSInfo">编辑内容</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. iOSInfo:'',
  22. }
  23. },
  24. onLoad(opt) {
  25. this.img=opt.img;
  26. let iOSInfo = JSON.parse(JSON.stringify(window.iOSInfo));
  27. /* var qxnum=uni.getStorageSync("quanxian");
  28. if(qxnum==1){
  29. this.iOSInfo = JSON.parse(JSON.stringify(window.iOSInfo));
  30. }else if(qxnum==2){
  31. window.getAndroid=this.getAndroid;
  32. } */
  33. this.getpermission()
  34. },
  35. onShow() {
  36. },
  37. methods: {
  38. getpermission(){
  39. this.$http('openH5ShopHelpSheetOrder/permission', {
  40. },'POST').then(res => {
  41. this.iOSInfo=res.data;
  42. })
  43. },
  44. getAndroid(e){
  45. this.iOSInfo=e
  46. },
  47. eadit(){
  48. uni.removeStorageSync('shopckList');
  49. uni.removeStorageSync('ckmusic');
  50. uni.navigateTo({
  51. url:'eadit?img='+this.img
  52. })
  53. }
  54. }
  55. }
  56. </script>
  57. <style scoped>
  58. .imgBox{
  59. width: 750rpx;
  60. }
  61. .scimg{
  62. width: 750rpx;
  63. display: block;
  64. }
  65. .cont{
  66. background: #ffffff;
  67. border-radius: 24rpx 24rpx 0px 0px;
  68. margin-top: -30rpx;
  69. padding: 30rpx 24rpx;
  70. position: relative;
  71. }
  72. .name{
  73. color: #3C3C3C;
  74. line-height: 42rpx;
  75. font-weight: 500;
  76. font-size: 30rpx;
  77. }
  78. .name2{
  79. color: #3C3C3C;
  80. line-height: 36rpx;
  81. font-weight: 400;
  82. font-size: 26rpx;
  83. padding-top: 16rpx;
  84. }
  85. .name3{
  86. color: #999999;
  87. line-height: 36rpx;
  88. font-weight: 400;
  89. font-size: 26rpx;
  90. padding-top: 16rpx;
  91. }
  92. .btn{
  93. width: 750rpx;
  94. height: 98rpx;
  95. background: #3F90F7;
  96. position: fixed;
  97. left: 0;
  98. bottom: 0;
  99. line-height: 98rpx;
  100. text-align: center;
  101. color: #ffffff;
  102. font-size: 30rpx;
  103. }
  104. </style>