Browse Source

Merge branch 'master' of http://192.168.20.122:3000/root/qiyewechatApp.git

Lgx 4 years ago
parent
commit
eb6c9f27cc

BIN
UI/dist.rar


+ 1 - 1
UI/src/utils/config.js

@@ -1,5 +1,5 @@
 const APIV1 = '/api/v1'
-const APIV2 = '/api/v2' 
+const APIV2 = '/api/v2'
 const APIV3 = 'http://localhost:8004'
 const JAPIV = 'http://localhost:8005'
 const APIV4 = 'http://localhost:8005'

+ 5 - 4
UI/src/utils/request.js

@@ -81,8 +81,8 @@ const fetch = (options) => {
           util.auth.removeToken();
           permission.clear();
           //confirm('过期')
-          console.log('过期');
-          router.push('/login');
+          // router.push('/login');
+          window.location.href = "/login";
           break;
       }
     }
@@ -97,7 +97,8 @@ const fetch = (options) => {
           permission.clear();
           //confirm('过期')
           console.log('过期');
-          router.push('/login');
+          // router.push('/login');
+          window.location.href = "/login";
           break;
       }
     }
@@ -235,7 +236,7 @@ export default function request(options) {
 
   return fetch(options).then((response) => {
     if(typeof(response)=='undefined')
-      return Promise.reject({ success: false, statusCode:400 ,message: "登陆错误,请稍后再试" });
+      return Promise.reject({ success: false, statusCode:400 ,message: "出现未知错误,请稍后再试" });
     let data = options.fetchType === 'YQL' ? response.data.query.results.json : response.data
     if (data['httpCode'] === "200") {
       return Promise.resolve(data['result'])

+ 23 - 29
public/client/index.html

@@ -183,50 +183,44 @@
             // console.log(data.data);
             // console.log(data);
             var user = data.data;
+
+            var drug = user.sort((b, a) =>
+              a.CreationDate > b.CreationDate
+                ? 1
+                : b.CreationDate > a.CreationDate
+                ? -1
+                : 0
+            );
+            var obj = {};
+            var order = drug.reduce(function(item, next) {
+              obj[next.OrdersCode]
+                ? ""
+                : (obj[next.OrdersCode] = true && item.push(next));
+              return item;
+            }, []);
             var str2 = "";
-            for (var i = 0; i < user.length; i++) {
+            for (var i = 0; i < order.length; i++) {
               //遍历data数组
               str2 +=
                 "<div class='list_td'><div>" +
-                user[i].CreationDate +
+                order[i].CreationDate +
                 "</div><div>" +
-                user[i].PlantForm +
+                order[i].PlantForm +
                 "</div><div>" +
-                user[i].Sum +
+                order[i].Sum +
                 "</div></div>";
             }
             $(".list_center1").html(str2);
-          }
-        });
-        $.ajax({
-          //   url: "http://192.168.10.87:8090/memberexts/findBaseInfoByMemberPhone",
-          url: "http://119.130.113.245:8005/memberDrugUsage/findOrderByPhone",
-          type: "POST",
-          data: {
-            phone: tel,
-            start: "",
-            end: "",
-            orderCode: ""
-          },
-          dataType: "json",
-          success: function(data) {
-            if (!data.success) {
-              $(".container").css("display", "none");
-              return false;
-            }
-            // console.log(data.data);
-            // console.log(data);
-            var user = data.data;
             var str3 = "";
-            for (var i = 0; i < user.length; i++) {
+            for (var i = 0; i < drug.length; i++) {
               //遍历data数组
               str3 +=
                 "<div class='list_td2'><div>" +
-                user[i].CreationDate +
+                drug[i].CreationDate +
                 "</div><div>" +
-                user[i].ProductCode +
+                drug[i].ProductCode +
                 "</div><div><span>" +
-                user[i].ProductName +
+                drug[i].ProductName +
                 "</span></div></div>";
             }
             $(".list_center2").html(str3);

+ 251 - 0
public/客户信息(8)/css/index.css

@@ -0,0 +1,251 @@
+html,
+body {
+  width: 100%;
+  height: 100%;
+}
+.main {
+  width: 100%;
+  height: 100%;
+  background: #f9f9f9;
+}
+.back_head {
+  width: 7.5rem;
+  height: 1.28rem;
+  background-color: #ffffff;
+  font-size: 0.4rem;
+  text-align: center;
+  line-height: 1.6rem;
+  position: relative;
+}
+.icon_back {
+  display: inline-block;
+  width: 0.6rem;
+  height: 0.6rem;
+  position: absolute;
+  top: 0.5rem;
+  left: 0.1rem;
+  cursor: pointer;
+}
+.icon_back img {
+  width: 0.16rem;
+  height: 0.29rem;
+  margin-top: 0.2rem;
+}
+.header {
+  width: 7.5rem;
+  height: 1.27rem;
+  display: flex;
+}
+.search {
+  width: 4.92rem;
+  height: 0.68rem;
+  background-color: #ffffff;
+  border-radius: 0.16rem;
+  border: solid 1px #b9b9b9;
+  margin-top: 0.3rem;
+  margin-left: 0.4rem;
+  display: flex;
+}
+.search img {
+  width: 0.24rem;
+  height: 0.24rem;
+  margin-top: 0.22rem;
+  margin-left: 0.2rem;
+}
+
+.search input {
+  width: 4rem;
+  margin-left: 0.19rem;
+  font-size: 0.28rem;
+  color: #333333;
+  opacity: 0.5;
+  border: 0;
+  outline: none;
+}
+.button {
+  width: 1.48rem;
+  height: 0.68rem;
+  line-height: 0.68rem;
+  background-image: linear-gradient(68deg, #478bfb 0%, #59a2fe 100%);
+  border-radius: 0.16rem;
+  font-size: 0.28rem;
+  color: #ffffff;
+  text-align: center;
+  margin-top: 0.28rem;
+  margin-left: 0.3rem;
+}
+.container {
+  width: 7.5rem;
+  height: auto;
+  background-color: #ffffff;
+  box-shadow: 0px -5px 0.21rem 0px rgba(185, 185, 185, 0.2);
+  border-radius: 0.2rem;
+  position: relative;
+  padding-top: 0.4rem;
+}
+.user {
+  width: 6.3rem;
+  height: 2.28rem;
+  background-color: #ffffff;
+  box-shadow: 0px 5px 0.23rem 0px rgba(76, 146, 252, 0.1);
+  border-radius: 0.16rem;
+  margin-left: 0.6rem;
+  display: flex;
+}
+.portrait {
+  width: 1.2rem;
+  height: 1.2rem;
+  margin-top: 0.4rem;
+  margin-left: 0.41rem;
+}
+.portrait img {
+  width: 1.2rem;
+  height: 1.2rem;
+}
+.message {
+  width: 4.2rem;
+  margin-left: 0.41rem;
+}
+.message > p:nth-child(1) {
+  height: 0.7rem;
+  line-height: 0.7rem;
+  color: #1d1d1d;
+  font-size: 0.36rem;
+}
+.message > p:nth-child(2) {
+  height: 0.7rem;
+  line-height: 0.7rem;
+  color: #333333;
+  font-size: 0.28rem;
+}
+.message > p:nth-child(2) > span:nth-child(2) {
+  margin-left: 0.2rem;
+  margin-right: 0.46rem;
+}
+.message > p:nth-child(3) {
+  height: 0.7rem;
+  line-height: 0.7rem;
+  color: #b9b9b9;
+  font-size: 0.24rem;
+  display: block;
+  white-space: nowrap;
+  overflow: hidden;
+  text-overflow: ellipsis;
+}
+.label {
+  width: 6.3rem;
+  margin-left: 0.6rem;
+  display: flex;
+}
+.label > .title {
+  width: 16%;
+  height: 0.4rem;
+  line-height: 0.4rem;
+  font-size: 0.32rem;
+  color: #333333;
+  margin-top: 0.38rem;
+  white-space: nowrap;
+}
+.label > .list {
+  font-size: 0.22rem;
+  color: #b9b9b9;
+  display: flex;
+  flex-wrap: wrap;
+  margin-top: 0.45rem;
+}
+.label > .list > div {
+  height: 0.34rem;
+  line-height: 0.34rem;
+  border-radius: 0.16rem;
+  border: solid 1px #4b90fc;
+  margin-right: 0.4rem;
+  padding-left: 0.1rem;
+  padding-right: 0.1rem;
+  margin-bottom: 0.2rem;
+}
+.type {
+  width: 6.3rem;
+  margin-left: 0.6rem;
+  display: flex;
+  font-size: 0.36rem;
+  color: #333333;
+  margin-top: 0.1rem;
+  margin-bottom: 0.2rem;
+}
+.type > div {
+  height: 0.5rem;
+  line-height: 0.5rem;
+}
+.type > div:nth-child(1) {
+  margin-right: 0.64rem;
+}
+.table_lists {
+  width: 6.3rem;
+  height: auto;
+  margin-left: 0.6rem;
+}
+.show_table > .table {
+  width: 6.3rem;
+  height: auto;
+  background-color: #ffffff;
+  box-shadow: 0px -5px 0.23rem 0px rgba(76, 146, 252, 0.1);
+  border-radius: 0.08rem;
+  color: #333333;
+}
+.list_head {
+  width: 6.3rem;
+  height: 0.7rem;
+  line-height: 0.7rem;
+  text-align: center;
+  display: flex;
+  font-size: 0.24rem;
+  border-bottom: 1px solid #c9c9c9;
+}
+
+.list_td > div,
+.list_td2 > div {
+  flex: 1;
+  font-size: 0.24rem;
+}
+.list_head > div {
+  flex: 1;
+  font-size: 0.32rem;
+}
+.list_td,
+.list_td2 {
+  width: 6.3rem;
+  height: 0.94rem;
+  text-align: center;
+  display: flex;
+  font-size: 0.32rem;
+  border-bottom: 1px solid #e4e4e4;
+}
+.list_td > div:nth-child(1),
+.list_td2 > div:nth-child(1) {
+  line-height: 0.3rem;
+  padding-top: 0.2rem;
+  word-wrap: break-word;
+}
+.list_td > div:nth-child(2),
+.list_td > div:nth-child(3) {
+  line-height: 0.94rem;
+}
+.list_td2 > div:nth-child(3) > span {
+  display: inline-block;
+  width: 1.8rem;
+  height: 0.59rem;
+  overflow: hidden;
+  text-overflow: ellipsis;
+  display: -webkit-box;
+  -webkit-box-orient: vertical;
+  -webkit-line-clamp: 2;
+  margin-top: 0.2rem;
+  line-height: 0.3rem;
+}
+.list_td2 > div:nth-child(2) {
+  line-height: 0.94rem;
+}
+.selete {
+  color: #4b90fc;
+  border-bottom: 2px solid #4b90fc;
+}

+ 311 - 0
public/客户信息(8)/css/need/layer.css

@@ -0,0 +1,311 @@
+.layui-m-layer {
+  position: relative;
+  z-index: 19891014;
+}
+.layui-m-layer * {
+  -webkit-box-sizing: content-box;
+  -moz-box-sizing: content-box;
+  box-sizing: content-box;
+}
+.layui-m-layermain,
+.layui-m-layershade {
+  position: fixed;
+  left: 0;
+  top: 0;
+  width: 100%;
+  height: 100%;
+}
+.layui-m-layershade {
+  background-color: rgba(0, 0, 0, 0.7);
+  pointer-events: auto;
+}
+.layui-m-layermain {
+  display: table;
+  font-family: Helvetica, arial, sans-serif;
+  pointer-events: none;
+}
+.layui-m-layermain .layui-m-layersection {
+  display: table-cell;
+  vertical-align: middle;
+  text-align: center;
+}
+.layui-m-layerchild {
+  position: relative;
+  display: inline-block;
+  text-align: left;
+  background-color: #fff;
+  font-size: 14px;
+  border-radius: 5px;
+  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
+  pointer-events: auto;
+  -webkit-overflow-scrolling: touch;
+  -webkit-animation-fill-mode: both;
+  animation-fill-mode: both;
+  -webkit-animation-duration: 0.2s;
+  animation-duration: 0.2s;
+}
+@-webkit-keyframes layui-m-anim-scale {
+  0% {
+    opacity: 0;
+    -webkit-transform: scale(0.5);
+    transform: scale(0.5);
+  }
+  100% {
+    opacity: 1;
+    -webkit-transform: scale(1);
+    transform: scale(1);
+  }
+}
+@keyframes layui-m-anim-scale {
+  0% {
+    opacity: 0;
+    -webkit-transform: scale(0.5);
+    transform: scale(0.5);
+  }
+  100% {
+    opacity: 1;
+    -webkit-transform: scale(1);
+    transform: scale(1);
+  }
+}
+.layui-m-anim-scale {
+  animation-name: layui-m-anim-scale;
+  -webkit-animation-name: layui-m-anim-scale;
+}
+@-webkit-keyframes layui-m-anim-up {
+  0% {
+    opacity: 0;
+    -webkit-transform: translateY(800px);
+    transform: translateY(800px);
+  }
+  100% {
+    opacity: 1;
+    -webkit-transform: translateY(0);
+    transform: translateY(0);
+  }
+}
+@keyframes layui-m-anim-up {
+  0% {
+    opacity: 0;
+    -webkit-transform: translateY(800px);
+    transform: translateY(800px);
+  }
+  100% {
+    opacity: 1;
+    -webkit-transform: translateY(0);
+    transform: translateY(0);
+  }
+}
+.layui-m-anim-up {
+  -webkit-animation-name: layui-m-anim-up;
+  animation-name: layui-m-anim-up;
+}
+.layui-m-layer0 .layui-m-layerchild {
+  width: 90%;
+  max-width: 640px;
+}
+.layui-m-layer1 .layui-m-layerchild {
+  border: none;
+  border-radius: 0;
+}
+.layui-m-layer2 .layui-m-layerchild {
+  width: auto;
+  max-width: 260px;
+  min-width: 40px;
+  border: none;
+  background: 0 0;
+  box-shadow: none;
+  color: #fff;
+}
+.layui-m-layerchild h3 {
+  padding: 0 10px;
+  height: 60px;
+  line-height: 60px;
+  font-size: 16px;
+  font-weight: 400;
+  border-radius: 5px 5px 0 0;
+  text-align: center;
+}
+.layui-m-layerbtn span,
+.layui-m-layerchild h3 {
+  text-overflow: ellipsis;
+  overflow: hidden;
+  white-space: nowrap;
+}
+.layui-m-layercont {
+  padding: 50px 30px;
+  line-height: 22px;
+  text-align: center;
+}
+.layui-m-layer1 .layui-m-layercont {
+  padding: 0;
+  text-align: left;
+}
+.layui-m-layer2 .layui-m-layercont {
+  text-align: center;
+  padding: 0;
+  line-height: 0;
+}
+.layui-m-layer2 .layui-m-layercont i {
+  width: 25px;
+  height: 25px;
+  margin-left: 8px;
+  display: inline-block;
+  background-color: #fff;
+  border-radius: 100%;
+  -webkit-animation: layui-m-anim-loading 1.4s infinite ease-in-out;
+  animation: layui-m-anim-loading 1.4s infinite ease-in-out;
+  -webkit-animation-fill-mode: both;
+  animation-fill-mode: both;
+}
+.layui-m-layerbtn,
+.layui-m-layerbtn span {
+  position: relative;
+  text-align: center;
+  border-radius: 0 0 5px 5px;
+}
+.layui-m-layer2 .layui-m-layercont p {
+  margin-top: 20px;
+}
+@-webkit-keyframes layui-m-anim-loading {
+  0%,
+  100%,
+  80% {
+    transform: scale(0);
+    -webkit-transform: scale(0);
+  }
+  40% {
+    transform: scale(1);
+    -webkit-transform: scale(1);
+  }
+}
+@keyframes layui-m-anim-loading {
+  0%,
+  100%,
+  80% {
+    transform: scale(0);
+    -webkit-transform: scale(0);
+  }
+  40% {
+    transform: scale(1);
+    -webkit-transform: scale(1);
+  }
+}
+.layui-m-layer2 .layui-m-layercont i:first-child {
+  margin-left: 0;
+  -webkit-animation-delay: -0.32s;
+  animation-delay: -0.32s;
+}
+.layui-m-layer2 .layui-m-layercont i.layui-m-layerload {
+  -webkit-animation-delay: -0.16s;
+  animation-delay: -0.16s;
+}
+.layui-m-layer2 .layui-m-layercont > div {
+  line-height: 22px;
+  padding-top: 7px;
+  margin-bottom: 20px;
+  font-size: 14px;
+}
+.layui-m-layerbtn {
+  display: box;
+  display: -moz-box;
+  display: -webkit-box;
+  width: 100%;
+  height: 50px;
+  line-height: 50px;
+  font-size: 0;
+  border-top: 1px solid #d0d0d0;
+  background-color: #f2f2f2;
+}
+.layui-m-layerbtn span {
+  display: block;
+  -moz-box-flex: 1;
+  box-flex: 1;
+  -webkit-box-flex: 1;
+  font-size: 14px;
+  cursor: pointer;
+}
+.layui-m-layerbtn span[yes] {
+  color: #40affe;
+}
+.layui-m-layerbtn span[no] {
+  border-right: 1px solid #d0d0d0;
+  border-radius: 0 0 0 5px;
+}
+.layui-m-layerbtn span:active {
+  background-color: #f6f6f6;
+}
+.layui-m-layerend {
+  position: absolute;
+  right: 7px;
+  top: 10px;
+  width: 30px;
+  height: 30px;
+  border: 0;
+  font-weight: 400;
+  background: 0 0;
+  cursor: pointer;
+  -webkit-appearance: none;
+  font-size: 30px;
+}
+.layui-m-layerend::after,
+.layui-m-layerend::before {
+  position: absolute;
+  left: 5px;
+  top: 15px;
+  content: "";
+  width: 18px;
+  height: 1px;
+  background-color: #999;
+  transform: rotate(45deg);
+  -webkit-transform: rotate(45deg);
+  border-radius: 3px;
+}
+.layui-m-layerend::after {
+  transform: rotate(-45deg);
+  -webkit-transform: rotate(-45deg);
+}
+body .layui-m-layer .layui-m-layer-footer {
+  position: fixed;
+  width: 95%;
+  max-width: 100%;
+  margin: 0 auto;
+  left: 0;
+  right: 0;
+  bottom: 10px;
+  background: 0 0;
+}
+.layui-m-layer-footer .layui-m-layercont {
+  padding: 20px;
+  border-radius: 5px 5px 0 0;
+  background-color: rgba(255, 255, 255, 0.8);
+}
+.layui-m-layer-footer .layui-m-layerbtn {
+  display: block;
+  height: auto;
+  background: 0 0;
+  border-top: none;
+}
+.layui-m-layer-footer .layui-m-layerbtn span {
+  background-color: rgba(255, 255, 255, 0.8);
+}
+.layui-m-layer-footer .layui-m-layerbtn span[no] {
+  color: #fd482c;
+  border-top: 1px solid #c2c2c2;
+  border-radius: 0 0 5px 5px;
+}
+.layui-m-layer-footer .layui-m-layerbtn span[yes] {
+  margin-top: 10px;
+  border-radius: 5px;
+}
+body .layui-m-layer .layui-m-layer-msg {
+  width: auto;
+  max-width: 90%;
+  margin: 0 auto;
+  bottom: -150px;
+  background-color: rgba(0, 0, 0, 0.7);
+  color: #fff;
+}
+.layui-m-layer-msg .layui-m-layercont {
+  padding: 10px 20px;
+}

+ 233 - 0
public/客户信息(8)/css/reset.css

@@ -0,0 +1,233 @@
+@charset "utf-8";
+
+html,
+body,
+div,
+dl,
+dt,
+dd,
+ul,
+li,
+ol,
+h1,
+h2,
+h3,
+h4,
+h5,
+h6,
+p,
+form,
+input,
+textarea,
+img,
+iframe,
+em,
+strong,
+nav,
+header,
+article,
+section,
+main,
+button,
+footer,
+var {
+    padding: 0;
+    margin: 0;
+    box-sizing: border-box;
+}
+
+html,
+body {
+    width: 100%;
+}
+
+body {
+    position: relative;
+    background: #ffffff;
+    /* 字体大小/行高 */
+    font: 12px/1.2rem Microsoft YaHei, Heiti SC, Arial;
+    max-width: 750px;
+    min-width: 320px;
+    margin: 0 auto;
+}
+
+input,
+select {
+    font-size: 12px;
+    vertical-align: middle;
+}
+
+textarea,
+input {
+    word-wrap: break-word;
+    word-break: break-all;
+}
+
+dl,
+ul,
+li,
+ol {
+    list-style: none;
+}
+
+input,
+textarea,
+img {
+    border: 0;
+}
+
+img {
+    font-size: 0;
+    line-height: 0;
+    vertical-align: top;
+}
+
+/*.clear{clear:both;visibility:hidden;height:0;line-height:0;font-size:0;}
+.clearfix:after{clear:both;content:".";height:0;display:block;visibility:hidden;}
+.clearfix{*zoom:1;}*/
+.clearfix:after {
+    content: "";
+    display: block;
+    clear: both;
+    overflow: hidden;
+    height: 0;
+    line-height: 0;
+}
+
+.clearfix {
+    zoom: 1;
+}
+
+a {
+    text-decoration: none;
+    color: #666;
+}
+
+i,
+em,
+var {
+    font-style: normal;
+}
+
+h1,
+h2,
+h3,
+h4,
+h5,
+h6,
+strong,
+b {
+    font-weight: normal;
+}
+
+a {
+    color: black;
+    /* 去除点击高亮 */
+    -webkit-tap-highlight-color: transparent;
+}
+
+a,
+a:hover,
+a:focus {
+    outline: none;
+    text-decoration: none;
+}
+
+a:hover {
+    color: #008fd2;
+}
+
+/* 省略号 */
+.ellips {
+    overflow: hidden;
+    text-overflow: ellipsis;
+    white-space: nowrap;
+}
+
+/*  滑动导航 */
+.nav .swiper-container,
+.navBox .swiper-container {
+    max-width: 7.5rem;
+    overflow: hidden;
+    background-color: #fff;
+}
+
+.nav .swiper-container .wrapper,
+.navBox .swiper-container .wrapper {
+    width: auto;
+}
+
+.nav .swiper-pagination,
+.navBox .swiper-pagination {
+    visibility: hidden;
+}
+
+.wrapper .list {
+    float: left;
+    width: auto;
+    height: 0.8rem;
+    font-size: 0.3rem;
+    line-height: 0.8rem;
+    padding: 0 0.3rem;
+    font-weight: 500;
+    white-space: nowrap;
+}
+
+.wrapper .on {
+    color: #09b8ff;
+    font-weight: 600;
+}
+
+.nav.move,
+.navBox.move {
+    position: fixed;
+    width: 100%;
+    top: 0;
+    left: 0;
+    z-index: 9;
+}
+
+.line.move {
+    width: 100%;
+    height: 0.8rem;
+}
+
+/*.clear{clear:both;height:0;font-size:0;line-height:0;overflow:hidden;}
+.clearfix{*zoom:1;}
+.clearfix:after{display:block;overflow:hidden;clear:both;height:0;visibility:hidden;content:".";}*/
+.jk_yahei {
+    font-family: Microsoft YaHei, Heiti SC, Arial;
+}
+
+.jk_song {
+    font-family: Microsoft YaHei, Heiti SC, Arial;
+}
+
+.jkn_red {
+    color: #e4393c;
+}
+
+.mc {
+    margin-left: auto;
+    margin-right: auto;
+}
+
+.fl {
+    float: left;
+}
+
+.fr {
+    float: right;
+}
+
+.rel {
+    position: relative;
+}
+
+.abs {
+    position: absolute;
+}
+
+.fix {
+    position: fixed;
+}

BIN
public/客户信息(8)/image/back.png


BIN
public/客户信息(8)/image/head.png


BIN
public/客户信息(8)/image/search.png


+ 256 - 0
public/客户信息(8)/index.html

@@ -0,0 +1,256 @@
+<!DOCTYPE html>
+<html lang="en">
+  <head>
+    <meta charset="utf-8" />
+    <meta
+      name="viewport"
+      content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no"
+    />
+    <meta name="author" content="360lj Pharmacies" />
+    <meta name="Copyright" content="360lj.com" />
+    <meta name="apple-touch-fullscreen" content="yes" />
+    <meta name="apple-mobile-web-app-capable" content="yes" />
+    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
+    <meta name="format-detection" content="telephone=no" />
+    <title>客户信息</title>
+    <link rel="stylesheet" href="./css/reset.css?v=20190521" />
+    <link rel="stylesheet" href="./css/index.css" />
+    <link rel="stylesheet" href="./css/need/layer.css" />
+    <script type="text/javascript" src="./js/jquery.js"></script>
+  </head>
+  <body>
+    <main class="main" id="app">
+      <div class="back_head">
+        客户信息
+      </div>
+      <!-- 头部搜索 -->
+      <div class="header">
+        <div class="search">
+          <img src="./image/search.png" alt="" />
+          <input type="text" placeholder="输入手机号码" />
+        </div>
+        <div class="button" onclick="search()">查询</div>
+      </div>
+      <div class="container" style="display: none;">
+        <div class="user"></div>
+        <div class="label">
+          <div class="title">标签:</div>
+          <div class="list"></div>
+        </div>
+        <div class="type">
+          <div class="selete" onclick="show(0)">订单</div>
+          <div onclick="show(1)">药品</div>
+        </div>
+        <div class="table_lists">
+          <div class="show_table" style="display:block">
+            <div class="table">
+              <div class="list_head">
+                <div>时间</div>
+                <div>平台</div>
+                <div>金额</div>
+              </div>
+              <div class="list_center1"></div>
+            </div>
+          </div>
+          <div class="show_table" style="display:none">
+            <div class="table">
+              <div class="list_head">
+                <div>时间</div>
+                <div>编码</div>
+                <div>商品名称</div>
+              </div>
+              <div class="list_center2"></div>
+            </div>
+          </div>
+        </div>
+      </div>
+    </main>
+  </body>
+  <script src="//image.360lj.com/portal/js/jquery.lazyload.js"></script>
+  <script src="./js/fastclick.js"></script>
+  <!-- 模板 js -->
+  <script src="./js/m-template.js"></script>
+  <script src="//image.360lj.com/vshop/zhuanti/2019/dc-8/yrc/js/layer/layer.js"></script>
+  <script>
+    //点击查询
+    function search() {
+      var tel = $(".search input").val();
+      // console.log(tel);
+      var re = /^1\d{10}$/;
+      if (!re.test(tel)) {
+        layer.open({
+          content: "请输入正确的手机号码",
+          skin: "msg",
+          time: 2
+        });
+        $(".container").css("display", "none");
+      } else {
+        $(".container").css("display", "block");
+        $.ajax({
+          //   url: "http://192.168.10.87:8090/memberexts/findBaseInfoByMemberPhone",
+          url:
+            "http://119.130.113.245:8005/memberexts/findBaseInfoByMemberPhone",
+          type: "GET",
+          data: {
+            phone: tel
+          },
+          dataType: "json",
+          success: function(data) {
+            // console.log(data.data);
+            // console.log(!data.success);
+            if (!data.success) {
+              $(".container").css("display", "none");
+              layer.open({
+                content: data.msg,
+                skin: "msg",
+                time: 2
+              });
+              //   throw SyntaxError();
+              return false;
+            } else {
+              // $(".container").css("display", "block");
+              var user = data.data;
+              // console.log(user.PatientAge);
+              user.PatientAge =
+                user.PatientAge == null || user.PatientAge === "null"
+                  ? "--"
+                  : user.PatientAge;
+              user.Gender = user.Gender === "未知" ? "-" : user.Gender;
+              var str = "";
+              str +=
+                "<div class='portrait'><img src='./image/head.png' alt=''/></div>" +
+                "<div class='message'><p>" +
+                user.MemName +
+                "</p>" +
+                "<p><span>" +
+                user.Gender +
+                "</span><span>" +
+                user.PatientAge +
+                "岁</span><span>" +
+                tel +
+                "</span></p><p>地址:" +
+                user.DeliveryAddress +
+                "</p></div >";
+              $(".user").html(str);
+            }
+          }
+        });
+        $.ajax({
+          //   url: "http://192.168.10.87:8090/memberexts/findBaseInfoByMemberPhone",
+          url: "http://119.130.113.245:8005/memberexts/findTagsByMemberPhone",
+          type: "GET",
+          data: {
+            phone: tel
+          },
+          dataType: "json",
+          success: function(data) {
+            if (!data.success) {
+              $(".container").css("display", "none");
+              return false;
+            }
+            // console.log(data.data);
+            // console.log(data);
+            var user = data.data;
+            var str1 = "";
+            for (var i = 0; i < user.length; i++) {
+              //遍历data数组
+              str1 +=
+                "<div>" +
+                user[i].TagTypeName +
+                "/" +
+                user[i].TagName +
+                "</div>";
+            }
+            $(".list").html(str1);
+          }
+        });
+        $.ajax({
+          //   url: "http://192.168.10.87:8090/memberexts/findBaseInfoByMemberPhone",
+          url: "http://119.130.113.245:8005/memberOrder/findOrderByPhone",
+          type: "POST",
+          data: {
+            phone: tel,
+            start: "",
+            end: "",
+            orderCode: ""
+          },
+          dataType: "json",
+          success: function(data) {
+            if (!data.success) {
+              $(".container").css("display", "none");
+              return false;
+            }
+            // console.log(data.data);
+            // console.log(data);
+            var user = data.data;
+
+            var drug = user.sort((b, a) =>
+              a.CreationDate > b.CreationDate
+                ? 1
+                : b.CreationDate > a.CreationDate
+                ? -1
+                : 0
+            );
+            var obj = {};
+            var order = drug.reduce(function(item, next) {
+              obj[next.OrdersCode]
+                ? ""
+                : (obj[next.OrdersCode] = true && item.push(next));
+              return item;
+            }, []);
+            var str2 = "";
+            for (var i = 0; i < order.length; i++) {
+              //遍历data数组
+              str2 +=
+                "<div class='list_td'><div>" +
+                order[i].CreationDate +
+                "</div><div>" +
+                order[i].PlantForm +
+                "</div><div>" +
+                order[i].Sum +
+                "</div></div>";
+            }
+            $(".list_center1").html(str2);
+            var str3 = "";
+            for (var i = 0; i < drug.length; i++) {
+              //遍历data数组
+              str3 +=
+                "<div class='list_td2'><div>" +
+                drug[i].CreationDate +
+                "</div><div>" +
+                drug[i].ProductCode +
+                "</div><div><span>" +
+                drug[i].ProductName +
+                "</span></div></div>";
+            }
+            $(".list_center2").html(str3);
+          }
+        });
+      }
+    }
+  </script>
+  <script>
+    // 点击tab切换
+    function show(v) {
+      for (var j = 0; j < $(".type div").length; j++) {
+        if (v == j) {
+          $(".type div")[j].className = "selete";
+          showw(j);
+        } else {
+          $(".type div")[j].className = "";
+        }
+      }
+    }
+
+    function showw(v) {
+      for (var j = 0; j < $(".show_table").length; j++) {
+        if (v == j) {
+          $(".show_table")[j].style = "display:block";
+          a = v;
+        } else {
+          $(".show_table")[j].style = "display:none";
+        }
+      }
+    }
+  </script>
+</html>

+ 841 - 0
public/客户信息(8)/js/fastclick.js

@@ -0,0 +1,841 @@
+;(function () {
+	'use strict';
+
+	/**
+	 * @preserve FastClick: polyfill to remove click delays on browsers with touch UIs.
+	 *
+	 * @codingstandard ftlabs-jsv2
+	 * @copyright The Financial Times Limited [All Rights Reserved]
+	 * @license MIT License (see LICENSE.txt)
+	 */
+
+	/*jslint browser:true, node:true*/
+	/*global define, Event, Node*/
+
+
+	/**
+	 * Instantiate fast-clicking listeners on the specified layer.
+	 *
+	 * @constructor
+	 * @param {Element} layer The layer to listen on
+	 * @param {Object} [options={}] The options to override the defaults
+	 */
+	function FastClick(layer, options) {
+		var oldOnClick;
+
+		options = options || {};
+
+		/**
+		 * Whether a click is currently being tracked.
+		 *
+		 * @type boolean
+		 */
+		this.trackingClick = false;
+
+
+		/**
+		 * Timestamp for when click tracking started.
+		 *
+		 * @type number
+		 */
+		this.trackingClickStart = 0;
+
+
+		/**
+		 * The element being tracked for a click.
+		 *
+		 * @type EventTarget
+		 */
+		this.targetElement = null;
+
+
+		/**
+		 * X-coordinate of touch start event.
+		 *
+		 * @type number
+		 */
+		this.touchStartX = 0;
+
+
+		/**
+		 * Y-coordinate of touch start event.
+		 *
+		 * @type number
+		 */
+		this.touchStartY = 0;
+
+
+		/**
+		 * ID of the last touch, retrieved from Touch.identifier.
+		 *
+		 * @type number
+		 */
+		this.lastTouchIdentifier = 0;
+
+
+		/**
+		 * Touchmove boundary, beyond which a click will be cancelled.
+		 *
+		 * @type number
+		 */
+		this.touchBoundary = options.touchBoundary || 10;
+
+
+		/**
+		 * The FastClick layer.
+		 *
+		 * @type Element
+		 */
+		this.layer = layer;
+
+		/**
+		 * The minimum time between tap(touchstart and touchend) events
+		 *
+		 * @type number
+		 */
+		this.tapDelay = options.tapDelay || 200;
+
+		/**
+		 * The maximum time for a tap
+		 *
+		 * @type number
+		 */
+		this.tapTimeout = options.tapTimeout || 700;
+
+		if (FastClick.notNeeded(layer)) {
+			return;
+		}
+
+		// Some old versions of Android don't have Function.prototype.bind
+		function bind(method, context) {
+			return function() { return method.apply(context, arguments); };
+		}
+
+
+		var methods = ['onMouse', 'onClick', 'onTouchStart', 'onTouchMove', 'onTouchEnd', 'onTouchCancel'];
+		var context = this;
+		for (var i = 0, l = methods.length; i < l; i++) {
+			context[methods[i]] = bind(context[methods[i]], context);
+		}
+
+		// Set up event handlers as required
+		if (deviceIsAndroid) {
+			layer.addEventListener('mouseover', this.onMouse, true);
+			layer.addEventListener('mousedown', this.onMouse, true);
+			layer.addEventListener('mouseup', this.onMouse, true);
+		}
+
+		layer.addEventListener('click', this.onClick, true);
+		layer.addEventListener('touchstart', this.onTouchStart, false);
+		layer.addEventListener('touchmove', this.onTouchMove, false);
+		layer.addEventListener('touchend', this.onTouchEnd, false);
+		layer.addEventListener('touchcancel', this.onTouchCancel, false);
+
+		// Hack is required for browsers that don't support Event#stopImmediatePropagation (e.g. Android 2)
+		// which is how FastClick normally stops click events bubbling to callbacks registered on the FastClick
+		// layer when they are cancelled.
+		if (!Event.prototype.stopImmediatePropagation) {
+			layer.removeEventListener = function(type, callback, capture) {
+				var rmv = Node.prototype.removeEventListener;
+				if (type === 'click') {
+					rmv.call(layer, type, callback.hijacked || callback, capture);
+				} else {
+					rmv.call(layer, type, callback, capture);
+				}
+			};
+
+			layer.addEventListener = function(type, callback, capture) {
+				var adv = Node.prototype.addEventListener;
+				if (type === 'click') {
+					adv.call(layer, type, callback.hijacked || (callback.hijacked = function(event) {
+						if (!event.propagationStopped) {
+							callback(event);
+						}
+					}), capture);
+				} else {
+					adv.call(layer, type, callback, capture);
+				}
+			};
+		}
+
+		// If a handler is already declared in the element's onclick attribute, it will be fired before
+		// FastClick's onClick handler. Fix this by pulling out the user-defined handler function and
+		// adding it as listener.
+		if (typeof layer.onclick === 'function') {
+
+			// Android browser on at least 3.2 requires a new reference to the function in layer.onclick
+			// - the old one won't work if passed to addEventListener directly.
+			oldOnClick = layer.onclick;
+			layer.addEventListener('click', function(event) {
+				oldOnClick(event);
+			}, false);
+			layer.onclick = null;
+		}
+	}
+
+	/**
+	* Windows Phone 8.1 fakes user agent string to look like Android and iPhone.
+	*
+	* @type boolean
+	*/
+	var deviceIsWindowsPhone = navigator.userAgent.indexOf("Windows Phone") >= 0;
+
+	/**
+	 * Android requires exceptions.
+	 *
+	 * @type boolean
+	 */
+	var deviceIsAndroid = navigator.userAgent.indexOf('Android') > 0 && !deviceIsWindowsPhone;
+
+
+	/**
+	 * iOS requires exceptions.
+	 *
+	 * @type boolean
+	 */
+	var deviceIsIOS = /iP(ad|hone|od)/.test(navigator.userAgent) && !deviceIsWindowsPhone;
+
+
+	/**
+	 * iOS 4 requires an exception for select elements.
+	 *
+	 * @type boolean
+	 */
+	var deviceIsIOS4 = deviceIsIOS && (/OS 4_\d(_\d)?/).test(navigator.userAgent);
+
+
+	/**
+	 * iOS 6.0-7.* requires the target element to be manually derived
+	 *
+	 * @type boolean
+	 */
+	var deviceIsIOSWithBadTarget = deviceIsIOS && (/OS [6-7]_\d/).test(navigator.userAgent);
+
+	/**
+	 * BlackBerry requires exceptions.
+	 *
+	 * @type boolean
+	 */
+	var deviceIsBlackBerry10 = navigator.userAgent.indexOf('BB10') > 0;
+
+	/**
+	 * Determine whether a given element requires a native click.
+	 *
+	 * @param {EventTarget|Element} target Target DOM element
+	 * @returns {boolean} Returns true if the element needs a native click
+	 */
+	FastClick.prototype.needsClick = function(target) {
+		switch (target.nodeName.toLowerCase()) {
+
+		// Don't send a synthetic click to disabled inputs (issue #62)
+		case 'button':
+		case 'select':
+		case 'textarea':
+			if (target.disabled) {
+				return true;
+			}
+
+			break;
+		case 'input':
+
+			// File inputs need real clicks on iOS 6 due to a browser bug (issue #68)
+			if ((deviceIsIOS && target.type === 'file') || target.disabled) {
+				return true;
+			}
+
+			break;
+		case 'label':
+		case 'iframe': // iOS8 homescreen apps can prevent events bubbling into frames
+		case 'video':
+			return true;
+		}
+
+		return (/\bneedsclick\b/).test(target.className);
+	};
+
+
+	/**
+	 * Determine whether a given element requires a call to focus to simulate click into element.
+	 *
+	 * @param {EventTarget|Element} target Target DOM element
+	 * @returns {boolean} Returns true if the element requires a call to focus to simulate native click.
+	 */
+	FastClick.prototype.needsFocus = function(target) {
+		switch (target.nodeName.toLowerCase()) {
+		case 'textarea':
+			return true;
+		case 'select':
+			return !deviceIsAndroid;
+		case 'input':
+			switch (target.type) {
+			case 'button':
+			case 'checkbox':
+			case 'file':
+			case 'image':
+			case 'radio':
+			case 'submit':
+				return false;
+			}
+
+			// No point in attempting to focus disabled inputs
+			return !target.disabled && !target.readOnly;
+		default:
+			return (/\bneedsfocus\b/).test(target.className);
+		}
+	};
+
+
+	/**
+	 * Send a click event to the specified element.
+	 *
+	 * @param {EventTarget|Element} targetElement
+	 * @param {Event} event
+	 */
+	FastClick.prototype.sendClick = function(targetElement, event) {
+		var clickEvent, touch;
+
+		// On some Android devices activeElement needs to be blurred otherwise the synthetic click will have no effect (#24)
+		if (document.activeElement && document.activeElement !== targetElement) {
+			document.activeElement.blur();
+		}
+
+		touch = event.changedTouches[0];
+
+		// Synthesise a click event, with an extra attribute so it can be tracked
+		clickEvent = document.createEvent('MouseEvents');
+		clickEvent.initMouseEvent(this.determineEventType(targetElement), true, true, window, 1, touch.screenX, touch.screenY, touch.clientX, touch.clientY, false, false, false, false, 0, null);
+		clickEvent.forwardedTouchEvent = true;
+		targetElement.dispatchEvent(clickEvent);
+	};
+
+	FastClick.prototype.determineEventType = function(targetElement) {
+
+		//Issue #159: Android Chrome Select Box does not open with a synthetic click event
+		if (deviceIsAndroid && targetElement.tagName.toLowerCase() === 'select') {
+			return 'mousedown';
+		}
+
+		return 'click';
+	};
+
+
+	/**
+	 * @param {EventTarget|Element} targetElement
+	 */
+	FastClick.prototype.focus = function(targetElement) {
+		var length;
+
+		// Issue #160: on iOS 7, some input elements (e.g. date datetime month) throw a vague TypeError on setSelectionRange. These elements don't have an integer value for the selectionStart and selectionEnd properties, but unfortunately that can't be used for detection because accessing the properties also throws a TypeError. Just check the type instead. Filed as Apple bug #15122724.
+		if (deviceIsIOS && targetElement.setSelectionRange && targetElement.type.indexOf('date') !== 0 && targetElement.type !== 'time' && targetElement.type !== 'month') {
+			length = targetElement.value.length;
+			targetElement.setSelectionRange(length, length);
+		} else {
+			targetElement.focus();
+		}
+	};
+
+
+	/**
+	 * Check whether the given target element is a child of a scrollable layer and if so, set a flag on it.
+	 *
+	 * @param {EventTarget|Element} targetElement
+	 */
+	FastClick.prototype.updateScrollParent = function(targetElement) {
+		var scrollParent, parentElement;
+
+		scrollParent = targetElement.fastClickScrollParent;
+
+		// Attempt to discover whether the target element is contained within a scrollable layer. Re-check if the
+		// target element was moved to another parent.
+		if (!scrollParent || !scrollParent.contains(targetElement)) {
+			parentElement = targetElement;
+			do {
+				if (parentElement.scrollHeight > parentElement.offsetHeight) {
+					scrollParent = parentElement;
+					targetElement.fastClickScrollParent = parentElement;
+					break;
+				}
+
+				parentElement = parentElement.parentElement;
+			} while (parentElement);
+		}
+
+		// Always update the scroll top tracker if possible.
+		if (scrollParent) {
+			scrollParent.fastClickLastScrollTop = scrollParent.scrollTop;
+		}
+	};
+
+
+	/**
+	 * @param {EventTarget} targetElement
+	 * @returns {Element|EventTarget}
+	 */
+	FastClick.prototype.getTargetElementFromEventTarget = function(eventTarget) {
+
+		// On some older browsers (notably Safari on iOS 4.1 - see issue #56) the event target may be a text node.
+		if (eventTarget.nodeType === Node.TEXT_NODE) {
+			return eventTarget.parentNode;
+		}
+
+		return eventTarget;
+	};
+
+
+	/**
+	 * On touch start, record the position and scroll offset.
+	 *
+	 * @param {Event} event
+	 * @returns {boolean}
+	 */
+	FastClick.prototype.onTouchStart = function(event) {
+		var targetElement, touch, selection;
+
+		// Ignore multiple touches, otherwise pinch-to-zoom is prevented if both fingers are on the FastClick element (issue #111).
+		if (event.targetTouches.length > 1) {
+			return true;
+		}
+
+		targetElement = this.getTargetElementFromEventTarget(event.target);
+		touch = event.targetTouches[0];
+
+		if (deviceIsIOS) {
+
+			// Only trusted events will deselect text on iOS (issue #49)
+			selection = window.getSelection();
+			if (selection.rangeCount && !selection.isCollapsed) {
+				return true;
+			}
+
+			if (!deviceIsIOS4) {
+
+				// Weird things happen on iOS when an alert or confirm dialog is opened from a click event callback (issue #23):
+				// when the user next taps anywhere else on the page, new touchstart and touchend events are dispatched
+				// with the same identifier as the touch event that previously triggered the click that triggered the alert.
+				// Sadly, there is an issue on iOS 4 that causes some normal touch events to have the same identifier as an
+				// immediately preceeding touch event (issue #52), so this fix is unavailable on that platform.
+				// Issue 120: touch.identifier is 0 when Chrome dev tools 'Emulate touch events' is set with an iOS device UA string,
+				// which causes all touch events to be ignored. As this block only applies to iOS, and iOS identifiers are always long,
+				// random integers, it's safe to to continue if the identifier is 0 here.
+				if (touch.identifier && touch.identifier === this.lastTouchIdentifier) {
+					event.preventDefault();
+					return false;
+				}
+
+				this.lastTouchIdentifier = touch.identifier;
+
+				// If the target element is a child of a scrollable layer (using -webkit-overflow-scrolling: touch) and:
+				// 1) the user does a fling scroll on the scrollable layer
+				// 2) the user stops the fling scroll with another tap
+				// then the event.target of the last 'touchend' event will be the element that was under the user's finger
+				// when the fling scroll was started, causing FastClick to send a click event to that layer - unless a check
+				// is made to ensure that a parent layer was not scrolled before sending a synthetic click (issue #42).
+				this.updateScrollParent(targetElement);
+			}
+		}
+
+		this.trackingClick = true;
+		this.trackingClickStart = event.timeStamp;
+		this.targetElement = targetElement;
+
+		this.touchStartX = touch.pageX;
+		this.touchStartY = touch.pageY;
+
+		// Prevent phantom clicks on fast double-tap (issue #36)
+		if ((event.timeStamp - this.lastClickTime) < this.tapDelay) {
+			event.preventDefault();
+		}
+
+		return true;
+	};
+
+
+	/**
+	 * Based on a touchmove event object, check whether the touch has moved past a boundary since it started.
+	 *
+	 * @param {Event} event
+	 * @returns {boolean}
+	 */
+	FastClick.prototype.touchHasMoved = function(event) {
+		var touch = event.changedTouches[0], boundary = this.touchBoundary;
+
+		if (Math.abs(touch.pageX - this.touchStartX) > boundary || Math.abs(touch.pageY - this.touchStartY) > boundary) {
+			return true;
+		}
+
+		return false;
+	};
+
+
+	/**
+	 * Update the last position.
+	 *
+	 * @param {Event} event
+	 * @returns {boolean}
+	 */
+	FastClick.prototype.onTouchMove = function(event) {
+		if (!this.trackingClick) {
+			return true;
+		}
+
+		// If the touch has moved, cancel the click tracking
+		if (this.targetElement !== this.getTargetElementFromEventTarget(event.target) || this.touchHasMoved(event)) {
+			this.trackingClick = false;
+			this.targetElement = null;
+		}
+
+		return true;
+	};
+
+
+	/**
+	 * Attempt to find the labelled control for the given label element.
+	 *
+	 * @param {EventTarget|HTMLLabelElement} labelElement
+	 * @returns {Element|null}
+	 */
+	FastClick.prototype.findControl = function(labelElement) {
+
+		// Fast path for newer browsers supporting the HTML5 control attribute
+		if (labelElement.control !== undefined) {
+			return labelElement.control;
+		}
+
+		// All browsers under test that support touch events also support the HTML5 htmlFor attribute
+		if (labelElement.htmlFor) {
+			return document.getElementById(labelElement.htmlFor);
+		}
+
+		// If no for attribute exists, attempt to retrieve the first labellable descendant element
+		// the list of which is defined here: http://www.w3.org/TR/html5/forms.html#category-label
+		return labelElement.querySelector('button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea');
+	};
+
+
+	/**
+	 * On touch end, determine whether to send a click event at once.
+	 *
+	 * @param {Event} event
+	 * @returns {boolean}
+	 */
+	FastClick.prototype.onTouchEnd = function(event) {
+		var forElement, trackingClickStart, targetTagName, scrollParent, touch, targetElement = this.targetElement;
+
+		if (!this.trackingClick) {
+			return true;
+		}
+
+		// Prevent phantom clicks on fast double-tap (issue #36)
+		if ((event.timeStamp - this.lastClickTime) < this.tapDelay) {
+			this.cancelNextClick = true;
+			return true;
+		}
+
+		if ((event.timeStamp - this.trackingClickStart) > this.tapTimeout) {
+			return true;
+		}
+
+		// Reset to prevent wrong click cancel on input (issue #156).
+		this.cancelNextClick = false;
+
+		this.lastClickTime = event.timeStamp;
+
+		trackingClickStart = this.trackingClickStart;
+		this.trackingClick = false;
+		this.trackingClickStart = 0;
+
+		// On some iOS devices, the targetElement supplied with the event is invalid if the layer
+		// is performing a transition or scroll, and has to be re-detected manually. Note that
+		// for this to function correctly, it must be called *after* the event target is checked!
+		// See issue #57; also filed as rdar://13048589 .
+		if (deviceIsIOSWithBadTarget) {
+			touch = event.changedTouches[0];
+
+			// In certain cases arguments of elementFromPoint can be negative, so prevent setting targetElement to null
+			targetElement = document.elementFromPoint(touch.pageX - window.pageXOffset, touch.pageY - window.pageYOffset) || targetElement;
+			targetElement.fastClickScrollParent = this.targetElement.fastClickScrollParent;
+		}
+
+		targetTagName = targetElement.tagName.toLowerCase();
+		if (targetTagName === 'label') {
+			forElement = this.findControl(targetElement);
+			if (forElement) {
+				this.focus(targetElement);
+				if (deviceIsAndroid) {
+					return false;
+				}
+
+				targetElement = forElement;
+			}
+		} else if (this.needsFocus(targetElement)) {
+
+			// Case 1: If the touch started a while ago (best guess is 100ms based on tests for issue #36) then focus will be triggered anyway. Return early and unset the target element reference so that the subsequent click will be allowed through.
+			// Case 2: Without this exception for input elements tapped when the document is contained in an iframe, then any inputted text won't be visible even though the value attribute is updated as the user types (issue #37).
+			if ((event.timeStamp - trackingClickStart) > 100 || (deviceIsIOS && window.top !== window && targetTagName === 'input')) {
+				this.targetElement = null;
+				return false;
+			}
+
+			this.focus(targetElement);
+			this.sendClick(targetElement, event);
+
+			// Select elements need the event to go through on iOS 4, otherwise the selector menu won't open.
+			// Also this breaks opening selects when VoiceOver is active on iOS6, iOS7 (and possibly others)
+			if (!deviceIsIOS || targetTagName !== 'select') {
+				this.targetElement = null;
+				event.preventDefault();
+			}
+
+			return false;
+		}
+
+		if (deviceIsIOS && !deviceIsIOS4) {
+
+			// Don't send a synthetic click event if the target element is contained within a parent layer that was scrolled
+			// and this tap is being used to stop the scrolling (usually initiated by a fling - issue #42).
+			scrollParent = targetElement.fastClickScrollParent;
+			if (scrollParent && scrollParent.fastClickLastScrollTop !== scrollParent.scrollTop) {
+				return true;
+			}
+		}
+
+		// Prevent the actual click from going though - unless the target node is marked as requiring
+		// real clicks or if it is in the whitelist in which case only non-programmatic clicks are permitted.
+		if (!this.needsClick(targetElement)) {
+			event.preventDefault();
+			this.sendClick(targetElement, event);
+		}
+
+		return false;
+	};
+
+
+	/**
+	 * On touch cancel, stop tracking the click.
+	 *
+	 * @returns {void}
+	 */
+	FastClick.prototype.onTouchCancel = function() {
+		this.trackingClick = false;
+		this.targetElement = null;
+	};
+
+
+	/**
+	 * Determine mouse events which should be permitted.
+	 *
+	 * @param {Event} event
+	 * @returns {boolean}
+	 */
+	FastClick.prototype.onMouse = function(event) {
+
+		// If a target element was never set (because a touch event was never fired) allow the event
+		if (!this.targetElement) {
+			return true;
+		}
+
+		if (event.forwardedTouchEvent) {
+			return true;
+		}
+
+		// Programmatically generated events targeting a specific element should be permitted
+		if (!event.cancelable) {
+			return true;
+		}
+
+		// Derive and check the target element to see whether the mouse event needs to be permitted;
+		// unless explicitly enabled, prevent non-touch click events from triggering actions,
+		// to prevent ghost/doubleclicks.
+		if (!this.needsClick(this.targetElement) || this.cancelNextClick) {
+
+			// Prevent any user-added listeners declared on FastClick element from being fired.
+			if (event.stopImmediatePropagation) {
+				event.stopImmediatePropagation();
+			} else {
+
+				// Part of the hack for browsers that don't support Event#stopImmediatePropagation (e.g. Android 2)
+				event.propagationStopped = true;
+			}
+
+			// Cancel the event
+			event.stopPropagation();
+			event.preventDefault();
+
+			return false;
+		}
+
+		// If the mouse event is permitted, return true for the action to go through.
+		return true;
+	};
+
+
+	/**
+	 * On actual clicks, determine whether this is a touch-generated click, a click action occurring
+	 * naturally after a delay after a touch (which needs to be cancelled to avoid duplication), or
+	 * an actual click which should be permitted.
+	 *
+	 * @param {Event} event
+	 * @returns {boolean}
+	 */
+	FastClick.prototype.onClick = function(event) {
+		var permitted;
+
+		// It's possible for another FastClick-like library delivered with third-party code to fire a click event before FastClick does (issue #44). In that case, set the click-tracking flag back to false and return early. This will cause onTouchEnd to return early.
+		if (this.trackingClick) {
+			this.targetElement = null;
+			this.trackingClick = false;
+			return true;
+		}
+
+		// Very odd behaviour on iOS (issue #18): if a submit element is present inside a form and the user hits enter in the iOS simulator or clicks the Go button on the pop-up OS keyboard the a kind of 'fake' click event will be triggered with the submit-type input element as the target.
+		if (event.target.type === 'submit' && event.detail === 0) {
+			return true;
+		}
+
+		permitted = this.onMouse(event);
+
+		// Only unset targetElement if the click is not permitted. This will ensure that the check for !targetElement in onMouse fails and the browser's click doesn't go through.
+		if (!permitted) {
+			this.targetElement = null;
+		}
+
+		// If clicks are permitted, return true for the action to go through.
+		return permitted;
+	};
+
+
+	/**
+	 * Remove all FastClick's event listeners.
+	 *
+	 * @returns {void}
+	 */
+	FastClick.prototype.destroy = function() {
+		var layer = this.layer;
+
+		if (deviceIsAndroid) {
+			layer.removeEventListener('mouseover', this.onMouse, true);
+			layer.removeEventListener('mousedown', this.onMouse, true);
+			layer.removeEventListener('mouseup', this.onMouse, true);
+		}
+
+		layer.removeEventListener('click', this.onClick, true);
+		layer.removeEventListener('touchstart', this.onTouchStart, false);
+		layer.removeEventListener('touchmove', this.onTouchMove, false);
+		layer.removeEventListener('touchend', this.onTouchEnd, false);
+		layer.removeEventListener('touchcancel', this.onTouchCancel, false);
+	};
+
+
+	/**
+	 * Check whether FastClick is needed.
+	 *
+	 * @param {Element} layer The layer to listen on
+	 */
+	FastClick.notNeeded = function(layer) {
+		var metaViewport;
+		var chromeVersion;
+		var blackberryVersion;
+		var firefoxVersion;
+
+		// Devices that don't support touch don't need FastClick
+		if (typeof window.ontouchstart === 'undefined') {
+			return true;
+		}
+
+		// Chrome version - zero for other browsers
+		chromeVersion = +(/Chrome\/([0-9]+)/.exec(navigator.userAgent) || [,0])[1];
+
+		if (chromeVersion) {
+
+			if (deviceIsAndroid) {
+				metaViewport = document.querySelector('meta[name=viewport]');
+
+				if (metaViewport) {
+					// Chrome on Android with user-scalable="no" doesn't need FastClick (issue #89)
+					if (metaViewport.content.indexOf('user-scalable=no') !== -1) {
+						return true;
+					}
+					// Chrome 32 and above with width=device-width or less don't need FastClick
+					if (chromeVersion > 31 && document.documentElement.scrollWidth <= window.outerWidth) {
+						return true;
+					}
+				}
+
+			// Chrome desktop doesn't need FastClick (issue #15)
+			} else {
+				return true;
+			}
+		}
+
+		if (deviceIsBlackBerry10) {
+			blackberryVersion = navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/);
+
+			// BlackBerry 10.3+ does not require Fastclick library.
+			// https://github.com/ftlabs/fastclick/issues/251
+			if (blackberryVersion[1] >= 10 && blackberryVersion[2] >= 3) {
+				metaViewport = document.querySelector('meta[name=viewport]');
+
+				if (metaViewport) {
+					// user-scalable=no eliminates click delay.
+					if (metaViewport.content.indexOf('user-scalable=no') !== -1) {
+						return true;
+					}
+					// width=device-width (or less than device-width) eliminates click delay.
+					if (document.documentElement.scrollWidth <= window.outerWidth) {
+						return true;
+					}
+				}
+			}
+		}
+
+		// IE10 with -ms-touch-action: none or manipulation, which disables double-tap-to-zoom (issue #97)
+		if (layer.style.msTouchAction === 'none' || layer.style.touchAction === 'manipulation') {
+			return true;
+		}
+
+		// Firefox version - zero for other browsers
+		firefoxVersion = +(/Firefox\/([0-9]+)/.exec(navigator.userAgent) || [,0])[1];
+
+		if (firefoxVersion >= 27) {
+			// Firefox 27+ does not have tap delay if the content is not zoomable - https://bugzilla.mozilla.org/show_bug.cgi?id=922896
+
+			metaViewport = document.querySelector('meta[name=viewport]');
+			if (metaViewport && (metaViewport.content.indexOf('user-scalable=no') !== -1 || document.documentElement.scrollWidth <= window.outerWidth)) {
+				return true;
+			}
+		}
+
+		// IE11: prefixed -ms-touch-action is no longer supported and it's recomended to use non-prefixed version
+		// http://msdn.microsoft.com/en-us/library/windows/apps/Hh767313.aspx
+		if (layer.style.touchAction === 'none' || layer.style.touchAction === 'manipulation') {
+			return true;
+		}
+
+		return false;
+	};
+
+
+	/**
+	 * Factory method for creating a FastClick object
+	 *
+	 * @param {Element} layer The layer to listen on
+	 * @param {Object} [options={}] The options to override the defaults
+	 */
+	FastClick.attach = function(layer, options) {
+		return new FastClick(layer, options);
+	};
+
+
+	if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {
+
+		// AMD. Register as an anonymous module.
+		define(function() {
+			return FastClick;
+		});
+	} else if (typeof module !== 'undefined' && module.exports) {
+		module.exports = FastClick.attach;
+		module.exports.FastClick = FastClick;
+	} else {
+		window.FastClick = FastClick;
+	}
+}());

File diff suppressed because it is too large
+ 2 - 0
public/客户信息(8)/js/jquery.js


+ 180 - 0
public/客户信息(8)/js/layer.js

@@ -0,0 +1,180 @@
+/*! layer mobile-v2.0 弹层组件移动版 License LGPL http://layer.layui.com/mobile By 贤心 */
+!(function(a) {
+  "use strict";
+  var b = document,
+    c = "querySelectorAll",
+    d = "getElementsByClassName",
+    e = function(a) {
+      return b[c](a);
+    },
+    f = { type: 0, shade: !0, shadeClose: !0, fixed: !0, anim: "scale" },
+    g = {
+      extend: function(a) {
+        var b = JSON.parse(JSON.stringify(f));
+        for (var c in a) b[c] = a[c];
+        return b;
+      },
+      timer: {},
+      end: {}
+    };
+  g.touch = function(a, b) {
+    a.addEventListener(
+      "click",
+      function(a) {
+        b.call(this, a);
+      },
+      !1
+    );
+  };
+  var h = 0,
+    i = ["layui-m-layer"],
+    j = function(a) {
+      var b = this;
+      (b.config = g.extend(a)), b.view();
+    };
+  (j.prototype.view = function() {
+    var a = this,
+      c = a.config,
+      f = b.createElement("div");
+    (a.id = f.id = i[0] + h),
+      f.setAttribute("class", i[0] + " " + i[0] + (c.type || 0)),
+      f.setAttribute("index", h);
+    var g = (function() {
+        var a = "object" == typeof c.title;
+        return c.title
+          ? '<h3 style="' +
+              (a ? c.title[1] : "") +
+              '">' +
+              (a ? c.title[0] : c.title) +
+              "</h3>"
+          : "";
+      })(),
+      j = (function() {
+        "string" == typeof c.btn && (c.btn = [c.btn]);
+        var a,
+          b = (c.btn || []).length;
+        return 0 !== b && c.btn
+          ? ((a = '<span yes type="1">' + c.btn[0] + "</span>"),
+            2 === b && (a = '<span no type="0">' + c.btn[1] + "</span>" + a),
+            '<div class="layui-m-layerbtn">' + a + "</div>")
+          : "";
+      })();
+    if (
+      (c.fixed ||
+        ((c.top = c.hasOwnProperty("top") ? c.top : 100),
+        (c.style = c.style || ""),
+        (c.style += " top:" + (b.body.scrollTop + c.top) + "px")),
+      2 === c.type &&
+        (c.content =
+          '<i></i><i class="layui-m-layerload"></i><i></i><p>' +
+          (c.content || "") +
+          "</p>"),
+      c.skin && (c.anim = "up"),
+      "msg" === c.skin && (c.shade = !1),
+      (f.innerHTML =
+        (c.shade
+          ? "<div " +
+            ("string" == typeof c.shade ? 'style="' + c.shade + '"' : "") +
+            ' class="layui-m-layershade"></div>'
+          : "") +
+        '<div class="layui-m-layermain" ' +
+        (c.fixed ? "" : 'style="position:static;"') +
+        '><div class="layui-m-layersection"><div class="layui-m-layerchild ' +
+        (c.skin ? "layui-m-layer-" + c.skin + " " : "") +
+        (c.className ? c.className : "") +
+        " " +
+        (c.anim ? "layui-m-anim-" + c.anim : "") +
+        '" ' +
+        (c.style ? 'style="' + c.style + '"' : "") +
+        ">" +
+        g +
+        '<div class="layui-m-layercont">' +
+        c.content +
+        "</div>" +
+        j +
+        "</div></div></div>"),
+      !c.type || 2 === c.type)
+    ) {
+      var k = b[d](i[0] + c.type),
+        l = k.length;
+      l >= 1 && layer.close(k[0].getAttribute("index"));
+    }
+    document.body.appendChild(f);
+    var m = (a.elem = e("#" + a.id)[0]);
+    c.success && c.success(m), (a.index = h++), a.action(c, m);
+  }),
+    (j.prototype.action = function(a, b) {
+      var c = this;
+      a.time &&
+        (g.timer[c.index] = setTimeout(function() {
+          layer.close(c.index);
+        }, 1e3 * a.time));
+      var e = function() {
+        var b = this.getAttribute("type");
+        0 == b
+          ? (a.no && a.no(), layer.close(c.index))
+          : a.yes
+          ? a.yes(c.index)
+          : layer.close(c.index);
+      };
+      if (a.btn)
+        for (
+          var f = b[d]("layui-m-layerbtn")[0].children, h = f.length, i = 0;
+          h > i;
+          i++
+        )
+          g.touch(f[i], e);
+      if (a.shade && a.shadeClose) {
+        var j = b[d]("layui-m-layershade")[0];
+        g.touch(j, function() {
+          layer.close(c.index, a.end);
+        });
+      }
+      a.end && (g.end[c.index] = a.end);
+    }),
+    (a.layer = {
+      v: "2.0",
+      index: h,
+      open: function(a) {
+        var b = new j(a || {});
+        return b.index;
+      },
+      close: function(a) {
+        var c = e("#" + i[0] + a)[0];
+        c &&
+          ((c.innerHTML = ""),
+          b.body.removeChild(c),
+          clearTimeout(g.timer[a]),
+          delete g.timer[a],
+          "function" == typeof g.end[a] && g.end[a](),
+          delete g.end[a]);
+      },
+      closeAll: function() {
+        for (var a = b[d](i[0]), c = 0, e = a.length; e > c; c++)
+          layer.close(0 | a[0].getAttribute("index"));
+      }
+    }),
+    "function" == typeof define
+      ? define(function() {
+          return layer;
+        })
+      : (function() {
+          var a = document.scripts,
+            c = a[a.length - 1],
+            d = c.src,
+            e = d.substring(0, d.lastIndexOf("/") + 1);
+          c.getAttribute("merge") ||
+            document.head.appendChild(
+              (function() {
+                var a = b.createElement("link");
+                return (
+                  (a.href = e + "need/layer.css?2.0"),
+                  (a.type = "text/css"),
+                  (a.rel = "styleSheet"),
+                  (a.id = "layermcss"),
+                  a
+                );
+              })()
+            );
+        })();
+})(window);

+ 279 - 0
public/客户信息(8)/js/m-template.js

@@ -0,0 +1,279 @@
+/**
+ * 1.自动计算html的font-size
+ * 2.联系客服 (类名:.ljkf .lxkf  .zxkf)
+ * 3.优惠券 lqcoupon(优惠券ID , 1=PC / 2=M/V )
+ * 4.模板函数  用法: template({
+        templateHtml:templateHtml,//模板字符串
+        productId:productId,// 产品id  例:[{id: 0,list: [737402, 750812, 736883, 721035, 751441, 734695]}] id和索引值对应(可不填)  如果想自定义id 模板父元素需要添加data-key='id' 和id对应
+        $el:'.product-wrapper' // 默认 可不填
+    })
+*  5.tab栏切换 (
+    <div id="tab-bar">
+        // 子标题
+        <div class="sub-tit">
+            <div class="item active"></div>
+            <div class="item"></div>
+        </div>
+        // 对应子标题
+        <div class="content"></div>
+        <div class="content hide"></div>
+    </div>
+)
+* 6.返回顶部 (类名:.to-top);
+ * 7.图片加载
+ * 8.获取【data-rep】的价格
+ */
+
+//1.自动计算html的font-size
+
+_resize();
+window.addEventListener("resize", _resize, false);
+
+function _resize() {
+  var html = document.documentElement;
+  var windowWidth = html.clientWidth;
+  if (windowWidth > 750) {
+    //最大宽度750px
+    windowWidth = 750;
+  }
+  html.style.fontSize = windowWidth / 7.5 + "px";
+}
+
+// 2.联系客服
+
+$(".ljkf,.lxkf,.zxkf").on("click", function() {
+  NTKF.im_openInPageChat();
+});
+
+// 3.优惠券
+
+function lqcoupon(couponid, Source) {
+  $.ajax({
+    type: "POST",
+    url: "/ajax/GetCoupon",
+    data: {
+      code: couponid,
+      Source: Source
+    },
+    success: function(result) {
+      if (document.cookie.indexOf("MemberCookie") >= 0) {
+        eval("result =" + result);
+        if (result == "801") {
+          alert("优惠券不在有效期");
+        } else {
+          if (result == "802") {
+            alert("您已领取优惠券,请勿重复领取");
+          } else {
+            if (result == "803") {
+              alert("领取异常请稍后再试");
+            } else {
+              if (result == "805") {
+                alert("抱歉,优惠券领取已领完");
+              } else {
+                if (result == "810") {
+                  window.location.href = "//muser.360lj.com/";
+                } else {
+                  if (result[0].status == "800") {
+                    alert("恭喜您领取成功");
+                  }
+                }
+              }
+            }
+          }
+        }
+      } else {
+        alert("请登录后领取");
+        window.location.href = "//muser.360lj.com/";
+      }
+    }
+  });
+}
+
+// 4.模板函数
+
+function template(option) {
+  // 验证
+  if (!option.templateHtml || !option.productId) {
+    return console.error("缺少必填项:templateHtml&&productId");
+  }
+  var templateHtml = option.templateHtml, //模板字符串
+    productId = option.productId, //产品id(数组)
+    $el = option.$el || ".product-wrapper"; // 模板的包装器
+
+  // 初始化
+  var num = 0, //索引
+    len = productId.length,
+    // 定时发送请求获取商品信息
+    timeId = setInterval(function() {
+      // 数组id
+      var id = productId[num].id;
+      if (typeof id == "undefined") {
+        id = num;
+      }
+      // 获取产品信息
+      var productArr = productId[num].list;
+      getProductInfo(productArr, num, id);
+      num++;
+
+      if (num >= len) {
+        clearInterval(timeId);
+      }
+    }, 10);
+
+  /**
+   *获取产品信息
+   * @param  {number[]} productArr 产品id数组 [1,2,3];
+   * @param {number} num索引
+   * @param {number} id 请求数据的id
+   */
+  function getProductInfo(productArr, num, id) {
+    var num = num,
+      id = id;
+    $.ajax({
+      type: "GET",
+      url: "//ajax.360lj.com/search/template?prd=" + productArr,
+      data: {
+        NoCache: Math.random()
+      },
+      dataType: "jsonp",
+      error: function() {
+        console.log("获取价格失败");
+      },
+      success: function(result) {
+        handleInfo(result, num, id);
+      }
+    });
+  }
+
+  /**
+   *生成信息 添加到页面
+   * @param  {array} res 返回的结果;
+   * @param {number} num索引
+   * @param {number} id 请求数据的id
+   */
+  function handleInfo(res, num, id) {
+    var htmlArr = [],
+      htmlStr = "",
+      str = "";
+    // 替换信息
+    for (var i = 0; i < res.length; i++) {
+      str = templateHtml.replace(/{{id}}/g, res[i].ProductCode);
+      str = str.replace(
+        /{{img}}/g,
+        res[i].ProductImageUrl.replace(/(http|https):/g, "")
+      );
+      str = str.replace(/{{title}}/g, res[i].ProductName);
+      str = str.replace(/{{from}}/g, res[i].Manufacturer);
+      str = str.replace(/{{size}}/g, res[i].Packing);
+      str = str.replace(/{{introduction}}/g, res[i].Introduction); //描述
+      htmlArr.push(str);
+    }
+    // 拼接字符串
+    htmlStr = htmlArr.join("");
+    // 添加到页面
+
+    if (
+      typeof $($el)
+        .eq(0)
+        .data("key") !== "undefined"
+    ) {
+      //如果有data-key这个属性  只判断了第一项
+      // id匹配
+      $("[data-key=" + id + "]").html(htmlStr);
+    } else {
+      // 索引匹配
+      $($el)
+        .eq(num)
+        .html(htmlStr);
+    }
+  }
+}
+
+// 5.tab栏切换
+(function() {
+  var $elcon = $("#tab-bar").find(".content");
+  var $eltab = $("#tab-bar>.sub-tit>.item");
+  //点击切换
+  $eltab.on("click", function() {
+    var index = $(this).index();
+    $(this)
+      .addClass("active")
+      .siblings()
+      .removeClass("active");
+    $elcon
+      .eq(index)
+      .removeClass("hide")
+      .siblings(".content")
+      .addClass("hide");
+  });
+})();
+
+// 6.返回顶部
+
+$(".to-top").on("click", function() {
+  $("html,body").animate(
+    {
+      scrollTop: 0
+    },
+    500
+  );
+});
+
+$(window).on("load", function() {
+  // 7.图片懒加载
+
+  $("img").lazyload({
+    /*替代图像*/
+    placeholder: "//image.360lj.com/images/grey.gif ",
+    effect: "fadeIn",
+    threshold: 300 //距图片200就显示
+  });
+
+  // 8.获取【data-rep】的价格
+
+  (function() {
+    if (!String.prototype.trim) {
+      String.prototype.trim = function() {
+        return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
+      };
+    }
+    var arr = $("[data-rep]");
+    var str = "";
+    var apiDomain = "//www.360lj.com";
+    if (arr.length > 0) {
+      arr.each(function() {
+        str += str === "" ? $(this).data("rep") : "," + $(this).data("rep");
+      });
+      $.ajax({
+        type: "get",
+        url: apiDomain + "/api/getrealprice?idstr=" + str,
+        dataType: "jsonp",
+        data: {
+          NoCache: Math.random()
+        },
+        error: function() {},
+        success: function(result) {
+          if (result && result.length && result.length > 0) {
+            for (var item in result) {
+              if (!!result[item].ProductCode) {
+                var rep_id = "[data-rep=" + result[item].ProductCode + "]";
+                var obj = $(rep_id);
+                obj.find("[data-price]").html(result[item].OurPrice);
+                obj.find("[data-marketprice]").html(result[item].MarketPrice);
+                obj.find("[data-views]").html(result[item].Views);
+                obj
+                  .find("[data-discount]")
+                  .html(
+                    (
+                      (result[item].OurPrice / result[item].MarketPrice) *
+                      10
+                    ).toFixed(1)
+                  );
+              } else continue;
+            }
+          }
+        }
+      });
+    }
+  })();
+});

+ 3 - 8
src/main/resources/application-dev.yml

@@ -34,20 +34,15 @@ foo:
         #        password: CDH360lj#com2019
         #        driver-class-name: com.mysql.jdbc.Driver
         url: jdbc:sqlserver://219.128.77.86:1433; DatabaseName=qywechattest
-#        url: jdbc:sqlserver://127.0.0.1:1433; DatabaseName=qywechattest
         username: test
-
-
-
         password: 360ljtest!
         driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
 
 bar:
     datasource:
-        url: jdbc:sqlserver://219.128.77.96:1433; DatabaseName=YPassport
-#        url: jdbc:sqlserver://172.16.0.40:1433; DatabaseName=YPassport
-        username: caixukun
-        password: cxk@membercenter!@#
+            url: jdbc:sqlserver://219.128.77.86:1433; DatabaseName=appauthtest
+        username: test
+        password: 360ljtest!
         driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
 wechat:
   cp:

+ 3 - 3
src/main/resources/application-prod.yml

@@ -38,9 +38,9 @@ foo:
 
 bar:
     datasource:
-        url: jdbc:sqlserver://172.16.0.40:1433; DatabaseName=YPassport
-        username: caixukun
-        password: cxk@membercenter!@#
+        url: jdbc:sqlserver://127.0.0.1:1433; DatabaseName=appauthtest
+        username: test
+        password: 360ljtest!
         driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
 wechat:
   cp: