detail.blade.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. @extends('app.rcstfwlt.module.layouts.main')
  2. @section('content')
  3. <div>
  4. <van-nav-bar @if($back == 1) left-text="返回" @click-left="onClickLeft" @endif title="晋江人才生态服务链条"></van-nav-bar>
  5. <van-nav-bar left-text="返回" @click-left="onClickLeft" :title="title"></van-nav-bar>
  6. <van-panel >
  7. <div class="policy_content">
  8. <div v-html="content"></div>
  9. </div>
  10. </van-panel>
  11. </div>
  12. @endsection
  13. @section('script')
  14. <script>
  15. new Vue({
  16. el: '#app',
  17. data: {
  18. id:{{$id}},
  19. title:'',
  20. content:'',
  21. },
  22. methods: {
  23. onClickLeft(){
  24. history.back();
  25. }
  26. },
  27. created() {
  28. let that = this
  29. axios.post('/mobile/active/rcg/getPolicyContent',{id:this.id}).then( res => {
  30. if(res.data.status == 'ok'){
  31. let info = res.data.data;
  32. that.title = info.title;
  33. that.content = info.content;
  34. that.pid = info.pid
  35. }
  36. });
  37. }
  38. });
  39. </script>
  40. @endsection