xieyi.vue 769 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <template>
  2. <view style="line-height: 26px;padding: 32upx;" class="home1">
  3. <view style="font-size: 28upx;" v-html="content" ></view>
  4. </view>
  5. </template>
  6. <script>
  7. export default {
  8. data() {
  9. return {
  10. content:'',
  11. id:''
  12. }
  13. },
  14. onLoad(d) {
  15. if(d.id){
  16. this.id = d.id;
  17. uni.setNavigationBarTitle({
  18. title:'技师入驻协议'
  19. })
  20. }else{
  21. uni.setNavigationBarTitle({
  22. title:'用户协议'
  23. })
  24. this.id = 177;
  25. }
  26. this.getGuize();
  27. },
  28. methods: {
  29. getGuize(){
  30. this.$Request.getT('/app/common/type/' + this.id).then(res =>{
  31. if(res.code === 0){
  32. this.content = res.data.value;
  33. }
  34. });
  35. }
  36. }
  37. }
  38. </script>
  39. <style>
  40. page{
  41. background: #FFFFFF;
  42. }
  43. </style>