diff --git a/commons/js/config.js b/commons/js/config.js
index e8b5f94..5fd6040 100644
--- a/commons/js/config.js
+++ b/commons/js/config.js
@@ -1,4 +1,4 @@
-const env = "p";
+const env = "d";
const version = 1,
diff --git a/pages/customer/addCard/index.js b/pages/customer/addCard/index.js
index dc0f99e..a77f55d 100644
--- a/pages/customer/addCard/index.js
+++ b/pages/customer/addCard/index.js
@@ -35,6 +35,8 @@ Page({
city_id:'',
countyIndex:-1,
county_id:'',
+
+ isShowExist:false, //客户是否已存在
},
//生命周期函数--监听页面加载
onLoad: function (options) {
@@ -406,6 +408,13 @@ Page({
this.setData({
submitFlag: false,
})
+ if(res.data.id){
+ wx.hideToast();
+ this.setData({
+ isShowExist: true,
+ exist: res,
+ })
+ }
});
}
},
@@ -550,4 +559,18 @@ Page({
}
},
+ //查看存在客户信息
+ viewDetails(e){
+ wx.redirectTo({
+ url: '/pages/customer/detail/index?id=' + this.data.exist.data.id
+ })
+ },
+
+ //关闭客户已存在提示
+ colseExist(){
+ this.setData({
+ isShowExist: false,
+ })
+ },
+
})
\ No newline at end of file
diff --git a/pages/customer/addCard/index.wxml b/pages/customer/addCard/index.wxml
index d3ac558..97d2fe1 100644
--- a/pages/customer/addCard/index.wxml
+++ b/pages/customer/addCard/index.wxml
@@ -154,4 +154,17 @@
-
\ No newline at end of file
+
+
+
+
+
+
+ {{exist.msg}}
+
+
+
+
+
+
+
\ No newline at end of file