客户是否已存在
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
const env = "p";
|
||||
const env = "d";
|
||||
|
||||
const version = 1,
|
||||
|
||||
|
||||
@@ -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,
|
||||
})
|
||||
},
|
||||
|
||||
})
|
||||
@@ -154,4 +154,17 @@
|
||||
</view>
|
||||
</view>
|
||||
<lcb-footer></lcb-footer>
|
||||
<lcb-backChannel></lcb-backChannel>
|
||||
<lcb-backChannel></lcb-backChannel>
|
||||
|
||||
<!--客户已存在-->
|
||||
<lcb-msg isShow="{{isShowExist}}" isHasClose="{{true}}">
|
||||
<view slot="content">
|
||||
<view class="pt60 pl60 pr60 pb50">
|
||||
<view class="font-36 text-center">{{exist.msg}}</view>
|
||||
</view>
|
||||
<view class="pl60 pr60 pb50 text-center font-32 color-666">
|
||||
<button bindtap="viewDetails" class="inline-block wp50 btn-36afa2 font-28 color-fff ulib-r750" hover-class="btn-36afa2-hover" wx:if="{{exist.data.owner==1}}">前往查看</button>
|
||||
<button bindtap="colseExist" class="inline-block wp50 btn-36afa2 font-28 color-fff ulib-r750" hover-class="btn-36afa2-hover" wx:else>知道了</button>
|
||||
</view>
|
||||
</view>
|
||||
</lcb-msg>
|
||||
Reference in New Issue
Block a user