微信

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <template>
  2. <div class="mainPage">
  3. <div class="title">体验卡详情</div>
  4. <div class="content" v-if="info !== null">
  5. <div class="message">
  6. <div>
  7. <span>{{info.CustomerCardName}}</span>
  8. <!-- <span class="sub">(可在银城会所健身房和游泳池使用)</span> -->
  9. </div>
  10. <div>
  11. <span>有效时间</span>
  12. <span>{{toolClass.dateFormat(info.StartDate,'yyyy-MM-dd') + '~' + toolClass.dateFormat(info.EndDate,'yyyy-MM-dd')}}</span>
  13. </div>
  14. </div>
  15. <div class="rule">
  16. <div>使用规则</div>
  17. <div>{{info.Share.CardUseInstruction}}</div>
  18. </div>
  19. <div class="line">
  20. <img :src="Artboard" alt="" width="100%">
  21. </div>
  22. </div>
  23. </div>
  24. </template>
  25. <script>
  26. import Artboard from '../../../common/icon/Artboard.png'
  27. import { createNamespacedHelpers } from 'vuex'
  28. const { mapActions: mapCardActions } = createNamespacedHelpers('card')
  29. export default {
  30. data () {
  31. return {
  32. msg: '',
  33. Artboard,
  34. time: '2018年3月17日',
  35. info: null,
  36. }
  37. },
  38. created () {
  39. this.getCardInfo({ id: this.$route.query.id }).then((res) => {
  40. console.log(JSON.stringify(res))
  41. this.info = res
  42. })
  43. },
  44. methods: {
  45. ...mapCardActions(['getCardInfo'])
  46. }
  47. }
  48. </script>
  49. <style lang="scss" scoped>
  50. @import 'page.scss';
  51. </style>