From eec8c2b8ee19027168f3e0694917728f8a321c7f Mon Sep 17 00:00:00 2001
From: liangjin <liangjin@finlean.com>
Date: Mon, 26 Apr 2021 16:13:28 +0800
Subject: [PATCH] sib_wx_scoref

---
 webpack.common.js            |    4 ++--
 src/utils/formValidator.js   |    2 +-
 src/views/user/loginByWx.vue |    2 +-
 src/views/main/product.vue   |    2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/utils/formValidator.js b/src/utils/formValidator.js
index 0663627..9852940 100644
--- a/src/utils/formValidator.js
+++ b/src/utils/formValidator.js
@@ -26,7 +26,7 @@
     },
     // 验证电话
     isTel(value) {
-        return /^1([358][0-9]|4[579]|66|7[0135678]|9[89])[0-9]{8}$/.test(value);
+        return /^\d{11}$/.test(value);
     },
     //验证身份证
     isIdCard(value){
diff --git a/src/views/main/product.vue b/src/views/main/product.vue
index d3f26c0..690c0d4 100644
--- a/src/views/main/product.vue
+++ b/src/views/main/product.vue
@@ -101,7 +101,7 @@
             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_scoree%2f%23%2f" + "&response_type=code&scope=snsapi_userinfo" + "#wechat_redirect";
+                    "&redirect_uri=" + "https%3a%2f%2fsie.jycash.cn%2fsib_wx_scoref%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(
diff --git a/src/views/user/loginByWx.vue b/src/views/user/loginByWx.vue
index 5e299da..7ca88a9 100644
--- a/src/views/user/loginByWx.vue
+++ b/src/views/user/loginByWx.vue
@@ -96,7 +96,7 @@
         console.log(111);
         let url = location.host;
         // url = "t.finlean.com";
-        var str = encodeURIComponent(`https://${url}/sib_wx_scoree/#/loginByWx`);
+        var str = encodeURIComponent(`https://${url}/sib_wx_scoref/#/loginByWx`);
         var fn = new GoWeChat("wx594ab33e0466eccf", str);
         fn.gocontract();
       } else {
diff --git a/webpack.common.js b/webpack.common.js
index 9a2d78d..98df476 100644
--- a/webpack.common.js
+++ b/webpack.common.js
@@ -15,7 +15,7 @@
 let env = process.env.NODE_ENV;
 
 //打包地址
-let srcUrl = '/sib_wx_scoree/'
+let srcUrl = '/sib_wx_scoref/'
 module.exports = {
     entry: {
         index: "./src/index.js",
@@ -23,7 +23,7 @@
     output: {
         filename: 'js/[name].js',
         path: path.resolve(__dirname, 'dist'),
-        publicPath: env ? '/sib_wx_scoree/' : '/' //根据线上项目路径更改 /projectpath
+        publicPath: env ? '/sib_wx_scoref/' : '/' //根据线上项目路径更改 /projectpath
     },
     /**防止将某些 import 的包(package)打包到 bundle 中,而是在运行时(runtime)再去从外部获取这些扩展依赖,
      * 简而言之:就是使用cdn~不打包这些变量引用的文件,生成环境时需要在index.html中手动引入cdn

--
Gitblit v1.8.0