去掉打印 和改接口地址

This commit is contained in:
浅念
2025-06-09 17:58:22 +08:00
parent ce95205a7b
commit 7e7858cc8c
30 changed files with 156 additions and 164 deletions
+4 -10
View File
@@ -12,15 +12,9 @@
export default { export default {
onLaunch: function() { onLaunch: function() {
// #ifdef H5 // #ifdef H5
console.log(
`%c hello uniapp %c v${version} `,
'background:#35495e ; padding: 1px; border-radius: 3px 0 0 3px; color: #fff',
'background:#007aff ;padding: 1px; border-radius: 0 3px 3px 0; color: #fff; font-weight: bold;'
)
// #endif // #endif
// 线上示例使用 // 线上示例使用
// console.log('%c uni-app官方团队诚邀优秀前 端工程师加盟,一起打造更卓越的uni-app & uniCloud,欢迎投递简历到 hr2013@dcloud.io', 'color: red'); // console.log('%c uni-app官方团队诚邀优秀前 端工程师加盟,一起打造更卓越的uni-app & uniCloud,欢迎投递简历到 hr2013@dcloud.io', 'color: red');
console.log('App Launch');
// #ifdef APP-PLUS // #ifdef APP-PLUS
// App平台检测升级,服务端代码是通过uniCloud的云函数实现的,详情可参考:https://ext.dcloud.net.cn/plugin?id=4542 // App平台检测升级,服务端代码是通过uniCloud的云函数实现的,详情可参考:https://ext.dcloud.net.cn/plugin?id=4542
if (plus.runtime.appid !== 'HBuilder') { // 真机运行不需要检查更新,真机运行时appid固定为'HBuilder',这是调试基座的appid if (plus.runtime.appid !== 'HBuilder') { // 真机运行不需要检查更新,真机运行时appid固定为'HBuilder',这是调试基座的appid
@@ -33,22 +27,22 @@
success: (res) => { success: (res) => {
// 成功 // 成功
this.setUniverifyErrorMsg(); this.setUniverifyErrorMsg();
console.log("preLogin success: ", res); // console.log("preLogin success: ", res);
}, },
fail: (res) => { fail: (res) => {
this.setUniverifyLogin(false); this.setUniverifyLogin(false);
this.setUniverifyErrorMsg(res.errMsg); this.setUniverifyErrorMsg(res.errMsg);
// 失败 // 失败
console.log("preLogin fail res: ", res); // console.log("preLogin fail res: ", res);
} }
}) })
// #endif // #endif
}, },
onShow: function() { onShow: function() {
console.log('App Show') // console.log('App Show')
}, },
onHide: function() { onHide: function() {
console.log('App Hide') // console.log('App Hide')
}, },
globalData: { globalData: {
test: '' test: ''
+4 -3
View File
@@ -1,8 +1,9 @@
const baseUrl = "http://219.157.255.213:9007/"; //这里放置url域名32044 // const baseUrl = "http://219.157.255.213:9007/"; //这里放置url域名32044
// const baseUrl = "http://api.crm.hnxinyouhe.com/"; //这里放置url域名32044 // const baseUrl = "http://api.crm.hnxinyouhe.com/"; //这里放置url域名32044
// const baseUrl = "http://192.168.50.9:8787/"; //这里放置url域名32044 // const baseUrl = "http://192.168.50.9:8787/"; //这里放置url域名32044
// const baseUrl = "http://219.157.255.213:25329/"; //这里放置url域名32044 // const baseUrl = "https://api.fcrm.hnxinyouhe.com/"; //这里放置url域名32044
const baseUrl = "https://crm-server.smt.hnxinyouhe.com/"; //这里放置url域名32044
// const baseUrl = "/api/"; //这里放置url域名32044 // const baseUrl = "/api/"; //这里放置url域名32044
export function request(options){//封装的requset export function request(options){//封装的requset
let { url,data,method } = options; let { url,data,method } = options;
@@ -35,7 +36,7 @@ export function request(options){//封装的requset
}, },
complete: (data)=>{ complete: (data)=>{
console.log(data.code) // console.log(data.code)
uni.hideLoading(); uni.hideLoading();
} }
}); });
+1
View File
@@ -201,4 +201,5 @@ export default {
loading:'loading', loading:'loading',
downmp:'Download business card', downmp:'Download business card',
downmpmsg:'Are you sure to download the current business card image?', downmpmsg:'Are you sure to download the current business card image?',
callmsg:'Are you sure you want to make the call?',
} }
+1
View File
@@ -199,4 +199,5 @@ export default {
loading: "Загрузка", loading: "Загрузка",
downmp:'Скачать визитку', downmp:'Скачать визитку',
downmpmsg:'Вы уверены в загрузке текущей карты?', downmpmsg:'Вы уверены в загрузке текущей карты?',
callmsg:'Вы уверены, что хотите совершить звонок?',
} }
+1
View File
@@ -199,4 +199,5 @@ export default {
loading:'加载中', loading:'加载中',
downmp:'下载名片', downmp:'下载名片',
downmpmsg:'确定下载当前名片图吗?', downmpmsg:'确定下载当前名片图吗?',
callmsg:'确定拨打电话吗?',
} }
+1 -1
View File
@@ -23,7 +23,7 @@ import Eyu from '@/common/locales/ru.js';
// 引入并使用vue-i18n // 引入并使用vue-i18n
import VueI18n from 'vue-i18n' import VueI18n from 'vue-i18n'
Vue.use(VueI18n) Vue.use(VueI18n)
console.log(uni.getLocale()) // console.log(uni.getLocale())
let i18nConfig = { let i18nConfig = {
locale: uni.getStorageSync('i18locale')?uni.getStorageSync('i18locale'):uni.getLocale(),// 获取已设置的语言 locale: uni.getStorageSync('i18locale')?uni.getStorageSync('i18locale'):uni.getLocale(),// 获取已设置的语言
messages: { messages: {
-7
View File
@@ -208,13 +208,11 @@
this.area() this.area()
}, },
onShow() { onShow() {
console.log(uni.getStorageSync('location'))
if(uni.getStorageSync('location')){ if(uni.getStorageSync('location')){
this.location = JSON.parse(uni.getStorageSync('location')) this.location = JSON.parse(uni.getStorageSync('location'))
this.form.address = this.location.address this.form.address = this.location.address
this.form.lng = this.location.lng this.form.lng = this.location.lng
this.form.lat = this.location.lat this.form.lat = this.location.lat
console.log(this.location)
} }
}, },
mounted() { mounted() {
@@ -331,11 +329,9 @@
// 国家搜索处理函数 // 国家搜索处理函数
handleSearch() { handleSearch() {
if (this.searchKeyword) { if (this.searchKeyword) {
console.log(this.searchKeyword)
this.filteredOptions = this.areaList.filter((item) => this.filteredOptions = this.areaList.filter((item) =>
item.name.includes(this.searchKeyword) item.name.includes(this.searchKeyword)
); );
console.log(this.filteredOptions)
} else { } else {
// 如果搜索框为空,显示全部数据 // 如果搜索框为空,显示全部数据
this.filteredOptions = this.areaList; this.filteredOptions = this.areaList;
@@ -345,8 +341,6 @@
handleSelect(item) { handleSelect(item) {
this.selectedLabel = item.name; // 回显选中的值 this.selectedLabel = item.name; // 回显选中的值
this.actives = item.id this.actives = item.id
console.log("选中的值:", item.id);
console.log("选中的值:", item.name);
}, },
arerfn(){ arerfn(){
this.showarea = false; // 关闭弹窗 this.showarea = false; // 关闭弹窗
@@ -368,7 +362,6 @@
}); });
return false return false
} }
console.log(this.form)
request({ request({
url:'customer/save', url:'customer/save',
method:'post', method:'post',
-4
View File
@@ -162,7 +162,6 @@
} }
}, },
onLoad(options) { onLoad(options) {
console.log(options);
this.id = options.id; this.id = options.id;
var that = this var that = this
this.getGrade() this.getGrade()
@@ -176,7 +175,6 @@
this.form.address = this.location.address this.form.address = this.location.address
this.form.lng = this.location.lng this.form.lng = this.location.lng
this.form.lat = this.location.lat this.form.lat = this.location.lat
console.log(this.location)
} }
this.followlistfn() this.followlistfn()
}, },
@@ -234,7 +232,6 @@
} }
}).then(res => { }).then(res => {
this.followList = res.data.data this.followList = res.data.data
console.log(res.data.data)
}) })
}, },
//添加跟进 //添加跟进
@@ -314,7 +311,6 @@
tagSelect(item) { tagSelect(item) {
// 如果已选中则取消,否则设置选中 // 如果已选中则取消,否则设置选中
this.$set(this.activeMap, item.group_id, this.activeMap[item.group_id] === item.id ? '' : item.id); this.$set(this.activeMap, item.group_id, this.activeMap[item.group_id] === item.id ? '' : item.id);
console.log(this.activeMap)
request({ request({
url:'tagGroup/updatePivot', url:'tagGroup/updatePivot',
method:'post', method:'post',
-7
View File
@@ -192,7 +192,6 @@
} }
}, },
onLoad(options) { onLoad(options) {
console.log(options);
this.id = options.id; this.id = options.id;
var that = this var that = this
this.getChannel() this.getChannel()
@@ -208,7 +207,6 @@
this.form.address = this.location.address this.form.address = this.location.address
this.form.lng = this.location.lng this.form.lng = this.location.lng
this.form.lat = this.location.lat this.form.lat = this.location.lat
console.log(this.location)
} }
this.followlistfn() this.followlistfn()
}, },
@@ -276,7 +274,6 @@
} }
}).then(res => { }).then(res => {
this.followList = res.data.data this.followList = res.data.data
console.log(res.data.data)
}) })
}, },
//添加跟进 //添加跟进
@@ -381,11 +378,9 @@
// 搜索处理函数 // 搜索处理函数
handleSearch() { handleSearch() {
if (this.searchKeyword) { if (this.searchKeyword) {
console.log(this.searchKeyword)
this.filteredOptions = this.areaList1.filter((item) => this.filteredOptions = this.areaList1.filter((item) =>
item.name.includes(this.searchKeyword) item.name.includes(this.searchKeyword)
); );
console.log(this.filteredOptions)
} else { } else {
// 如果搜索框为空,显示全部数据 // 如果搜索框为空,显示全部数据
this.filteredOptions = this.areaList1; this.filteredOptions = this.areaList1;
@@ -397,8 +392,6 @@
// this.searchKeyword = item.name // this.searchKeyword = item.name
this.actives = item.id this.actives = item.id
// this.showPicker = false; // 关闭弹窗 // this.showPicker = false; // 关闭弹窗
console.log("选中的值:", item.id);
console.log("选中的值:", item.name);
}, },
arerfn(){ arerfn(){
this.showarea = false; // 关闭弹窗 this.showarea = false; // 关闭弹窗
-4
View File
@@ -64,7 +64,6 @@
} }
}, },
onLoad(options) { onLoad(options) {
console.log(options);
this.id = options.id; this.id = options.id;
}, },
methods: { methods: {
@@ -72,7 +71,6 @@
uni.navigateBack({}) uni.navigateBack({})
}, },
active(item){ active(item){
console.log(item)
if(item=='auto'){ if(item=='auto'){
this.shownexttime = true this.shownexttime = true
} }
@@ -100,7 +98,6 @@
this.shownexttime = false this.shownexttime = false
this.nexttime = e.value this.nexttime = e.value
this.time = this.result(e.value, e.mode) this.time = this.result(e.value, e.mode)
console.log(this.nexttime)
}, },
getLaterDate(dayNum, dateTime = null) { getLaterDate(dayNum, dateTime = null) {
// 如果为null,则格式化当前时间为时间戳 // 如果为null,则格式化当前时间为时间戳
@@ -138,7 +135,6 @@
if(this.actives==7){ if(this.actives==7){
nexttime = this.getLaterDate(7) nexttime = this.getLaterDate(7)
} }
console.log(nexttime)
request({ request({
url:'customer/followNext', url:'customer/followNext',
method:'post', method:'post',
+17 -24
View File
@@ -199,7 +199,6 @@
} }
}, },
onLoad(options) { onLoad(options) {
console.log(options);
this.getlocahost() this.getlocahost()
this.id = options.id; this.id = options.id;
this.form.customer_id = options.id; this.form.customer_id = options.id;
@@ -292,13 +291,13 @@
success: (res) => { success: (res) => {
if (res.data.results && res.data.results.length > 0) { if (res.data.results && res.data.results.length > 0) {
this.form.address = res.data.results[0].formatted_address; // 获取格式化地址 this.form.address = res.data.results[0].formatted_address; // 获取格式化地址
console.log(res.data.results[0].formatted_address) // console.log(res.data.results[0].formatted_address)
} else { } else {
console.error('未找到地址'); // console.error('未找到地址');
} }
}, },
fail: (err) => { fail: (err) => {
console.error('请求失败:', err); // console.error('请求失败:', err);
}, },
}); });
}, },
@@ -307,17 +306,15 @@
uni.getLocation({ uni.getLocation({
type: 'wgs84', // 默认为 wgs84 坐标系,可选 gcj02 type: 'wgs84', // 默认为 wgs84 坐标系,可选 gcj02
success: function (res) { success: function (res) {
console.log('当前位置的经度:' + res.longitude);
console.log('当前位置的纬度:' + res.latitude);
that.getarrd(res.longitude,res.latitude) that.getarrd(res.longitude,res.latitude)
// 如果需要将经纬度转换为具体地址,可以使用逆地理编码 // 如果需要将经纬度转换为具体地址,可以使用逆地理编码
// 这里调用 uni.chooseLocation 或第三方地图服务(如高德、腾讯地图) // 这里调用 uni.chooseLocation 或第三方地图服务(如高德、腾讯地图)
}, },
fail: function (err) { fail: function (err) {
console.log('获取位置失败:', err); // console.log('获取位置失败:', err);
}, },
complete: function () { complete: function () {
console.log('获取位置完成'); // console.log('获取位置完成');
} }
}); });
}, },
@@ -325,11 +322,11 @@
if (navigator.geolocation) { if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition( navigator.geolocation.getCurrentPosition(
(position) => { (position) => {
console.log('当前位置的经度:' + position.coords.longitude); // console.log('当前位置的经度:' + position.coords.longitude);
console.log('当前位置的纬度:' + position.coords.latitude); // console.log('当前位置的纬度:' + position.coords.latitude);
this.getarrd(position.coords.longitude,position.coords.latitude) this.getarrd(position.coords.longitude,position.coords.latitude)
this.error = ''; this.error = '';
console.log("获取位置成功:", position); // console.log("获取位置成功:", position);
}, },
(error) => { (error) => {
this.unigetLocation() this.unigetLocation()
@@ -338,7 +335,7 @@
// title: this.error, // title: this.error,
// icon: 'none' // icon: 'none'
// }); // });
console.error("获取位置失败:", error); // console.error("获取位置失败:", error);
}, },
{ {
enableHighAccuracy: true, enableHighAccuracy: true,
@@ -353,7 +350,7 @@
// title: this.error, // title: this.error,
// icon: 'none' // icon: 'none'
// }); // });
console.error("浏览器不支持 Geolocation API"); // console.error("浏览器不支持 Geolocation API");
} }
}, },
getErrorMessage(error) { getErrorMessage(error) {
@@ -379,7 +376,7 @@
}).then(res => { }).then(res => {
this.datas = res.data.data this.datas = res.data.data
this.followList = res.data.data this.followList = res.data.data
console.log(res.data.data) // console.log(res.data.data)
}) })
}, },
//保存跟进 //保存跟进
@@ -421,7 +418,6 @@
confirm(e) { confirm(e) {
this.show = false this.show = false
this.form.firstFollowtime = this.result(e.value, e.mode) this.form.firstFollowtime = this.result(e.value, e.mode)
console.log(this.result(e.value, e.mode))
}, },
cancelnext() { cancelnext() {
this.shownexttime = false this.shownexttime = false
@@ -429,7 +425,6 @@
confirmnext(e) { confirmnext(e) {
this.shownexttime = false this.shownexttime = false
this.nexttime = this.result(e.value, e.mode) this.nexttime = this.result(e.value, e.mode)
console.log(this.nexttime)
request({ request({
url:'customer/followNext', url:'customer/followNext',
method:'post', method:'post',
@@ -451,18 +446,17 @@
}, },
change(e) { change(e) {
// console.log('change', e)
}, },
delfn(name){ delfn(name){
console.log(name)
that.carinfo[name] ='' that.carinfo[name] =''
}, },
uploadfn(imgUrl,name){ uploadfn(imgUrl,name){
var that = this; var that = this;
uni.uploadFile({ uni.uploadFile({
// url: 'http://api.crm.hnxinyouhe.com/upload', // url: 'http://api.crm.hnxinyouhe.com/upload',
url: 'http://219.157.255.213:9007/upload/uploadImage', // url: 'https://api.fcrm.hnxinyouhe.com/upload/uploadImage',
url: 'https://crm-server.smt.hnxinyouhe.com/upload/uploadImage',
filePath: imgUrl, filePath: imgUrl,
name: 'files', name: 'files',
header:{'Authorization': 'Bearer ' + uni.getStorageSync('token')}, header:{'Authorization': 'Bearer ' + uni.getStorageSync('token')},
@@ -470,7 +464,6 @@
const path=JSON.parse(uploadFileRes.data) const path=JSON.parse(uploadFileRes.data)
if(path.code==0){ if(path.code==0){
that.form[name] = path.data.path that.form[name] = path.data.path
console.log(that.form)
}else{ }else{
uni.showToast({ uni.showToast({
title: path.message, title: path.message,
@@ -503,10 +496,10 @@
options.engine = 'baidu'; options.engine = 'baidu';
that.form.audio_text = ""; that.form.audio_text = "";
plus.speech.startRecognize(options, function (s) { plus.speech.startRecognize(options, function (s) {
console.log(s); // console.log(s);
that.form.audio_text += s; that.form.audio_text += s;
}, function (e) { }, function (e) {
console.log("语音识别失败:" + e.message); // console.log("语音识别失败:" + e.message);
}); });
}, },
async startRecognize () { async startRecognize () {
@@ -524,12 +517,12 @@
options.punctuation = false; // 是否需要标点符号 options.punctuation = false; // 是否需要标点符号
options.timeout = 10 * 1000; //语音录入持续时长 options.timeout = 10 * 1000; //语音录入持续时长
plus.speech.startRecognize(options, function(s) { plus.speech.startRecognize(options, function(s) {
console.log(s); // console.log(s);
that.form.remark += s; that.form.remark += s;
// 关闭语音 // 关闭语音
plus.speech.stopRecognize(); plus.speech.stopRecognize();
}, function (e) { }, function (e) {
console.log("语音识别失败:" + e.message); // console.log("语音识别失败:" + e.message);
}); });
}, },
// #ifdef APP-PLUS // #ifdef APP-PLUS
+4 -4
View File
@@ -21,7 +21,7 @@ export default {
postMessagefn(e){ postMessagefn(e){
uni.setStorageSync('location', e.detail.data); uni.setStorageSync('location', e.detail.data);
uni.navigateBack({}) uni.navigateBack({})
console.log(JSON.parse(e.detail.data)) // console.log(JSON.parse(e.detail.data))
}, },
leftClick(){ leftClick(){
uni.navigateBack({}) uni.navigateBack({})
@@ -37,16 +37,16 @@ export default {
obj.lat=res.latitude obj.lat=res.latitude
var arr=[] var arr=[]
arr.push(obj) arr.push(obj)
console.log(arr) // console.log(arr)
// that.src = 'http://dap?arr='+encodeURIComponent(JSON.stringify(arr)) // that.src = 'http://dap?arr='+encodeURIComponent(JSON.stringify(arr))
that.src = 'http://219.157.255.213:8082?arr='+encodeURIComponent(JSON.stringify(arr)) that.src = 'http://219.157.255.213:8082?arr='+encodeURIComponent(JSON.stringify(arr))
}, },
fail: function (err) { fail: function (err) {
console.log('获取位置失败:', err); // console.log('获取位置失败:', err);
}, },
complete: function () { complete: function () {
console.log('获取位置完成'); // console.log('获取位置完成');
} }
}) })
}, },
+17 -17
View File
@@ -50,7 +50,7 @@ export default {
this.center.lat = e.lat this.center.lat = e.lat
this.center.lng = e.lng this.center.lng = e.lng
} }
console.log(e) // console.log(e)
this.initMap() this.initMap()
}, },
methods:{ methods:{
@@ -76,15 +76,15 @@ export default {
confirm(item){ confirm(item){
var that = this var that = this
// var latlng = JSON.parse(JSON.stringify(place.geometry.location)) // var latlng = JSON.parse(JSON.stringify(place.geometry.location))
console.log("place===", item.description) // console.log("place===", item.description)
that.value = item.description that.value = item.description
that.cityInfo.address=item.description that.cityInfo.address=item.description
var geocoder = new google.maps.Geocoder(); var geocoder = new google.maps.Geocoder();
// var address = document.getElementById("address").value; // var address = document.getElementById("address").value;
geocoder.geocode( { 'address': item.description}, function(results, status) { geocoder.geocode( { 'address': item.description}, function(results, status) {
console.log(results) // console.log(results)
var latlng = JSON.parse(JSON.stringify(results[0].geometry.location)) var latlng = JSON.parse(JSON.stringify(results[0].geometry.location))
console.log(latlng) // console.log(latlng)
// // 将地图中心点指向用户所选位置,并设置标记 // // 将地图中心点指向用户所选位置,并设置标记
that.map.setCenter(latlng); that.map.setCenter(latlng);
that.cityInfo.lat=latlng.lat that.cityInfo.lat=latlng.lat
@@ -140,13 +140,13 @@ export default {
const geocoder = new google.maps.Geocoder(); const geocoder = new google.maps.Geocoder();
geocoder.geocode({ location: position }, (results, status) => { geocoder.geocode({ location: position }, (results, status) => {
if (status === 'OK' && results[0]) { if (status === 'OK' && results[0]) {
console.log(results) // console.log(results)
console.log(position) // console.log(position)
that.cityInfo.address = results[0].formatted_address; that.cityInfo.address = results[0].formatted_address;
that.cityInfo.lat = position.lat(); that.cityInfo.lat = position.lat();
that.cityInfo.lng = position.lng(); that.cityInfo.lng = position.lng();
that.value = results[0].formatted_address; that.value = results[0].formatted_address;
console.log(that.cityInfo) // console.log(that.cityInfo)
} else { } else {
alert('无法获取地址信息'); alert('无法获取地址信息');
} }
@@ -158,17 +158,17 @@ export default {
uni.getLocation({ uni.getLocation({
type: 'wgs84', // 默认为 wgs84 坐标系,可选 gcj02 type: 'wgs84', // 默认为 wgs84 坐标系,可选 gcj02
success: function (res) { success: function (res) {
console.log('当前位置的经度:' + res.longitude); // console.log('当前位置的经度:' + res.longitude);
console.log('当前位置的纬度:' + res.latitude); // console.log('当前位置的纬度:' + res.latitude);
that.addmapmarkfn(res.latitude,res.longitude) that.addmapmarkfn(res.latitude,res.longitude)
// 如果需要将经纬度转换为具体地址,可以使用逆地理编码 // 如果需要将经纬度转换为具体地址,可以使用逆地理编码
// 这里调用 uni.chooseLocation 或第三方地图服务(如高德、腾讯地图) // 这里调用 uni.chooseLocation 或第三方地图服务(如高德、腾讯地图)
}, },
fail: function (err) { fail: function (err) {
console.log('获取位置失败:', err); // console.log('获取位置失败:', err);
}, },
complete: function () { complete: function () {
console.log('获取位置完成'); // console.log('获取位置完成');
} }
}); });
}, },
@@ -183,11 +183,11 @@ export default {
if (navigator.geolocation) { if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition( navigator.geolocation.getCurrentPosition(
(position) => { (position) => {
console.log('当前位置的经度:' + position.coords.longitude); // console.log('当前位置的经度:' + position.coords.longitude);
console.log('当前位置的纬度:' + position.coords.latitude); // console.log('当前位置的纬度:' + position.coords.latitude);
that.addmapmarkfn(position.coords.latitude,position.coords.longitude) that.addmapmarkfn(position.coords.latitude,position.coords.longitude)
this.error = ''; this.error = '';
console.log("获取位置成功:", position); // console.log("获取位置成功:", position);
}, },
(error) => { (error) => {
that.unigetLocation() that.unigetLocation()
@@ -196,7 +196,7 @@ export default {
// title: this.error, // title: this.error,
// icon: 'none' // icon: 'none'
// }); // });
console.error("获取位置失败:", error); // console.error("获取位置失败:", error);
}, },
{ {
enableHighAccuracy: true, enableHighAccuracy: true,
@@ -211,14 +211,14 @@ export default {
// title: this.error, // title: this.error,
// icon: 'none' // icon: 'none'
// }); // });
console.error("浏览器不支持 Geolocation API"); // console.error("浏览器不支持 Geolocation API");
} }
} }
}) })
.catch((e) => { .catch((e) => {
console.log(e) // console.log(e)
}) })
} }
}, },
+21 -13
View File
@@ -49,7 +49,6 @@
} }
}, },
onLoad(e) { onLoad(e) {
console.log(e)
this.tag_id = e.tag_id this.tag_id = e.tag_id
this.tag_name = e.name this.tag_name = e.name
}, },
@@ -69,7 +68,6 @@
per_page:10, per_page:10,
} }
}).then(res => { }).then(res => {
console.log(res.data)
if(res.data.code ==0){ if(res.data.code ==0){
var datas = res.data.data.list; var datas = res.data.data.list;
this.$refs.paging.complete(datas); this.$refs.paging.complete(datas);
@@ -81,7 +79,6 @@
}) })
}, },
godetile(item){ godetile(item){
console.log(item)
uni.navigateTo({ uni.navigateTo({
url: '/pages/customer/detile?id='+item.id url: '/pages/customer/detile?id='+item.id
}); });
@@ -96,16 +93,27 @@
}); });
return; return;
} }
uni.showModal ({
uni.makePhoneCall({ title: this.$t('prompt'),
phoneNumber: phoneNumber, content: this.$t('callmsg'),
success: () => { cancelText: this.$t('cancel'),
console.log('拨打电话成功'); confirmText: this.$t('confirm'),
}, success: function (res) {
fail: (err) => { if (res.confirm) {
console.log('拨打电话失败', err); uni.makePhoneCall({
}, phoneNumber: phoneNumber,
}); success: () => {
// console.log('拨打电话成功');
},
fail: (err) => {
// console.log('拨打电话失败', err);
},
});
} else if (res.cancel) {
// console.log('用户点击取消');
}
}
});
}, },
editClick(item){ editClick(item){
uni.navigateTo({ uni.navigateTo({
+22 -15
View File
@@ -99,7 +99,6 @@
} }
}, },
onLoad(e) { onLoad(e) {
console.log(e)
if(e.tab){ if(e.tab){
this.follow=e.tab - 1 this.follow=e.tab - 1
this.current = e.tab this.current = e.tab
@@ -178,7 +177,6 @@
this.show= false this.show= false
}, },
confirm(e) { confirm(e) {
console.log(e)
this.follow_last = e.value[0].id this.follow_last = e.value[0].id
this.show = false this.show = false
this.queryList(1, 10) this.queryList(1, 10)
@@ -188,7 +186,6 @@
}, },
//tab标签切换 //tab标签切换
tabclick(e){ tabclick(e){
console.log(e)
if(e.id=='all'){ if(e.id=='all'){
this.follow='' this.follow=''
}else{ }else{
@@ -211,7 +208,6 @@
follow_last:this.follow_last, follow_last:this.follow_last,
} }
}).then(res => { }).then(res => {
console.log(res.data)
if(res.data.code ==0){ if(res.data.code ==0){
var datas = res.data.data.list; var datas = res.data.data.list;
this.$refs.paging.complete(datas); this.$refs.paging.complete(datas);
@@ -223,7 +219,6 @@
}) })
}, },
godetile(item){ godetile(item){
console.log(item)
uni.navigateTo({ uni.navigateTo({
url: '/pages/customer/detile?id='+item.id url: '/pages/customer/detile?id='+item.id
}); });
@@ -238,16 +233,28 @@
}); });
return; return;
} }
uni.showModal ({
uni.makePhoneCall({ title: this.$t('prompt'),
phoneNumber: phoneNumber, content: this.$t('callmsg'),
success: () => { cancelText: this.$t('cancel'),
console.log('拨打电话成功'); confirmText: this.$t('confirm'),
}, success: function (res) {
fail: (err) => { if (res.confirm) {
console.log('拨打电话失败', err); uni.makePhoneCall({
}, phoneNumber: phoneNumber,
}); success: () => {
// console.log('拨打电话成功');
},
fail: (err) => {
// console.log('拨打电话失败', err);
},
});
} else if (res.cancel) {
// console.log('用户点击取消');
}
}
});
}, },
editClick(item){ editClick(item){
uni.navigateTo({ uni.navigateTo({
-2
View File
@@ -76,7 +76,6 @@
} }
}, },
onLoad(e) { onLoad(e) {
console.log(e)
}, },
onShow() { onShow() {
this.queryList(1, 10) this.queryList(1, 10)
@@ -110,7 +109,6 @@
per_page:10, per_page:10,
} }
}).then(res => { }).then(res => {
console.log(res.data)
if(res.data.code ==0){ if(res.data.code ==0){
var datas = res.data.data.list; var datas = res.data.data.list;
this.$refs.paging.complete(datas); this.$refs.paging.complete(datas);
+21 -11
View File
@@ -199,7 +199,6 @@
this.$i18n.locale = e.value[0].id this.$i18n.locale = e.value[0].id
uni.setStorageSync('i18locale', e.value[0].id); uni.setStorageSync('i18locale', e.value[0].id);
this.showlang = false this.showlang = false
console.log(uni.getLocale())
this.columns =[ this.columns =[
[{ [{
label: this.$t('zh'), label: this.$t('zh'),
@@ -326,16 +325,27 @@
}); });
return; return;
} }
uni.showModal ({
uni.makePhoneCall({ title: this.$t('prompt'),
phoneNumber: phoneNumber, content: this.$t('callmsg'),
success: () => { cancelText: this.$t('cancel'),
console.log('拨打电话成功'); confirmText: this.$t('confirm'),
}, success: function (res) {
fail: (err) => { if (res.confirm) {
console.log('拨打电话失败', err); uni.makePhoneCall({
}, phoneNumber: phoneNumber,
}); success: () => {
// console.log('拨打电话成功');
},
fail: (err) => {
// console.log('拨打电话失败', err);
},
});
} else if (res.cancel) {
// console.log('用户点击取消');
}
}
});
}, },
editClick(item){ editClick(item){
uni.navigateTo({ uni.navigateTo({
+23 -11
View File
@@ -33,11 +33,11 @@
<uni-icons type="right" class="icon" size="18"></uni-icons> <uni-icons type="right" class="icon" size="18"></uni-icons>
</view> </view>
</view> --> </view> -->
<view class="sonContent" @click="navTo('/pages/mine/workreport')"> <!-- <view class="sonContent" @click="navTo('/pages/mine/workreport')">
<image class="son-img-bg" src="/static/image/mine/icon10.png"></image> <image class="son-img-bg" src="/static/image/mine/icon10.png"></image>
<span>{{$t('mine.workreport')}}</span> <span>{{$t('mine.workreport')}}</span>
<uni-icons type="right" class="icon" size="18"></uni-icons> <uni-icons type="right" class="icon" size="18"></uni-icons>
</view> </view> -->
<view class="sonContent" @click="navTo('/pages/mine/resetPwd')"> <view class="sonContent" @click="navTo('/pages/mine/resetPwd')">
<image class="son-img-bg" src="/static/image/mine/icon2.png"></image> <image class="son-img-bg" src="/static/image/mine/icon2.png"></image>
<span>{{$t('mine.cpassword')}}</span> <span>{{$t('mine.cpassword')}}</span>
@@ -178,15 +178,27 @@
}); });
return; return;
} }
uni.makePhoneCall({ uni.showModal ({
phoneNumber: phoneNumber, title: this.$t('prompt'),
success: () => { content: this.$t('callmsg'),
console.log('拨打电话成功'); cancelText: this.$t('cancel'),
}, confirmText: this.$t('confirm'),
fail: (err) => { success: function (res) {
console.log('拨打电话失败', err); if (res.confirm) {
}, uni.makePhoneCall({
}); phoneNumber: phoneNumber,
success: () => {
// console.log('拨打电话成功');
},
fail: (err) => {
// console.log('拨打电话失败', err);
},
});
} else if (res.cancel) {
// console.log('用户点击取消');
}
}
});
}, },
//退出登录 //退出登录
logout(){ logout(){
+5 -8
View File
@@ -14,7 +14,6 @@
} }
}, },
onLoad(options) { onLoad(options) {
console.log(options)
this.getCode(options.code,options.state) this.getCode(options.code,options.state)
}, },
methods: { methods: {
@@ -28,10 +27,8 @@
}, },
getCode(code,state) { getCode(code,state) {
// var code = this.getUrlParam('code'); // var code = this.getUrlParam('code');
console.log(code)
var code_url = ''; var code_url = '';
if (code == null || code == '' || !code) { if (code == null || code == '' || !code) {
console.log(2222222)
request({ request({
url:'feishu/getinfo', url:'feishu/getinfo',
method:'post', method:'post',
@@ -43,7 +40,7 @@
if(res.data.code ==0){ if(res.data.code ==0){
var data = res.data.data; var data = res.data.data;
this.datas = data this.datas = data
console.log(data) // console.log(data)
code_url += 'https://open.feishu.cn/open-apis/authen/v1/authorize' code_url += 'https://open.feishu.cn/open-apis/authen/v1/authorize'
code_url += '?app_id=' + data.app_id code_url += '?app_id=' + data.app_id
@@ -51,7 +48,7 @@
code_url += '&scope=' + data.scope code_url += '&scope=' + data.scope
code_url += '&state=' + data.state; code_url += '&state=' + data.state;
console.log(code_url) // console.log(code_url)
// return; // return;
window.location.href = code_url; window.location.href = code_url;
}else{ }else{
@@ -96,16 +93,16 @@
const route = currentPage.route; // 页面路径 const route = currentPage.route; // 页面路径
const options = currentPage.options; // 页面参数 const options = currentPage.options; // 页面参数
const fullUrl = `${route}?${Object.keys(options).map(key => `${key}=${options[key]}`).join('&')}`; const fullUrl = `${route}?${Object.keys(options).map(key => `${key}=${options[key]}`).join('&')}`;
console.log('当前页面完整 URL:', fullUrl); // console.log('当前页面完整 URL:', fullUrl);
request({ request({
url:'feishu/getinfo', url:'feishu/getinfo',
method:'post', method:'post',
}).then(res => { }).then(res => {
var data = res.data.data; var data = res.data.data;
var urls = data.url+fullUrl var urls = data.url+fullUrl
console.log(data) // console.log(data)
this.webUrl = 'https://open.feishu.cn/open-apis/authen/v1/authorize?app_id='+data.app_id+'&redirect_uri='+urls+'&scope='+data.scope+'&state='+data.state this.webUrl = 'https://open.feishu.cn/open-apis/authen/v1/authorize?app_id='+data.app_id+'&redirect_uri='+urls+'&scope='+data.scope+'&state='+data.state
console.log(this.webUrl) // console.log(this.webUrl)
}) })
}, },
} }
+2 -1
View File
@@ -1,6 +1,7 @@
<template> <template>
<view> <view>
<web-view src="http://219.157.255.213:9007/index/userAgreement" style="width: 100%; height: 100%;"></web-view> <!-- <web-view src="https://api.fcrm.hnxinyouhe.com/index/userAgreement" style="width: 100%; height: 100%;"></web-view> -->
<web-view src="https://crm-server.smt.hnxinyouhe.com/index/userAgreement" style="width: 100%; height: 100%;"></web-view>
</view> </view>
</template> </template>
+2 -1
View File
@@ -1,6 +1,7 @@
<template> <template>
<view> <view>
<web-view src="http://219.157.255.213:9007/index/privacyAgreement" style="width: 100%; height: 100%;"></web-view> <!-- <web-view src="https://api.fcrm.hnxinyouhe.com/index/privacyAgreement" style="width: 100%; height: 100%;"></web-view> -->
<web-view src="https://crm-server.smt.hnxinyouhe.com/index/privacyAgreement" style="width: 100%; height: 100%;"></web-view>
</view> </view>
</template> </template>
+1 -1
View File
@@ -62,7 +62,7 @@
<view>{{$t('agreeMsg')}}<text @click="navigateToAgreement">{{$t('UserAgreement')}}</text>{{$t('and')}}<text @click="navigateToPrivacy">{{$t('Privacy')}}</text></view> <view>{{$t('agreeMsg')}}<text @click="navigateToAgreement">{{$t('UserAgreement')}}</text>{{$t('and')}}<text @click="navigateToPrivacy">{{$t('Privacy')}}</text></view>
</view> </view>
<view class="footer"> <view class="footer">
<text class="copyright">© 2024 powered by 河南晋海科技环保有限公司</text> <text class="copyright">© 2024 powered by 河南新友合科技有限公司</text>
</view> </view>
<u-picker closeOnClickOverlay :cancel-text="$t('cancel')" :confirm-text="$t('confirm')" @close="close" :show="showlang" :columns="columns" <u-picker closeOnClickOverlay :cancel-text="$t('cancel')" :confirm-text="$t('confirm')" @close="close" :show="showlang" :columns="columns"
@cancel="cancellang" @confirm="confirmlang" :title="$t('home.langbtn')" keyName="label"></u-picker> @cancel="cancellang" @confirm="confirmlang" :title="$t('home.langbtn')" keyName="label"></u-picker>
+2 -2
View File
@@ -124,7 +124,7 @@
code: this.code, code: this.code,
} }
}).then(res => { }).then(res => {
console.log(res.data.data) // console.log(res.data.data)
uni.showToast({ uni.showToast({
title: res.data.message, title: res.data.message,
icon: 'none' icon: 'none'
@@ -170,7 +170,7 @@
email: this.email, email: this.email,
} }
}).then(res => { }).then(res => {
console.log(res.data.data) // console.log(res.data.data)
uni.showToast({ uni.showToast({
title:res.data.message, title:res.data.message,
icon: 'none' icon: 'none'
+3 -3
View File
@@ -101,7 +101,7 @@
}); });
// 2. 返回临时路径(可直接用于 <image> 显示) // 2. 返回临时路径(可直接用于 <image> 显示)
console.log('下载成功,临时路径:', tempFilePath); // console.log('下载成功,临时路径:', tempFilePath);
if(item =='imageSrc'){ if(item =='imageSrc'){
this.imageSrc = tempFilePath; this.imageSrc = tempFilePath;
}else{ }else{
@@ -109,7 +109,7 @@
} }
} catch (err) { } catch (err) {
console.error('下载失败:', err); // console.error('下载失败:', err);
throw new Error('图片下载失败'); throw new Error('图片下载失败');
} }
}, },
@@ -156,7 +156,7 @@
if (res.confirm) { if (res.confirm) {
that.downloadImage(baseImg,canvas); that.downloadImage(baseImg,canvas);
} else if (res.cancel) { } else if (res.cancel) {
console.log('用户点击取消'); // console.log('用户点击取消');
} }
} }
}); });
+2 -8
View File
@@ -155,10 +155,7 @@
handleSearch() { handleSearch() {
var that = this var that = this
if (this.searchKeyword) { if (this.searchKeyword) {
console.log(this.searchKeyword)
this.filteredOptions = this.areaList1.filter((item) => item.name.includes(this.searchKeyword)); this.filteredOptions = this.areaList1.filter((item) => item.name.includes(this.searchKeyword));
console.log(this.filteredOptions)
} else { } else {
// 如果搜索框为空,显示全部数据 // 如果搜索框为空,显示全部数据
this.filteredOptions = this.areaList1; this.filteredOptions = this.areaList1;
@@ -170,8 +167,6 @@
// this.searchKeyword = item.name // this.searchKeyword = item.name
this.actives = item.id this.actives = item.id
// this.showPicker = false; // 关闭弹窗 // this.showPicker = false; // 关闭弹窗
console.log("选中的值:", item.id);
console.log("选中的值:", item.name);
}, },
arerfn(){ arerfn(){
this.showPicker = false; // 关闭弹窗 this.showPicker = false; // 关闭弹窗
@@ -235,7 +230,8 @@
uploadfn(imgUrl,name,name1){ uploadfn(imgUrl,name,name1){
var that = this; var that = this;
uni.uploadFile({ uni.uploadFile({
url: 'http://219.157.255.213:9007/upload/uploadImage', // url: 'https://api.fcrm.hnxinyouhe.com/upload/uploadImage',
url: 'https://crm-server.smt.hnxinyouhe.com/upload/uploadImage',
filePath: imgUrl, filePath: imgUrl,
name: 'files', name: 'files',
header:{'Authorization': 'Bearer ' + uni.getStorageSync('token')}, header:{'Authorization': 'Bearer ' + uni.getStorageSync('token')},
@@ -249,7 +245,6 @@
}else{ }else{
that.userinfo[name1] = path.data.image_url that.userinfo[name1] = path.data.image_url
that.userinfo[name] = path.data.path that.userinfo[name] = path.data.path
console.log(that.form)
} }
} }
}); });
@@ -277,7 +272,6 @@
uni.navigateBack({}) uni.navigateBack({})
}, },
bcFn(){ bcFn(){
console.log(this.userinfo)
request({ request({
url:'user/save', url:'user/save',
method:'POST', method:'POST',
-1
View File
@@ -41,7 +41,6 @@
recycle:'recycle' recycle:'recycle'
} }
}).then(res => { }).then(res => {
console.log(res.data)
if(res.data.code ==0){ if(res.data.code ==0){
var datas = res.data.data.list; var datas = res.data.data.list;
this.$refs.paging.complete(datas); this.$refs.paging.complete(datas);
-2
View File
@@ -130,7 +130,6 @@
}) })
}, },
getVcode() { getVcode() {
console.log(this.email)
if(this.email==''){ if(this.email==''){
uni.showToast({ uni.showToast({
title:this.$t('emailerr'), title:this.$t('emailerr'),
@@ -161,7 +160,6 @@
email: this.email, email: this.email,
} }
}).then(res => { }).then(res => {
console.log(res.data.data)
uni.showToast({ uni.showToast({
title:res.data.message, title:res.data.message,
icon: 'none' icon: 'none'
-1
View File
@@ -41,7 +41,6 @@
per_page:10, per_page:10,
} }
}).then(res => { }).then(res => {
console.log(res.data)
if(res.data.code ==0){ if(res.data.code ==0){
var datas = res.data.data.data; var datas = res.data.data.data;
this.$refs.paging.complete(datas); this.$refs.paging.complete(datas);
-1
View File
@@ -77,7 +77,6 @@
uni.navigateBack({}) uni.navigateBack({})
}, },
bcFn(){ bcFn(){
console.log(this.userinfo)
request({ request({
url:'daily/save', url:'daily/save',
method:'POST', method:'POST',
@@ -8,7 +8,7 @@ import c from '.././z-paging-constant'
import interceptor from '../z-paging-interceptor' import interceptor from '../z-paging-interceptor'
const language = uni.getStorageSync('i18locale')?uni.getStorageSync('i18locale'):uni.getLocale(); const language = uni.getStorageSync('i18locale')?uni.getStorageSync('i18locale'):uni.getLocale();
console.log(uni.getLocale()) // console.log(uni.getLocale())
export default { export default {
data() { data() {
return { return {
@@ -95,7 +95,7 @@ export default {
}, },
// 获取国际化转换后的文本 // 获取国际化转换后的文本
_getI18nText(key, value) { _getI18nText(key, value) {
console.log(this.finalLanguage) // console.log(this.finalLanguage)
const dataType = Object.prototype.toString.call(value); const dataType = Object.prototype.toString.call(value);
if (dataType === '[object Object]') { if (dataType === '[object Object]') {
const nextValue = value[this.finalLanguage]; const nextValue = value[this.finalLanguage];