coupons.vue 815 B

123456789101112131415161718192021222324252627282930
  1. <template>
  2. <view class="page">
  3. <web-view :src="src"></web-view>
  4. </view>
  5. </template>
  6. <script>
  7. import config from '@/config.js'
  8. export default {
  9. data() {
  10. return {
  11. src: ''
  12. }
  13. },
  14. onLoad(option) {
  15. //this.weid=option.weid
  16. var session = 'we7sid-' + JSON.stringify(uni.getSystemInfoSync().appId);
  17. var container = uni.getSystemInfoSync().app
  18. //var callback = 'https://wetiandi.com/app/index.php?i=1&j=1&c=auth&a=usercenter&do=mycenter&oid=' + option.oid
  19. //this.src = 'https://wetiandi.com/app/index.php?i=1&j=1&c=entry&m=wdl_shopping&do=alipayauth&redirect_uri=' + encodeURIComponent(callback) +'&state=' + session
  20. //测试
  21. this.src = config.baseUrl + "/app/index.php?i=1&j=1&c=entry&m=wdl_shopping&do=coupons&sn=" + option.sn
  22. //测试
  23. }
  24. }
  25. </script>
  26. <style>
  27. </style>