market-active-detail.html 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>市场活动-创业帮</title>
  6. <meta name="keywords" content="市场活动-创业帮">
  7. <meta name="description" content="市场活动-创业帮">
  8. <meta content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,shrink-to-fit=no,user-scalable=no" name="viewport" viewport="cover">
  9. <meta name="apple-mobile-web-app-capable" content="yes">
  10. <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
  11. <meta content="telephone=no" name="format-detection">
  12. <meta content="email=no" name="format-detection">
  13. <meta name="apple-mobile-web-app-title" content="市场活动-创业帮">
  14. <meta http-equiv="Cache-Control" content="no-siteapp">
  15. <link rel="stylesheet" href="./static/css/main.css">
  16. </head>
  17. <body class="bgc-back">
  18. <div id="app">
  19. <van-sticky>
  20. <van-nav-bar class="mall_title user_title_normal" title="市场活动" @click-left="goback" v-if="toptitleisshow">
  21. <template #left> <img src="./static/images/left.png" alt=""></template>
  22. </van-nav-bar>
  23. </van-sticky>
  24. <div class="pl16 pr16 mt8" v-html="ActContent"></div>
  25. </div>
  26. <script src="./static/js/klm-vv.min.js"></script>
  27. <script src="./static/js/appfunc.min.js"></script>
  28. <script src="./static/js/klm-axios-config.js"></script>
  29. <script src="./static/js/publicfn.js"></script>
  30. <script>
  31. // 通过 CDN 引入时不会自动注册 Lazyload 组件
  32. // 可以通过下面的方式手动注册
  33. Vue.use(vant.Lazyload);
  34. PublicLib.SetStatusBarBgColor({bgcolor:'ffffff'});
  35. // 在 #app 标签下渲染一个按钮组件
  36. let app = new Vue({
  37. el: '#app',
  38. data() {
  39. return {
  40. toptitleisshow:false,
  41. ActContent: '',
  42. };
  43. },
  44. created() {
  45. this.toptitleisshow = toptitleisshow;
  46. this.getactivedetail();
  47. },
  48. methods: {
  49. async getactivedetail(){
  50. //- PublicLib.ShowLoading({Message:''});
  51. const Id = PublicLib.getCookieInfo('marketactiveId');
  52. const res = await getRequest('api/v1/activityinfo/detail?t='+Math.random(6),JSON.stringify({Id}));
  53. if(res.status !== '1') return tips('获取活动详情失败,请重试!');
  54. //- PublicLib.HideLoading();
  55. this.ActContent = res.data.ActContent;
  56. },
  57. goback(){
  58. PublicLib.GoBack({Level:1});
  59. }
  60. }
  61. });
  62. </script>
  63. </body>
  64. </html>