index.vue 895 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <template>
  2. <view class="content">
  3. <lyg-popup @popupState="popupState" title="服务协议" protocolPath='/pages/sale/webview?can_share=false&url=https://liangxin.zthymaoyi.com/userAgreement.html'
  4. policyPath='/pages/sale/webview?can_share=false&url=https://liangxin.zthymaoyi.com/screctAgreement.html' policyStorageKey="has_read_privacy"></lyg-popup>
  5. </view>
  6. </template>
  7. <script>
  8. import lyg_popup from '@/components/lyg-popup/lyg-popup.vue';
  9. export default {
  10. components: {
  11. lyg_popup
  12. },
  13. data() {
  14. return {
  15. }
  16. },
  17. onLoad() {
  18. },
  19. methods: {
  20. popupState(state) {
  21. console.log(state);
  22. if(state){
  23. uni.navigateTo({
  24. url: '/pages/public/login'
  25. })
  26. }
  27. else{
  28. }
  29. }
  30. }
  31. }
  32. </script>
  33. <style>
  34. </style>