| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <template>
- <view>
-
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
-
- }
- },
- onLoad({print, url, sharecode, is_channel}){
- let redirect = '/h5/#/pages/index/redirect'
- if(url){
- redirect = url
- }
- redirect = `${redirect}?sharecode=${sharecode || ''}&is_channel=${is_channel || ''}`
- this.$api.getWechatLoginUrl({
- redirect: redirect
- }).then(res=>{
- if(print){
- console.log(redirect)
- console.log(res)
- return
- }
- if (res.code === 1) {
- location.href = res.data.url
- }
- })
- // location.href = `http://dzxvkt.top/index/wechat/bootToUrl?url=aHR0cDovL21oLmg1bWhzYy5jbi9oNS8jL3BhZ2VzL2xvZ2luL2JpbmRQaG9uZT9zaGFyZWNvZGU9JmFtcDtpc19jaGFubmVsPQ==`
- // location.href = `http://dzxvkt.top//index/wechat/bootToUrl?url=aHR0cDovL21oLmg1bWhzYy5jbi9oNS8jL3BhZ2VzL2xvZ2luL2JpbmRQaG9uZT9zaGFyZWNvZGU9JmFtcDtpc19jaGFubmVsPQ==`
- },
- methods: {
-
- }
- }
- </script>
- <style>
- </style>
|