diff --git a/api/apiT.js b/api/apiT.js index 3848275..2245e2a 100644 --- a/api/apiT.js +++ b/api/apiT.js @@ -1,6 +1,6 @@ - // const baseUrl = "https://api.collect.hs.hnzhwlkj.club/"; //这里放置url域名32044 -// const baseUrl = "http://192.168.0.72:8083/api/v1/"; //这里放置url域名32044 + const baseUrl = "http://219.157.255.213:9007/"; //这里放置url域名32044 + // const baseUrl = "http://api.crm.hnxinyouhe.com/"; //这里放置url域名32044 // const baseUrl = "http://192.168.50.4:8787/"; //这里放置url域名32044 // const baseUrl = "/api/"; //这里放置url域名32044 export function request(options){//封装的requset @@ -17,9 +17,23 @@ export function request(options){//封装的requset header:{'content-type': 'application/x-www-form-urlencoded','Authorization': 'Bearer ' + uni.getStorageSync('token')}, method:method||"GET",//默认请求方式是get success: (res) => { - resolve(res) + if(res.data.code==401){ + uni.showToast({ + title: res.data.message, + icon: 'none' + }); + setTimeout(() => { + uni.reLaunch({ + url: '/pages/login/index',// 替换为你要跳转的页面路径 + }); + }, 1000); + }else{ + resolve(res) + } }, complete: (data)=>{ + + console.log(data.code) uni.hideLoading(); } }); @@ -38,6 +52,7 @@ export function requestx(options){//封装的requset resolve(res) }, complete: (data)=>{ + } }); }) diff --git a/common/locales/en.js b/common/locales/en.js index b0f287e..a4b97bb 100644 --- a/common/locales/en.js +++ b/common/locales/en.js @@ -30,6 +30,7 @@ export default { followtype:'Follow up method', Online:'On line', Visit:'Visit', + addfollow:'follow up', followtime:'Follow up time', updataimg:'Upload follow-up chat screenshot', followrecord:'Follow up records', @@ -136,7 +137,14 @@ export default { newpassword:'Password', Confirmpassword:'Confirm password', Confirmbtn:'Confirm modification', + edtbtn:'edit', zh:'Chinese', en:'English', - ru:'Russian' + ru:'Russian', + subsuccess:'Successful', + onedaygj:'1 day later', + threedaygj:'3 day later', + sevendaygj:'7 day later', + autodaygj:'Customize', + nexttime:'Next follow-up reminder setting', } \ No newline at end of file diff --git a/common/locales/zh.js b/common/locales/zh.js index 11a9a90..a150b0f 100644 --- a/common/locales/zh.js +++ b/common/locales/zh.js @@ -29,6 +29,7 @@ export default { followtype:'跟进方式', Online:'在线跟进', Visit:'拜访', + addfollow:'添加跟进', followtime:'跟进时间', updataimg:'上传跟进最后聊天截图', followrecord:'跟进记录', @@ -135,7 +136,14 @@ export default { newpassword:'新密码', Confirmpassword:'确认密码', Confirmbtn:'确认修改', + edtbtn:'编辑资料', zh:'中文', en:'英语', - ru:'俄语' + ru:'俄语', + subsuccess:'提交成功', + onedaygj:'1天后', + threedaygj:'3天后', + sevendaygj:'7天后', + autodaygj:'自定义', + nexttime:'下次跟进提醒设置', } \ No newline at end of file diff --git a/pages.json b/pages.json index 606caba..bd7f493 100644 --- a/pages.json +++ b/pages.json @@ -22,7 +22,7 @@ "style" : { "navigationBarTitleText": "首页", - "enablePullDownRefresh": true, + "enablePullDownRefresh": false, "navigationStyle":"custom",// 去掉微信小程序顶部导航 "app-plus":{ "titleNView":false //去掉app+h5顶部导航 @@ -46,7 +46,7 @@ "path" : "pages/login/agreement", "style" : { - "navigationBarTitleText" : "隐私政策", + "navigationBarTitleText" : "用户协议", "enablePullDownRefresh": false, "navigationStyle":"custom"// 去掉微信小程序顶部导航 } @@ -55,7 +55,9 @@ "path" : "pages/login/agreementuser", "style" : { - "navigationBarTitleText" : "用户服务协议" + "navigationBarTitleText" : "隐私协议", + "enablePullDownRefresh": false, + "navigationStyle":"custom"// 去掉微信小程序顶部导航 } }, { @@ -99,6 +101,15 @@ "navigationStyle":"custom"// 去掉微信小程序顶部导航 } }, + { + "path" : "editdetile", + "style" : + { + "navigationBarTitleText" : "", + "enablePullDownRefresh": false, + "navigationStyle":"custom"// 去掉微信小程序顶部导航 + } + }, { "path" : "followup", "style" : @@ -125,6 +136,15 @@ "enablePullDownRefresh": false, "navigationStyle":"custom"// 去掉微信小程序顶部导航 } + }, + { + "path" : "followsuccess", + "style" : + { + "navigationBarTitleText" : "", + "enablePullDownRefresh": false, + "navigationStyle":"custom"// 去掉微信小程序顶部导航 + } } ] },{ diff --git a/pages/customer/add.vue b/pages/customer/add.vue index 7d470db..3a07f4b 100644 --- a/pages/customer/add.vue +++ b/pages/customer/add.vue @@ -205,13 +205,16 @@ url: '/pages/customer/maph5' }); // #endif - // #ifdef APP-PLUS uni.navigateTo({ url: '/pages/customer/map' }); // #endif - + }, + gomap1(){ + uni.navigateTo({ + url: '/pages/customer/map' + }); }, mapclose(){ this.showmap = false diff --git a/pages/customer/detile.vue b/pages/customer/detile.vue index 51d6a78..d11601a 100644 --- a/pages/customer/detile.vue +++ b/pages/customer/detile.vue @@ -2,72 +2,31 @@ - - {{$t('customer.CustomerChannel')}} - - - {{channel_name || $t('customer.CustomerChannelinput')}} - + + + {{datas.contacts}} + + {{datas.magnitude_txt}} + {{datas.follow_txt}} + + + + + + {{datas.phone}} + 渠道:{{datas.channel_name}} + + {{datas.sex_txt}} | {{datas.country_name}}{{datas.car_type_name}} + + Email: {{datas.email}} + WhatsAPP: {{datas.WhatsApp}} + 公司: {{datas.address}} + 备注: {{datas.describe}} + + + {{$t('edtbtn')}} - - - {{$t('customer.Medal')}} - - - {{magnitude_name || $t('customer.Medalinput')}} - - - - - - {{$t('customer.CustomerName')}} * - - - - - - - {{$t('gender')}} - - - {{$t('gender0')}} - {{$t('gender1')}} - {{$t('gender2')}} - - - - - - {{$t('mine.lxcall')}} * - - - - - - - Email - - - - - - - WhatsApp - - - - - - - {{$t('customer.Customerph')}} - - - {{car_type_name || $t('customer.Customerphinput')}} - - - - {{$t('customer.Cstomerfj')}} @@ -76,31 +35,6 @@ - - - {{$t('customer.Country')}} - - - {{country_name || $t('customer.Countryinput')}} - - - - - - {{$t('customer.Company')}} - - - {{address || $t('customer.Companyinput')}} - - - - - - {{$t('customer.Remarks')}} - -