myActivityDetail.vue 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. <template>
  2. <view class="flex-col page">
  3. <view class="flex-col content">
  4. <view class="out1">
  5. <view class="flex-col top">
  6. <view class="flex-row title">
  7. <text>{{activity.title}}</text>
  8. </view>
  9. <view class="flex-row price">
  10. <text>¥{{activity.salePrice}}</text>
  11. </view>
  12. <view class="flex-row justify-start" >
  13. <view class="activityKey ">
  14. <text>活动时间:</text>
  15. </view>
  16. <view>
  17. <text v-if="activity.valid == 2">{{activity.validBeginTime.substring(0,10)}} 至 {{activity.validEndTime.substring(0,10)}}</text>
  18. <text v-else>长期有效</text>
  19. </view>
  20. </view>
  21. <view class="flex-row justify-start">
  22. <view class="activityKey">
  23. <text>活动门店:</text>
  24. </view>
  25. <view class="activityValue">
  26. <text>{{activity.useStoreDesc}}</text>
  27. </view>
  28. </view>
  29. <view class="flex-row">
  30. <view class="activityKey">
  31. <text>活动描述:</text>
  32. </view>
  33. <view class="activityValue">
  34. <text>{{activity.description}}</text>
  35. </view>
  36. </view>
  37. </view>
  38. </view>
  39. <view class="out2" v-if="activity.couponList">
  40. <view class="flex-col ticket">
  41. <view class="flex-row justify-center title">
  42. <text>赠送优惠券</text>
  43. </view>
  44. <view class="flex-row ticketList" v-for="(i,index) in activity.couponList">
  45. <view class="h-text flex-col justify-center ">
  46. <text class="money" v-if="i.discountsType == 2">{{i.discount}}折</text>
  47. <text class="money" v-else>{{i.discountsPrice}}</text>
  48. <text class="desc">满{{ i.reachPrice }}可用</text>
  49. </view>
  50. <view class="h-center-content flex-col justify-around">
  51. <view class="h-value">
  52. <text>{{ i.name }}</text>
  53. </view>
  54. <!-- <view class="ticketMsg">-->
  55. <!-- 使用平台:-->
  56. <!-- <text>全平台</text>-->
  57. <!-- </view>-->
  58. <view class="ticketMsg">
  59. 可用次数/总次数:{{i.degree}}/{{i.totalDegree}}
  60. </view>
  61. <view class="ticketMsg">
  62. 服务项目:{{ i.useServiceDesc }}
  63. </view>
  64. <view class="ticketMsg">
  65. <text v-if="i.validType == 1">领取后{{ i.effectiveDays }}天内有效</text>
  66. <view v-else>
  67. <view>使用期限:{{i.startTime.substring(0,10)}} 至 {{i.endTime.substring(0,10)}} </view>
  68. </view>
  69. </view>
  70. </view>
  71. </view>
  72. </view>
  73. </view>
  74. <view class="out2" v-if="activity.equityList">
  75. <view class="flex-col ticket">
  76. <view class="flex-row justify-center title">
  77. <text>赠送权益卡</text>
  78. </view>
  79. <view class="flex-row ticketList" v-for="(i,index) in activity.equityList">
  80. <view class="h-text flex-col justify-center ">
  81. <text class="money">{{i.faceValue}}</text>
  82. <text class="desc">权益价</text>
  83. </view>
  84. <view class="h-center-content flex-col justify-around">
  85. <view class="h-value">
  86. <text>{{ i.title }}</text>
  87. </view>
  88. <view class="ticketMsg">
  89. 适用门店:{{ i.useStoreDesc || '' }}
  90. </view>
  91. <view class="ticketMsg">
  92. 领取后{{ i.effectiveDays }}天内有效
  93. </view>
  94. </view>
  95. </view>
  96. </view>
  97. </view>
  98. <view class="out2" v-if="activity.rechargeList">
  99. <view class="flex-col ticket">
  100. <view class="flex-row justify-center title">
  101. <text>赠送储值卡</text>
  102. </view>
  103. <view class="flex-row ticketList" v-for="(i,index) in activity.rechargeList">
  104. <view class="h-text flex-col justify-center ">
  105. <text class="money">{{i.reachPrice}}</text>
  106. <text class="desc">储值额度</text>
  107. </view>
  108. <view class="h-center-content flex-col justify-around">
  109. <view class="h-value">
  110. <text>{{ i.name }}</text>
  111. </view>
  112. </view>
  113. </view>
  114. </view>
  115. </view>
  116. </view>
  117. </view>
  118. </template>
  119. <script>
  120. export default {
  121. components: {
  122. },
  123. data() {
  124. return {
  125. userInfo: {},
  126. activityOrderId: '',
  127. activity: {},
  128. }
  129. },
  130. onLoad(e) {
  131. this.userInfo = uni.getStorageSync('userInfo')
  132. this.activityOrderId = e.activityOrderId
  133. this.myActivityDetail()
  134. },
  135. methods: {
  136. myActivityDetail() {
  137. this.$api.myActivityDetail({
  138. activityOrderId: this.activityOrderId,
  139. }).then(res => {
  140. console.log(res)
  141. this.activity = res.data.data
  142. this.$set(this.activity)
  143. })
  144. },
  145. }
  146. }
  147. </script>
  148. <style lang="scss" scoped>
  149. @import '/common/css/common.css';
  150. @import './index.rpx.scss';
  151. </style>