<template>
	<view>
		<web-view :src="src"></web-view>
	</view>
</template>

<script>
const appId = "wxe25fed34f9f70ef4";
const url = "https%3A%2F%2Fcjxmall.dnzc.vip";
const urlTwo = "https%3A%2F%2Fcjxmall2.dnzc.vip";
	export default {
		data() {
			return {

          src :""
			}
		},
    onLoad(opt){
      let type = opt.type;
      if(opt.pointType == 2){
        this.src = "https://d.dnzc.vip/cache/wx?appid="+appId+"&redirect_uri="+urlTwo+"%2Fpages%2Fusers%2Fwechat_login%2Findex%3Fstate="+type+"&response_type=code&scope=snsapi_userinfo&connect_redirect=1#wechat_redirect"
        console.log(this.src);
        return;
      }
      // this.src = "https://cjxmall.dnzc.vip"
      this.src = "https://d.dnzc.vip/cache/wx?appid="+appId+"&redirect_uri="+url+"%2Fpages%2Fusers%2Fwechat_login%2Findex%3Fstate="+type+"&response_type=code&scope=snsapi_userinfo&connect_redirect=1#wechat_redirect"
    },
		methods: {

		}
	}
</script>

<style>

</style>
