myActivityDetail.vue 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  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">{{i.discountsPrice}}</text>
  59. <text class="desc">满{{ i.reachPrice }}可用</text>
  60. </view>
  61. <view class="h-center-content flex-col justify-around">
  62. <view class="h-value">
  63. <text>{{ i.name }}</text>
  64. </view>
  65. <!-- <view class="ticketMsg">-->
  66. <!-- 使用平台:-->
  67. <!-- <text>全平台</text>-->
  68. <!-- </view>-->
  69. <view class="ticketMsg">
  70. 可用次数/总次数:{{i.degree}}/{{i.totalDegree}}
  71. </view>
  72. <view class="ticketMsg">
  73. 到期时间:{{i.endTime.substring(0,10)}}
  74. </view>
  75. <!-- <view class="ticketMsg flex-row">-->
  76. <!-- <text @click.stop="showRemark(item)">使用规则</text>-->
  77. <!-- <u-icon v-if="item.id == showRemarkId" name="arrow-down-fill" color="" size="12"></u-icon>-->
  78. <!-- <u-icon v-else name="play-right-fill" color="" size="12"></u-icon>-->
  79. <!-- </view>-->
  80. </view>
  81. </view>
  82. </view>
  83. <!-- <view class="flex-row justify-between link">-->
  84. <!-- <text>跳转一</text>-->
  85. <!-- <u-icon name="arrow-right" color="" size="12"></u-icon>-->
  86. <!-- </view>-->
  87. <!-- <view class="flex-row justify-between link">-->
  88. <!-- <text>跳转一</text>-->
  89. <!-- <u-icon name="arrow-right" color="" size="12"></u-icon>-->
  90. <!-- </view>-->
  91. </view>
  92. <view class="out2" v-if="activity.equityList">
  93. <view class="flex-col ticket">
  94. <view class="flex-row justify-center title">
  95. <text>赠送权益卡</text>
  96. </view>
  97. <view class="flex-row ticketList" v-for="(i,index) in activity.equityList">
  98. <view class="h-text flex-col justify-center ">
  99. <text class="money">{{i.salePrice}}</text>
  100. <text class="desc">售价</text>
  101. </view>
  102. <view class="h-center-content flex-col justify-around">
  103. <view class="h-value">
  104. <text>{{ i.title }}</text>
  105. </view>
  106. <view class="ticketMsg">
  107. 适用门店:{{ i.useStoreDesc || '' }}
  108. </view>
  109. <view class="ticketMsg">
  110. 领取后{{ i.effectiveDays }}天内有效
  111. </view>
  112. </view>
  113. </view>
  114. </view>
  115. </view>
  116. <view class="out2" v-if="activity.rechargeList">
  117. <view class="flex-col ticket">
  118. <view class="flex-row justify-center title">
  119. <text>赠送储值卡</text>
  120. </view>
  121. <view class="flex-row ticketList" v-for="(i,index) in activity.rechargeList">
  122. <view class="h-text flex-col justify-center ">
  123. <text class="money">{{i.reachPrice}}</text>
  124. <text class="desc">储值额度</text>
  125. </view>
  126. <view class="h-center-content flex-col justify-around">
  127. <view class="h-value">
  128. <text>{{ i.name }}</text>
  129. </view>
  130. </view>
  131. </view>
  132. </view>
  133. </view>
  134. </view>
  135. </view>
  136. </template>
  137. <script>
  138. export default {
  139. components: {
  140. },
  141. data() {
  142. return {
  143. userInfo: {},
  144. activityOrderId: '',
  145. activity: {},
  146. }
  147. },
  148. onLoad(e) {
  149. this.userInfo = uni.getStorageSync('userInfo')
  150. this.activityOrderId = e.activityOrderId
  151. this.myActivityDetail()
  152. },
  153. methods: {
  154. myActivityDetail() {
  155. this.$api.myActivityDetail({
  156. activityOrderId: this.activityOrderId,
  157. }).then(res => {
  158. console.log(res)
  159. this.activity = res.data.data
  160. this.$set(this.activity)
  161. })
  162. },
  163. }
  164. }
  165. </script>
  166. <style lang="scss" scoped>
  167. @import '/common/css/common.css';
  168. @import './index.rpx.scss';
  169. </style>