success.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <template>
  2. <view class="success">
  3. <image src="../static/images/bmcg.png"></image>
  4. <view class="tip">报名成功</view>
  5. <view class="tips">您已成功报名该活动,请耐心等待主办方审核。预计1-3个工作日内审核完成,点击“<navigator url="/match/activity/activity" hover-class="none" class="mine">我报名的活动</navigator>”查看结果</view>
  6. <button open-type="share" class="share">分享活动</button>
  7. <navigator url="/pages/index/index" open-type="switchTab" hover-class="none" class="backhome">返回首页</navigator>
  8. </view>
  9. </template>
  10. <script>
  11. const req = require('../../utils/request.js');
  12. const api = require('../../utils/api.js');
  13. const util = require('../../utils/util.js');
  14. const app = getApp();
  15. import mpHtml from "../../components/mp-html/components/mp-html/mp-html";
  16. export default {
  17. components: {
  18. mpHtml,
  19. },
  20. data() {
  21. return {
  22. options: {},
  23. detail: {}
  24. };
  25. },
  26. onLoad(options) {
  27. uni.showShareMenu({
  28. withShareTicket: true,
  29. menus: ['shareAppMessage', 'shareTimeline']
  30. });
  31. this.options = options;
  32. },
  33. onShow() {
  34. this.getData(true);
  35. },
  36. onReachBottom: function() {
  37. },
  38. onShareAppMessage: function() {
  39. return {
  40. title: this.detail.title,
  41. imageUrl:this.detail.pic,
  42. path: '/match/activityDetail/activityDetail?id=' + this.detail.id
  43. };
  44. },
  45. onShareTimeline() {
  46. return {
  47. title: this.detail.title,
  48. image: this.detail.pic,
  49. query: '/match/activityDetail/activityDetail?id=' + this.detail.id
  50. };
  51. },
  52. methods: {
  53. getData(isShow){
  54. req.getRequest('/api/match/detail',{id: this.options.id},res => {
  55. this.detail = res;
  56. this.isShow = true;
  57. },isShow);
  58. },
  59. }
  60. };
  61. </script>
  62. <style>
  63. @import "./success.css";
  64. </style>