myActivityDetail.vue 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  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="out1">-->
  40. <!-- <view class="flex-col top1">-->
  41. <!-- <view class="flex-row justify-center title">-->
  42. <!-- <text>退款策略(模块标题)</text>-->
  43. <!-- </view>-->
  44. <!-- <view class="flex-row">-->
  45. <!-- <text>-->
  46. <!-- 活动描述活动描述活动描述活动描述活动描述活动描述活动描述活动描述活动描述活动描述活动描述活动描述活动描述活动描述活动描述活动描述活动描述活动描述活动描述-->
  47. <!-- </text>-->
  48. <!-- </view>-->
  49. <!-- </view>-->
  50. <!-- </view>-->
  51. <view class="out2" v-if="activity.couponList">
  52. <view class="flex-col ticket">
  53. <view class="flex-row justify-center title">
  54. <text>赠送优惠券</text>
  55. </view>
  56. <view class="flex-row ticketList" v-for="(i,index) in activity.couponList">
  57. <view class="h-text flex-col justify-center ">
  58. <text class="money" v-if="i.discountsType == 2">{{i.discount}}折</text>
  59. <text class="money" v-else>{{i.discountsPrice}}</text>
  60. <text class="desc">满{{ i.reachPrice }}可用</text>
  61. </view>
  62. <view class="h-center-content flex-col justify-around">
  63. <view class="h-value">
  64. <text>{{ i.name }}</text>
  65. </view>
  66. <!-- <view class="ticketMsg">-->
  67. <!-- 使用平台:-->
  68. <!-- <text>全平台</text>-->
  69. <!-- </view>-->
  70. <view class="ticketMsg">
  71. 可用次数/总次数:{{i.degree}}/{{i.totalDegree}}
  72. </view>
  73. <view class="ticketMsg">
  74. 服务项目:{{ i.useServiceDesc }}
  75. </view>
  76. <view class="ticketMsg">
  77. <text v-if="i.validType == 1">领取后{{ i.effectiveDays }}天内有效</text>
  78. <view v-else>
  79. <view>使用期限:{{i.startTime.substring(0,10)}} 至 {{i.endTime.substring(0,10)}} </view>
  80. </view>
  81. </view>
  82. </view>
  83. </view>
  84. </view>
  85. </view>
  86. <view class="out2" v-if="activity.equityList">
  87. <view class="flex-col ticket">
  88. <view class="flex-row justify-center title">
  89. <text>赠送权益卡</text>
  90. </view>
  91. <view class="flex-row ticketList" v-for="(i,index) in activity.equityList">
  92. <view class="h-text flex-col justify-center ">
  93. <text class="money">{{i.salePrice}}</text>
  94. <text class="desc">售价</text>
  95. </view>
  96. <view class="h-center-content flex-col justify-around">
  97. <view class="h-value">
  98. <text>{{ i.title }}</text>
  99. </view>
  100. <view class="ticketMsg">
  101. 适用门店:{{ i.useStoreDesc || '' }}
  102. </view>
  103. <view class="ticketMsg">
  104. 领取后{{ i.effectiveDays }}天内有效
  105. </view>
  106. </view>
  107. </view>
  108. </view>
  109. </view>
  110. <view class="out2" v-if="activity.rechargeList">
  111. <view class="flex-col ticket">
  112. <view class="flex-row justify-center title">
  113. <text>赠送储值卡</text>
  114. </view>
  115. <view class="flex-row ticketList" v-for="(i,index) in activity.rechargeList">
  116. <view class="h-text flex-col justify-center ">
  117. <text class="money">{{i.reachPrice}}</text>
  118. <text class="desc">储值额度</text>
  119. </view>
  120. <view class="h-center-content flex-col justify-around">
  121. <view class="h-value">
  122. <text>{{ i.name }}</text>
  123. </view>
  124. </view>
  125. </view>
  126. </view>
  127. </view>
  128. </view>
  129. </view>
  130. </template>
  131. <script>
  132. export default {
  133. components: {
  134. },
  135. data() {
  136. return {
  137. userInfo: {},
  138. activityOrderId: '',
  139. activity: {},
  140. }
  141. },
  142. onLoad(e) {
  143. this.userInfo = uni.getStorageSync('userInfo')
  144. this.activityOrderId = e.activityOrderId
  145. this.myActivityDetail()
  146. },
  147. methods: {
  148. myActivityDetail() {
  149. this.$api.myActivityDetail({
  150. activityOrderId: this.activityOrderId,
  151. }).then(res => {
  152. console.log(res)
  153. this.activity = res.data.data
  154. this.$set(this.activity)
  155. })
  156. },
  157. }
  158. }
  159. </script>
  160. <style lang="scss" scoped>
  161. @import '/common/css/common.css';
  162. @import './index.rpx.scss';
  163. </style>