| | |
| | | alert("codeId:"+codeId); |
| | | if(codeId == undefined) { |
| | | var strUrl = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=" + "wx594ab33e0466eccf" + |
| | | "&redirect_uri=" + "https%3a%2f%2fsie.jycash.cn%2fsib_wx_scoreb%2f%23%2f" + "&response_type=code&scope=snsapi_userinfo" + "#wechat_redirect"; |
| | | "&redirect_uri=" + "https%3a%2f%2fsie.jycash.cn%2fsib_wx_scorec%2f%23%2f" + "&response_type=code&scope=snsapi_userinfo" + "#wechat_redirect"; |
| | | window.location.href = strUrl; |
| | | }else if(openId == undefined){ |
| | | this.$api.getWeChatUserInfo({"code":codeId}).then( |
| | |
| | | v.toast('请输入用户身份证号'); |
| | | return false; |
| | | } |
| | | if (!v.checkPhone(this.mblNo)) { |
| | | if (v.checkValEmpty(this.mblNo)) { |
| | | v.toast('请输入用户手机号'); |
| | | return false; |
| | | } |
| | | if (this.mblNo.length!=11) { |
| | | v.toast('请输入正确的用户手机号'); |
| | | return false; |
| | | } |
| | |
| | | console.log(111); |
| | | let url = location.host; |
| | | // url = "t.finlean.com"; |
| | | var str = encodeURIComponent(`https://${url}/sib_wx_scoreb/#/loginByWx`); |
| | | var str = encodeURIComponent(`https://${url}/sib_wx_scorec/#/loginByWx`); |
| | | var fn = new GoWeChat("wx594ab33e0466eccf", str); |
| | | fn.gocontract(); |
| | | } else { |
| | |
| | | let env = process.env.NODE_ENV; |
| | | |
| | | //打包地址 |
| | | let srcUrl = '/sib_wx_scoreb/' |
| | | let srcUrl = '/sib_wx_scorec/' |
| | | module.exports = { |
| | | entry: { |
| | | index: "./src/index.js", |
| | |
| | | output: { |
| | | filename: 'js/[name].js', |
| | | path: path.resolve(__dirname, 'dist'), |
| | | publicPath: env ? '/sib_wx_scoreb/' : '/' //根据线上项目路径更改 /projectpath |
| | | publicPath: env ? '/sib_wx_scorec/' : '/' //根据线上项目路径更改 /projectpath |
| | | }, |
| | | /**防止将某些 import 的包(package)打包到 bundle 中,而是在运行时(runtime)再去从外部获取这些扩展依赖, |
| | | * 简而言之:就是使用cdn~不打包这些变量引用的文件,生成环境时需要在index.html中手动引入cdn |