index.vue 831 B

12345678910111213141516171819202122232425262728293031
  1. <template>
  2. <view class="invite-page">
  3. <web-view :src="URL"></web-view>
  4. <!-- <web-view :src="`http://localhost:8081/#/agent?customParam=${customParam}`" /> -->
  5. </view>
  6. </template>
  7. <script>
  8. export default {
  9. name: "invite-page",
  10. onLoad() {
  11. const userInfo = uni.getStorageSync("userInfo");
  12. console.log(userInfo, "userInfouserInfo");
  13. const customParam = encodeURIComponent(JSON.stringify(userInfo));
  14. const timestamp = new Date().getTime();
  15. this.URL = `https://luojigou.vip/singlepage/#/agent?customParam=${customParam}&timestamp=${timestamp}`;
  16. console.log(this.URL, "URL");
  17. // this.URL = `http://localhost:8081/#/agent?customParam=${customParam}&timestamp=${timestamp}`
  18. },
  19. data() {
  20. return {
  21. URL: "",
  22. };
  23. },
  24. methods: {},
  25. };
  26. </script>
  27. <style lang="less" scoped>
  28. </style>