h5.vue 974 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <template>
  2. <view >
  3. <!-- <web-view :src="webUrl"></web-view> -->
  4. <u-parse class="title" :content="datalist"></u-parse>
  5. </view>
  6. </template>
  7. <script>
  8. import {getAgreementConfig} from '@/api/common.js'
  9. export default {
  10. data() {
  11. return {
  12. webUrl:"",
  13. name:'userRegister',
  14. datalist:''
  15. }
  16. },
  17. onLoad(option) {
  18. this.webUrl=uni.getStorageSync('url');
  19. this.name=option.name
  20. console.log(this.webUrl)
  21. this.getAgreementConfigs()
  22. },
  23. methods:{
  24. getAgreementConfigs(){
  25. const data={
  26. name:this.name
  27. }
  28. getAgreementConfig(data).then(res=>{
  29. if(res.code==200){
  30. this.datalist=res.data
  31. }else{
  32. uni.showToast({
  33. title: res.msg,
  34. icon: 'none',
  35. duration: 1000
  36. });
  37. }
  38. console.log(res)
  39. })
  40. }
  41. }
  42. }
  43. </script>
  44. <style scoped lang="scss">
  45. page{
  46. height: 100%;
  47. }
  48. .content{
  49. width: 100%;
  50. height: 100%;
  51. display: flex;
  52. align-items: center;
  53. justify-content: center;
  54. }
  55. </style>